:root {
  --bg: #f3f0e7;
  --paper: #fbfaf4;
  --ink: #142116;
  --muted: #66715f;
  --green: #213a24;
  --green-2: #536942;
  --line: rgba(20, 33, 22, .14);
  --soft: #e6ebdc;
  --radius: 10px;
  --shadow: 0 18px 48px rgba(20, 33, 22, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; max-width: 100%; }
body {
  width: 100%;
  max-width: 100%;
  min-width: 320px;
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
p { color: var(--muted); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto auto;
  align-items: center;
  gap: 22px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(243, 240, 231, .88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-grid;
  grid-template-columns: 38px minmax(0, auto);
  align-items: center;
  gap: 9px;
  width: fit-content;
  font-weight: 760;
  letter-spacing: -.03em;
}
.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex: 0 0 auto;
}
.brand-text {
  display: grid;
  gap: 2px;
  width: 138px;
  min-width: 0;
}
.brand-text span {
  display: block;
  width: 100%;
  font-size: 17px;
  line-height: 1.05;
  white-space: nowrap;
  text-align: center;
}
.brand-text small {
  display: block;
  width: 100%;
  font-size: 10.7px;
  line-height: 1.1;
  color: var(--green-2);
  font-weight: 700;
  letter-spacing: .17em;
  white-space: nowrap;
  text-align: center;
  text-align-last: auto;
  text-transform: uppercase;
}

@media (min-width: 641px) {
  .brand {
    margin-left: 58px;
  }
  .nav,
  .top-phone {
    margin-right: 58px;
  }
}
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}
.nav a:hover, .nav a:focus-visible { color: var(--ink); }
.top-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 17px;
  border-radius: 8px;
  background: var(--green);
  color: #fffaf0;
  font-size: 14px;
  font-weight: 760;
  white-space: nowrap;
}
.top-phone:hover, .top-phone:focus-visible { background: #172c1a; }

main {
  width: min(1120px, calc(100% - 38px));
  margin: 0 auto;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  align-items: stretch;
  gap: clamp(24px, 3.8vw, 44px);
  padding: 50px 0 62px;
}
.hero-copy { max-width: 760px; }
.hero-line {
  display: block;
}
.hero-august-link {
  color: #4f6f40;
  text-decoration: none;
  transition: color .18s ease;
}
.hero-august-link:hover,
.hero-august-link:focus-visible {
  color: #61864e;
}
@media (min-width: 901px) {
  h1 {
    font-size: clamp(42px, 5.8vw, 74px);
  }
  .hero-line {
    white-space: nowrap;
  }
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--green-2);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: .13em;
  text-transform: uppercase;
}
h1 {
  margin-bottom: 18px;
  font-size: clamp(46px, 7.1vw, 82px);
  line-height: .92;
  letter-spacing: -.074em;
}
h2 {
  margin-bottom: 16px;
  font-size: clamp(32px, 4.7vw, 54px);
  line-height: .98;
  letter-spacing: -.062em;
}
h3 {
  margin-bottom: 8px;
  font-size: 21px;
  line-height: 1.1;
  letter-spacing: -.035em;
}
.lead {
  max-width: 570px;
  margin-bottom: 24px;
  color: #3c4838;
  font-size: clamp(17px, 1.85vw, 21px);
  line-height: 1.42;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 21px;
  border: 1px solid var(--green);
  border-radius: 8px;
  background: var(--green);
  color: #fffaf0;
  font-weight: 780;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.button:hover, .button:focus-visible { transform: translateY(-1px); background: #172c1a; }
.button-secondary {
  background: transparent;
  color: var(--green);
  border-color: rgba(33, 58, 36, .24);
}
.button-secondary:hover, .button-secondary:focus-visible { background: rgba(33, 58, 36, .06); color: var(--green); }
.hero-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--soft);
  box-shadow: var(--shadow);
  align-self: stretch;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 520px;
  object-fit: cover;
}

.section {
  padding: 64px 0;
  border-top: 1px solid var(--line);
}
.section-title {
  display: grid;
  grid-template-columns: minmax(150px, .48fr) minmax(0, 1.52fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 28px;
}
.section-title h2 { margin-bottom: 0; }
.section-title.compact { margin-bottom: 24px; }
.services-title {
  display: block;
  max-width: 720px;
  margin-bottom: clamp(22px, 3.2vw, 34px);
}
.services-title h2 {
  margin-bottom: 0;
}
.services-list {
  margin-top: 0;
}
.works-title {
  display: block;
  max-width: 820px;
}
.works-title h2 {
  margin-bottom: 16px;
}
.works-title .eyebrow {
  margin-bottom: 0;
  font-size: 15px;
  letter-spacing: .11em;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.card {
  min-height: 166px;
  padding: 22px;
  border-radius: 8px;
  background: rgba(251, 250, 244, .64);
}
.card p { margin-bottom: 0; }
.service-card {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  column-gap: 16px;
  align-items: start;
}
.service-icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin: 2px 0 0;
  flex: 0 0 auto;
}
.service-card h3 {
  grid-column: 2;
  margin-bottom: 9px;
}
.service-card p {
  grid-column: 2;
  max-width: none;
}

.master {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(340px, 1.1fr);
  gap: clamp(26px, 5vw, 62px);
  align-items: stretch;
}
.master-text h2 {
  white-space: nowrap;
}
.master-text p {
  max-width: 620px;
  font-size: 17px;
  text-align: justify;
  text-wrap: pretty;
  hyphens: auto;
}
.master-text blockquote {
  max-width: 620px;
  margin: 22px 0 0;
  padding: 0 0 0 18px;
  border-left: 3px solid rgba(83, 105, 66, .42);
  color: var(--muted);
  font-size: 17px;
  font-style: italic;
  line-height: 1.58;
  text-align: justify;
  text-wrap: pretty;
  hyphens: auto;
}
.facts {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  max-width: 620px;
}
.facts span {
  position: relative;
  display: block;
  padding-left: 24px;
  color: var(--green);
  font-size: 16px;
  line-height: 1.35;
  font-weight: 760;
}
.facts span::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: .02em;
  color: var(--green-2);
  font-size: 15px;
  line-height: 1.35;
}
.portrait {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--soft);
  box-shadow: 0 14px 42px rgba(20, 33, 22, .08);
  display: flex;
  align-self: stretch;
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 961px) {
  .master .portrait {
    margin-top: 9px;
  }
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 10px;
}
.gallery-item {
  display: block;
  min-height: 230px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--soft);
  cursor: zoom-in;
}
.gallery-item.wide { grid-column: span 2; }
.gallery-item.tall { grid-row: span 2; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.035); }
.gallery-item:focus-visible { outline: 3px solid rgba(83, 105, 66, .35); outline-offset: 3px; }


.quiz-title {
  display: block;
  max-width: 860px;
  margin-bottom: 26px;
}
.quiz-title h2 {
  margin-bottom: 0;
}
.quiz-box {
  padding: 0;
  border-radius: 0;
  background: transparent;
}
.quiz-head {
  max-width: 780px;
  margin-bottom: 26px;
}
.quiz-lead {
  max-width: none;
  margin-bottom: 18px;
  color: var(--green-2);
  font-size: clamp(10px, 1.18vw, 13px);
  line-height: 1.18;
  font-weight: 820;
  letter-spacing: .085em;
  text-transform: uppercase;
  white-space: nowrap;
}
.quiz-progress {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(33, 58, 36, .10);
  overflow: hidden;
}
.quiz-progress-bar {
  display: block;
  width: 33.333%;
  height: 100%;
  background: var(--green);
  transition: width .22s ease;
}
.quiz-step {
  display: none;
}
.quiz-step.is-active {
  display: block;
}
.quiz-question {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 760;
  line-height: 1.12;
  letter-spacing: -.03em;
}
.quiz-form {
  max-width: 760px;
}
.quiz-options {
  display: grid;
  width: min(100%, 720px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.quiz-option {
  position: relative;
  display: block;
  cursor: pointer;
}
.quiz-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.quiz-option span {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 14px 16px;
  border: 1px solid rgba(33, 58, 36, .16);
  border-radius: 8px;
  background: rgba(251, 250, 244, .45);
  color: var(--ink);
  font-weight: 650;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.quiz-option input:checked + span {
  border-color: rgba(33, 58, 36, .58);
  background: rgba(33, 58, 36, .08);
}
.quiz-option:hover span,
.quiz-option:focus-within span {
  transform: translateY(-1px);
}
.quiz-controls {
  display: flex;
  flex-wrap: wrap;
  width: min(100%, 720px);
  gap: 10px;
  margin-top: 22px;
}
.quiz-prev {
  display: none;
}
.quiz-result {
  padding: 2px 0 4px;
}
.quiz-result-label {
  margin-bottom: 8px;
  color: var(--green-2);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.quiz-result-title {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -.05em;
}
.quiz-result-text {
  max-width: 780px;
  margin-bottom: 18px;
  color: #3c4838;
  font-size: 17px;
}
.quiz-summary {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}
.quiz-summary-item {
  padding-left: 20px;
  position: relative;
  color: var(--green);
  font-weight: 650;
}
.quiz-summary-item::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green-2);
}
.quiz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.quiz-copy {
  cursor: pointer;
}
.quiz-copy-note {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--green-2);
  font-size: 14px;
}
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .78fr);
  gap: 34px;
  align-items: start;
  width: 100vw;
  margin: 64px 0 0 calc(50% - 50vw);
  padding: 24px max(22px, calc((100vw - 1120px) / 2 + 22px));
  border-radius: 0;
  background: var(--green);
  color: #fffaf0;
}
.contact h2 { margin-bottom: 8px; }
.contact p, .contact .eyebrow { color: rgba(255, 250, 240, .73); }
.contact-list { display: grid; gap: 4px; }
.contact-list a {
  display: grid;
  gap: 3px;
  padding: 8px 0;
  border-top: 0;
}
.contact-list a:first-child { padding-top: 0; }
.contact-list span {
  color: rgba(255, 250, 240, .66);
  font-size: 14px;
}
.contact-list strong {
  font-size: clamp(20px, 2.15vw, 27px);
  line-height: 1.1;
  letter-spacing: -.035em;
}
.contact-list .assistant-phone {
  grid-template-columns: 1fr;
  align-items: start;
  gap: 3px;
  padding-top: 2px;
}
.contact-list .assistant-phone span {
  order: -1;
  justify-self: start;
  padding-bottom: 0;
  white-space: nowrap;
}

.vk-link {
  width: fit-content;
  justify-self: end;
  display: inline-flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 9px !important;
  margin-top: 4px;
  padding: 8px 0 0 !important;
  color: rgba(255, 250, 240, .76);
  border-top: 0 !important;
  font-size: 14px;
  font-weight: 650;
}
.vk-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: rgba(255, 250, 240, .14);
  color: #fffaf0 !important;
  font-size: 12px !important;
  font-weight: 850;
  letter-spacing: -.04em;
}
.vk-link:hover,
.vk-link:focus-visible {
  color: #fffaf0;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(12, 18, 12, .88);
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: min(1160px, 100%);
  max-height: 86svh;
  border-radius: 8px;
  box-shadow: 0 30px 100px rgba(0,0,0,.45);
}
.lightbox-close {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: rgba(255,255,255,.94);
  color: #111;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.lightbox-nav {
  position: fixed;
  top: 50%;
  z-index: 2;
  width: 54px;
  height: 54px;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 250, 240, .46);
  border-radius: 999px;
  background: rgba(251, 250, 244, .88);
  color: var(--green);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .22);
  backdrop-filter: blur(12px);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.lightbox-nav span {
  display: block;
  font-size: 38px;
  font-weight: 420;
  line-height: 1;
  transform: translateY(-2px);
}
.lightbox-prev {
  left: max(18px, env(safe-area-inset-left));
}
.lightbox-next {
  right: max(18px, env(safe-area-inset-right));
}
.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  background: #fffaf0;
  box-shadow: 0 22px 58px rgba(0, 0, 0, .30);
}
.lightbox-nav:hover {
  transform: translateY(-50%) scale(1.04);
}
.lightbox-nav:active {
  transform: translateY(-50%) scale(.97);
}

@media (max-width: 960px) {
  .topbar {
    position: fixed;
    left: 0;
    right: 0;
    grid-template-columns: minmax(150px, 1fr) auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-100%);
    transition: opacity .18s ease, transform .18s ease, visibility .18s step-end;
  }
  .topbar.show-phone {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity .18s ease, transform .18s ease, visibility 0s;
  }
  .nav { display: none; }
  .hero, .master, .section-title, .contact { grid-template-columns: 1fr; }
  .hero { padding: 36px 0 50px; }
  .hero-copy { max-width: 760px; }
  .hero-photo img { height: clamp(320px, 58vw, 500px); min-height: 0; }
  .cards { grid-template-columns: 1fr; gap: 0; }
  .card { min-height: auto; }
  .service-card {
    display: block;
  }
  .service-card .service-icon {
    display: none !important;
  }
  .contact {
    width: auto;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    border-radius: var(--radius);
  }
  .quiz-lead {
    white-space: normal;
  }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-item { min-height: 220px; }
  .gallery-item.wide { grid-column: span 2; }
}

@media (max-width: 640px) {
  body { background: #f4f1e8; }
  main { width: min(100% - 28px, 1120px); }
  .topbar {
    position: fixed;
    left: 0;
    right: 0;
    gap: 12px;
    padding: 11px 14px;
    background: rgba(244, 241, 232, .94);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-100%);
    transition: opacity .18s ease, transform .18s ease, visibility .18s step-end;
  }
  .topbar.show-phone {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity .18s ease, transform .18s ease, visibility 0s;
  }
  .topbar.show-phone {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity .2s ease, transform .2s ease, visibility 0s;
  }
  .brand { grid-template-columns: 34px minmax(0, auto); gap: 7px; }
  .brand-logo { width: 34px; height: 34px; }
  .brand-text { width: 130px; gap: 1px; }
  .brand-text span { font-size: 16px; }
  .brand-text small {
    font-size: 10px;
    letter-spacing: .135em;
    white-space: nowrap;
    text-align: center;
    text-align-last: auto;
  }
  .top-phone {
    min-height: 38px;
    padding: 0 13px;
    border-radius: 6px;
    font-size: 13px;
  }
  .eyebrow {
    margin-bottom: 9px;
    font-size: 11px;
    letter-spacing: .12em;
  }
  h1 {
    margin-bottom: 14px;
    font-size: clamp(38px, 11.7vw, 50px);
    line-height: .94;
    letter-spacing: -.067em;
  }
  h2 {
    margin-bottom: 14px;
    font-size: clamp(28px, 8.2vw, 38px);
    line-height: 1.02;
    letter-spacing: -.055em;
  }
  h3 { font-size: 22px; }
  .lead {
    max-width: min(76vw, 430px);
    margin-right: auto;
    margin-bottom: 20px;
    font-size: 17px;
    line-height: 1.46;
    text-align: justify;
    text-wrap: pretty;
    hyphens: auto;
  }
  .hero { padding: 28px 0 44px; gap: 22px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: 9px; }
  .button {
    width: 100%;
    min-height: 47px;
    border-radius: 6px;
  }
  .hero-photo { border-radius: 8px; box-shadow: none; }
  .hero-photo img { height: clamp(235px, 64vw, 320px); }

  .section { padding: 42px 0; }
  .section-title { display: block; margin-bottom: 18px; }
  .section-title .eyebrow { margin-bottom: 8px; }
  .services-title {
    max-width: none;
    margin-bottom: 18px;
  }
  .works-title {
    max-width: none;
    margin-bottom: 18px;
  }
  .works-title h2 {
    margin-bottom: 14px;
  }
  .works-title .eyebrow {
    font-size: 14px;
    letter-spacing: .1em;
  }
  .cards {
    display: block;
    background: transparent;
  }
  .card {
    padding: 10px 0 14px;
    border-radius: 0;
    background: transparent;
    border-top: 0;
  }
  .card:first-child { padding-top: 4px; }
  .card h3 { margin-bottom: 7px; }
  .service-card {
    display: block;
  }
  .service-icon {
    display: none;
  }
  .card p {
    font-size: 16px;
    line-height: 1.48;
    text-align: justify;
    text-wrap: pretty;
    hyphens: auto;
  }
  .card::before,
  .card .number,
  .card .num,
  .card .index,
  .card [class*="number"],
  .card [class*="num"],
  .card [class*="index"] { display: none !important; content: none !important; }

  .master { gap: 20px; }
  .master-text h2 {
    font-size: clamp(28px, 8.1vw, 36px);
    letter-spacing: -.06em;
    white-space: nowrap;
  }
  .master-text p {
    font-size: 16px;
    line-height: 1.52;
    text-align: justify;
    text-wrap: pretty;
    hyphens: auto;
  }
  .master-text blockquote {
    margin-top: 18px;
    padding-left: 14px;
    font-size: 16px;
    line-height: 1.52;
    text-align: justify;
    text-wrap: pretty;
    hyphens: auto;
  }
  .facts {
    display: grid;
    gap: 10px;
    margin-top: 22px;
    padding-top: 4px;
    border-top: 0;
  }
  .facts span {
    display: block;
    min-height: 0;
    padding: 0 0 0 24px;
    border-radius: 0;
    background: transparent;
    border-bottom: 0;
    font-size: 16px;
    line-height: 1.35;
  }
  .facts span::before {
    top: .02em;
    font-size: 15px;
  }
  .portrait { border-radius: 8px; box-shadow: none; }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .gallery-item,
  .gallery-item.wide,
  .gallery-item.tall {
    grid-column: auto;
    grid-row: auto;
    min-height: 0;
    aspect-ratio: 1 / 1.08;
    border-radius: 6px;
  }


  .quiz-title {
    max-width: none;
    margin-bottom: 20px;
  }
  .quiz-title h2 {
    margin-bottom: 0;
  }
  .quiz-box {
    padding: 0;
    border-radius: 0;
    background: transparent;
  }
  .quiz-head {
    margin-bottom: 20px;
  }
  .quiz-lead {
    max-width: 100%;
    font-size: 10px;
    line-height: 1.22;
    letter-spacing: .035em;
    white-space: normal;
  }
  .quiz-question {
    font-size: 23px;
    line-height: 1.08;
    margin-top: 2px;
  }
  .quiz-options {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .quiz-option span {
    min-height: 52px;
    padding: 13px 14px;
    border-radius: 8px;
    font-size: 15px;
  }
  .quiz-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 18px;
  }
  .quiz-controls .quiz-prev {
    grid-column: 1;
  }
  .quiz-controls .quiz-next,
  .quiz-controls .quiz-submit {
    grid-column: 2;
  }
  .quiz-result-title {
    font-size: 28px;
  }
  .quiz-result-text {
    font-size: 16px;
    line-height: 1.5;
  }
  .quiz-summary-item {
    font-size: 15px;
    line-height: 1.42;
  }
  .quiz-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .quiz-actions .button {
    width: 100%;
  }
  .contact {
    gap: 18px;
    width: auto;
    max-width: 100%;
    margin: 46px 0 28px;
    padding: 20px;
    border-radius: 8px;
  }
  .contact h2 {
    font-size: clamp(25px, 7.2vw, 34px);
    line-height: 1;
    white-space: nowrap;
  }
  .contact-list a { padding: 8px 0; }
  .contact-list strong { font-size: 21px; }
  .contact-list .assistant-phone {
    grid-template-columns: 1fr;
    gap: 2px;
    padding-top: 4px;
  }
  .contact-list .assistant-phone span {
    order: -1;
    justify-self: start;
    padding-bottom: 0;
    font-size: 14px;
    line-height: 1.1;
  }

  .vk-link {
    justify-self: start;
    margin-top: 2px;
    padding-top: 6px !important;
  }
  .vk-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
  }
  .lightbox { padding: 12px; }
  .lightbox img { max-height: 82svh; border-radius: 6px; }
  .lightbox-nav {
    width: 42px;
    height: 42px;
    background: rgba(251, 250, 244, .9);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .24);
  }
  .lightbox-nav span {
    font-size: 31px;
    transform: translateY(-2px);
  }
  .lightbox-prev {
    left: max(10px, env(safe-area-inset-left));
  }
  .lightbox-next {
    right: max(10px, env(safe-area-inset-right));
  }
}

@media (max-width: 390px) {
  main { width: min(100% - 22px, 1120px); }
  .topbar { align-items: center; }
  .brand { grid-template-columns: 31px minmax(0, auto); gap: 6px; }
  .brand-logo { width: 31px; height: 31px; }
  .brand-text { width: 122px; gap: 1px; }
  .brand-text span { font-size: 15px; }
  .brand-text small {
    font-size: 9px;
    letter-spacing: .115em;
    white-space: nowrap;
    text-align: center;
    text-align-last: auto;
  }
  .top-phone { padding: 0 11px; font-size: 12px; }

  .quiz-question {
    font-size: 21px;
  }
  .quiz-controls {
    grid-template-columns: 1fr 1fr;
  }
  h1 { font-size: 36px; }
  .lead { max-width: 82vw; }
  .gallery { gap: 7px; }
}

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


/* v55 mobile hard-fix */
@media (max-width: 960px) {
  html,
  body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  main {
    width: calc(100% - 28px) !important;
    max-width: 1120px !important;
    overflow-x: hidden !important;
  }

  .topbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(-100%) !important;
  }

  .topbar.show-phone {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }

  .nav {
    display: none !important;
  }

  .service-card {
    display: block !important;
  }

  .service-card .service-icon,
  .service-icon {
    display: none !important;
  }

  .contact {
    width: auto !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 8px !important;
  }

  .quiz-lead {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  .brand,
  .brand-text,
  .hero,
  .hero-copy,
  .hero-photo,
  .cards,
  .gallery,
  .quiz,
  .quiz-box,
  .quiz-form,
  .quiz-options,
  .contact {
    max-width: 100% !important;
  }
}


/* v58 hero link neutral */
.hero-august-link {
  color: inherit !important;
  text-decoration: none !important;
}
.hero-august-link:hover,
.hero-august-link:focus-visible {
  color: inherit !important;
}
