:root {
  --bg: #F6F3EE;
  --paper: #FDFBF7;
  --ink: #2E3430;
  --muted: #5A6358;
  --sage: #8FA88E;
  --sage-light: #E8EDE7;
  --sand: #E5D9C8;
  --sand-dark: #D4C4A8;
  --accent: #9A5A42;
  --accent-hover: #8B4F38;
  --accent-alt: #6B7459;
  --line: #D8D2C8;
  --error: #B91C1C;
  --success: #166534;
  --font-display: "Lora", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --section-y: clamp(72px, 10vw, 120px);
  --section-x: clamp(20px, 5vw, 80px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font-body);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; object-fit: cover; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--paper);
  font-weight: 600;
  border-radius: 999px;
}
.skip-link:focus { top: 16px; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 0 var(--section-x);
  background: rgba(246, 243, 238, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  /* containing block for mobile nav drawer */
  isolation: isolate;
}

.logo {
  font: 600 20px/1.2 var(--font-display);
  letter-spacing: -0.02em;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.logo em { font-style: italic; color: var(--accent); }

.nav-toggle {
  display: none;
  min-height: 44px;
  min-width: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: 600 14px var(--font-body);
  cursor: pointer;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 32px);
  font-size: 14px;
  font-weight: 500;
}

nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s;
}
nav a:hover { color: var(--accent); }

.header__cta {
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--paper) !important;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.header__cta:hover {
  background: var(--accent-hover);
  color: var(--paper) !important;
}

/* Hero — one idea: оффер + CTA, editorial split */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  border-bottom: 1px solid var(--line);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 7vh, 88px) var(--section-x);
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* Hero never animates hidden — FOUC-safe even if .reveal is added by mistake */
.hero__copy,
.hero__copy *,
.hero__visual,
.hero__visual img {
  opacity: 1;
  visibility: visible;
}

.hero__copy.reveal,
.hero__visual.reveal {
  animation: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.eyebrow,
.section__number {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  font: 500 clamp(38px, 5.5vw, 68px)/1.06 var(--font-display);
  letter-spacing: -0.03em;
  margin: 18px 0 20px;
  max-width: 14ch;
}
h1 em { font-style: italic; color: var(--accent-alt); }

.hero__lead {
  max-width: 480px;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.65;
  color: #4F574C;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  font: 600 16px var(--font-body);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.button--primary { background: var(--accent); color: var(--paper); }
.button--primary:hover { background: var(--accent-hover); }
.button--secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.button--secondary:hover { background: var(--ink); color: var(--paper); }

.text-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-alt);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.text-link:hover { color: var(--accent); }

.hero__visual {
  position: relative;
  margin: 0;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  background: var(--sand);
  overflow: hidden;
}
.hero__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 42%;
}
.hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(246, 243, 238, 0.08) 0%, transparent 18%),
              linear-gradient(180deg, transparent 55%, rgba(46, 52, 48, 0.12) 100%);
}
.hero__visual figcaption {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 20px;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

/* Value strip */
.value-strip {
  overflow: hidden;
  background: var(--sage-light);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.value-strip__inner {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.value-strip__track {
  flex-shrink: 0;
  padding-right: 3rem;
  white-space: nowrap;
  font: 500 clamp(17px, 2.2vw, 26px)/1.25 var(--font-display);
  color: var(--accent-alt);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Sections */
.section {
  padding: var(--section-y) var(--section-x);
  border-bottom: 1px solid var(--line);
}
.section--sage { background: var(--sage-light); }
.section--sand { background: var(--sand); }
.section--paper { background: var(--paper); }

.section h2 {
  font: 500 clamp(32px, 4.5vw, 56px)/1.08 var(--font-display);
  letter-spacing: -0.02em;
}

/* About */
.about__layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 4vw, 48px);
  margin-top: 32px;
  align-items: start;
}
.about__photo {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--sand);
  aspect-ratio: 3/2;
}

.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 40px);
  align-items: start;
}
.about__text {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
}
.about__text p + p { margin-top: 16px; }

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 64px;
  border-top: 1px solid var(--line);
}
.facts article {
  padding: 28px 20px 0 0;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.facts article:last-child { border-right: 0; }
.facts strong {
  font: 500 clamp(32px, 4vw, 52px)/1 var(--font-display);
  color: var(--accent);
}
.facts span { font-size: 14px; color: var(--muted); max-width: 180px; line-height: 1.45; }

.contact-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 48px;
}
.contact-chips > a,
.contact-chips__item {
  min-height: 88px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  display: flex;
  align-items: center;
  gap: 14px;
}
.contact-chips > a { transition: border-color 0.2s, box-shadow 0.2s; }
.contact-chips > a:hover {
  border-color: var(--sage);
  box-shadow: 0 4px 20px rgba(46, 52, 48, 0.06);
}
.contact-chips__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--sage-light);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-alt);
}
.contact-chips b,
.contact-chips small { display: block; }
.contact-chips b { font: 600 15px var(--font-body); }
.contact-chips small { margin-top: 4px; color: var(--muted); font-size: 14px; }

/* For whom */
.for-whom__head {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: end;
  margin: 32px 0 40px;
}
.for-whom__head p { margin: 0; color: var(--muted); max-width: 480px; }

.for-whom__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.for-whom__list li {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
}
.for-whom__list h3 {
  font: 600 20px/1.3 var(--font-display);
  margin: 0 0 10px;
}
.for-whom__list p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }

/* Approach */
.advantages {
  list-style: none;
  margin: 40px 0 0;
  padding: 24px 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
}
.advantages li {
  position: relative;
  padding-left: 20px;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.5;
}
.advantages li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-alt);
}

.approach__intro {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: end;
  margin: 32px 0 48px;
}
.approach__intro p { color: var(--muted); margin: 0; max-width: 440px; }

.principle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.principle-grid article {
  padding: 28px;
  background: var(--paper);
  border-radius: 16px;
  border: 1px solid var(--line);
}
.principle-grid__num {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.principle-grid h3 {
  font: 600 22px/1.25 var(--font-display);
  margin: 16px 0 12px;
}
.principle-grid p { margin: 0; color: var(--muted); font-size: 16px; }

/* Services */
.services__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin: 32px 0 48px;
}
.services__head p { margin: 0; color: var(--muted); }

.service-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.service-card--featured {
  grid-column: 1 / -1;
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--paper) 0%, var(--sage-light) 100%);
}
.service-card--guide {
  border-style: dashed;
}
.service-card__badge {
  display: inline-block;
  margin-bottom: 4px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--paper);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.service-card__includes {
  margin: 0;
  padding: 0 0 0 18px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}
.service-card__includes li + li { margin-top: 4px; }

.service-card {
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s;
}
@media (hover: hover) {
  .service-card:hover {
    border-color: var(--sage);
    transform: translateY(-2px);
  }
}
.service-card__num {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-alt);
  letter-spacing: 0.08em;
}
.service-card h3 {
  font: 600 24px/1.2 var(--font-display);
  margin: 0;
}
.service-card p { margin: 0; color: var(--muted); font-size: 16px; }
.service-card__price {
  font-weight: 600;
  color: var(--ink) !important;
  margin-top: auto !important;
}
.service-card__link {
  font-weight: 600;
  font-size: 14px;
  color: var(--accent);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.service-card__link:hover { color: var(--accent-hover); }

/* Process */
.process h2 { margin: 24px 0 16px; }
.process__lead {
  max-width: 620px;
  margin: 0 0 40px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.timeline li {
  padding-top: 20px;
  border-top: 2px solid var(--accent);
}
.timeline__step {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-alt);
}
.timeline h3 {
  font: 600 20px/1.3 var(--font-display);
  margin: 12px 0 8px;
}
.timeline p { margin: 0; font-size: 16px; color: var(--muted); line-height: 1.55; }

/* Cases */
.cases__intro {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: end;
  margin: 32px 0 48px;
}
.cases__note {
  font-size: 0.55em;
  font-weight: 400;
  color: var(--muted);
  font-style: italic;
}
.cases__intro p { margin: 0; color: var(--muted); }

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.case-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.case-card figure {
  margin: 0;
  aspect-ratio: 4/5;
  background: var(--sand);
}
.case-card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.case-card__body { padding: 24px; }
.case-card__tag {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-alt);
}
.case-card p { margin: 0 0 10px; font-size: 16px; color: var(--muted); line-height: 1.6; }
.case-card p:last-child { margin-bottom: 0; }
.case-card p strong { color: var(--ink); font-weight: 600; }
.case-card h3 {
  font: 600 22px/1.25 var(--font-display);
  margin: 12px 0;
}

/* Guide */
.guide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 64px);
  align-items: center;
}
.guide__copy h2 { margin: 16px 0 20px; }
.guide__copy p { color: var(--muted); max-width: 440px; margin-bottom: 16px; }
.guide__list {
  margin: 0 0 28px;
  padding: 0 0 0 20px;
  color: var(--muted);
  line-height: 1.7;
}
.guide__visual {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--sand);
  aspect-ratio: 4/3;
}
.guide__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

/* Quote */
.quote {
  text-align: center;
  padding: clamp(80px, 12vw, 140px) var(--section-x);
  background: var(--paper);
}
.quote blockquote {
  max-width: 900px;
  margin: 0 auto 28px;
  font: 400 clamp(26px, 4vw, 48px)/1.25 var(--font-display);
  font-style: italic;
  letter-spacing: -0.02em;
}
.quote p {
  font-weight: 600;
  color: var(--accent);
}

/* FAQ */
.faq h2 { margin: 24px 0 32px; }
.faq-list { max-width: 760px; }
.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq-list summary {
  min-height: 52px;
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list details p {
  margin: 0 0 16px;
  padding-left: 4px;
  color: var(--muted);
  line-height: 1.65;
}
.disclaimer {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 680px;
}

/* Contact */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 8vw, 80px);
  background: var(--ink);
  color: var(--paper);
}
.contact .section__number { color: rgba(253, 251, 247, 0.5); }
.contact h2 { color: var(--paper); }
.contact__intro p { color: rgba(253, 251, 247, 0.75); max-width: 420px; line-height: 1.65; }
.contact__intro a { color: var(--sand); text-decoration: underline; }
.contact__intro a:hover { color: var(--paper); }

.contact form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}
.contact select {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(253, 251, 247, 0.35);
  color: var(--paper);
  padding: 12px 0;
  font: 17px var(--font-body);
  outline: none;
  cursor: pointer;
  min-height: 44px;
}
.contact select:focus { border-color: var(--accent); }
.contact select option { color: var(--ink); background: var(--paper); }

.contact input,
.contact textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(253, 251, 247, 0.35);
  color: var(--paper);
  padding: 12px 0;
  font: 17px var(--font-body);
  outline: none;
  resize: vertical;
}
.contact input::placeholder,
.contact textarea::placeholder { color: rgba(253, 251, 247, 0.4); }
.contact input:focus,
.contact textarea:focus { border-color: var(--accent); }
.contact .consent {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: rgba(253, 251, 247, 0.88);
  line-height: 1.5;
  min-height: 44px;
  padding: 10px 0;
  cursor: pointer;
}
.contact .consent input {
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--accent);
}
.contact .consent span { flex: 1; }
.contact .consent a { color: var(--sand); text-decoration: underline; }
.contact .button { align-self: flex-start; }
.form-status {
  min-height: 24px;
  font-size: 14px;
  color: var(--sand);
}
.form-status.is-error { color: #FCA5A5; }
.form-status.is-success { color: #86EFAC; }

/* Footer */
.footer {
  padding: 48px var(--section-x);
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 32px;
  align-items: end;
  background: var(--bg);
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}
.footer__links a:hover { color: var(--accent); }
.footer__meta {
  text-align: right;
  font-size: 14px;
  color: var(--muted);
}
.footer__meta p { margin: 0 0 12px; }
.studio-credit {
  color: var(--muted);
  line-height: 1.5;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.studio-credit:hover { color: var(--accent); }

/* Reveal — below-fold only; hero NEVER uses .reveal */
.reveal {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    animation: reveal 0.65s ease forwards;
  }
  @keyframes reveal {
    from {
      opacity: 0;
      transform: translateY(14px);
      visibility: visible;
    }
    to {
      opacity: 1;
      transform: translateY(0);
      visibility: visible;
    }
  }
}

/* Mobile nav */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px var(--section-x) 24px;
    background: rgba(246, 243, 238, 0.98);
    border-bottom: 1px solid var(--line);
  }
  .nav-open .header nav { display: flex; }
  .header nav a { padding: 8px 0; }
  .header__cta { text-align: center; justify-content: center; margin-top: 8px; }

  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero__visual {
    order: -1;
    min-height: min(52vh, 420px);
    min-height: min(52dvh, 420px);
  }
  .hero__visual img { object-position: center 40%; }
  .hero__visual figcaption { display: none; }
  .hero__copy {
    min-height: auto;
    padding-top: 28px;
    padding-bottom: 36px;
  }
  h1 { max-width: none; font-size: clamp(34px, 9vw, 44px); line-height: 1.08; }
  .hero__lead { font-size: 16px; }
  .actions { gap: 16px; margin-top: 24px; }
  .actions .text-link { width: 100%; justify-content: flex-start; }

  .about__layout,
  .about__grid,
  .for-whom__head,
  .approach__intro,
  .services__head,
  .cases__intro,
  .guide,
  .contact,
  .footer { grid-template-columns: 1fr; }

  .for-whom__list { grid-template-columns: 1fr; }
  .advantages { grid-template-columns: 1fr; }
  .service-card--featured { grid-column: auto; }

  .facts { grid-template-columns: 1fr 1fr; }
  .facts article { min-height: 120px; border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 20px; }

  .contact-chips { grid-template-columns: 1fr; }
  .principle-grid { grid-template-columns: 1fr; }
  .service-cards { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .case-grid { grid-template-columns: 1fr; }

  .footer__meta { text-align: left; }
}

@media (max-width: 520px) {
  .timeline { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .value-strip__inner,
  .reveal { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; visibility: visible !important; }
  .service-card:hover { transform: none; }
}
