:root {
  --bg: #f3f7f6;
  --surface: #ffffff;
  --surface-strong: #e7f0ee;
  --text: #172326;
  --muted: #5d6f72;
  --line: #cfddda;
  --accent: #08756f;
  --accent-dark: #083f3d;
  --copper: #bd6634;
  --ink-soft: #223235;
  --shadow: 0 18px 42px rgba(17, 35, 38, 0.1);
  --radius: 8px;
  --max: 1180px;
  --section-y: clamp(34px, 4.6vw, 58px);
  --section-gap: 22px;
  --card-gap: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(130deg, rgba(8, 117, 111, 0.08), transparent 38%),
    linear-gradient(180deg, #f8faf9 0%, var(--bg) 42%, #f7f4ee 100%);
  color: var(--text);
  font-family: "Segoe UI", "Trebuchet MS", Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.66;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(1.92rem, 2.75vw, 3rem);
  line-height: 1.1;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(1.42rem, 2.2vw, 2.15rem);
  line-height: 1.16;
}

h3 {
  font-size: 1.08rem;
  line-height: 1.28;
}

p {
  max-width: 72ch;
}

p + p {
  margin-top: 0.78rem;
}

h1 + p,
h2 + p,
h3 + p {
  margin-top: 0.72rem;
}

p + ul,
p + ol {
  margin-top: 0.65rem;
}

main {
  overflow: hidden;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(220px, auto) minmax(0, 1fr);
  grid-template-areas:
    "brand actions"
    "nav nav";
  row-gap: 10px;
  column-gap: 24px;
  align-items: center;
  padding: 12px max(18px, calc((100vw - var(--max)) / 2)) 10px;
  background: rgba(248, 250, 249, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  grid-area: brand;
  display: inline-grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  text-decoration: none;
}

.brand__mark {
  width: 46px;
  height: 46px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 8px 18px rgba(17, 35, 38, 0.08);
}

.brand__text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand strong {
  font-weight: 800;
  line-height: 1.05;
}

.brand small {
  max-width: none;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.2;
}

.main-nav {
  grid-area: nav;
  display: flex;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  padding: 5px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a,
.footer-nav a {
  color: var(--muted);
  text-decoration: none;
}

.main-nav a {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 6px;
  line-height: 1.15;
  white-space: nowrap;
}

.main-nav a:hover,
.footer-nav a:hover {
  color: var(--accent-dark);
}

.main-nav a[aria-current="page"] {
  background: var(--accent-dark);
  color: #fff;
}

.header-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 12px;
}

.header-phone {
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.menu-button {
  grid-area: actions;
  display: none;
  width: 46px;
  height: 46px;
  padding: 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.menu-button span:not(.visually-hidden) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 10px 24px rgba(8, 117, 111, 0.22);
}

.button--primary:hover {
  background: var(--accent-dark);
}

.button--secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}

.button--ghost {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent-dark);
}

.button--small {
  min-height: 40px;
  padding: 9px 13px;
  font-size: 0.88rem;
}

.hero,
.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(300px, 0.7fr);
  gap: clamp(28px, 4.4vw, 58px);
  align-items: center;
  max-width: var(--max);
  min-height: auto;
  margin: 0 auto;
  padding: clamp(28px, 3.6vw, 48px) 18px clamp(26px, 3.4vw, 42px);
}

.hero--with-image h1 {
  max-width: 650px;
  font-size: clamp(1.95rem, 2.55vw, 2.8rem);
}

.hero--simple {
  grid-template-columns: minmax(0, 1fr);
  min-height: auto;
  padding-top: clamp(38px, 5vw, 62px);
  padding-bottom: clamp(34px, 5vw, 54px);
}

.hero__lead,
.about-hero p {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.45vw, 1.16rem);
  line-height: 1.58;
}

.hero__content h1,
.about-hero h1 {
  margin-bottom: 16px;
}

.hero__lead {
  margin-bottom: 22px;
}

.hero__actions,
.quiz__actions,
.cta-band__actions,
.seller-comfort__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero__phone {
  display: inline-block;
  margin-top: 18px;
  color: var(--accent-dark);
  font-size: 1.08rem;
  font-weight: 800;
  text-decoration: none;
}

.hero__portrait,
.about-portrait {
  margin: 0;
  justify-self: end;
  width: min(100%, 390px);
}

.about-portrait {
  width: min(100%, 360px);
}

.hero__portrait picture,
.about-portrait picture {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #dce8e6;
  box-shadow: var(--shadow);
}

.hero__portrait img,
.about-portrait img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.hero__portrait figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.eyebrow {
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.statement,
.section,
.quiz-section,
.video-block,
.cta-band,
.not-found {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--section-y) 18px;
}

.statement p {
  max-width: 940px;
  font-size: clamp(1.18rem, 2.2vw, 1.72rem);
  line-height: 1.42;
}

.section--tinted,
.video-block,
.cta-band {
  max-width: none;
  padding-right: max(18px, calc((100vw - var(--max)) / 2));
  padding-left: max(18px, calc((100vw - var(--max)) / 2));
  background: var(--surface-strong);
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(260px, 0.62fr);
  gap: var(--section-gap);
  align-items: end;
  margin-bottom: var(--section-gap);
}

.section-header p {
  color: var(--muted);
  line-height: 1.58;
}

.tag-grid,
.check-grid,
.risk-grid,
.route-grid,
.service-grid,
.scenario-grid {
  display: grid;
  gap: var(--card-gap);
}

.tag-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.need-help-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--card-gap);
}

.need-help-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 26px rgba(23, 35, 38, 0.045);
}

.need-help-list summary {
  min-height: 58px;
  padding: 16px 44px 16px 18px;
  color: var(--text);
  font-weight: 900;
  line-height: 1.22;
  cursor: pointer;
  list-style: none;
  position: relative;
}

.need-help-list summary::-webkit-details-marker {
  display: none;
}

.need-help-list summary::after {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface-strong);
  color: var(--accent-dark);
  content: "+";
  display: grid;
  place-items: center;
  font-size: 1rem;
  line-height: 1;
}

.need-help-list details[open] summary::after {
  content: "−";
}

.need-help-list p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
  line-height: 1.58;
}

.tag-grid span,
.check-grid article,
.risk-card,
.route-card,
.service-card,
.scenario-card,
.note-box,
.contact-panel,
.quiz,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 26px rgba(23, 35, 38, 0.045);
}

.tag-grid span {
  padding: 14px 16px;
  font-weight: 800;
}

.check-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.check-grid article {
  min-height: 128px;
  padding: 18px;
}

.check-grid img {
  margin-bottom: 14px;
}

.risk-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.risk-card,
.route-card,
.scenario-card,
.note-box,
.contact-panel {
  padding: 20px;
}

.risk-card p,
.route-card p,
.scenario-card p,
.service-card p,
.note-box p {
  color: var(--muted);
  line-height: 1.58;
}

.route-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.route-card {
  display: flex;
  min-height: 230px;
  flex-direction: column;
}

.text-link {
  color: var(--accent-dark);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.service-grid {
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.service-grid--preview {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 20px;
}

.service-card__cols {
  display: grid;
  gap: 14px;
  margin: 12px 0 14px;
  flex: 1;
}

.service-card ul,
.risk-card ul,
.note-box ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.section-link {
  margin-top: 18px;
}

.service-card .text-link,
.route-card .text-link,
.scenario-card .text-link {
  margin-top: auto;
  padding-top: 16px;
}

.scenario-card {
  display: flex;
  flex-direction: column;
}

.quiz {
  padding: 20px;
}

.quiz__progress {
  height: 8px;
  overflow: hidden;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--surface-strong);
}

.quiz__progress span {
  display: block;
  width: 25%;
  height: 100%;
  background: var(--accent);
  transition: width 0.2s ease;
}

.quiz__step {
  display: none;
}

.quiz__step.is-active {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.quiz__step h3,
.quiz__result h3 {
  grid-column: 1 / -1;
}

.quiz button {
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.quiz button:hover {
  border-color: var(--accent);
}

.quiz__result[hidden] {
  display: none;
}

.quiz__result ul {
  padding-left: 20px;
}

.step-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.step-list li {
  position: relative;
  min-height: 118px;
  padding: 20px 20px 20px 68px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-weight: 800;
  counter-increment: steps;
}

.step-list li::before {
  position: absolute;
  top: 22px;
  left: 20px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  content: counter(steps);
}

.section--split,
.video-block,
.cta-band,
.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 0.72fr);
  gap: var(--section-gap);
  align-items: center;
}

.seller-comfort {
  position: relative;
  overflow: hidden;
}

.seller-comfort::before {
  position: absolute;
  inset: 18px auto auto 18px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: rgba(199, 122, 56, 0.12);
  content: "";
}

.seller-comfort > * {
  position: relative;
}

.seller-comfort p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.58;
}

.seller-comfort__actions {
  margin-top: clamp(22px, 2.2vw, 30px);
}

.seller-comfort__panel {
  border-color: rgba(199, 122, 56, 0.34);
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.92), rgba(250, 246, 238, 0.92)),
    var(--surface);
}

.video-block,
.cta-band {
  margin-top: 12px;
}

.scenario-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  padding: 0 18px;
}

.faq-list summary {
  min-height: 56px;
  padding: 16px 0;
  font-weight: 900;
  cursor: pointer;
}

.faq-list p {
  color: var(--muted);
}

.breadcrumbs {
  max-width: var(--max);
  margin: 22px auto 0;
  padding: 0 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-buttons--compact .button {
  min-height: 42px;
  padding: 9px 12px;
}

.legal-text {
  max-width: 860px;
}

.not-found {
  min-height: 62vh;
}

.site-footer {
  padding: 42px max(18px, calc((100vw - var(--max)) / 2)) 88px;
  background:
    linear-gradient(135deg, #152224, #0d3a38 72%, #12302f);
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(190px, 0.55fr) minmax(260px, 0.85fr);
  gap: 36px;
}

.site-footer p,
.site-footer a,
.site-footer small {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer .button--primary {
  color: #fff;
}

.site-footer .button--secondary {
  background: #fff;
  border-color: #fff;
  color: var(--text);
}

.site-footer .button--ghost {
  border-color: rgba(255, 255, 255, 0.54);
  color: #fff;
}

.site-footer .contact-buttons {
  max-width: 390px;
}

.site-footer .contact-buttons .button {
  flex: 1 1 118px;
}

.site-footer h2 {
  font-size: 1rem;
}

.footer-nav {
  display: grid;
  gap: 8px;
}

.developer-credit {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  text-align: center;
}

.developer-credit a {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
  text-decoration: none;
}

.developer-credit a:hover {
  color: #fff;
}

.mobile-cta {
  position: fixed;
  right: 10px;
  bottom: 10px;
  left: 10px;
  z-index: 25;
  display: none;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.mobile-cta a {
  min-height: 50px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.mobile-cta a + a {
  border-left: 1px solid rgba(255, 255, 255, 0.24);
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand actions";
    row-gap: 0;
  }

  .menu-button {
    display: block;
    justify-self: end;
  }

  .main-nav,
  .header-actions {
    display: none;
  }

  .main-nav.is-open {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    justify-content: stretch;
    gap: 0;
    margin-top: 10px;
    padding: 5px;
  }

  .main-nav.is-open a {
    min-height: 44px;
    padding: 11px 10px;
    border-top: 1px solid var(--line);
  }

  .service-grid--preview,
  .route-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  :root {
    --section-y: 30px;
    --section-gap: 18px;
    --card-gap: 10px;
  }

  body {
    padding-bottom: 68px;
    font-size: 16px;
    line-height: 1.62;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(1.5rem, 6.2vw, 1.95rem);
    line-height: 1.16;
  }

  .hero--with-image h1,
  .hero--simple h1,
  .about-hero h1 {
    font-size: clamp(1.48rem, 6vw, 1.9rem);
    line-height: 1.16;
  }

  h2 {
    font-size: clamp(1.28rem, 5vw, 1.62rem);
    line-height: 1.18;
  }

  h3 {
    font-size: 1rem;
  }

  .site-header {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .hero,
  .about-hero,
  .section--split,
  .video-block,
  .cta-band,
  .section-header {
    grid-template-columns: 1fr;
  }

  .hero,
  .about-hero {
    min-height: auto;
    padding-top: 26px;
    padding-bottom: 28px;
  }

  .hero__content h1,
  .about-hero h1 {
    margin-bottom: 12px;
  }

  .hero__lead,
  .about-hero p {
    font-size: 0.98rem;
    line-height: 1.56;
  }

  .hero__lead {
    margin-bottom: 18px;
  }

  .statement p {
    font-size: 1.08rem;
    line-height: 1.5;
  }

  .section-header {
    align-items: start;
  }

  .hero__portrait {
    order: -1;
  }

  .hero__portrait picture,
  .about-portrait picture {
    max-width: 420px;
    margin: 0 auto;
  }

  .hero__portrait,
  .about-portrait {
    justify-self: center;
    width: min(100%, 320px);
  }

  .hero__portrait figcaption {
    font-size: 0.84rem;
    text-align: center;
  }

  .risk-card,
  .route-card,
  .scenario-card,
  .service-card,
  .note-box,
  .contact-panel,
  .quiz {
    padding: 18px;
  }

  .check-grid article {
    min-height: auto;
    padding: 16px;
  }

  .step-list li {
    min-height: auto;
    padding: 18px 18px 18px 62px;
  }

  .step-list li::before {
    top: 18px;
    left: 18px;
  }

  .service-grid--preview,
  .route-grid {
    grid-template-columns: 1fr;
  }

  .buyer-check-grid {
    display: block;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 10px 26px rgba(23, 35, 38, 0.045);
  }

  .buyer-check-grid article {
    position: relative;
    min-height: auto;
    padding: 12px 0 12px 28px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .buyer-check-grid article + article {
    border-top: 1px solid var(--line);
  }

  .buyer-check-grid article::before {
    position: absolute;
    top: 20px;
    left: 2px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 5px rgba(8, 117, 111, 0.12);
    content: "";
  }

  .buyer-check-grid h3 {
    margin: 0;
    font-size: 1rem;
  }

  .route-card {
    min-height: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .mobile-cta {
    display: grid;
  }
}

@media (max-width: 430px) {
  :root {
    --section-y: 26px;
    --section-gap: 16px;
  }

  .site-header {
    padding-right: 14px;
    padding-left: 14px;
  }

  .brand {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 8px;
  }

  .brand__mark {
    width: 40px;
    height: 40px;
  }

  .brand small {
    font-size: 0.72rem;
  }

  .menu-button {
    width: 42px;
    height: 42px;
    padding: 9px;
  }

  .button,
  .hero__actions,
  .cta-band__actions,
  .quiz__actions,
  .seller-comfort__actions,
  .contact-buttons {
    width: 100%;
  }

  .button,
  .quiz__actions .button {
    width: 100%;
  }

  .quiz__step.is-active {
    grid-template-columns: 1fr;
  }
}
