:root {
  --ink: #302b24;
  --ink-soft: #4f483f;
  --muted: #665e54;
  --cream: #f8f2ea;
  --paper: #eee7de;
  --sage: #d4c8bb;
  --sage-deep: #aa9989;
  --terracotta: #a96955;
  --terracotta-soft: #e7cfc2;
  --sand: #e8d8ca;
  --line: #d8d0c5;
  --white: #fffdf9;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--cream); color: var(--ink); font-family: 'DM Sans', sans-serif; font-size: 16px; line-height: 1.55; }
body, button, a { -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 4px; }
.wrap { width: min(1160px, calc(100% - 56px)); margin-inline: auto; }

.site-header { position: absolute; inset: 0 0 auto; z-index: 10; background: transparent; border-bottom: 0; }
.nav-row { width: 100%; max-width: none; margin: 0; height: 92px; padding-left: 56px; padding-right: 56px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 11px; color: #39332b; font-size: 13px; line-height: 1.08; letter-spacing: .2em; text-transform: uppercase; }
.brand-mark { width: 32px; height: 32px; color: #39332b; }
.brand-mark svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.1; }
.brand i, h1 em, h2 em, h3 i, .art-note i, .format-card i { font-family: 'Playfair Display', serif; font-style: italic; text-transform: none; letter-spacing: 0; }
.desktop-nav { display: flex; gap: clamp(20px, 3vw, 38px); margin-left: auto; }
.desktop-nav a, .text-link { font-size: 12px; color: #5d554b; letter-spacing: .14em; text-transform: uppercase; transition: color .2s ease; }
.desktop-nav a:hover, .text-link:hover, .footer a:hover { color: var(--terracotta); }
.desktop-nav a:nth-child(4) { position: relative; }
.desktop-nav a:nth-child(4)::after { content: ''; position: absolute; left: 50%; bottom: -14px; width: 14px; height: 1px; transform: translateX(-50%); background: currentColor; }
.nav-cta { padding: 14px 25px; border: 1px solid rgba(248, 242, 234, .9); border-radius: 999px; color: #f8f2ea; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.nav-cta span, .button span { margin-left: 13px; color: inherit; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 12px 8px; border: 1px solid rgba(57, 51, 43, .55); background: rgba(248, 242, 234, .35); }
.menu-toggle span { display: block; height: 1px; margin: 5px 0; background: #39332b; transition: transform .2s ease; }
.mobile-menu { display: none; }

.hero { position: relative; min-height: min(860px, 100svh); overflow: hidden; background: #cfc1b2; color: #302b24; }
.hero-image { position: absolute; inset: 0; z-index: 0; display: block; width: 100%; max-width: none; height: 100%; object-fit: cover; object-position: center right; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(248, 242, 234, .97) 0%, rgba(248, 242, 234, .87) 29%, rgba(248, 242, 234, .22) 53%, rgba(52, 43, 35, .2) 100%); }
.hero-content { position: relative; z-index: 1; width: 100%; max-width: none; margin: 0; min-height: min(860px, 100svh); padding: 170px 56px 60px; }
.hero-copy { max-width: 590px; }
.eyebrow, .section-label { margin: 0; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #5b554c; }
.eyebrow span, .section-label span { display: inline-block; width: 25px; height: 1px; margin-right: 10px; vertical-align: middle; background: var(--terracotta); }
h1 { margin: 38px 0 28px; font: 500 clamp(72px, 8.3vw, 126px)/.84 'Playfair Display', serif; letter-spacing: -.065em; }
h1 em, h2 em { color: var(--terracotta); font-weight: 500; }
.lead { max-width: 440px; margin: 0; font-size: 18px; line-height: 1.45; color: #514a40; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin: 39px 0 66px; }
.button { display: inline-flex; align-items: center; min-height: 56px; padding: 16px 30px; border-radius: 999px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-3px); }
.primary { background: #41422b; color: #f8f2ea; }
.primary:hover { background: #2d3020; }
.text-link { border-bottom: 1px solid var(--terracotta); padding-bottom: 7px; }
.text-link span { margin-left: 12px; color: var(--terracotta); }
.quote { display: none; }
.hero-benefits { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.hero-benefits span { display: flex; flex-direction: column; gap: 9px; min-width: 68px; color: #5c554b; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.hero-benefits svg { width: 34px; height: 34px; fill: none; stroke: #4d4b37; stroke-width: 1.1; }
.hero-side-note { position: absolute; top: 50%; right: 8%; color: rgba(248, 242, 234, .84); font: 27px/1.2 'Playfair Display', serif; letter-spacing: .08em; text-transform: uppercase; }
.hero-side-note span { display: block; width: 35px; height: 1px; margin-top: 26px; background: currentColor; }
.hero-scroll-note { position: absolute; right: 2.5%; bottom: 59px; color: rgba(248, 242, 234, .88); font-size: 10px; letter-spacing: .18em; text-align: center; text-transform: uppercase; }
.hero-scroll-note span { display: block; width: 1px; height: 45px; margin: 14px auto 0; background: currentColor; }
.hero-art, .hero-art-overlay, .art-note, .vertical-text { display: none; }

.section-rule { border-top: 1px solid var(--line); }
.intro, .format { display: grid; grid-template-columns: minmax(170px, 1fr) minmax(0, 2fr); gap: clamp(40px, 9vw, 110px); padding-top: 126px; padding-bottom: 126px; }
h2 { margin: 0 0 25px; font: 500 clamp(43px, 5vw, 70px)/1.02 'Playfair Display', serif; letter-spacing: -.05em; }
.intro-content > p, .format-copy > p { max-width: 560px; margin: 0 0 32px; color: var(--muted); }
.about-points { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 680px; border-top: 1px solid var(--line); }
.about-points div { display: flex; flex-direction: column; gap: 12px; padding: 17px 20px 0 0; font-size: 13px; color: var(--muted); }
.about-points strong { color: var(--terracotta); font-weight: 400; }

.services { padding-top: 112px; padding-bottom: 126px; }
.section-head { display: grid; grid-template-columns: minmax(170px, 1fr) minmax(0, 2fr); gap: clamp(40px, 9vw, 110px); align-items: end; margin-bottom: 48px; }
.section-head h2 { margin-bottom: 13px; }
.section-intro { max-width: 480px; margin: 0; color: var(--muted); font-size: 14px; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.service-card { overflow: hidden; background: var(--paper); transition: transform .25s ease, box-shadow .25s ease; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(32, 48, 44, .11); }
.service-card-featured { background: #e9ded3; }
.service-card-sand { background: #eadbcf; }
.service-card-sage { background: #ddd4ca; }
.service-card-wide { background: #e9e4dd; }
.service-image { height: 200px; background: var(--sage-deep); overflow: hidden; }
.service-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.84) sepia(.08); transition: transform .5s ease; }
.service-card:hover .service-image img { transform: scale(1.04); }
.service-card-body { position: relative; padding: 25px 27px 27px; }
.service-top { display: flex; justify-content: space-between; gap: 18px; font-size: 12px; }
.card-number { color: var(--terracotta); }
.price { color: var(--ink); font-weight: 600; white-space: nowrap; }
.service-card h3 { max-width: 380px; margin: 31px 0 10px; font: 500 30px/1.05 'Playfair Display', serif; letter-spacing: -.03em; }
.service-card h3 i { display: inline; color: var(--terracotta); font-size: .75em; }
.service-card p { min-height: 48px; max-width: 450px; margin: 0 0 20px; font-size: 14px; color: var(--muted); }
.details-toggle { display: flex; align-items: center; gap: 13px; min-height: 44px; padding: 0; border: 0; border-bottom: 1px solid var(--terracotta); background: transparent; color: var(--ink); font: inherit; font-size: 12px; }
.details-toggle span { color: var(--terracotta); font-size: 18px; line-height: 1; }
.service-details { max-width: 480px; padding-top: 18px; color: var(--muted); font-size: 13px; }
.price-note { margin: 27px 0 0; font-size: 12px; color: var(--muted); }

.cases { padding-top: 112px; padding-bottom: 126px; }
.cases-head { margin-bottom: 34px; }
.case-filters { display: flex; gap: 8px; margin-bottom: 40px; }
.filter-button { min-height: 44px; padding: 8px 18px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: inherit; font-size: 12px; transition: background .2s ease, color .2s ease, border .2s ease; }
.filter-button:hover, .filter-button.is-active { border-color: var(--ink); background: var(--ink); color: var(--cream); }
.case-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 64px 18px; }
.case-group { grid-column: span 4; }
.case-group-large { grid-column: span 6; }
.case-group-wide { grid-column: span 12; }
.case-group-results { grid-column: span 6; }
.case-heading { min-height: 110px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.case-heading span, .case-heading p { font-size: 11px; color: var(--terracotta); letter-spacing: .08em; text-transform: uppercase; }
.case-heading h3 { margin: 12px 0 5px; font: 500 27px/1.05 'Playfair Display', serif; letter-spacing: -.03em; }
.case-heading p { margin: 0; color: var(--muted); letter-spacing: 0; text-transform: none; }
.case-images { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding-top: 18px; }
.case-images.single { grid-template-columns: minmax(0, 1fr); max-width: 360px; }
.case-image { position: relative; display: block; min-height: 150px; overflow: hidden; background: var(--sage); }
.case-image:after { content: 'Открыть ↗'; position: absolute; right: 10px; bottom: 10px; padding: 5px 8px; background: rgba(32, 48, 44, .82); color: var(--cream); font-size: 10px; opacity: 0; transform: translateY(4px); transition: opacity .2s ease, transform .2s ease; }
.case-image:hover:after, .case-image:focus-visible:after { opacity: 1; transform: translateY(0); }
.case-image img { width: 100%; height: 245px; object-fit: cover; transition: transform .45s ease; }
.case-image:hover img { transform: scale(1.04); }
.case-images.single .case-image img { height: 370px; }
.case-images-mosaic { grid-template-columns: repeat(3, 1fr); }
.case-images-mosaic .case-image img { height: 230px; }
.case-images-mixed { grid-template-columns: repeat(4, 1fr); }
.case-images-mixed .case-image:nth-child(3), .case-images-mixed .case-image:nth-child(6) { grid-row: span 2; }
.case-images-mixed .case-image img { height: 225px; }
.case-images-mixed .case-image:nth-child(3) img, .case-images-mixed .case-image:nth-child(6) img { height: 458px; }

.format { align-items: center; }
.format-card { position: relative; min-height: 420px; overflow: hidden; background: #d7c8bb; }
.format-orbit { position: absolute; inset: 55px; border: 1px solid rgba(48, 43, 36, .28); border-radius: 50%; }
.format-sun { position: absolute; width: 230px; height: 230px; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; background: var(--terracotta-soft); }
.format-card p { position: absolute; left: 27px; top: 25px; margin: 0; font: 21px/1.1 'Playfair Display', serif; }
.format-card i { color: var(--terracotta); }
.format-card > span { position: absolute; right: 28px; bottom: 20px; font-size: 30px; color: var(--terracotta); }
.format-copy ul { list-style: none; padding: 20px 0 0; margin: 0; }
.format-copy li { display: flex; gap: 28px; padding: 17px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.format-copy li b { color: var(--terracotta); font-weight: 400; }
.format-copy strong { color: var(--ink); font-weight: 500; }

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 9vw, 110px); margin-top: 60px; margin-bottom: 80px; padding: 76px clamp(28px, 6vw, 78px); background: #ded3c8; }
.contact h2 { margin-top: 22px; font-size: clamp(56px, 6vw, 78px); }
.contact-copy { padding-top: 28px; }
.contact-copy > p { max-width: 420px; margin: 0 0 30px; color: var(--ink-soft); }
.contact-whatsapp { display: flex; align-items: center; gap: 13px; max-width: 440px; padding: 17px 18px; border: 1px solid #b8cbb8; color: var(--muted); font-size: 13px; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.contact-whatsapp:hover { border-color: var(--terracotta); background: rgba(255, 253, 249, .42); transform: translateY(-2px); }
.contact-whatsapp strong { color: var(--ink); font-weight: 600; }
.contact-arrow { margin-left: auto; color: var(--terracotta); font-size: 18px; }
.contact-note { display: flex; align-items: flex-start; gap: 13px; max-width: 420px; padding-top: 17px; border-top: 1px solid #b8cbb8; color: var(--muted); font-size: 13px; }
.contact-icon { flex: 0 0 22px; color: var(--terracotta); }
.contact-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.footer { display: flex; justify-content: space-between; gap: 20px; padding-top: 25px; padding-bottom: 35px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.footer a { transition: color .2s ease; }

.lightbox { width: min(90vw, 1000px); max-height: 90vh; padding: 0; border: 0; background: transparent; }
.lightbox::backdrop { background: rgba(20, 29, 26, .86); }
.lightbox img { width: auto; max-width: 90vw; max-height: 86vh; margin: auto; }
.lightbox-close { position: fixed; top: 20px; right: 24px; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.5); background: var(--ink); color: var(--cream); font-size: 25px; line-height: 1; }

@media (max-width: 1100px) {
  .desktop-nav { gap: 18px; }
  .hero-side-note { right: 4%; font-size: 22px; }
}

@media (max-width: 900px) {
  .service-grid { grid-template-columns: 1fr; }
  .case-group, .case-group-large, .case-group-results { grid-column: span 6; }
  .case-group-wide { grid-column: span 12; }
}

@media (max-width: 760px) {
  .wrap { width: min(100% - 40px, 620px); }
  .site-header { position: absolute; width: 100%; }
  .nav-row { width: 100%; height: 80px; padding-left: 20px; padding-right: 20px; }
  .brand { color: #39332b; font-size: 12px; letter-spacing: .16em; }
  .desktop-nav, .nav-cta { display: none; }
  .menu-toggle { display: block; }
  .mobile-menu { display: grid; position: absolute; top: 80px; left: 20px; right: 20px; width: auto; padding: 8px 20px 18px; border: 1px solid rgba(57, 51, 43, .16); background: rgba(248, 242, 234, .98); box-shadow: 0 16px 35px rgba(32, 48, 44, .14); }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu a { min-height: 44px; display: flex; align-items: center; padding: 10px 0; border-top: 1px solid rgba(57, 51, 43, .14); color: #514a40; font-size: 14px; }
  .mobile-menu a:first-child { border-top: 0; }
  .menu-toggle[aria-expanded="true"] { background: rgba(248, 242, 234, .98); }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
  .hero { min-height: 780px; }
  .hero-image { inset: 0; width: 100%; height: 100%; object-position: 66% center; }
  .hero-shade { background: linear-gradient(180deg, rgba(248, 242, 234, .94) 0%, rgba(248, 242, 234, .82) 37%, rgba(52, 43, 35, .1) 76%, rgba(52, 43, 35, .32) 100%); }
  .hero-content { width: 100%; min-height: 780px; padding: 150px 20px 38px; }
  .hero-copy { max-width: 100%; }
  .eyebrow { line-height: 1.7; }
  h1 { margin-top: 25px; font-size: clamp(65px, 18vw, 92px); }
  .lead { font-size: 16px; }
  .hero-actions { margin: 31px 0 45px; }
  .hero-benefits { gap: 18px; justify-content: space-between; }
  .hero-benefits span { min-width: 55px; font-size: 8px; letter-spacing: .1em; }
  .hero-benefits svg { width: 29px; height: 29px; }
  .hero-side-note, .hero-scroll-note { display: none; }
  .intro, .format, .section-head { grid-template-columns: 1fr; gap: 34px; padding-top: 80px; padding-bottom: 80px; }
  .section-head { margin-bottom: 34px; }
  .about-points { grid-template-columns: 1fr; }
  .about-points div { flex-direction: row; padding-right: 0; }
  .services, .cases { padding-top: 80px; padding-bottom: 80px; }
  .service-card-body { padding: 22px; }
  .service-card h3 { font-size: 28px; }
  .service-image { height: 190px; }
  .case-group, .case-group-large, .case-group-results, .case-group-wide { grid-column: span 12; }
  .case-images-mixed, .case-images-mosaic { grid-template-columns: repeat(2, 1fr); }
  .case-images-mixed .case-image:nth-child(3), .case-images-mixed .case-image:nth-child(6) { grid-row: span 1; }
  .case-images-mixed .case-image img, .case-images-mixed .case-image:nth-child(3) img, .case-images-mixed .case-image:nth-child(6) img { height: 220px; }
  .contact { grid-template-columns: 1fr; margin-top: 30px; margin-bottom: 50px; padding: 48px 28px; gap: 8px; }
  .contact-copy { padding-top: 15px; }
  .footer { flex-direction: column; gap: 9px; }
}

@media (max-width: 380px) {
  .hero { min-height: 730px; }
  .hero-content { min-height: 730px; padding: 132px 20px 30px; }
  .hero-benefits { gap: 10px; }
  .hero-benefits span { letter-spacing: .06em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
