/* TvorimTeplo.RU — базовые токены и типографика */
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/onest-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/onest-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --p-cream: oklch(0.925 0.091 91);
  --p-cream-light: oklch(0.966 0.043 94);
  --p-paper: oklch(0.989 0.009 145);
  --p-mint: oklch(0.84 0.114 144);
  --p-mint-soft: oklch(0.935 0.054 142);
  --p-forest: oklch(0.449 0.091 148);
  --p-forest-dark: oklch(0.326 0.067 150);
  --p-charcoal: oklch(0.254 0.012 85);
  --p-charcoal-soft: oklch(0.41 0.015 85);
  --p-line: oklch(0.79 0.03 95);
  --p-error: oklch(0.48 0.17 28);

  --surface-page: var(--p-paper);
  --surface-warm: var(--p-cream);
  --surface-soft: var(--p-cream-light);
  --text-main: var(--p-charcoal);
  --text-muted: var(--p-charcoal-soft);
  --accent-main: var(--p-forest);
  --accent-soft: var(--p-mint);

  --font-main: "Onest", "Arial", sans-serif;
  --container: 1400px;
  --space-section: 72px;
  --transition: 220ms ease-out;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text-main);
  background: var(--surface-page);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  color: var(--p-paper);
  background: var(--p-forest);
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.4rem, 8vw, 4.6rem);
}

h3 {
  font-size: 1.55rem;
  line-height: 1.14;
}

p {
  max-width: 70ch;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input {
  font: inherit;
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--p-forest);
  outline-offset: 4px;
}

.delivery-section :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--p-mint);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  color: var(--p-paper);
  background: var(--p-forest-dark);
  transform: translateY(-160%);
  transition: transform var(--transition);
}

.skip-link:focus {
  transform: translateY(0);
}

.section-kicker,
.contact-label,
.product__type,
.choice-item__label {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-kicker {
  margin-bottom: 20px;
  color: var(--p-forest);
}

.section-kicker--light {
  color: var(--p-mint);
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 13px 24px;
  border: 0;
  border-radius: 999px;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: color var(--transition), background-color var(--transition), transform var(--transition);
}

.button span {
  font-size: 1.15em;
}

.button:disabled {
  opacity: 0.62;
  cursor: wait;
  transform: none;
}

.button--primary {
  color: var(--p-charcoal);
  background: var(--p-mint);
}

.button--primary:hover,
.button--primary:active {
  color: var(--p-mint);
  background: var(--p-charcoal);
  transform: translateY(-2px);
}

.button--mint {
  color: var(--p-charcoal);
  background: var(--p-mint);
}

.button--mint:hover,
.button--mint:active {
  color: var(--p-charcoal);
  background: var(--p-paper);
  transform: translateY(-2px);
}

.button--dark {
  color: var(--p-paper);
  background: var(--p-charcoal);
}

.button--dark:hover,
.button--dark:active {
  color: var(--p-charcoal);
  background: var(--p-mint);
  transform: translateY(-2px);
}

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 16px;
  color: var(--p-forest);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  transition: color var(--transition), gap var(--transition);
}

.text-link:hover {
  gap: 22px;
  color: var(--p-charcoal);
}

.text-link--light {
  color: var(--p-mint);
}

.text-link--light:hover {
  color: var(--p-paper);
}

/* Шапка и навигация */
.utility {
  color: var(--p-paper);
  background: var(--p-forest-dark);
  font-size: 0.75rem;
  line-height: 1.35;
}

.utility__inner {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.utility__inner p:last-child {
  display: none;
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  background: var(--p-paper);
  border-bottom: 1px solid var(--p-line);
}

.site-header__inner {
  position: relative;
  display: flex;
  min-height: 74px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.055em;
}

.brand__logo {
  width: 190px;
  height: auto;
  flex: 0 0 auto;
}

.brand__logo--footer {
  width: 148px;
}

.brand__mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  color: var(--p-forest);
}

.brand__text {
  font-size: 1.18rem;
}

.brand__text span {
  color: var(--p-forest);
}

.menu-toggle {
  display: none;
  min-width: 48px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0;
  color: var(--p-charcoal);
  background: transparent;
  border: 0;
  font-size: 0.82rem;
  font-weight: 600;
}

.js .menu-toggle {
  display: inline-flex;
}

.menu-toggle__icon {
  position: relative;
  display: block;
  width: 22px;
  height: 16px;
}

.menu-toggle__icon i {
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform var(--transition), top var(--transition);
}

.menu-toggle__icon i:first-child {
  top: 3px;
}

.menu-toggle__icon i:last-child {
  top: 11px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:first-child {
  top: 7px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:last-child {
  top: 7px;
  transform: rotate(-45deg);
}

.main-nav {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  gap: 4px 24px;
  padding: 0 0 18px;
}

.js .main-nav {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  display: none;
  padding: 20px;
  background: var(--p-paper);
  border-bottom: 1px solid var(--p-line);
}

.js .main-nav.is-open {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.main-nav a {
  display: flex;
  min-height: 48px;
  align-items: center;
  font-weight: 550;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 6px;
  transition: color var(--transition), text-decoration-color var(--transition);
}

.main-nav a:hover {
  color: var(--p-forest);
  text-decoration-color: currentColor;
}

.header-phone {
  display: none;
  min-height: 48px;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 650;
}

.header-phone:hover {
  color: var(--p-forest);
}

/* Первый экран */
.hero {
  overflow: hidden;
  background: var(--p-cream);
}

.hero__grid {
  display: grid;
}

.hero__content {
  padding-block: 52px 44px;
}

.location-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  color: var(--p-forest-dark);
  font-size: 0.86rem;
  font-weight: 650;
}

.location-label span {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  background: var(--p-forest);
  border-radius: 50%;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 12vw, 5.5rem);
  font-weight: 750;
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.hero h1 em {
  color: var(--p-forest);
  font-style: normal;
  font-weight: 500;
}

.hero__lead {
  margin-top: 28px;
  font-size: 1.05rem;
  line-height: 1.6;
}

.hero .button {
  width: 100%;
  margin-top: 28px;
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 40px;
  padding: 22px 0 0;
  border-top: 1px solid color-mix(in oklch, var(--p-charcoal) 30%, transparent);
  list-style: none;
}

.hero__facts li {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero__facts strong {
  color: var(--p-forest);
  font-size: 1.9rem;
  font-weight: 500;
  line-height: 1;
}

.hero__facts span {
  font-size: 0.72rem;
  line-height: 1.4;
}

.hero__visual {
  position: relative;
  min-height: 380px;
  margin-inline: -20px;
  overflow: hidden;
  background: var(--p-forest-dark);
}

.hero__visual img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  object-position: 62% center;
}

.hero__photo-note {
  position: absolute;
  right: 20px;
  bottom: 20px;
  padding: 12px 16px;
  color: var(--p-charcoal);
  background: var(--p-cream-light);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
}

/* Каталог и карточки товаров */
.products-section {
  padding-block: var(--space-section);
}

.section-heading {
  margin-bottom: 40px;
}

.section-heading h2 {
  max-width: 12ch;
}

.section-heading > p {
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.products-grid {
  display: grid;
  gap: 32px;
}

.product {
  align-self: start;
  scroll-margin-top: 100px;
}

.product--dry {
  background: var(--p-cream-light);
}

.product--natural {
  background: var(--p-mint-soft);
}

.product__image-wrap {
  position: relative;
  aspect-ratio: 1 / 0.82;
  overflow: hidden;
  background: var(--p-cream);
}

.product__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 280ms ease-out;
}

.product:hover .product__image {
  transform: scale(1.025);
}

.product__index {
  position: absolute;
  top: 16px;
  left: 16px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--p-charcoal);
  background: var(--p-cream-light);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
}

.product__body {
  padding: 28px 20px 24px;
}

.product__type {
  margin-bottom: 14px;
  color: var(--p-forest);
}

.product h3 {
  max-width: 18ch;
  font-size: clamp(1.75rem, 6vw, 2.45rem);
}

.product__description {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.product__specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 24px;
  padding-block: 18px;
  border-top: 1px solid color-mix(in oklch, var(--p-charcoal) 20%, transparent);
  border-bottom: 1px solid color-mix(in oklch, var(--p-charcoal) 20%, transparent);
}

.product__specs dt {
  margin-bottom: 5px;
  color: var(--text-muted);
  font-size: 0.7rem;
}

.product__specs dd {
  font-size: 0.79rem;
  font-weight: 650;
  line-height: 1.35;
}

/* Формы заказа */
.order-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.form-field {
  min-width: 0;
}

.form-field label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.75rem;
  font-weight: 650;
}

.form-field input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  color: var(--p-charcoal);
  background: var(--p-paper);
  border: 1.5px solid var(--p-charcoal);
  border-radius: 0;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-field input::placeholder {
  color: var(--p-charcoal-soft);
  opacity: 1;
}

.form-field input:focus {
  border-color: var(--p-forest);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--p-mint) 70%, transparent);
}

.form-field input[aria-invalid="true"] {
  border-color: var(--p-error);
}

.field-error {
  display: block;
  min-height: 0;
  margin-top: 5px;
  color: var(--p-error);
  font-size: 0.75rem;
  line-height: 1.35;
}

.field-error:not(:empty) {
  min-height: 1.1em;
}

.order-form .button {
  width: 100%;
  margin-top: 2px;
}

.form-note {
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.form-status {
  display: none;
  padding: 12px 14px;
  color: var(--p-paper);
  background: var(--p-forest-dark);
  font-size: 0.82rem;
  line-height: 1.45;
}

.form-status:not(:empty) {
  display: block;
}

.form-status a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-status--error {
  color: var(--p-paper);
  background: var(--p-error);
}

.form-status--loading {
  opacity: 0.82;
}

.form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.consent-field {
  display: flex;
  grid-column: 1 / -1;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1.45;
  cursor: pointer;
}

.consent-field input {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin: 1px 0 0;
  accent-color: var(--p-forest);
}

.consent-field a {
  color: var(--p-forest-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent-field.is-error {
  color: var(--p-error);
}

/* Выбор дров */
.choice-section {
  padding-block: var(--space-section);
  background: var(--p-cream);
}

.choice-section__title {
  max-width: 15ch;
}

.choice-section__title span {
  color: var(--p-forest);
  font-weight: 500;
}

.choice-grid {
  display: grid;
  gap: 40px;
  margin-top: 48px;
}

.choice-item {
  padding-top: 24px;
  border-top: 2px solid var(--p-charcoal);
}

.choice-item__label {
  margin-bottom: 20px;
  color: var(--p-forest);
}

.choice-item h3 {
  max-width: 20ch;
  font-size: 1.85rem;
}

.choice-item > p:not(.choice-item__label) {
  margin-top: 18px;
}

.choice-item ul {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding: 0;
  list-style: none;
}

.choice-item li {
  position: relative;
  padding-left: 20px;
}

.choice-item li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 2px;
  background: var(--p-forest);
  content: "";
}

.choice-item .text-link {
  margin-top: 22px;
}

/* Доставка и шаги */
.delivery-section {
  padding-block: var(--space-section);
  color: var(--p-paper);
  background: var(--p-forest-dark);
}

.delivery-section__grid {
  display: grid;
  gap: 56px;
}

.delivery-section__intro h2 {
  max-width: 13ch;
}

.delivery-section__intro > p:not(.section-kicker) {
  margin-top: 24px;
  color: var(--p-mint-soft);
}

.delivery-section__intro .button {
  margin-top: 28px;
}

.steps-list {
  padding: 0;
  list-style: none;
}

.steps-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding-block: 28px;
  border-top: 1px solid color-mix(in oklch, var(--p-paper) 22%, transparent);
}

.steps-list li:last-child {
  border-bottom: 1px solid color-mix(in oklch, var(--p-paper) 22%, transparent);
}

.steps-list__number {
  color: var(--p-mint);
  font-size: 0.85rem;
  font-weight: 650;
}

.steps-list h3 {
  font-size: 1.6rem;
}

.steps-list p {
  margin-top: 12px;
  color: var(--p-mint-soft);
  font-size: 0.94rem;
}

/* Вопросы */
.faq-section {
  padding-block: var(--space-section);
}

.faq-section__grid {
  display: grid;
  gap: 40px;
}

.faq-section__note {
  margin-top: 24px;
  color: var(--text-muted);
}

.faq-section__note a {
  color: var(--p-forest);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.faq-list details {
  border-top: 1px solid var(--p-line);
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--p-line);
}

.faq-list summary,
.requisites summary {
  position: relative;
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 18px;
  font-weight: 650;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker,
.requisites summary::-webkit-details-marker {
  display: none;
}

.faq-list summary span,
.requisites summary span {
  position: relative;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.faq-list summary span::before,
.faq-list summary span::after,
.requisites summary span::before,
.requisites summary span::after {
  position: absolute;
  top: 9px;
  left: 2px;
  width: 16px;
  height: 2px;
  background: var(--p-forest);
  content: "";
  transition: transform var(--transition);
}

.faq-list summary span::after,
.requisites summary span::after {
  transform: rotate(90deg);
}

.faq-list details[open] summary span::after,
.requisites[open] summary span::after {
  transform: rotate(0);
}

.faq-list details > p {
  max-width: 62ch;
  padding: 0 0 24px;
  color: var(--text-muted);
}

/* Общая заявка */
.order-section {
  padding-block: var(--space-section) calc(var(--space-section) + 20px);
  background: var(--p-cream);
}

.order-section__grid {
  display: grid;
  gap: 40px;
}

.order-section__form-wrap {
  padding: 28px 20px;
  background: var(--p-paper);
  box-shadow: 16px 16px 0 var(--p-mint);
}

.order-section__form-wrap > p {
  margin-bottom: 8px;
}

.order-form--final {
  margin-top: 24px;
}

/* Контакты */
.contacts-section {
  padding-block: var(--space-section);
  background: var(--p-mint-soft);
}

.contacts-grid {
  display: grid;
  gap: 48px;
  margin-top: 48px;
}

.contact-label {
  margin-bottom: 14px;
  color: var(--p-forest);
}

.contacts-phone {
  display: inline-block;
  font-size: clamp(1.9rem, 5.4vw, 4.6rem);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.055em;
  white-space: nowrap;
  transition: color var(--transition);
}

.contacts-phone:hover {
  color: var(--p-forest);
}

.contacts-main .button {
  margin-top: 24px;
}

.contacts-social {
  margin-top: 32px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-link {
  display: inline-flex;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  align-items: center;
  justify-content: center;
  color: var(--p-charcoal);
  border: 1.5px solid var(--p-charcoal);
  border-radius: 50%;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1;
  transition: color var(--transition), background-color var(--transition), transform var(--transition);
}

.social-link svg {
  width: 25px;
  height: 25px;
}

.social-link--max {
  font-size: 0.65rem;
  letter-spacing: -0.03em;
}

.social-link:hover,
.social-link:active {
  color: var(--p-mint-soft);
  background: var(--p-charcoal);
  transform: translateY(-2px);
}

.contact-details {
  display: grid;
  gap: 0;
}

.contact-row {
  padding-block: 24px;
  border-top: 1px solid color-mix(in oklch, var(--p-charcoal) 25%, transparent);
}

.contact-row:last-child {
  border-bottom: 1px solid color-mix(in oklch, var(--p-charcoal) 25%, transparent);
}

.contact-row > p:not(.contact-label) {
  font-size: 1.06rem;
}

.contact-row .text-link {
  margin-top: 12px;
}

.contact-email {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 650;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.requisites {
  margin-top: 40px;
  border-top: 1px solid color-mix(in oklch, var(--p-charcoal) 25%, transparent);
  border-bottom: 1px solid color-mix(in oklch, var(--p-charcoal) 25%, transparent);
}

.requisites__grid {
  display: grid;
  gap: 20px;
  padding-bottom: 28px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* Подвал */
.site-footer {
  padding-block: 40px 24px;
  color: var(--p-paper);
  background: var(--p-charcoal);
}

.site-footer__top {
  display: grid;
  gap: 24px;
  align-items: start;
}

.brand--footer .brand__mark,
.brand--footer .brand__text span {
  color: var(--p-mint);
}

.site-footer__top > p {
  color: var(--p-mint-soft);
  font-size: 0.88rem;
}

.site-footer__top .text-link {
  width: fit-content;
}

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 32px;
  padding-top: 20px;
  color: var(--p-mint-soft);
  border-top: 1px solid color-mix(in oklch, var(--p-paper) 20%, transparent);
  font-size: 0.74rem;
}

.footer-policy {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-policy:hover {
  color: var(--p-paper);
}

.footer-credit a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--p-mint);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-credit a:hover {
  color: var(--p-paper);
}

/* Служебные страницы и документы */
.policy-section,
.page-head {
  padding-block: var(--space-section);
}

.policy-section .container,
.page-head .container {
  max-width: 980px;
}

.policy-section h1,
.page-head__title {
  font-size: clamp(2.4rem, 8vw, 4.6rem);
}

.policy-section h2 {
  margin-top: 40px;
  font-size: clamp(1.45rem, 4vw, 2rem);
  line-height: 1.2;
}

.policy-section p,
.page-head__sub {
  margin-top: 16px;
}

.page-head .button {
  margin-top: 28px;
}

.page-head--auto {
  padding-bottom: 0;
}

.site-cookie--popup {
  position: fixed;
  z-index: 40;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: flex;
  max-width: 560px;
  align-items: center;
  gap: 20px;
  padding: 20px;
  color: var(--p-paper);
  background: var(--p-forest-dark);
  box-shadow: 0 16px 50px color-mix(in oklch, var(--p-charcoal) 28%, transparent);
}

.site-cookie--popup[hidden] {
  display: none;
}

.site-cookie--popup .button {
  flex: 0 0 auto;
}

.site-cookie--footer {
  margin-top: 24px;
  padding-top: 20px;
  color: var(--p-mint-soft);
  border-top: 1px solid color-mix(in oklch, var(--p-paper) 20%, transparent);
  font-size: 0.78rem;
}

/* Адаптивность */
@media (min-width: 600px) {
  .utility__inner p:last-child {
    display: block;
  }

  .hero .button {
    width: auto;
    min-width: 240px;
  }

  .hero__facts li {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .hero__facts span {
    font-size: 0.78rem;
  }

  .product__body {
    padding: 32px;
  }

  .order-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-form .button,
  .order-form .form-note,
  .order-form .form-status {
    grid-column: 1 / -1;
  }

  .order-form .button {
    width: fit-content;
    min-width: 250px;
    justify-self: start;
  }

  .order-section__form-wrap {
    padding: 36px;
    box-shadow: 24px 24px 0 var(--p-mint);
  }

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

  .site-footer__top {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__top .text-link {
    grid-column: 1 / -1;
  }

  .site-footer__bottom {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
  }

  .site-cookie--popup {
    right: 24px;
    bottom: 24px;
    left: auto;
  }
}

@media (min-width: 900px) {
  :root {
    --space-section: 104px;
  }

  .container {
    padding-inline: 40px;
  }

  .site-header__inner {
    min-height: 82px;
    flex-wrap: nowrap;
  }

  .brand__logo {
    width: 230px;
  }

  .brand__logo--footer {
    width: 160px;
  }

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

  .brand__text {
    font-size: 1.3rem;
  }

  .js .menu-toggle,
  .menu-toggle {
    display: none;
  }

  .main-nav,
  .js .main-nav {
    position: static;
    display: flex;
    width: auto;
    flex-direction: row;
    gap: 24px;
    padding: 0;
    background: transparent;
    border: 0;
  }

  .header-phone {
    display: inline-flex;
  }

  .hero__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    min-height: 620px;
    padding-inline: 0;
  }

  .hero__content {
    grid-column: 1 / span 6;
    align-self: center;
    padding: 64px 40px;
  }

  .hero h1 {
    font-size: clamp(3.8rem, 6.4vw, 6rem);
  }

  .hero__visual {
    grid-column: 7 / -1;
    min-height: 620px;
    margin-inline: 0;
  }

  .hero__visual img {
    min-height: 620px;
  }

  .section-heading--split {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 64px;
    align-items: end;
  }

  .section-heading > p {
    margin-top: 0;
    padding-bottom: 8px;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 32px;
  }

  .product:nth-child(even) {
    margin-top: 80px;
  }

  .product:nth-child(n + 3) {
    margin-top: 0;
  }

  .product:nth-child(4) {
    margin-top: 80px;
  }

  .choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 64px;
  }

  .choice-item--natural {
    margin-top: 72px;
  }

  .delivery-section__grid {
    grid-template-columns: 5fr 6fr;
    gap: 80px;
    align-items: start;
  }

  .delivery-section__intro {
    position: sticky;
    top: 120px;
  }

  .steps-list li {
    grid-template-columns: 64px 1fr;
    gap: 24px;
    padding-block: 36px;
  }

  .faq-section__grid {
    grid-template-columns: 4fr 7fr;
    gap: 80px;
  }

  .order-section__grid {
    grid-template-columns: 5fr 6fr;
    gap: 72px;
    align-items: center;
  }

  .contacts-grid {
    grid-template-columns: 7fr 4fr;
    gap: 80px;
    align-items: start;
  }

  .site-footer__top {
    grid-template-columns: 1fr 1fr auto;
    align-items: center;
  }

  .site-footer__top .text-link {
    grid-column: auto;
  }
}

@media (min-width: 1200px) {
  .container {
    padding-inline: 48px;
  }

  .main-nav,
  .js .main-nav {
    gap: 34px;
  }

  .hero__content {
    grid-column: 1 / span 5;
    padding-inline: 48px 24px;
  }

  .hero__visual {
    grid-column: 6 / -1;
  }

  .hero h1 {
    font-size: clamp(4rem, 5.5vw, 5.5rem);
  }

  .products-grid {
    gap: 56px 48px;
  }

  .product__body {
    padding: 36px 40px 40px;
  }

  .product h3 {
    font-size: 2.35rem;
  }

  .order-form {
    gap: 18px 14px;
  }

  .choice-grid {
    gap: 96px;
  }

  .delivery-section__grid,
  .faq-section__grid,
  .order-section__grid {
    gap: 120px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

  .product:hover .product__image,
  .button:hover,
  .button:active {
    transform: none;
  }
}
