:root {
  color-scheme: light;
  --background: #fdfdfc;
  --text: #000;
  --muted: #48423c;
  --line: rgb(0 0 0 / 16%);
  --soft: #f5f2ec;
  --danger-soft: #f4eeee;
  --success-soft: #eef2ef;
  --focus: #4a3f34;
  --radius: 4px;
  --content-width: 680px;
  --page-gutter: clamp(24px, 5vw, 48px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--background);
  font-family: "Times New Roman", Times, serif;
  font-size: 18px;
  line-height: 1.5;
}

button,
input,
select {
  font: inherit;
}

button {
  color: var(--text);
}

a,
a:visited,
a:hover {
  color: var(--text);
}

h1,
h2,
p,
li,
a,
button,
label,
span,
textarea {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

h1,
h2 {
  margin: 0 0 18px;
  font-weight: normal;
  line-height: 1.16;
}

h1 {
  font-size: clamp(34px, 7vw, 54px);
}

h2 {
  font-size: 34px;
}

p {
  margin: 0 0 16px;
}

.page-shell {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding-top: calc(28px + env(safe-area-inset-top));
  padding-right: max(var(--page-gutter), env(safe-area-inset-right));
  padding-bottom: calc(42px + env(safe-area-inset-bottom));
  padding-left: max(var(--page-gutter), env(safe-area-inset-left));
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 44px;
  font-size: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.back-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  text-align: right;
}

.intro-screen {
  display: flex;
  min-height: 62vh;
  padding-bottom: 24px;
  flex-direction: column;
  justify-content: center;
}

.intro-screen + .site-copy,
.intro-screen + .order-section {
  margin-top: 0;
}

.hero-illustration {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 4px 0 24px;
  border-radius: 18px;
}

.lead {
  max-width: 42rem;
  font-size: 18px;
  line-height: 1.45;
}

.lead-sub {
  max-width: 42rem;
}

.hero-price {
  margin-top: 2px;
  font-size: 18px;
  font-weight: 700;
}

.hero-price strong {
  font-weight: inherit;
}

.button-row {
  display: flex;
  margin-top: 22px;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.primary-button,
.button-link {
  display: inline-flex;
  min-height: 52px;
  padding: 13px 18px;
  border: 1px solid var(--text);
  border-radius: var(--radius);
  align-items: center;
  justify-content: center;
  color: var(--background);
  background: var(--text);
  font: inherit;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

a.primary-button,
a.primary-button:visited,
a.primary-button:hover,
a.primary-button:focus,
a.primary-button:active,
.primary-button:visited,
.primary-button:hover,
.primary-button:focus,
.primary-button:active,
.button-link:visited,
.button-link:hover,
.button-link:focus,
.button-link:active {
  color: var(--background);
  text-decoration: none;
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.primary-button:focus-visible,
.button-link:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.order-section,
.site-copy {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}


.gift-block {
  margin: 28px 0 8px;
}

.gift-banner {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.gift-note {
  margin-top: 14px;
  font-size: 17px;
  line-height: 1.45;
  color: var(--muted);
}

.order-section {
  scroll-margin-top: 16px;
}

.progress {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 18px;
}

.progress-bar {
  width: 100%;
  height: 6px;
  margin-top: 10px;
  overflow: hidden;
  background: rgb(0 0 0 / 10%);
}

.progress-bar span {
  display: block;
  width: 33%;
  height: 100%;
  background: var(--text);
  transition: width 0.2s ease;
}

.progress-bar span.step-2 {
  width: 66%;
}

.form-step {
  display: grid;
  gap: 14px;
  grid-column: 1 / -1;
}

.form-step[hidden] {
  display: none !important;
}

.form-grid .field-full {
  grid-column: 1 / -1;
}

.compact-consent {
  margin-top: 4px;
}

.residence-fields {
  display: grid;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
}

.residence-fields[hidden] {
  display: none !important;
}

.optional {
  color: var(--muted);
  font-weight: 400;
}

.required-mark {
  color: #8a3a3a;
  font-weight: 600;
}

.required-legend {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.form-grid {
  display: grid;
  min-width: 0;
  gap: 14px;
  margin-top: 22px;
}

.field {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 6px;
}

.field label,
.accuracy legend,
.accuracy-label {
  color: var(--text);
  font-size: 18px;
  margin: 0;
  white-space: normal;
  max-width: 100%;
}

.field input,
.field select,
.field textarea,
textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: #fff;
  font: inherit;
  resize: vertical;
}

input[type="date"],
input[type="time"] {
  display: block;
}

.field-hint {
  margin-top: 0;
  color: var(--muted);
  font-size: 12px;
}

.form-intro {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 18px;
}

.suggest-wrap {
  position: relative;
  display: grid;
  min-width: 0;
}

.suggestions {

  position: absolute;
  z-index: 40;
  top: calc(100% + 2px);
  right: 0;
  left: 0;
  border: 1px solid var(--line);
  background: #fff;
  max-height: min(320px, 45dvh);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.suggestions button {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  background: #fff;
  text-align: left;
  touch-action: manipulation;
}

.suggestions button:hover {
  background: var(--soft);
}

.accuracy {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  min-width: 0;
  max-width: 100%;
}

.accuracy-stack {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.accuracy-stack .accuracy-label,
.accuracy .accuracy-label {
  white-space: normal;
  width: 100%;
}

.accuracy-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.accuracy label {
  font-size: 18px;
}

.legal-consent {
  font-size: 16px;
  min-width: 0;
  max-width: 100%;
}

.accuracy label {
  display: flex;
  min-height: 44px;
  align-items: flex-start;
  gap: 8px;
  max-width: 100%;
}

.accuracy input,
.legal-consent input {
  width: 20px;
  min-width: 20px;
  height: 20px;
}

.attention,
.field-error,
.form-message,
.consent-requirement {
  margin: 0;
  padding: 12px 14px;
  border-left: 3px solid var(--text);
  background: var(--soft);
  font-size: 18px;
}

.field-error,
.form-message.error {
  border-color: #7d2f2f;
  background: var(--danger-soft);
}

.form-message.success {
  background: var(--success-soft);
}

.consent-requirement {
  color: var(--muted);
}

.legal-consent {
  display: flex;
  min-height: 44px;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.35;
}

.legal-consent input {
  margin-top: 1px;
  flex: 0 0 auto;
  accent-color: var(--text);
}

.inline-legal-link[aria-disabled="true"],
.legal-links a[aria-disabled="true"] {
  cursor: not-allowed;
  text-decoration-style: dotted;
}

.site-copy > section:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.site-copy section {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.site-copy ul {
  margin: 0 0 16px;
  padding-left: 1.35em;
  list-style-type: disc;
  max-width: 100%;
}

.site-copy li {
  margin-bottom: 5px;
  padding-right: 0;
}
.faq-section h3 {
  font-size: 16px;
  font-weight: bold;
  margin: 16px 0 4px;
}

.faq-section p {
  font-size: 16px;
}


.footer {
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 16px;
}

.footer p {
  margin: 0;
}

.legal-links {
  display: flex;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.legal-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.footer-link-button {
  display: inline-flex;
  min-height: 44px;
  padding: 0;
  border: 0;
  color: var(--text);
  background: transparent;
  text-decoration: underline;
  cursor: pointer;
  align-items: center;
  text-align: left;
  touch-action: manipulation;
}

.footer-link-button:focus-visible,
.cookie-secondary-button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.legal-note {
  margin-bottom: 12px !important;
  color: var(--muted);
}

.cookie-notice {
  position: fixed;
  z-index: 20;
  right: 18px;
  bottom: 18px;
  left: 18px;
  width: min(640px, calc(100% - 36px));
  max-height: calc(100dvh - 36px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  margin: 0 auto;
  padding: 20px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--background);
  box-shadow: 0 10px 34px rgb(0 0 0 / 16%);
}

.cookie-notice h2 {
  margin-bottom: 10px;
  font-size: 26px;
}

.cookie-notice p {
  margin-bottom: 14px;
  font-size: 18px;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-actions .primary-button,
.cookie-secondary-button {
  min-height: 44px;
  padding: 10px 14px;
}

.cookie-secondary-button {
  border: 1px solid var(--text);
  border-radius: var(--radius);
  color: var(--text);
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
}

@media (max-width: 640px) {
  body {
    font-size: 18px;
    line-height: 1.48;
  }

  .page-shell {
    padding-top: calc(24px + env(safe-area-inset-top));
    padding-right: max(28px, env(safe-area-inset-right));
    padding-bottom: calc(36px + env(safe-area-inset-bottom));
    padding-left: max(28px, env(safe-area-inset-left));
  }

  .site-header {
    margin-bottom: 28px;
    align-items: flex-start;
    font-size: 18px;
  }

  .brand img {
    width: 64px;
    height: 64px;
  }

  .intro-screen {
    min-height: 0;
    padding-bottom: 20px;
  }

  h1 {
    margin-bottom: 18px;
    font-size: clamp(32px, 9vw, 43px);
  }

  h2 {
    margin-bottom: 12px;
    font-size: clamp(25px, 7vw, 31px);
    line-height: 1.18;
  }

  .lead {
    font-size: 18px;
  }

  .hero-illustration {
    margin: 2px 0 24px;
    border-radius: 16px;
  }

  .hero-price {
    font-size: 18px;
  }

  .button-row {
    margin-top: 18px;
    gap: 8px;
  }

  .primary-button,
  .button-link {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
  }

  .order-section,
  .site-copy {
    margin-top: 32px;
    padding-top: 16px;
  }

  .progress {
    margin-bottom: 10px;
    font-size: 18px;
  }

  .progress-bar {
    height: 4px;
    margin-top: 6px;
  }

  .field input,
  .field select,
  .field textarea,
  textarea {
    min-height: 48px;
    padding: 11px 12px;
    font-size: 18px;
    max-width: 100%;
  }

  .field label,
  .accuracy legend,
  .accuracy-label,
  .accuracy label {
    font-size: 18px;
  }

  .field-hint {
    font-size: 12px;
  }

  .form-intro {
    font-size: 16px;
  }

  .site-copy section {
    margin-top: 22px;
    padding-top: 16px;
  }

  .legal-links {
    display: grid;
    gap: 8px;
  }

  .footer-link-button {
    width: fit-content;
  }

  .cookie-notice {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    left: max(14px, env(safe-area-inset-left));
    width: auto;
    max-height: calc(100dvh - 28px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    padding: 18px;
  }

  .cookie-notice h2 {
    font-size: 23px;
  }

  .cookie-actions {
    display: grid;
  }

  .cookie-actions .primary-button,
  .cookie-secondary-button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .page-shell {
    padding-right: max(24px, env(safe-area-inset-right));
    padding-left: max(24px, env(safe-area-inset-left));
  }

  .site-header {
    gap: 12px;
    margin-bottom: 24px;
  }

  .brand img {
    width: 60px;
    height: 60px;
  }

  .back-link {
    font-size: 18px;
  }

  h1 {
    font-size: clamp(30px, 9.2vw, 37px);
  }

  .site-copy ul {
    padding-left: 22px;
  }

  .form-grid {
    gap: 12px;
  }
}

@media (max-width: 340px) {
  .page-shell {
    padding-right: max(16px, env(safe-area-inset-right));
    padding-left: max(16px, env(safe-area-inset-left));
  }

  .site-header {
    flex-wrap: wrap;
  }

  h1 {
    font-size: 29px;
  }

  .cookie-notice {
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    left: max(10px, env(safe-area-inset-left));
    padding: 15px;
  }
}

@media (max-height: 560px) and (orientation: landscape) {
  .intro-screen {
    min-height: 0;
  }

  .cookie-notice {
    max-height: calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }
}

@media (hover: none) {
  .suggestions button:hover {
    background: #fff;
  }

  .suggestions button:active {
    background: var(--soft);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}


.care-section {
  margin: 2.5rem 0 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.care-section h2 {
  margin-bottom: 0.6rem;
}

.care-form {
  margin-top: 1.2rem;
}

.care-form textarea {
  width: 100%;
  min-height: 8rem;
  resize: vertical;
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
}

.care-form .optional {
  font-weight: normal;
  color: #666;
  font-size: 0.92em;
}

.care-form .field-full {
  grid-column: 1 / -1;
}

.button-link {
  cursor: pointer;
}

/* Компьютер и планшет: одна колонка, больше воздуха по краям, удобная длина строки */
@media (min-width: 768px) {
  :root {
    --content-width: 680px;
    --page-gutter: clamp(48px, 12vw, 160px);
  }

  body {
    font-size: 19px;
  }

  .page-shell {
    width: min(100%, calc(var(--content-width) + 2 * var(--page-gutter)));
    max-width: 100%;
    padding-top: calc(48px + env(safe-area-inset-top));
    padding-right: max(var(--page-gutter), env(safe-area-inset-right));
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
    padding-left: max(var(--page-gutter), env(safe-area-inset-left));
  }

  .site-header {
    margin-bottom: 56px;
  }

  .intro-screen {
    min-height: 70vh;
    padding-bottom: 40px;
  }

  h1 {
    font-size: clamp(40px, 4vw, 52px);
    margin-bottom: 22px;
    max-width: var(--content-width);
  }

  h2 {
    font-size: 34px;
    max-width: var(--content-width);
  }

  .lead,
  .lead-sub,
  .hero-price,
  .form-intro,
  .site-copy p,
  .site-copy li,
  .faq-section p {
    max-width: var(--content-width);
  }

  .lead,
  .lead-sub {
    font-size: 19px;
    line-height: 1.5;
  }

  .hero-illustration {
    display: block;
    width: 100%;
    max-width: var(--content-width);
    margin: 10px 0 28px;
    border-radius: 20px;
  }

  .button-row {
    margin-top: 28px;
    gap: 14px;
  }

  .primary-button,
  .button-link {
    width: auto;
    min-width: 220px;
    padding: 14px 24px;
  }

  .order-section,
  .site-copy {
    margin-top: 56px;
    padding-top: 32px;
    max-width: var(--content-width);
  }

  .site-copy section {
    margin-top: 36px;
    padding-top: 28px;
  }

  .form-grid,
  .form-step {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: var(--content-width);
  }

  .form-step > * {
    grid-column: auto;
  }

  .residence-fields,
  #adult-fields,
  #applicant-fields,
  #choice-fields,
  .care-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  #adult-fields[hidden],
  #applicant-fields[hidden],
  #choice-fields[hidden] {
    display: none !important;
  }
}

@media (min-width: 1200px) {
  :root {
    --page-gutter: clamp(80px, 18vw, 280px);
  }

  .page-shell {
    padding-top: calc(56px + env(safe-area-inset-top));
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  .intro-screen {
    min-height: 74vh;
  }
}
