/* ==========================================================================
   Stroi Market — стили (mobile-first)
   ========================================================================== */

:root {
  --ink: #1b232b;
  --concrete: #eef0ec;
  --white: #ffffff;
  --muted: #66717a;
  --accent: #ffc21a;

  --ink-80: rgba(27, 35, 43, 0.8);
  --ink-10: rgba(27, 35, 43, 0.1);
  --ink-06: rgba(27, 35, 43, 0.06);
  --white-70: rgba(255, 255, 255, 0.72);
  --white-15: rgba(255, 255, 255, 0.15);

  --font-head: "Unbounded", "Arial Black", sans-serif;
  --font-body: "Manrope", "Segoe UI", Arial, sans-serif;

  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 68px;
  --container: 1240px;
  --shadow: 0 18px 40px -24px rgba(27, 35, 43, 0.35);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  background: var(--white);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  padding-bottom: 96px;
}

body.is-locked {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

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

ul,
ol {
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

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

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  text-align: center;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--lg {
  min-height: 56px;
  padding: 16px 28px;
  font-size: 16px;
}

.btn--block {
  width: 100%;
}

.btn--primary {
  background: var(--accent);
  color: var(--ink);
}

.btn--primary:hover {
  background: var(--ink);
  color: var(--accent);
}

.btn--dark {
  background: var(--ink);
  color: var(--white);
}

.btn--dark:hover {
  background: var(--accent);
  color: var(--ink);
}

.btn--ghost {
  border-color: var(--white-70);
  color: var(--white);
}

.btn--ghost:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}

.btn--outline {
  border-color: var(--ink);
  color: var(--ink);
}

.btn--outline:hover {
  background: var(--ink);
  color: var(--white);
}

.btn--whatsapp {
  background: var(--ink);
  color: var(--white);
}

.btn--whatsapp:hover {
  background: var(--accent);
  color: var(--ink);
}

.btn.is-added {
  background: var(--ink);
  color: var(--accent);
}

.link {
  padding: 0;
  border: 0;
  background: none;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.link:hover {
  text-decoration-color: var(--accent);
}

.link--light {
  color: var(--white-70);
  font-weight: 500;
}

/* ---------- Header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--ink-10);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.logo__text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.logo__text span {
  color: var(--muted);
  margin-left: 4px;
}

.logo--light .logo__text {
  color: var(--white);
}

.logo--light .logo__text span {
  color: var(--white-70);
}

.nav {
  display: none;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header__phone,
.header__btn {
  display: none;
}

.request-badge {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--concrete);
  transition: background-color 0.25s var(--ease);
}

.request-badge:hover {
  background: var(--accent);
}

.request-badge__count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: var(--ink);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
  transition: transform 0.3s var(--ease);
}

.request-badge__count.is-bump {
  transform: scale(1.3);
}

.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--ink);
}

.burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  padding: 16px 20px 28px;
  background: var(--white);
  border-bottom: 1px solid var(--ink-10);
  box-shadow: var(--shadow);
  animation: menu-in 0.3s var(--ease);
}

.mobile-menu[hidden] {
  display: none;
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.mobile-menu__list a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--ink-10);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 18px;
}

.mobile-menu__phone {
  font-weight: 700;
  font-size: 20px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 32px;
  min-height: calc(100svh - var(--header-h));
  padding: 64px 0 24px;
  color: var(--white);
  background: var(--ink);
  isolation: isolate;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-zoom 1.6s var(--ease) both;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(27, 35, 43, 0.35) 0%, rgba(27, 35, 43, 0.9) 70%);
}

@keyframes hero-zoom {
  from {
    transform: scale(1.06);
  }
}

.hero__content > * {
  animation: rise 0.8s var(--ease) both;
}

.hero__content > *:nth-child(2) { animation-delay: 0.08s; }
.hero__content > *:nth-child(3) { animation-delay: 0.16s; }
.hero__content > *:nth-child(4) { animation-delay: 0.24s; }

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--accent);
}

.hero__title {
  max-width: 16ch;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(32px, 8.4vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero__subtitle {
  max-width: 560px;
  margin-top: 20px;
  font-size: 17px;
  color: var(--white-70);
  text-wrap: pretty;
}

.hero__buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.hero__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--white-15);
}

.hero__feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 8px 0 0;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.35;
}

.hero__feature .icon {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

/* ---------- Sections ---------- */

.section {
  padding: 72px 0;
}

.section--tint {
  background: var(--concrete);
}

.section--dark {
  background: var(--ink);
  color: var(--white);
}

.section__head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.section__title {
  max-width: 22ch;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(26px, 5.6vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section__lead {
  max-width: 620px;
  margin-top: 16px;
  font-size: 17px;
  color: var(--muted);
  text-wrap: pretty;
}

.section__footer {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* ---------- Categories ---------- */

.categories {
  display: grid;
  gap: 20px;
}

.category {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--concrete);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.category:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.category__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.category:hover .category__media img {
  transform: scale(1.05);
}

.category__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 24px;
}

.category__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.25;
}

.category__text {
  flex: 1;
  margin-bottom: 8px;
  color: var(--muted);
}

/* ---------- Tabs ---------- */

.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 -20px;
  padding: 0 20px 4px;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tabs__btn {
  flex-shrink: 0;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--ink-10);
  border-radius: 999px;
  background: var(--white);
  font-weight: 600;
  font-size: 14px;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.tabs__btn:hover {
  border-color: var(--ink);
}

.tabs__btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

/* ---------- Product cards ---------- */

.products {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.product {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--ink-06);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  animation: fade-in 0.4s var(--ease) both;
}

.products--stock .product {
  background: var(--concrete);
  border-color: transparent;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

.product:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--concrete);
  overflow: hidden;
}

.product__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.product:hover .product__media img {
  transform: scale(1.05);
}

.product__stock {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--white);
  font-size: 12px;
  font-weight: 700;
}

.product__stock::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 194, 26, 0.3);
}

.product__stock--order::before {
  background: var(--muted);
  box-shadow: 0 0 0 3px var(--ink-10);
}

.product__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
}

.product__maker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.product__title {
  font-weight: 700;
  font-size: 17px;
  line-height: 1.3;
  text-wrap: pretty;
}

.product__meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  font-size: 14px;
}

.product__meta dt {
  color: var(--muted);
}

.product__meta dd {
  font-weight: 600;
  text-align: right;
}

.product__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product__specs li {
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--white);
  font-size: 13px;
  font-weight: 600;
}

.product__footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--ink-10);
}

.product__price {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 20px;
}

.product__price small {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.product__price--request {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  color: var(--muted);
}

/* ---------- Request ---------- */

.request {
  display: grid;
  gap: 32px;
}

.request__selected {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--concrete);
}

.request__selected-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.request__subtitle {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 17px;
}

.request__total {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.request__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.request__list:empty {
  display: none;
}

.request-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--white);
  animation: fade-in 0.3s var(--ease) both;
}

.request-item__img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
}

.request-item__name {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
}

.request-item__meta {
  font-size: 13px;
  color: var(--muted);
}

.request-item__remove {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.request-item__remove:hover {
  background: var(--concrete);
  color: var(--ink);
}

.request-item__qty {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.request-item__qty-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ink-10);
  border-radius: 8px;
  overflow: hidden;
}

.qty__btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  background: var(--white);
  transition: background-color 0.2s var(--ease);
}

.qty__btn:hover {
  background: var(--concrete);
}

.qty__btn .icon {
  width: 16px;
  height: 16px;
}

.qty__input {
  width: 56px;
  height: 40px;
  border: 0;
  border-left: 1px solid var(--ink-10);
  border-right: 1px solid var(--ink-10);
  text-align: center;
  font-weight: 700;
  -moz-appearance: textfield;
  appearance: textfield;
}

.qty__input::-webkit-outer-spin-button,
.qty__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.request__empty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 16px;
  border: 1px dashed var(--ink-10);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--muted);
}

.request__empty .link {
  color: var(--ink);
}

.request__empty[hidden] {
  display: none;
}

/* ---------- Forms ---------- */

.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form__grid {
  display: grid;
  gap: 16px;
}

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

.field__label {
  font-weight: 700;
  font-size: 14px;
}

.field__input {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid var(--ink-10);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 16px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.field__input::placeholder {
  color: var(--muted);
  opacity: 0.8;
}

.field__input:hover {
  border-color: var(--muted);
}

.field__input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(255, 194, 26, 0.45);
}

.field__input--area {
  min-height: 110px;
  resize: vertical;
}

.field.is-invalid .field__input {
  border-color: var(--ink);
  box-shadow: inset 4px 0 0 var(--accent);
}

.field__error {
  display: none;
  font-size: 13px;
  font-weight: 600;
}

.field.is-invalid .field__error {
  display: block;
}

.field__error::before {
  content: "! ";
  font-weight: 800;
}

.form__note {
  font-size: 13px;
  color: var(--muted);
}

.form__note .link {
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Advantages ---------- */

.advantages {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white-15);
}

.advantage {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 24px;
  background: var(--ink);
  transition: background-color 0.35s var(--ease);
}

.advantage:hover {
  background: #232d37;
}

.advantage__icon {
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
  color: var(--accent);
}

.advantage__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 18px;
}

.advantage__text {
  color: var(--white-70);
}

/* ---------- Clients ---------- */

.clients {
  display: grid;
  gap: 16px;
}

.client {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.client::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 4px;
  border-radius: 4px 4px 0 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.client:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.client:hover::after {
  transform: scaleX(1);
}

.client__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 19px;
}

.client__text {
  color: var(--muted);
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  gap: 16px;
  counter-reset: none;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 24px;
  border-top: 2px solid var(--ink);
  background: var(--concrete);
  border-radius: 0 0 var(--radius) var(--radius);
}

.step__num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
  color: var(--ink);
  -webkit-text-stroke: 0;
}

.step:nth-child(odd) .step__num,
.step:nth-child(even) .step__num {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
}

.step:hover .step__num {
  color: var(--accent);
}

.step__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
}

.step__text {
  color: var(--muted);
}

/* ---------- Delivery ---------- */

.delivery {
  display: grid;
  gap: 32px;
  align-items: center;
}

.delivery__media {
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
}

.delivery__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.delivery__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.delivery__list {
  display: grid;
  gap: 12px;
  width: 100%;
}

.delivery__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--white);
  font-weight: 700;
}

.delivery__list .icon {
  width: 28px;
  height: 28px;
  padding: 5px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
}

/* ---------- About ---------- */

.about {
  display: grid;
  gap: 40px;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 16px;
  margin-top: 36px;
}

.stats__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 16px;
  border-top: 2px solid var(--accent);
}

.stats__value {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(26px, 6vw, 38px);
  line-height: 1.1;
}

.stats__label {
  color: var(--muted);
  font-weight: 600;
}

.about__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.about__img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.about__img--main {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

/* ---------- CTA ---------- */

.cta {
  padding: 0 0 8px;
}

.cta__box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 48px 24px;
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(-45deg, transparent 0 22px, rgba(27, 35, 43, 0.06) 22px 44px),
    var(--accent);
  overflow: hidden;
}

.cta__title {
  max-width: 18ch;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(28px, 6.4vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.cta__text {
  max-width: 560px;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink-80);
}

/* ---------- Order ---------- */

.order {
  display: grid;
  gap: 32px;
}

.order__form {
  padding: 24px 20px;
  border-radius: var(--radius);
  background: var(--concrete);
}

/* ---------- Contacts ---------- */

.contacts {
  display: grid;
  gap: 32px;
}

.contacts__list {
  display: grid;
  gap: 20px;
  margin-top: 32px;
}

.contacts__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ink-10);
}

.contacts__item dt {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.contacts__item dd {
  font-weight: 600;
  font-size: 17px;
}

.contacts__phone {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 22px;
  transition: color 0.25s var(--ease);
}

.contacts__phone:hover {
  color: var(--muted);
}

.contacts__map {
  min-height: 340px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
}

.contacts__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
  filter: grayscale(0.6) contrast(1.05);
}

/* ---------- Footer ---------- */

.footer {
  padding: 56px 0 24px;
  background: var(--ink);
  color: var(--white);
}

.footer__inner {
  display: grid;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--white-15);
}

.footer__text {
  max-width: 320px;
  margin-top: 16px;
  color: var(--white-70);
}

.footer__nav ul,
.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__nav a,
.footer__contacts a {
  color: var(--white-70);
  transition: color 0.25s var(--ease);
}

.footer__nav a:hover,
.footer__contacts a:hover {
  color: var(--accent);
}

.footer__contacts {
  font-style: normal;
  color: var(--white-70);
}

.footer__contacts a:first-child {
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  font-size: 14px;
  color: var(--white-70);
}

/* ---------- Floating buttons (mobile) ---------- */

.float-actions {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.float-actions__btn {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  box-shadow: 0 10px 24px -8px rgba(27, 35, 43, 0.55);
  transition: transform 0.25s var(--ease);
}

.float-actions__btn:active {
  transform: scale(0.94);
}

.float-actions__btn .icon {
  width: 26px;
  height: 26px;
}

.float-actions__btn--call {
  background: var(--accent);
  color: var(--ink);
}

.float-actions__btn--wa {
  background: var(--ink);
  color: var(--white);
  border: 2px solid var(--white);
}

/* ---------- Modal ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.modal[hidden] {
  display: none;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(27, 35, 43, 0.6);
  animation: overlay-in 0.25s var(--ease);
}

@keyframes overlay-in {
  from {
    opacity: 0;
  }
}

.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 32px 20px 24px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--white);
  animation: dialog-in 0.35s var(--ease);
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

.modal__dialog--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--concrete);
  transition: background-color 0.25s var(--ease);
}

.modal__close:hover {
  background: var(--accent);
}

.modal__title {
  padding-right: 48px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.2;
}

.modal__dialog--center .modal__title {
  padding-right: 0;
}

.modal__text {
  margin: 10px 0 24px;
  color: var(--muted);
}

.modal__check {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--accent);
}

.modal__check .icon {
  width: 36px;
  height: 36px;
}

.modal__content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
  color: var(--muted);
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 16px;
  right: 88px;
  bottom: 16px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow);
  animation: rise 0.3s var(--ease);
}

.toast[hidden] {
  display: none;
}

.toast::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* ==========================================================================
   Tablet ≥ 640px
   ========================================================================== */

@media (min-width: 640px) {
  .container {
    padding: 0 32px;
  }

  .hero__buttons {
    flex-direction: row;
    flex-wrap: wrap;
  }

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

  .products {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .advantages,
  .clients,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .request-item {
    grid-template-columns: 64px 1fr auto auto;
  }

  .request-item__img {
    width: 64px;
    height: 64px;
  }

  .request-item__qty {
    grid-column: auto;
  }

  .request-item__qty-label {
    display: none;
  }

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

  .cta__box {
    padding: 64px 48px;
  }

  .order__form {
    padding: 36px;
  }

  .footer__inner {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .modal {
    align-items: center;
    padding: 20px;
  }

  .modal__dialog {
    padding: 40px 36px 32px;
    border-radius: var(--radius);
  }

  .toast {
    left: auto;
    right: 24px;
    bottom: 24px;
    max-width: 360px;
  }

  .tabs {
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
  }
}

/* ==========================================================================
   Desktop ≥ 1024px
   ========================================================================== */

@media (min-width: 1024px) {
  :root {
    --header-h: 80px;
  }

  body {
    padding-bottom: 0;
  }

  .nav {
    display: block;
  }

  .nav__list {
    display: flex;
    gap: 4px;
  }

  .nav__link {
    position: relative;
    display: block;
    padding: 10px 12px;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.25s var(--ease);
  }

  .nav__link::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 4px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
  }

  .nav__link:hover::after,
  .nav__link.is-active::after {
    transform: scaleX(1);
  }

  .header__phone {
    display: block;
    margin-right: 8px;
    font-weight: 700;
    white-space: nowrap;
    transition: color 0.25s var(--ease);
  }

  .header__phone:hover {
    color: var(--muted);
  }

  .header__btn {
    display: inline-flex;
  }

  .burger,
  .mobile-menu {
    display: none !important;
  }

  .float-actions {
    display: none;
  }

  .hero {
    min-height: min(820px, calc(100vh - var(--header-h)));
    padding: 96px 0 32px;
    gap: 64px;
  }

  .hero::before {
    background: linear-gradient(90deg, rgba(27, 35, 43, 0.92) 0%, rgba(27, 35, 43, 0.65) 50%, rgba(27, 35, 43, 0.2) 100%);
  }

  .hero__subtitle {
    font-size: 19px;
  }

  .hero__feature {
    padding-top: 22px;
    font-size: 16px;
  }

  .section {
    padding: 112px 0;
  }

  .section__head {
    margin-bottom: 52px;
  }

  .section__head--row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .categories {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .products {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .products--stock {
    grid-template-columns: repeat(4, 1fr);
  }

  .request {
    grid-template-columns: 5fr 7fr;
    gap: 64px;
    align-items: start;
  }

  .request__intro {
    position: sticky;
    top: calc(var(--header-h) + 32px);
  }

  .advantages {
    grid-template-columns: repeat(3, 1fr);
  }

  .advantage {
    padding: 40px 36px;
  }

  .clients,
  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .delivery {
    grid-template-columns: 7fr 5fr;
    gap: 64px;
  }

  .about {
    grid-template-columns: 5fr 6fr;
    gap: 64px;
    align-items: center;
  }

  .cta__box {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    padding: 80px 72px;
  }

  .cta__box > div,
  .cta__title {
    flex: 1 1 100%;
  }

  .order {
    grid-template-columns: 5fr 7fr;
    gap: 64px;
    align-items: start;
  }

  .order__form {
    padding: 48px;
  }

  .contacts {
    grid-template-columns: 5fr 7fr;
    gap: 64px;
    align-items: stretch;
  }

  .contacts__map,
  .contacts__map iframe {
    min-height: 480px;
  }

  .footer__inner {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================
   ОШИБКА ОТПРАВКИ ФОРМЫ
   ========================================================== */
.form__error {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: #b3261e;
}

/* ==========================================================
   СТРАНИЦА БЛАГОДАРНОСТИ
   ========================================================== */
.thanks {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--concrete);
  color: var(--ink);
}
.thanks__top {
  padding: 20px 0;
  background: var(--white);
  border-bottom: 1px solid rgba(27, 35, 43, 0.08);
}
.thanks__main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 48px 0;
}
.thanks__card {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 28px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.thanks__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.thanks__icon .icon { width: 36px; height: 36px; }
.thanks__title {
  font-family: var(--font-head);
  font-size: clamp(26px, 5vw, 38px);
  line-height: 1.15;
  text-wrap: balance;
}
.thanks__text {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  text-wrap: pretty;
}
.thanks__steps {
  list-style: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  padding: 18px;
  background: var(--concrete);
  border-radius: var(--radius-sm);
}
.thanks__steps li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.5;
}
.thanks__steps .icon { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.thanks__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
@media (min-width: 768px) {
  .thanks__card { padding: 56px 48px; }
}
