/*
Theme Name: Искони
Description: Предметная мебель. WordPress / WooCommerce, макеты Figma 1:2 и 1:88.
Version: 1.0.0
Requires PHP: 8.1
Text Domain: iskoni
*/
@font-face { font-family: Onest; src: url('assets/onest.ttf') format('truetype'); font-style: normal; font-weight: 100 900; font-display: swap; }
@font-face { font-family: Roboto; src: url('assets/roboto.ttf') format('truetype'); font-style: normal; font-weight: 100 900; font-display: swap; }
:root { --ink: #202020; --sand: #baad94; --paper: #f5f5f5; --line: rgb(186 173 148 / 50%); --gutter: 16px; --header-height: 60px; --admin-offset: 0px; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + var(--admin-offset) + 20px); }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 16px/1.4 Onest, sans-serif; }
body.admin-bar { --admin-offset: 32px; }
h1, h2, p, figure, ul { margin: 0; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color .2s ease, background-color .2s ease, border-color .2s ease; }
a:hover { color: #827354; }
button, input, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #746448; outline-offset: 5px; }
[hidden] { display: none !important; }
.screen-reader-text, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; left: 16px; top: 8px; padding: 12px; z-index: 200; background: white; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 10px 40px; border-radius: 6px; background: var(--sand); color: white; font: 400 16px/1.2 Roboto, sans-serif; text-align: center; }
.button:hover, .button:focus-visible { background: #9e8c6c; color: white; }
.media { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 6px; }
.media > img, .media > video { width: 100%; height: 100%; object-fit: cover; }
.media--video > video { position: absolute; inset: 0; }
.prose p + p { margin-top: 22px; }
.prose { overflow-wrap: anywhere; }
.site-header { position: sticky; top: var(--admin-offset); z-index: 100; width: 100%; background: white; }
.site-header__bar { display: grid; grid-template-columns: 1fr 44px 1fr; align-items: center; gap: 10px; height: var(--header-height); padding: 0 var(--gutter); }
.site-logo { display: inline-block; width: 123px; max-width: 100%; }
.site-logo img { width: 123px; height: 33px; object-fit: contain; }
.site-header__contact { justify-self: end; font-size: 13px; line-height: 1.2; }
.menu-toggle { display: grid; place-content: center; gap: 7px; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; }
.menu-toggle span { width: 30px; height: 2px; background: var(--ink); transition: transform .2s ease; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
.menu-toggle:hover span { background: #827354; }
.site-menu { position: absolute; inset: 100% 0 auto; display: grid; gap: 28px; padding: 24px var(--gutter) 30px; max-height: calc(100dvh - var(--header-height) - var(--admin-offset)); overflow: auto; background: white; }
.site-menu::before { content: ''; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line); }
.navigation { display: flex; flex-wrap: wrap; gap: 20px 28px; padding: 0; list-style: none; line-height: 1.2; }
.site-menu .navigation { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.site-menu__media { height: 120px; }
.site-menu__media .media { border-radius: 0; }
.site-menu__media img { object-position: center 41%; }
.contacts { display: flex; flex-wrap: wrap; gap: 24px 40px; font-style: normal; line-height: 1.2; }
.contacts div { min-width: 0; }
.contacts span, .contacts a { display: block; overflow-wrap: anywhere; }
.contacts span { color: var(--sand); }
.site-menu .contacts { margin-top: 36px; }
.menu-backdrop { position: fixed; inset: calc(var(--header-height) + var(--admin-offset)) 0 0; background: rgb(0 0 0 / 30%); z-index: 90; }
body.menu-open { overflow: hidden; }
.hero { display: grid; padding: 24px var(--gutter) 36px; gap: 24px; }
.hero__intro { display: flex; flex-direction: column; gap: 24px; grid-row: 1; min-width: 0; }
.hero__eyebrow, .hero__tagline { color: var(--sand); line-height: 1.2; }
.hero__copy h1 { font-weight: 500; font-size: 32px; line-height: 1.1; letter-spacing: -.06em; overflow-wrap: anywhere; }
.hero__copy .button { margin-top: 20px; }
.hero__tagline { font-size: 14px; }
.hero__gallery { position: relative; min-width: 0; grid-row: 2; aspect-ratio: 677 / 800; }
.hero__slide, .hero__slide > .media { width: 100%; height: 100%; }
.hero__caption { position: absolute; bottom: 24px; left: 20px; right: 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; color: white; font: 400 14px/1.2 Roboto, sans-serif; }
.hero__caption span { padding: 10px 18px; background: rgb(255 255 255 / 50%); border-radius: 6px; backdrop-filter: blur(4px); }
.hero__thumbnails { display: flex; gap: 14px; min-width: 0; overflow: auto; padding: 10px 12px; grid-row: 3; scrollbar-width: thin; }
.hero__thumbnail { flex: 0 0 68px; position: relative; border: 0; padding: 0; background: transparent; border-radius: 6px; height: 82px; }
.hero__preview { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; transition: opacity .2s; }
.hero__thumbnail:hover .hero__preview { opacity: .75; }
.hero__corner { position: absolute; width: 20px; height: 20px; opacity: 0; transition: opacity .2s; pointer-events: none; }
.hero__thumbnail.is-active .hero__corner { opacity: 1; }
.hero__corner--tl { top: -8px; left: -8px; transform: scaleX(-1); }
.hero__corner--tr { top: -8px; right: -8px; }
.hero__corner--bl { bottom: -8px; left: -8px; transform: rotate(180deg); }
.hero__corner--br { bottom: -8px; right: -8px; transform: scaleY(-1); }
.hero__arrow { position: absolute; top: 50%; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; transform: translateY(-50%); border: 0; background: transparent; border-radius: 6px; transition: background-color .2s; }
.hero__arrow:hover, .hero__arrow:focus-visible { background: rgb(0 0 0 / 25%); }
.hero__arrow img { width: 21px; height: 15px; }
.hero__arrow--previous { left: 8px; }
.hero__arrow--previous img { transform: rotate(180deg); }
.hero__arrow--next { right: 8px; }
.section { display: grid; gap: 24px; margin: 0 var(--gutter); padding: 36px 0; border-top: 1px solid var(--line); }
.section > * { min-width: 0; }
.section__label { color: var(--sand); line-height: 1.2; }
.section__title { font-size: 24px; font-weight: 500; line-height: 1.1; letter-spacing: -.06em; overflow-wrap: anywhere; }
.section__image { height: 360px; }
.section__image-secondary { height: 240px; }
.section__image-detail { display: none; }
.section__list { padding-left: 20px; }
.section__action .button { max-width: 100%; }
.section--collection .section__image { height: 160px; order: 5; }
.section--collection .section__image img { object-position: center bottom; transform: scaleX(-1); }
.collection { order: 4; }
.collection__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; counter-reset: category; }
.collection__list li { min-width: 0; counter-increment: category; }
.collection__list a { display: flex; flex-direction: column; height: 100%; min-height: 180px; padding: 16px; border: 1px solid var(--line); border-radius: 6px; line-height: 1.2; overflow-wrap: anywhere; }
.collection__list a::before { content: counter(category, decimal-leading-zero); color: var(--line); font-size: 40px; line-height: 1.2; }
.collection__list a:hover, .collection__list a:focus-visible { background: #eae5dc; border-color: var(--sand); color: var(--ink); }
.section--materials .section__image { height: 66px; max-width: 232px; }
.section--materials .section__image-secondary { height: 192px; }
.section--materials .section__image-secondary img, .section--materials .section__image-detail img { object-fit: fill; object-position: bottom; }
.section--materials .section__image img { object-position: center 70%; }
.section--materials .section__text-secondary::before { content: ''; display: block; width: 93px; height: 1px; margin-bottom: 30px; background: var(--sand); }
.section--designers .section__image { order: 6; height: 300px; }
.section--designers .section__list { order: 3; }
.section--designers .section__text-secondary { order: 4; }
.section--designers .section__action { order: 5; }
.site-footer { display: grid; gap: 32px; padding: 32px var(--gutter); background: white; }
.site-footer__privacy { color: var(--sand); font-size: 14px; }
.content-page { max-width: 1440px; min-height: 65vh; padding: 60px var(--gutter); margin: auto; }
.content-page h1 { font-size: clamp(30px, 3vw, 50px); line-height: 1.1; letter-spacing: -.05em; margin-bottom: 32px; }
.content-page .woocommerce-breadcrumb { margin-bottom: 30px; }
.woocommerce a.button { background: var(--sand); color: white; }
@media (max-width: 782px) { body.admin-bar { --admin-offset: 46px; } #wpadminbar { position: fixed; } }
@media (min-width: 768px) {
    :root { --gutter: 24px; }
    .site-header__contact { font-size: 16px; }
    .site-menu .navigation { display: flex; }
    .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding-top: 40px; }
    .hero__intro { grid-column: 1; grid-row: 1; justify-content: space-between; }
    .hero__copy h1 { font-size: 36px; }
    .hero__gallery { grid-column: 2; grid-row: 1 / 3; aspect-ratio: auto; min-height: 600px; }
    .hero__thumbnails { grid-column: 1; grid-row: 2; align-self: end; }
    .section { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding: 48px 0; }
    .section__label { grid-column: 1 / -1; }
    .section__title { grid-column: 1; }
    .section__text { grid-column: 2; }
    .section__image { grid-column: 1; }
    .section__image-secondary { grid-column: 2; height: 360px; }
    .section--collection .collection, .section--collection .section__image { grid-column: 1 / -1; }
    .collection__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
    .section--materials .section__image-secondary { height: 192px; }
    .section--designers .section__image { grid-column: 2; grid-row: 3 / 6; height: 420px; min-height: 0; align-self: start; }
    .section--designers .section__list, .section--designers .section__text-secondary, .section--designers .section__action { grid-column: 1; }
    .site-footer { grid-template-columns: 1fr 2fr; }
}
@media (min-width: 1024px) {
    :root { --gutter: 40px; }
    .site-menu { grid-template-columns: minmax(0, 1fr) 36.7935%; gap: 40px; min-height: 190px; padding-top: 26px; padding-bottom: 38px; }
    .site-menu .contacts { margin-top: 48px; }
    .site-menu .navigation { gap: 20px 28px; }
    .hero { min-height: 760px; grid-template-columns: 100px minmax(0, 1fr) 36.7935%; column-gap: 40px; }
    .hero__thumbnails { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; padding: 10px 8px; gap: 22px; height: 680px; align-self: start; }
    .hero__thumbnail { flex: 0 0 145px; }
    .hero__intro { grid-column: 2; padding-top: 5px; }
    .hero__gallery { grid-column: 3; grid-row: 1; height: 680px; }
    .hero__copy { margin-top: -90px; }
    .hero__copy h1 { font-size: clamp(32px, 2.604167vw, 50px); }
    .hero__tagline { font-size: 16px; }
    .site-footer { grid-template-columns: 25.27% 1fr; gap: 53.2px 0; padding-top: 33px; padding-bottom: 40px; min-height: 200px; align-content: start; }
    .site-footer__nav { padding-top: 7px; }
    .site-footer__privacy { font-size: 16px; align-self: end; }
}
@media (min-width: 1440px) {
    .navigation { gap: 40px; }
    .site-menu .navigation { gap: 40px; }
    .site-menu .contacts { margin-top: 60px; }
    .contacts { gap: 80px; }
    .site-menu__content { padding-top: 6px; }
    .hero { height: 1020px; grid-template-columns: 11.5217% minmax(0, 1fr) 36.7935%; gap: 5.6522%; padding-block: 40px; }
    .hero__thumbnails { height: 950px; padding: 10px 12px; gap: 22px; }
    .hero__thumbnail { flex: 0 0 216px; }
    .hero__corner { width: 30px; height: 30px; }
    .hero__corner--tl { left: -10px; top: -10px; }
    .hero__corner--tr { right: -10px; top: -10px; }
    .hero__corner--bl { left: -12px; bottom: -10px; }
    .hero__corner--br { right: -10px; bottom: -10px; }
    .hero__intro { position: relative; height: 940px; padding-top: 5px; }
    .hero__copy { position: relative; margin-top: 0; transform: translateY(-26.5px); }
    .hero__copy h1 { font-size: 50px; }
    .hero__tagline { transform: translateY(10px); }
    .hero__gallery { height: 940px; min-height: 0; }
    .hero__caption { bottom: 40px; font-size: 16px; }
    .hero__caption span { min-height: 40px; padding: 10px 40px; }
    .hero__arrow--previous { left: 18px; }
    .hero__arrow--next { right: 18px; }
    .section { display: grid; grid-template-columns: 12.663% 24.1848% 1.087% minmax(0, 1fr) 24.2391%; column-gap: 0; row-gap: 0; padding: 0; }
    .section__label { grid-column: 1; grid-row: 1 / 5; max-width: 150px; }
    .section__title { grid-column: 4; grid-row: 1; max-width: 424px; }
    .section__text { grid-column: 4; grid-row: 3; max-width: 480px; align-self: end; }
    .section__image { grid-column: 2; grid-row: 1 / 4; height: 500px; }
    .section__image-secondary { grid-column: 5; grid-row: 1 / 3; }
    .section__text-secondary { grid-column: 5; grid-row: 3; align-self: end; }
    .section__list { grid-column: 4; grid-row: 4; margin-top: 24px; }
    .section__action { grid-column: 4; grid-row: 5; margin-top: 24px; }
    .section--brand { min-height: 610px; padding-top: 37px; padding-bottom: 71px; grid-template-rows: auto 1fr auto; }
    .section--brand .section__text { max-width: 450px; }
    .section--brand .section__image-secondary { justify-self: end; width: 242px; height: 272px; margin-top: 10px; }
    .section--brand .section__image-secondary img { width: 112.25%; max-width: none; height: 143.64%; object-fit: fill; transform: translate(-5.46%, -30.46%); }
    .section--collection { min-height: 723px; grid-template-rows: auto auto auto auto; padding-top: 67px; padding-bottom: 67px; }
    .section--collection .section__title { grid-column: 2 / 5; grid-row: 1; max-width: none; }
    .section--collection .section__text { grid-column: 2 / 5; grid-row: 2; align-self: start; margin-top: 10px; line-height: 1.2; }
    .section--collection .section__action { grid-column: 5; grid-row: 1 / 3; justify-self: end; margin-top: 0; }
    .section--collection .section__action .button { width: 247px; }
    .section--collection .collection { grid-column: 2 / 6; grid-row: 3; margin-top: 35.4px; }
    .collection__list { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
    .collection__list a { min-height: 211px; padding: 20px; }
    .section--collection .section__image { grid-column: 2 / 6; grid-row: 4; height: 265px; margin-top: 20px; }
    .section--collection .section__image img { object-fit: fill; }
    .section--materials { min-height: 328px; padding-top: 64px; padding-bottom: 70px; grid-template-rows: 86px auto; }
    .section--materials .section__title { grid-column: 2; grid-row: 1; max-width: 257px; }
    .section--materials .section__text { grid-column: 4; grid-row: 1; align-self: start; max-width: 480px; padding-right: 20px; }
    .section--materials .section__text-secondary { grid-column: 4; grid-row: 2; align-self: end; max-width: 480px; padding-right: 20px; }
    .section--materials .section__text-secondary::before { margin-bottom: 40px; }
    .section--materials .section__image { grid-column: 2; grid-row: 2; align-self: end; width: 232px; height: 66px; }
    .section--materials .section__image-secondary { grid-column: 5; grid-row: 1 / 3; height: 192px; width: calc(100% - 78px); }
    .section--materials .section__image-detail { display: block; grid-column: 5; grid-row: 1; justify-self: end; width: 58px; height: 70px; }
    .section--production { min-height: 640px; padding-top: 69px; padding-bottom: 70px; grid-template-rows: auto 1fr auto; }
    .section--production .section__title { max-width: 306px; }
    .section--production .section__image-secondary { height: 272px; }
    .section--production .section__text { max-width: 510px; }
    .section--production .section__text-secondary { max-width: 445px; }
    .section--designers { min-height: 699px; padding-top: 69px; padding-bottom: 100px; grid-template-columns: 12.663% minmax(0, 1fr) 49.2391%; grid-template-rows: auto auto 1fr auto auto; }
    .section--designers .section__label { grid-column: 1; grid-row: 1 / 6; }
    .section--designers .section__title { grid-column: 2; grid-row: 1; max-width: 506px; }
    .section--designers .section__text { grid-column: 2; grid-row: 2; margin-top: 10px; align-self: start; max-width: 506px; }
    .section--designers .section__list { grid-column: 2; grid-row: 3; margin-top: 98px; padding-left: 16px; }
    .section--designers .section__text-secondary { grid-column: 2; grid-row: 4; margin-top: 90px; max-width: 274px; }
    .section--designers .section__action { grid-column: 2; grid-row: 5; margin-top: 30px; }
    .section--designers .section__action .button { width: 247px; }
    .section--designers .section__image { grid-column: 3; grid-row: 1 / 6; height: 520px; margin-top: 8px; }
}
@media (min-width: 1440px) and (max-width: 1700px) { .hero__copy h1 { font-size: 42px; } .section--production .section__text, .section--production .section__text-secondary { padding-right: 12px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
