:root {
  --bg: #141414;
  --bg-alt: #1b1b1b;
  --card: #202020;
  --line: #2e2e2e;
  --red: #e6332c;
  --red-dark: #c0271f;
  --text: #f5f1ea;
  --muted: #9b958a;
  --radius: 10px;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
  --font: 'Manrope', 'Segoe UI', Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

input {
  font-family: inherit;
}

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

main section[id] {
  scroll-margin-top: 88px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

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

.btn--red {
  background: var(--red);
  color: #fff;
}

.btn--red:hover {
  background: var(--red-dark);
}

.btn--dark {
  background: #2a2a2a;
  color: var(--text);
  border-color: #3a3a3a;
}

.btn--dark:hover {
  background: #333;
  border-color: var(--red);
}

.btn--sm {
  padding: 9px 18px;
  font-size: 0.8rem;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20, 20, 20, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo__img {
  height: 54px;
  width: auto;
  border-radius: 8px;
}

.logo__text {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.logo__text::first-letter {
  color: var(--red);
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav__link {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  position: relative;
  padding: 6px 2px;
  transition: color 0.2s ease;
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav__link:hover {
  color: var(--text);
}

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

.nav__link--active {
  color: var(--red);
}

.header__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header__phone {
  font-weight: 800;
  white-space: nowrap;
  transition: color 0.2s ease;
}

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

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.burger span {
  display: block;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(20, 16, 12, 0.85) 0%, rgba(20, 16, 12, 0.55) 55%, rgba(20, 16, 12, 0.25) 100%),
    url('../img/banner.jpg') center / cover no-repeat;
}

.hero__inner {
  position: relative;
  padding: 88px 0;
}

.hero__content {
  max-width: 640px;
}

.hero__label {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 19px;
  color: rgba(255, 255, 255, 0.9);
}

.hero__title {
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero__title span {
  color: var(--red);
}

.hero__subtitle {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 26px;
  max-width: 430px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-bottom: 29px;
}

.hero__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
}

.hero__phone a {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
}

.hero__phone a:hover {
  color: var(--red);
}

.section {
  padding: 76px 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section--cta {
  background:
    linear-gradient(90deg, rgba(20, 16, 12, 0.9), rgba(20, 16, 12, 0.7)),
    url('../img/banner.jpg') center / cover no-repeat;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 46px;
}

.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.section-sub {
  color: var(--muted);
  font-size: 1.02rem;
}

.section-actions {
  text-align: center;
  margin-top: 44px;
}

.catalog__filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.chip {
  padding: 10px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 30px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.chip:hover {
  color: var(--text);
  border-color: var(--red);
}

.chip--active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.catalog__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.catalog__group + .catalog__group {
  margin-top: 48px;
}

@media (max-width: 1024px) {
  .carousel .card {
    flex-basis: 240px;
  }
}

@media (max-width: 768px) {
  .carousel__btn {
    display: none;
  }
  .carousel .catalog__row {
    padding-left: 0;
    padding-right: 0;
  }
  .carousel .card {
    flex-basis: 72%;
  }
}

@media (max-width: 480px) {
  .carousel .card {
    flex-basis: 80%;
  }
}

.catalog__group-title {
  display: block;
  margin: 0 0 24px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.catalog__group-title::before,
.catalog__group-title::after {
  content: '';
  display: inline-block;
  width: 40px;
  height: 2px;
  margin: 0 14px 4px;
  background: var(--red);
  vertical-align: middle;
}

.catalog__row {
  display: flex;
  align-items: stretch;
  gap: 22px;
  overflow-x: auto;
  padding-bottom: 14px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--red) transparent;
}

.catalog__row .card {
  flex: 0 0 250px;
  scroll-snap-align: start;
}

.catalog__row::-webkit-scrollbar {
  height: 8px;
}

.catalog__row::-webkit-scrollbar-thumb {
  background: var(--red);
  border-radius: 4px;
}

.catalog__row::-webkit-scrollbar-track {
  background: var(--card);
  border-radius: 4px;
}

.carousel {
  position: relative;
  grid-column: 1 / -1;
}

.carousel .catalog__row {
  padding-left: 4px;
  padding-right: 4px;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--red);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.carousel__btn:hover {
  background: var(--red);
  color: #fff;
}

.carousel__btn--prev {
  left: -18px;
}

.carousel__btn--next {
  right: -18px;
}

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--line);
  cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease;
}

.carousel__dot.on {
  background: var(--red);
  width: 22px;
  border-radius: 999px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--red);
  box-shadow: var(--shadow);
}

.card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 5px 12px;
  background: var(--red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 20px;
}

.card__image {
  background: #171717;
  padding: 20px;
}

.card__image img {
  width: 100%;
  height: 160px;
  object-fit: contain;
}

.card__cat {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 16px 18px 4px;
}

.card__name {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
  padding: 0 18px;
  flex: 1;
}

.card__desc {
  font-size: 0.9rem;
  color: var(--muted);
  padding: 8px 18px 0;
}

.card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 18px;
  margin-top: auto;
}

.card__price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--red);
}

.card__price--na {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}

.card__price-old {
  color: #d32f2f;
  font-weight: 600;
  margin-right: 6px;
  text-decoration: line-through;
}

.card__price-new {
  color: #d4a017;
  font-weight: 800;
  font-size: 1.05em;
}

.td-old {
  color: #d32f2f;
  text-decoration: line-through;
  margin-right: 6px;
}

.td-new {
  color: #d4a017;
}

.card__unit {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.card__order {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  background: var(--red);
  color: #fff;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: background 0.2s ease, transform 0.2s ease;
}

.card__order:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

.price-section__toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 34px;
}

.price-table-wrap {
  overflow-x: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.price-table th {
  background: #2a2a2a;
  color: var(--red);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  padding: 14px 16px;
  text-align: left;
  white-space: nowrap;
}

.price-table td {
  padding: 11px 16px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

.price-table tbody tr:hover td {
  background: #262626;
}

.category-row td {
  background: #331d1a;
  color: #ff8a80;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.subgroup-row td {
  background: #242424;
  color: var(--muted);
  font-style: italic;
}

.td-num {
  white-space: nowrap;
  font-weight: 700;
}

.td-num--na {
  color: var(--muted);
  font-weight: 400;
}

.td-hover {
  position: relative;
  display: block;
}

.td-hover__img {
  display: none;
}

.td-cat {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

.feature {
  padding: 28px 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: var(--red);
}

.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  font-size: 1.5rem;
  background: #2a2a2a;
  border-radius: 50%;
  margin-bottom: 16px;
}

.feature h3 {
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.feature p {
  color: var(--muted);
  font-size: 0.95rem;
}

.steps__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
  counter-reset: steps;
}

.step {
  position: relative;
  padding: 28px 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.step:hover {
  transform: translateY(-4px);
  border-color: var(--red);
}

.step__num {
  position: absolute;
  top: 10px;
  right: 18px;
  font-size: 3rem;
  font-weight: 800;
  color: rgba(230, 51, 44, 0.35);
  line-height: 1;
}

.step h3 {
  font-size: 1.02rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  position: relative;
}

.step p {
  color: var(--muted);
  font-size: 0.95rem;
  position: relative;
}

.order-form {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  background: rgba(20, 20, 20, 0.75);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px 36px;
}

.order-form h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.order-form > p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 26px;
}

.callback-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.callback-form input {
  flex: 1 1 180px;
  padding: 14px 18px;
  background: #171717;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.callback-form input::placeholder {
  color: var(--muted);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.cap-row {
  flex: 1 1 100%;
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.cap-label {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.cap-input {
  flex: 0 0 90px !important;
  max-width: 90px;
  text-align: center;
  font-weight: 700;
}

.callback-form input:focus {
  border-color: var(--red);
}

.form-note {
  margin-top: 16px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
}

.consent {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  max-width: 480px;
  margin: 16px auto 0;
  font-size: 0.78rem;
  line-height: 1.4;
  text-align: left;
  color: rgba(255, 255, 255, 0.6);
}

.consent input {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--red);
  cursor: pointer;
}

.consent a {
  color: var(--red);
  text-decoration: underline;
}

.consent a:hover {
  text-decoration: none;
}

.form-success {
  margin-top: 16px;
  font-weight: 700;
  color: #7ecb7e;
}

.container--narrow {
  max-width: 820px;
}

.privacy__content h3 {
  margin: 26px 0 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.privacy__content h3:first-child {
  margin-top: 0;
}

.privacy__content p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--muted);
}

.privacy__content a {
  color: var(--red);
  text-decoration: underline;
}

.footer__policy-link {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
  text-decoration: underline;
}

.footer__policy-link:hover {
  color: var(--red);
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

.review {
  padding: 28px 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.review:hover {
  transform: translateY(-4px);
  border-color: var(--red);
}

.review__text {
  font-size: 0.98rem;
  margin-bottom: 18px;
}

.review__name {
  display: block;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--red);
}

.contacts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

.contact {
  padding: 28px 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.contact:hover {
  transform: translateY(-4px);
  border-color: var(--red);
}

.contact__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: #2a2a2a;
  border-radius: 50%;
  margin-bottom: 16px;
}

.contact__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--red);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact h3 {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 6px;
}

.contact span,
.contact a {
  display: block;
  font-size: 1rem;
}

.contact a:hover {
  color: var(--red);
}

.shops {
  margin-top: 48px;
}

.shops__title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 22px;
}

.shops__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 22px;
}

.shop-card {
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.shop-card__head {
  margin-bottom: 14px;
}

.shop-card__head h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.shop-card__head span {
  color: var(--muted);
  font-size: 0.95rem;
}

.map-tabs__input {
  display: none;
}

.map-tabs__labels {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.map-tabs__label {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--muted);
  user-select: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.map-tabs__label:hover {
  border-color: var(--red);
  color: var(--red);
}

.map-tabs__label.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.map-tabs__panel {
  display: none;
}

.map-tabs__panel.active {
  display: block;
}

.map-tabs__panel iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
  border-radius: 10px;
}

.map-tabs__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 280px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  text-align: center;
  color: var(--muted);
}

.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
}

.footer__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  padding: 44px 0;
}

.footer__brand p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 10px;
}

.logo__img--footer {
  height: 48px;
}

.footer__contacts a,
.footer__contacts span {
  display: block;
  margin-bottom: 6px;
}

.footer__contacts a:hover,
.footer__social a:hover {
  color: var(--red);
}

.footer__social {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.footer__social a {
  font-weight: 700;
}

.footer__social span {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer__bottom {
  border-top: 1px solid var(--line);
  padding: 18px 0;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.open {
  display: flex;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow);
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.6rem;
  line-height: 1;
  transition: color 0.2s ease;
}

.modal__close:hover {
  color: var(--red);
}

.modal__dialog h3 {
  font-size: 1.3rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.modal__dialog > p {
  color: var(--muted);
  margin-bottom: 20px;
}

.callback-form--modal {
  flex-direction: column;
}

.callback-form--modal input {
  flex: none;
  width: 100%;
}

.callback-form--modal .btn {
  width: 100%;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 1024px) {
  .header__phone {
    display: none;
  }

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

@media (max-width: 760px) {
  .catalog__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .catalog__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(320px, 80vw);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    padding: 80px 30px 30px;
    background: var(--bg-alt);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 90;
  }

  .nav.open {
    transform: none;
  }

  .nav__link {
    padding: 14px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--line);
    width: 100%;
  }

  .nav__link::after {
    display: none;
  }

  .burger {
    display: flex;
  }
}

@media (max-width: 560px) {
  .hero__inner {
    padding: 70px 0;
  }

  .header__right .btn--sm {
    display: none;
  }

  .section {
    padding: 56px 0;
  }

  .order-form {
    padding: 32px 20px;
  }

  .features__grid,
  .steps__grid,
  .reviews__grid,
  .contacts__grid {
    grid-template-columns: 1fr;
  }
}
