:root {
  color-scheme: light;
  --ink: #142e2c;
  --muted: #4e6660;
  --paper: #f6f7ef;
  --white: #fff;
  --line: #d8dfd4;
  --lime: #d7ef78;
  --soft: #e8efdf;
  --radius: 22px;
  font: 16px/1.55 Inter, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
a { color: inherit; }
img { display: block; width: 100%; }
input, button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #457c38; outline-offset: 4px; }
section[id], article[id], details[id] { scroll-margin-top: 30px; }
.frame { width: min(1240px, calc(100% - 72px)); margin-inline: auto; }
.site-header { background: var(--paper); }
.header-inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.brand { display: inline-flex; flex-shrink: 0; align-items: center; gap: 10px; font-weight: 850; line-height: 1; text-decoration: none; }
.brand-mark { background: var(--lime); padding: 12px 10px; border-radius: 10px; font-size: 1.125rem; letter-spacing: -.08em; }
.brand small { display: block; color: var(--muted); font-size: .75rem; letter-spacing: .12em; margin-top: 5px; }
nav { display: flex; flex-wrap: wrap; gap: 8px 26px; }
nav a, .header-route { font-size: .925rem; font-weight: 650; text-decoration: none; }
nav a:hover, .header-route:hover { text-decoration: underline; text-underline-offset: 4px; }
.header-route { flex-shrink: 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; }
.test-note { padding: 6px 16px; text-align: center; background: var(--soft); color: var(--muted); font-size: .875rem; }

.hero { background: var(--ink); color: var(--white); padding: 48px 0; }
.hero-inner { display: grid; grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr); gap: clamp(24px, 4vw, 64px); align-items: stretch; }
.hero-copy { align-self: center; padding: 30px 0; }
.location { font-size: .94rem; color: #d2e3d6; font-weight: 600; margin-bottom: 21px; }
.location span { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); margin-right: 5px; }
h1 { font-size: clamp(2.8rem, 6.5vw, 5.85rem); line-height: 1; letter-spacing: -.075em; text-wrap: balance; }
.hero-lead { max-width: 430px; color: #d2e3d6; font-size: clamp(1.05rem, 1.7vw, 1.28rem); margin: 23px 0 29px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 11px 16px;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 750;
  text-decoration: none;
  transition: background-color .2s, border-color .2s;
}
.button:disabled { opacity: .55; cursor: default; }
.button-lime { color: var(--ink); background: var(--lime); }
.button-lime:hover { background: #e7f9a5; }
.button-dark { color: var(--white); background: var(--ink); }
.button-dark:hover { background: #29504a; }
.button-outline { border-color: #78918a; color: var(--white); background: transparent; }
.button-outline:hover { background: #24443e; }
.hero-link { display: inline-block; color: #d2e3d6; margin-top: 24px; text-underline-offset: 4px; }
.hero-photo { display: grid; min-height: 440px; border-radius: var(--radius); overflow: hidden; position: relative; isolation: isolate; background: #2c5048; }
.hero-photo img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.hero-photo figcaption { position: relative; align-self: end; background: #102724ed; padding: 11px 16px; margin: 14px; width: fit-content; border-radius: 9px; font-size: .9rem; }

.section { padding-block: clamp(52px, 7vw, 98px); }
.section-heading { display: flex; justify-content: space-between; gap: 16px 32px; align-items: end; margin-bottom: 28px; }
h2 { font-size: clamp(2rem, 4.4vw, 3.65rem); line-height: 1.08; letter-spacing: -.057em; text-wrap: balance; }
h3 { font-size: clamp(1.25rem, 2.1vw, 1.63rem); line-height: 1.2; letter-spacing: -.035em; }
.section-heading p { color: var(--muted); max-width: 320px; }
.tariffs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tariff { display: flex; flex-direction: column; padding: clamp(16px, 2vw, 26px); border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.tariff-featured { background: #e5efbd; border-color: #c9d696; }
.tariff p { margin-top: 10px; color: var(--muted); }
.price { display: grid; margin-top: auto; padding-top: 26px; }
.price strong { font-size: clamp(1.9rem, 4vw, 2.9rem); letter-spacing: -.06em; line-height: 1; }
.price span { font-weight: 700; margin-top: 7px; }
.section-note { color: var(--muted); font-size: .925rem; margin-top: 16px; }

.comparison { background: var(--soft); }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.choice { display: flex; flex-direction: column; align-items: start; padding: clamp(20px, 3.6vw, 44px); border-radius: var(--radius); }
.choice h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.choice-robot { background: var(--ink); color: var(--white); }
.choice-self { background: var(--white); border: 1px solid var(--line); }
.choice-summary { margin-top: 12px; }
.choice dl { width: 100%; margin-block: 22px 26px; flex: 1; }
.choice dt { font-weight: 750; padding-top: 13px; border-top: 1px solid var(--line); }
.choice-robot dt { border-color: #55756a; }
.choice dd { margin: 3px 0 12px; color: var(--muted); }
.choice-robot dd { color: #d2e3d6; }
.choice-link { margin-top: 12px; font-size: .92rem; text-underline-offset: 4px; }

.gallery { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 12px; }
.gallery-photo { background: var(--soft); border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; }
.gallery-photo img { height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-photo:hover img { transform: scale(1.04); }
.video-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.video-links a { display: inline-flex; align-items: center; gap: 8px; padding: 11px 15px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; font-weight: 700; }
.video-links a:hover { background: var(--soft); }

.loyalty { background: #e8efce; }
.loyalty-grid, .business { display: grid; align-items: start; grid-template-columns: 1fr 1fr; gap: clamp(22px, 5vw, 72px); }
.promo p, .business > div p { margin-top: 15px; max-width: 425px; }
.promo .button, .business > div .button { margin-top: 22px; }
.form-card { display: grid; align-content: start; gap: 12px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3.5vw, 35px); }
.form-card > p { color: var(--muted); }
.form-card label { font-size: .925rem; font-weight: 650; }
.form-card input:not([type=checkbox]) { display: block; width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid #a7b9ac; border-radius: 8px; background: #fff; color: var(--ink); }
.form-card label input:not([type=checkbox]) { margin-top: 4px; }
.form-card .button { justify-self: start; }
.form-card .form-status { font-size: .9rem; color: #225c42; }
.form-status:empty { display: none; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.check-label { display: flex; gap: 8px; align-items: baseline; }
.check-label input { accent-color: #36694e; }
.rules { border-top: 1px solid var(--line); }
.rules details { border-bottom: 1px solid var(--line); }
.rules summary { padding: 16px 0; font-size: 1.125rem; font-weight: 750; cursor: pointer; }
.rules details p, .rules details ul { margin: 0 0 14px 0; max-width: 740px; }
.rules details ul { padding-left: 22px; }

.footer { background: var(--ink); color: var(--white); padding: 52px 0 20px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 20px 36px; justify-content: space-between; padding-bottom: 30px; }
.footer h2 { font-size: clamp(1.75rem, 4vw, 3rem); }
.footer p { color: #d2e3d6; margin-top: 8px; }
.footer-links { display: grid; gap: 7px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; padding-top: 16px; color: #d2e3d6; border-top: 1px solid #55756a; font-size: .875rem; }

.cabinet-page { min-height: 100vh; background: #eaf0f4; }
.cabinet-main { width: min(100% - 36px, 420px); margin: 60px auto; }
.cabinet-main h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); letter-spacing: -.05em; margin-bottom: 12px; }
.cabinet-main .form-card { border-color: #cad9e1; }
.cabinet-main .button-dark { background: #294a63; }
.code-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; }
.cabinet-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cabinet-page .button-outline { color: #294a63; border-color: #9fb4c4; }
.cabinet-page .button-outline:hover { background: #eaf0f4; }

@media (max-width: 950px) {
  .frame { width: min(100% - 44px, 1240px); }
  .hero-inner { grid-template-columns: 1fr 1fr; }
  .hero-photo { min-height: 380px; }
  .tariffs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .frame { width: calc(100% - 32px); }
  .header-inner { padding-block: 13px; flex-wrap: wrap; gap: 12px; }
  nav { order: 3; width: 100%; gap: 6px 16px; }
  nav a { font-size: .875rem; }
  .hero { padding-block: 28px; }
  .hero-inner, .loyalty-grid, .business, .choice-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 8px 0; }
  .hero-photo { min-height: 0; aspect-ratio: 4 / 3; }
  .section-heading { display: grid; align-items: start; }
  .section-heading p { max-width: none; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-photo:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
}
@media (max-width: 380px) {
  .tariffs, .field-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
