
:root {
  --ink: #20231e;
  --muted: #6f746c;
  --olive: #4c5740;
  --olive-dark: #2e3429;
  --paper: #f7f4ee;
  --line: #ddd9d1;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 110px; }
body { margin: 0; background: #fff; color: var(--ink); font-family: Arial, Helvetica, sans-serif; font-size: 18px; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
button, input, textarea { font: inherit; }
.page-shell { width: min(100% - 48px, 1420px); margin-inline: auto; }
.admin-bar .site-header { top: 32px; }
.custom-logo { width: auto; max-width: 210px; max-height: 56px; object-fit: contain; }

.site-header {
  position: sticky; top: 0; z-index: 50; height: 82px; padding: 0 max(24px, calc((100vw - 1420px) / 2));
  display: grid; grid-template-columns: 220px 1fr auto; align-items: center;
  background: rgba(249,247,242,.94); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(70,70,60,.12);
}
.logo { display: inline-flex; flex-direction: column; width: fit-content; font-size: 22px; line-height: .9; font-weight: 600; letter-spacing: .18em; }
.logo span { margin-top: 7px; font-size: 8px; letter-spacing: .38em; color: #777c72; text-transform: uppercase; }
.nav { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 2.4vw, 38px); font-size: 14px; }
.nav a { position: relative; padding: 12px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 5px; height: 1px; background: var(--ink); transition: .25s ease; }
.nav a:hover::after { right: 0; }
.header-contacts { justify-self: end; display: flex; align-items: center; gap: 16px; }
.header-phone { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; padding: 9px 13px; white-space: nowrap; background: #fff; border: 1px solid var(--line); border-radius: 3px; box-shadow: 0 5px 18px rgba(38,40,33,.06); transition: .22s ease; }
.header-phone:hover { border-color: #a9ad9f; transform: translateY(-1px); }
.header-phone small { color: #858a80; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.header-phone span { font-size: 18px; font-weight: 700; letter-spacing: .01em; }
.telegram-button { min-height: 44px; padding: 0 16px; display: inline-flex; align-items: center; gap: 9px; color: #fff; background: #2aabee; border-radius: 3px; font-size: 11px; font-weight: 600; transition: .22s ease; }
.telegram-button:hover { background: #1597dc; transform: translateY(-1px); }
.telegram-button svg { width: 17px; height: 17px; fill: currentColor; }
.mobile-phone { display: none; }
.menu-toggle { display: none; }

.hero { position: relative; min-height: 720px; height: calc(100vh - 82px); max-height: 900px; overflow: hidden; background: #e9e2d8; }
.hero > img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: center; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(248,245,239,.98) 0%, rgba(248,245,239,.94) 32%, rgba(248,245,239,.22) 58%, rgba(248,245,239,0) 100%); }
.hero-content { position: absolute; z-index: 2; top: 50%; left: max(24px, calc((100vw - 1420px) / 2)); transform: translateY(-50%); width: min(680px, 48vw); }
.eyebrow { margin: 0 0 22px; color: #6b725f; font-size: 13px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 27px; font-size: clamp(48px, 5.25vw, 82px); line-height: .98; letter-spacing: -.055em; font-weight: 500; }
.hero-copy { max-width: 590px; margin-bottom: 36px; color: #5f635c; font-size: 20px; line-height: 1.6; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 13px; padding: 0 24px; border: 0; border-radius: 3px; cursor: pointer; font-size: 15px; transition: .25s ease; }
.btn-primary { background: var(--olive-dark); color: #fff; }
.btn-primary:hover { background: #171b15; transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.72); border: 1px solid rgba(46,52,41,.24); }
.btn-ghost:hover { background: #fff; }
.hero-note { position: absolute; z-index: 2; right: max(24px, calc((100vw - 1420px) / 2)); bottom: 34px; width: 250px; display: flex; align-items: flex-start; gap: 14px; color: white; text-shadow: 0 1px 20px rgba(0,0,0,.45); }
.hero-note span { font-size: 10px; border-top: 1px solid white; padding-top: 8px; }
.hero-note p { font-size: 14px; line-height: 1.55; }

.features { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line); }
.feature { min-height: 118px; padding: 26px 30px; display: flex; gap: 22px; align-items: center; border-right: 1px solid var(--line); }
.feature:last-child { border-right: 0; }
.feature > span { color: #a7a99e; font-size: 13px; }
.feature small { color: #92958c; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.feature p { margin: 7px 0 0; font-size: 16px; }

.section { padding-block: 120px; }
.section-head { display: flex; justify-content: space-between; gap: 60px; align-items: end; margin-bottom: 56px; }
.section-head h2 { margin: 0; font-size: clamp(42px, 4.1vw, 66px); line-height: 1.02; letter-spacing: -.048em; font-weight: 500; }
.section-head > p { max-width: 460px; margin: 0 0 7px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.section-head.compact { align-items: center; margin-bottom: 36px; }
.text-link { font-size: 15px; border-bottom: 1px solid #aaa99e; padding-bottom: 8px; }

.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.category-card { position: relative; min-height: 360px; overflow: hidden; background: var(--paper); }
.category-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.category-card::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(20,22,18,.72)); }
.category-card:hover .category-image { transform: scale(1.035); }
.category-card h3 { position: absolute; z-index: 2; left: 22px; right: 55px; bottom: 17px; margin: 0; color: white; font-size: 19px; font-weight: 500; }
.category-index { position: absolute; z-index: 2; left: 18px; top: 18px; width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.82); font-size: 9px; }
.round-arrow { position: absolute; z-index: 2; right: 16px; bottom: 14px; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; color: #fff; }

.models-section { padding-block: 100px; background: var(--paper); }
.model-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.model-card { background: #fff; }
.model-visual { height: 290px; overflow: hidden; background: #eee9e1; }
.model-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.model-card:hover .model-visual img { transform: scale(1.035); }
.model-info { padding: 20px; }
.model-info h3 { margin-bottom: 8px; font-size: 16px; font-weight: 500; }
.model-info p { margin: 0; color: #85887f; font-size: 13px; }

.cnc-section { display: grid; grid-template-columns: .86fr 1.14fr; min-height: 710px; background: var(--olive-dark); color: #fff; }
.cnc-copy { padding: clamp(60px, 8vw, 130px) max(24px, calc((100vw - 1420px) / 2)); padding-right: clamp(50px, 7vw, 110px); }
.cnc-copy .eyebrow { color: #b5bca9; }
.cnc-copy h2 { font-size: clamp(44px, 4.4vw, 70px); line-height: 1.02; letter-spacing: -.05em; font-weight: 500; }
.muted { max-width: 540px; color: #bdc2b7; line-height: 1.7; }
.capabilities { display: grid; grid-template-columns: 1fr 1fr; margin: 44px 0; border-top: 1px solid rgba(255,255,255,.18); }
.capabilities div { min-height: 82px; padding: 18px 20px 18px 0; display: flex; gap: 15px; border-bottom: 1px solid rgba(255,255,255,.18); }
.capabilities div:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.18); }
.capabilities div:nth-child(even) { padding-left: 20px; }
.capabilities b { color: #9ca492; font-size: 10px; font-weight: 400; }
.capabilities span { font-size: 15px; line-height: 1.5; }
.btn-light { background: #f4f0e8; color: var(--ink); }
.cnc-section figure { margin: 0; min-height: 100%; overflow: hidden; }
.cnc-section figure img { width: 100%; height: 100%; object-fit: cover; }

.coverings-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.covering-card { min-height: 260px; padding: 25px; display: flex; flex-direction: column; justify-content: flex-end; background: var(--paper); border: 1px solid #ece8e1; }
.swatches { display: flex; gap: 5px; margin-bottom: auto; }
.swatches i { flex: 1; aspect-ratio: 1; border: 1px solid rgba(40,40,30,.06); }
.covering-card h3 { margin: 30px 0 8px; font-size: 22px; font-weight: 500; }
.covering-card p { margin: 0; color: var(--muted); font-size: 14px; }
.covering-image { grid-column: span 4; height: 360px; margin: 0; overflow: hidden; background: var(--paper); }
.covering-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 54%; }

.price-section { margin-bottom: 120px; min-height: 500px; padding: 70px clamp(35px, 6vw, 90px); display: grid; grid-template-columns: 1fr 440px; align-items: center; gap: 80px; overflow: hidden; background: #e9e1d5; }
.price-copy h2 { max-width: 750px; margin-bottom: 20px; font-size: clamp(44px, 4.3vw, 70px); line-height: 1; letter-spacing: -.05em; font-weight: 500; }
.price-copy > p:not(.eyebrow) { max-width: 620px; margin-bottom: 30px; color: #65685f; line-height: 1.7; }
.price-document { position: relative; justify-self: center; width: 320px; height: 420px; padding: 42px 40px; transform: rotate(6deg); background: #fdfcf9; box-shadow: 0 30px 60px rgba(60,48,35,.23); }
.pdf-badge { position: absolute; right: 28px; top: 30px; padding: 8px 9px; color: #fff; background: #5e654f; font-size: 11px; }
.price-document small { display: block; margin-bottom: 46px; letter-spacing: .2em; }
.price-document strong { display: block; margin-bottom: 36px; font-size: 44px; line-height: .9; letter-spacing: -.04em; }
.price-document p { color: #77766e; font-size: 11px; line-height: 2; }
.price-document i { position: absolute; left: 40px; bottom: 38px; font-size: 12px; font-style: normal; border-bottom: 1px solid #99978e; }

.process-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.process-card { position: relative; height: 370px; overflow: hidden; }
.process-card::after { content:""; position:absolute; inset:40% 0 0; background:linear-gradient(transparent,rgba(20,20,16,.8)); }
.process-card img { width:100%; height:100%; object-fit:cover; transition:.45s ease; }
.process-card:hover img { transform:scale(1.04); }
.process-card div { position:absolute; z-index:2; left:24px; right:24px; bottom:20px; display:flex; align-items:center; gap:17px; color:#fff; }
.process-card span { font-size:10px; }
.process-card h3 { margin:0; font-size:20px; font-weight:500; }

.portfolio-section { padding-block: 120px; background: #20231e; color: #fff; }
.section-head.light .eyebrow { color: #aeb6a3; }
.section-head.light > p { color: #acb1a8; }
.portfolio-grid { display: grid; grid-template-columns: 1.35fr .65fr .65fr; grid-template-rows: 315px 315px; gap: 14px; }
.portfolio-grid figure { margin: 0; overflow: hidden; }
.portfolio-grid figure:nth-child(4) { grid-column: 2 / 4; }
.portfolio-main { grid-row: span 2; }
.portfolio-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.portfolio-grid figure:hover img { transform: scale(1.025); }

.contact-section { padding-block: 120px; display: grid; grid-template-columns: .82fr 1.18fr; gap: 90px; }
.contact-copy h2 { margin-bottom: 25px; font-size: clamp(44px, 4.2vw, 68px); line-height: 1; letter-spacing: -.05em; font-weight: 500; }
.contact-copy > p:not(.eyebrow) { max-width: 500px; color: var(--muted); line-height: 1.7; }
.contact-form { padding: 38px; background: var(--paper); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; color: #777a72; font-size: 13px; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid #d8d4cc; outline: 0; background: #fff; color: var(--ink); border-radius: 0; transition: border .2s; }
.contact-form input { height: 58px; padding: 0 17px; }
.contact-form textarea { min-height: 155px; padding: 17px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--olive); }
.form-bottom { display: flex; justify-content: space-between; align-items: center; gap: 25px; }
.form-bottom p { max-width: 300px; margin: 0; color: #9b9c95; font-size: 11px; line-height: 1.5; }
.success { margin-top: 20px; padding: 14px 16px; background: #dce4d5; color: #34402d; font-size: 14px; }
.form-error { margin-top: 20px; padding: 14px 16px; background: #f1dbd4; color: #713b2d; font-size: 14px; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

footer { padding-top: 70px; background: #eeebe4; }
.footer-main { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 50px; padding-bottom: 70px; }
.footer-main > div { display: flex; flex-direction: column; align-items: flex-start; gap: 13px; font-size: 14px; }
.footer-main small { margin-bottom: 8px; color: #92958d; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.footer-main a:not(.logo):hover { text-decoration: underline; }
.footer-bottom { min-height: 64px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #d4d0c8; color: #808279; font-size: 12px; }
.footer-bottom p { margin: 0; }
.site-credit a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.default-content { min-height: 60vh; padding-block: 100px; line-height: 1.7; }
.default-content h1 { font-size: clamp(42px, 6vw, 72px); }

@media (max-width: 1100px) {
  .site-header { grid-template-columns: 180px 1fr auto; }
  .nav { gap: 18px; }
  .header-contacts { gap: 10px; }
  .telegram-button { padding-inline: 12px; }
  .telegram-button span { display: none; }
  .hero-content { width: 58vw; }
  .category-grid { grid-template-columns: repeat(2,1fr); }
  .model-grid { grid-template-columns: repeat(3,1fr); }
  .coverings-grid { grid-template-columns: repeat(2,1fr); }
  .covering-image { grid-column: span 2; }
  .price-section { grid-template-columns: 1fr 330px; }
  .process-card { height: 300px; }
}

@media (max-width: 820px) {
  .admin-bar .site-header { top: 46px; }
  .page-shell { width: min(100% - 32px, 1420px); }
  .site-header { height: 108px; padding-inline: 16px; grid-template-columns: 1fr auto auto; grid-template-rows: 64px 44px; }
  .header-contacts { display: contents; }
  .header-phone { grid-column: 1 / 4; grid-row: 2; align-self: stretch; margin-inline: -16px; padding: 0 16px; flex-direction: row; align-items: center; justify-content: center; gap: 10px; color: #fff; background: var(--olive-dark); border: 0; border-radius: 0; box-shadow: none; }
  .header-phone:hover { border: 0; transform: none; }
  .header-phone small { color: #cbd0c4; }
  .header-phone span { font-size: 17px; }
  .telegram-button { grid-column: 2; grid-row: 1; width: 42px; min-height: 42px; padding: 0; justify-content: center; border-radius: 50%; }
  .menu-toggle { grid-column: 3; grid-row: 1; display: flex; width: 42px; height: 42px; flex-direction: column; align-items: center; justify-content: center; gap: 7px; border: 0; background: transparent; }
  .menu-toggle span { width: 24px; height: 1px; background: var(--ink); }
  .nav { position: fixed; left: 0; right: 0; top: 108px; padding: 28px 24px 34px; display: none; align-items: flex-start; flex-direction: column; gap: 5px; background: #f8f6f1; border-bottom: 1px solid var(--line); box-shadow: 0 18px 40px rgba(30,30,20,.12); }
  .nav.open { display: flex; }
  .nav a { width: 100%; padding: 12px 0; font-size: 16px; }
  .nav .mobile-phone { display: none; }
  .hero { height: auto; min-height: 790px; }
  .hero > img { object-position: 61% center; }
  .hero-shade { background: linear-gradient(180deg, rgba(248,245,239,.98) 0%, rgba(248,245,239,.9) 42%, rgba(248,245,239,.12) 72%); }
  .hero-content { top: 85px; left: 16px; right: 16px; transform: none; width: auto; }
  h1 { font-size: clamp(43px, 12vw, 65px); }
  .hero-copy { font-size: 17px; }
  .hero-note { display: none; }
  .features { width: 100%; grid-template-columns: 1fr 1fr; }
  .feature { min-height: 95px; padding: 20px 16px; }
  .feature:nth-child(2) { border-right: 0; }
  .feature:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section, .portfolio-section, .contact-section { padding-block: 78px; }
  .section-head { display: block; margin-bottom: 36px; }
  .section-head > p { margin-top: 22px; }
  .section-head h2 { font-size: 43px; }
  .category-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .category-card { min-height: 270px; }
  .model-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
  .model-card { min-width: 220px; scroll-snap-align: start; }
  .model-visual { height: 260px; }
  .cnc-section { grid-template-columns: 1fr; }
  .cnc-copy { padding: 75px 24px; }
  .cnc-section figure { height: 440px; }
  .coverings-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .covering-image { height: 250px; }
  .price-section { width: 100%; margin-bottom: 70px; padding: 70px 24px; grid-template-columns: 1fr; gap: 55px; }
  .price-document { width: 280px; height: 380px; }
  .process-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 350px 220px 220px; }
  .portfolio-main { grid-column: span 2; grid-row: auto; }
  .portfolio-grid figure:nth-child(4) { grid-column: span 2; }
  .contact-section { grid-template-columns: 1fr; gap: 45px; }
  .footer-main { grid-template-columns: 2fr 1fr 1fr; }
  .footer-main > div:last-child { grid-column: 2 / 4; }
  .footer-bottom { padding-block: 22px; flex-wrap: wrap; gap: 12px; }
}

@media (max-width: 520px) {
  .hero { min-height: 740px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .features { grid-template-columns: 1fr; }
  .feature { border-right: 0; border-bottom: 1px solid var(--line); }
  .category-card { min-height: 230px; }
  .category-card h3 { font-size: 16px; }
  .capabilities { grid-template-columns: 1fr; }
  .capabilities div:nth-child(odd) { border-right: 0; }
  .capabilities div:nth-child(even) { padding-left: 0; }
  .coverings-grid { grid-template-columns: 1fr; }
  .covering-image { grid-column: span 1; }
  .process-grid { grid-template-columns: 1fr; }
  .process-card { height: 330px; }
  .portfolio-grid { display: flex; overflow-x: auto; }
  .portfolio-grid figure { min-width: 84vw; height: 370px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 25px 18px; }
  .form-bottom { flex-direction: column; align-items: stretch; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-logo { grid-column: span 2; margin-bottom: 20px; }
  .footer-main > div:last-child { grid-column: span 2; }
  .footer-bottom { display: block; line-height: 1.8; }
}
