:root {
  color-scheme: dark;
  --ink: #171815;
  --ink-soft: #20211d;
  --ink-raised: #272923;
  --ivory: #f2ece0;
  --paper: #ede6d8;
  --copper: #e3a676;
  --copper-dark: #794525;
  --muted: #bdb8ac;
  --paper-muted: #57564d;
  --line: #3b3c33;
  --paper-line: #c8bead;
  --display: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  --body: 'Manrope', system-ui, sans-serif;
  --side: clamp(18px, 5.15vw, 85px);
  --section: clamp(64px, 8.5vw, 124px);
  font-family: var(--body);
  background: var(--ink);
  color: var(--ivory);
  scroll-behavior: smooth;
}

@font-face { font-family: Oswald; src: url('assets/fonts/oswald-cyr.woff2') format('woff2'); font-weight: 500 700; font-display: swap; unicode-range: U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: Oswald; src: url('assets/fonts/oswald-latin.woff2') format('woff2'); font-weight: 500 700; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: Manrope; src: url('assets/fonts/manrope-cyr.woff2') format('woff2'); font-weight: 400 800; font-display: swap; unicode-range: U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: Manrope; src: url('assets/fonts/manrope-latin.woff2') format('woff2'); font-weight: 400 800; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-size: 1rem; line-height: 1.65; }
body:has(dialog[open]) { overflow: hidden; }
nav, main, footer, header, section { min-width: 0; }
[id] { scroll-margin-top: 88px; }
img { display: block; max-width: 100%; }
figure, dl, dd, h1, h2, h3, p, ul { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p + p { margin-top: 12px; }
a { color: inherit; }
button, select { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 4px; }
.paper :focus-visible { outline-color: var(--copper-dark); }
.wrap { width: min(100% - 2 * var(--side), 1280px); margin-inline: auto; }
.section { padding-block: var(--section); }
.skip { position: fixed; z-index: 5; top: 8px; left: 8px; padding: 10px 16px; color: var(--ink); background: var(--ivory); transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }

h1, h2 { font-family: var(--display); font-weight: 600; line-height: 1.04; letter-spacing: -.035em; text-transform: uppercase; }
h1 { font-size: clamp(4rem, 8.2vw, 8.25rem); line-height: 1.07; }
h2 { font-size: clamp(2.85rem, 5.65vw, 6rem); }
h3 { font-size: 1.25rem; line-height: 1.25; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: .8125rem; font-weight: 800; line-height: 1.35; letter-spacing: .13em; text-transform: uppercase; color: var(--copper); }
.eyebrow::before { content: ''; width: 20px; height: 1px; flex: 0 0 20px; background: currentColor; }
.paper { color-scheme: light; color: var(--ink); background: var(--paper); }
.paper .eyebrow { color: var(--copper-dark); }

.masthead { position: sticky; z-index: 3; top: 0; background: var(--ink); border-bottom: 1px solid var(--line); }
.masthead-inner { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; color: var(--ivory); font-family: var(--display); font-size: 1.4rem; font-weight: 700; line-height: 1; letter-spacing: .045em; text-decoration: none; }
.site-nav, .footer nav { display: flex; align-items: center; gap: clamp(18px, 2.7vw, 41px); }
.site-nav a:not(.button), .footer nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; font-weight: 700; text-decoration: none; }
.site-nav a:not(.button):hover, .footer nav a:hover { color: var(--copper); }
.nav-toggle { display: none; }

.button { display: inline-flex; justify-content: center; align-items: center; min-height: 54px; padding: 10px 24px; border: 1px solid transparent; border-radius: 2px; background: var(--copper); color: var(--ink); font-size: .9375rem; font-weight: 800; line-height: 1.25; text-align: center; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.button:hover { background: #f4bf95; }
.button-small { min-height: 44px; padding-inline: 20px; font-size: .875rem; }
.button-outline { border-color: #888374; color: var(--ivory); background: transparent; }
.button-outline:hover { color: var(--ink); border-color: var(--ivory); background: var(--ivory); }
.button-dark { background: var(--ink); color: var(--ivory); }
.button-dark:hover { background: var(--copper-dark); }

.hero { position: relative; isolation: isolate; display: grid; min-height: min(680px, max(574px, 78svh)); border-bottom: 1px solid var(--line); overflow: clip; }
.hero-visual { position: absolute; z-index: -1; inset: 0 0 0 35%; background: #343028; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 43%; filter: brightness(.87) saturate(.72); }
.hero-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink), rgba(23,24,21,.76) 12%, transparent 48%), linear-gradient(0deg, rgba(23,24,21,.54), transparent 36%); }
.hero-inner { display: flex; align-items: center; padding-block: 68px 77px; }
.hero-copy { max-width: max-content; }
.hero h1 em { color: var(--copper); font-style: normal; }
.hero-description { max-width: 350px; margin-top: 25px; color: var(--ivory); font-weight: 600; font-size: clamp(1rem, 1.5vw, 1.13rem); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 27px; }
.demo-note { margin-top: 21px; color: var(--muted); font-size: .8125rem; font-weight: 600; }

.about { display: grid; grid-template-columns: 1.13fr .87fr; align-items: center; gap: clamp(32px, 7vw, 115px); }
.about-photo { position: relative; padding: 0 12px 12px 0; }
.about-photo::after { content: ''; position: absolute; right: 0; bottom: 0; height: 45%; width: 39%; pointer-events: none; border-bottom: 1px solid var(--copper); border-right: 1px solid var(--copper); }
.about-photo img { width: 100%; height: auto; aspect-ratio: 1.31; object-fit: cover; background: var(--ink-raised); filter: saturate(.76) brightness(.9); }
.about .lead { margin-top: 24px; color: var(--ivory); font-size: 1.125rem; }
.about p:not(.eyebrow, .lead) { color: var(--muted); }

.services-layout, .faq-layout { display: grid; grid-template-columns: .76fr 1.24fr; gap: clamp(32px, 7vw, 110px); align-items: start; }
.services-intro > p:not(.eyebrow) { max-width: 250px; margin-top: 20px; color: var(--paper-muted); }
.services-intro .button { margin-top: 24px; }
.price-list { list-style: none; padding: 0; border-top: 1px solid var(--paper-line); }
.price-list li { display: grid; grid-template-columns: minmax(0, 1fr) max-content; gap: 12px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--paper-line); }
.price-list h3 { font-size: clamp(.96rem, 1.62vw, 1.29rem); font-weight: 800; text-wrap: wrap; }
.price-list p { margin-top: 4px; color: var(--paper-muted); font-size: .875rem; line-height: 1.45; }
.price-list strong { color: var(--copper-dark); font-family: var(--display); font-weight: 600; font-size: clamp(1.125rem, 2.35vw, 1.9rem); line-height: 1; white-space: nowrap; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px 34px; margin-bottom: clamp(25px, 4vw, 52px); }
.section-heading > p { max-width: 265px; color: var(--muted); }
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2.2vw, 30px); }
.person { background: var(--ink-soft); border-bottom: 1px solid var(--line); }
.person img { width: 100%; aspect-ratio: 4 / 4.5; height: auto; object-fit: cover; object-position: center 28%; background: var(--ink-raised); }
.person-copy { padding: clamp(15px, 2.2vw, 28px); }
.person h3 { font-family: var(--display); font-weight: 600; font-size: clamp(1.65rem, 3vw, 2.5rem); }
.specialty { margin-top: 4px; color: var(--copper); font-size: .875rem; font-weight: 800; }
.person p:last-child { margin-top: 8px; color: var(--muted); font-size: .9375rem; line-height: 1.5; }

.gallery { background: var(--ink-soft); }
.gallery-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(180px, 24vw, 335px); gap: clamp(8px, 1.4vw, 18px); }
.gallery-shot { grid-column: span 4; position: relative; display: block; overflow: hidden; background: var(--ink-raised); }
.gallery-shot:first-child { grid-column: span 7; }
.gallery-shot:nth-child(2) { grid-column: span 5; }
.gallery-shot img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.68) brightness(.88); transition: transform .26s ease, filter .26s ease; }
.gallery-shot:first-child img { object-position: center 56%; }
.gallery-shot:hover img { transform: scale(1.035); filter: saturate(.9); }
.gallery-shot span { position: absolute; inset: auto 0 0; display: block; padding: 23px 12px 9px; color: #fff8ee; background: linear-gradient(transparent, #151510e8); font-size: .8125rem; font-weight: 800; }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 4vw, 64px); margin-top: clamp(25px, 5vw, 55px); }
.values article { padding-top: 19px; border-top: 1px solid var(--copper); }
.values p:not(.eyebrow) { margin-top: 8px; color: var(--muted); }
.faq-list { border-top: 1px solid var(--paper-line); }
.faq details { border-bottom: 1px solid var(--paper-line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px 0; list-style: none; font-weight: 800; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: 0 0 21px; height: 21px; background: linear-gradient(currentColor, currentColor) center / 13px 1px no-repeat, linear-gradient(currentColor, currentColor) center / 1px 13px no-repeat; color: var(--copper-dark); }
.faq details[open] summary::after { background-size: 13px 1px, 0 0; }
.faq details p { padding: 0 25px 17px 0; color: var(--paper-muted); }

.contacts { background: linear-gradient(120deg, #2c2420, var(--ink) 68%); }
.contacts-layout { display: grid; grid-template-columns: 1fr .85fr; align-items: center; gap: clamp(26px, 7vw, 95px); }
.contact-cta p:not(.eyebrow) { margin-top: 20px; color: var(--muted); }
.contact-cta .button { margin-top: 22px; }
.contact-list { border-top: 1px solid var(--line); }
.contact-list > div { display: grid; grid-template-columns: minmax(68px, .38fr) 1fr; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { color: var(--copper); font-weight: 800; }
.contact-list dd { color: var(--muted); overflow-wrap: anywhere; }
.footer { padding-block: 26px 35px; border-top: 1px solid var(--line); }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 18px; }
.footer p { color: var(--muted); font-size: .8125rem; }

.dialog { position: fixed; width: min(100% - 2 * var(--side), 525px); max-height: calc(100% - 26px); padding: clamp(22px, 5vw, 42px); border: 1px solid #71604e; border-radius: 3px; background: var(--ink-soft); color: var(--ivory); }
.dialog::backdrop { background: rgba(12, 12, 10, .83); }
.dialog h2 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
.dialog-close { position: absolute; z-index: 1; top: 8px; right: 8px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 2px; background: var(--ink); color: var(--ivory); font-size: 1.7rem; line-height: 1; }
.dialog-close:hover { color: var(--copper); }
.dialog h2 + p { margin-top: 15px; color: var(--muted); }
.booking-dialog label { display: block; margin-top: 18px; margin-bottom: 4px; font-weight: 800; }
.booking-dialog select { appearance: none; width: 100%; min-height: 48px; padding: 8px 35px 8px 10px; border: 1px solid #888374; border-radius: 2px; color: var(--ivory); background: linear-gradient(45deg, transparent 48%, var(--copper) 52%) right 17px center / 6px 6px no-repeat, linear-gradient(-45deg, transparent 48%, var(--copper) 52%) right 12px center / 6px 6px no-repeat, var(--ink); }
.booking-status { min-height: 2em; color: var(--copper); font-size: .875rem; }
.booking-dialog .button { margin-top: 5px; }
.lightbox { width: min(100% - 24px, 1000px); padding: 12px; text-align: center; }
.lightbox img { width: 100%; height: min(65vh, 680px); object-fit: contain; background: var(--ink); }
.lightbox figcaption { margin-top: 8px; font-weight: 700; }
.lightbox-controls { display: flex; align-items: center; justify-content: center; gap: 15px; margin-top: 4px; }
.lightbox-controls button { min-height: 44px; border: 0; background: transparent; color: var(--copper); font-weight: 800; }

@media (max-width: 940px) {
  h1 { font-size: clamp(3.55rem, 9vw, 6rem); }
  .hero-visual { left: 30%; }
}

@media (761px <= width <= 940px) {
  .hero { min-height: 600px; }
  .hero-visual img { object-position: 77% 43%; }
}

@media (max-width: 760px) {
  [id] { scroll-margin-top: 74px; }
  .masthead-inner { min-height: 62px; flex-wrap: wrap; gap: 0 10px; }
  .brand { font-size: 1.2rem; }
  .brand img { width: 33px; height: 33px; }
  .nav-toggle { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; min-height: 44px; border: 1px solid #625d50; border-radius: 2px; color: var(--ivory); background: var(--ink); font-size: .875rem; font-weight: 800; }
  .nav-toggle span { display: grid; align-content: center; gap: 5px; width: 14px; }
  .nav-toggle span::before, .nav-toggle span::after { content: ''; display: block; height: 1px; background: currentColor; }
  .nav-toggle[aria-expanded='true'] span::before { transform: translateY(3px) rotate(45deg); }
  .nav-toggle[aria-expanded='true'] span::after { transform: translateY(-3px) rotate(-45deg); }
  .site-nav { flex: 1 0 100%; display: grid; gap: 0; padding: 3px 0 14px; }
  .site-nav:has(.button) > a:not(.button) { border-top: 1px solid var(--line); }
  .site-nav .button { margin-top: 8px; }
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero-visual { position: relative; inset: auto; height: clamp(220px, 62vw, 408px); }
  .hero-visual img { object-position: center 42%; }
  .hero-visual::after { background: linear-gradient(0deg, var(--ink), transparent 44%); }
  .hero-inner { position: relative; margin-top: clamp(-75px, -12vw, -42px); padding-block: 0 38px; }
  .hero .eyebrow { margin-bottom: 12px; }
  h1 { font-size: clamp(2.86rem, 11vw, 5.1rem); }
  .hero-description { margin-top: 14px; max-width: 348px; }
  .actions { margin-top: 19px; gap: 7px; }
  .actions .button { padding-inline: clamp(10px, 3vw, 20px); min-height: 48px; font-size: .875rem; }
  .demo-note { margin-top: 13px; }
  .about { grid-template-columns: 1fr; gap: 24px; }
  .about-photo { order: 1; }
  .about .lead { margin-top: 17px; }
  .services-layout, .faq-layout { grid-template-columns: 1fr; gap: 25px; }
  .services h2 br, .faq h2 br { display: none; }
  .services-intro > p:not(.eyebrow) { max-width: 330px; margin-top: 13px; }
  .services-intro .button { margin-top: 14px; min-height: 47px; }
  .price-list li { padding-block: 11px; }
  .section-heading { align-items: start; flex-direction: column; gap: 12px; }
  .section-heading > p { max-width: 100%; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(125px, 38vw, 250px); }
  .gallery-shot:nth-child(n) { grid-column: span 1; }
  .gallery-shot:first-child { grid-column: span 2; }
  .values-grid { grid-template-columns: 1fr; gap: 22px; }
  .values article { padding-top: 11px; }
  .contacts-layout { grid-template-columns: 1fr; }
  .footer-top { flex-wrap: wrap; }
  .footer nav { flex-wrap: wrap; column-gap: 15px; row-gap: 0; }
}

@media (max-width: 500px) {
  .team-grid { grid-template-columns: 1fr; gap: 12px; }
  .person { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); align-items: center; }
  .person img { min-height: 100%; aspect-ratio: 4 / 5; object-position: center 38%; }
  .person-copy { padding: 12px 10px 12px 13px; }
  .person p:last-child { font-size: .875rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
