:root {
  --bg: #ffffff;
  --text: #1f1f1f;
  --muted: #5f5f5f;
  --accent: #a61d2b;
  --accent-dark: #7f141f;
  --border: #e7e3e0;
  --card: #f8f6f4;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

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

button {
  font-family: inherit;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

.header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
}

.logo img {
  width: 137px;
  height: 44px;
}

.nav {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.nav__link {
  font-weight: 500;
  color: var(--text);
  position: relative;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.nav__link:hover::after,
.nav__link:focus::after {
  width: 100%;
}

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

.phone {
  font-weight: 600;
  color: var(--accent-dark);
}

.phone--with-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.phone__icon {
  font-size: 1.1em;
}

.phone--large {
  font-size: 1.2rem;
}

.btn {
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: none;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn:disabled,
.btn[disabled] {
  cursor: not-allowed;
  opacity: 1;
  box-shadow: none;
  transform: none;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow);
}

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

.btn--primary:disabled,
.btn--primary[disabled] {
  background: #d9d9d9;
  color: #6b6b6b;
}

.modal .btn--primary:disabled,
.modal .btn--primary[disabled] {
  background: #d2d2d2;
  color: #6b6b6b;
}

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

.btn--outline:hover,
.btn--outline:focus-visible {
  background: rgba(166, 29, 43, 0.08);
}

.messenger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.messenger:hover,
.messenger:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.messenger--wa {
  background: #25d366;
  color: #fff;
}

.messenger--wa:hover,
.messenger--wa:focus-visible {
  filter: brightness(0.95);
}

.messenger--max {
  background: #1b1b1b;
  color: #fff;
}

.messenger--max:hover,
.messenger--max:focus-visible {
  background: #262626;
}

.burger {
  display: none;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.burger span {
  width: 20px;
  height: 2px;
  background: var(--text);
  display: block;
}

.main {
  flex: 1;
}

.hero {
  padding: 60px 0 40px;
  position: relative;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
}

.hero__content h1 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: 12px;
}

.hero__content p {
  color: var(--muted);
  margin-bottom: 24px;
}

.hero__media {
  background: var(--card);
  border-radius: 24px;
  padding: 24px;
}

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

.hero__slider {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.hero__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  transition: transform 0.35s ease;
  will-change: transform;
  touch-action: pan-y;
  user-select: none;
}

.hero__slide {
  min-height: 260px;
  display: grid;
  place-items: center;
  background: #fff;
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  z-index: 2;
}

.hero__arrow span {
  font-size: 28px;
  line-height: 1;
}

.hero__arrow--prev {
  left: 12px;
}

.hero__arrow--next {
  right: 12px;
}

.hero__arrow:hover,
.hero__arrow:focus-visible {
  transform: translateY(-50%) scale(1.05);
}

.hero__arrow:disabled {
  opacity: 0.4;
  cursor: default;
  transform: translateY(-50%);
}

.hero__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #d6d0cb;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero__dot.is-active {
  background: var(--accent);
  transform: scale(1.2);
}

.hero__thumbs {
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.hero__thumb {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 6px;
  flex: 1;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
}

.hero__thumb img {
  width: 100%;
  height: 90px;
  object-fit: contain;
}

.hero__thumb.is-active {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.buyers,
.advantages,
.callback-widget,
.steps,
.delivery,
.contacts {
  padding: 60px 0;
}

@media (max-width: 640px) {
  .buyers,
  .advantages {
    padding-top: 32px;
  }
}

.buyers h2,
.advantages h2,
.callback-widget h2,
.delivery h2,
.contacts h2 {
  margin-bottom: 24px;
}

.buyers__grid,
.advantages__grid,
.steps__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.buyer,
.advantage,
.step {
  background: var(--card);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.buyer {
  overflow: hidden;
  padding: 0 0 20px;
}

.buyer__image {
  width: 100%;
  height: auto;
  border-radius: 0;
  margin: 0 0 16px;
  object-fit: cover;
  display: block;
}

.buyer h3,
.buyer p {
  padding: 0 20px;
}

.buyer p {
  margin-bottom: 0;
}

.advantage h3,
.step h2 {
  margin-top: 0;
}

.callback-widget {
  background: var(--accent);
  color: #fff;
}

.callback-widget .btn--primary {
  background: #111;
  color: #fff;
}

.callback-widget .btn--primary:hover,
.callback-widget .btn--primary:focus-visible {
  background: #000;
}

.callback-widget__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: center;
}

.callback-form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
}

.field__label {
  font-size: 0.9rem;
  font-weight: 500;
}

.field__input {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 1rem;
}

.callback-widget .field__input {
  border: none;
}

.page-hero {
  padding: 40px 0 20px;
  background: var(--card);
}

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

.steps__timeline {
  display: grid;
  gap: 40px;
  position: relative;
  padding-left: 24px;
}

.steps__timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(166, 29, 43, 0));
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
  position: relative;
}

.step__icon {
  display: grid;
  gap: 8px;
  justify-items: center;
  position: relative;
}

.step__icon::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  width: 2px;
  height: calc(100% + 40px);
  background: var(--border);
  transform: translateX(-50%);
  z-index: -1;
}

.step:last-child .step__icon::after {
  display: none;
}

.step__badge {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.step__content h2 {
  margin-top: 0;
}

.step__num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.order-example {
  margin-top: 32px;
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: 24px;
  align-items: center;
}

.order-example img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.order-example__text h3 {
  margin-top: 0;
}

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

.tag {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  font-weight: 500;
}

.tag--accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.delivery__phone {
  margin-top: 24px;
}

.contacts__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.contacts__messengers {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.map {
  background: var(--card);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid var(--border);
}

.map__frame {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
  border-radius: 12px;
  margin-top: 12px;
}

.map__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.footer {
  background: #111;
  color: #fff;
  padding-top: 40px;
}

.footer .phone {
  color: #fff;
}

.footer__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.footer__bottom {
  margin-top: 20px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__messengers {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 50;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.modal__content {
  position: relative;
  background: #fff;
  padding: 24px;
  border-radius: 16px;
  width: min(420px, 90%);
  z-index: 1;
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: none;
  font-size: 24px;
  cursor: pointer;
}

.captcha {
  min-height: 90px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--muted);
  margin: 12px 0;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  padding: 12px 18px;
  background: #111;
  color: #fff;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateY(10px);
  z-index: 60;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.lqip {
  filter: blur(8px);
  transition: filter 0.5s ease;
}

.lqip.is-loaded {
  filter: blur(0);
}

@media (max-width: 960px) {
  .header__inner {
    grid-template-columns: auto 1fr auto;
  }

  .header__actions {
    display: none;
  }

  .burger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 70px;
    right: 16px;
    background: #fff;
    flex-direction: column;
    padding: 16px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hero__thumbs {
    flex-direction: column;
  }

  .hero__thumb img {
    height: 72px;
  }
}

@media (max-width: 840px) {
  .hero__media {
    padding: 16px;
  }

  .hero__slider {
    border-radius: 18px;
  }

  .hero__slide {
    min-height: 220px;
  }

  .hero__arrow {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 640px) {
  .hero__thumbs {
    display: none;
  }

  .hero__arrow {
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.95);
  }

  .hero__slide {
    min-height: 200px;
  }

  .hero__dots {
    gap: 8px;
  }
}

@media (max-width: 420px) {
  .hero__media {
    padding: 12px;
  }

  .hero__slide {
    min-height: 180px;
  }
}

@media (max-width: 720px) {
  .hero__decor {
    display: none;
  }

  .callback-widget {
    text-align: center;
  }

  .callback-widget__inner {
    justify-items: center;
  }

  .steps__timeline {
    padding-left: 0;
  }

  .steps__timeline::before {
    left: 16px;
  }

  .step {
    grid-template-columns: auto 1fr;
  }

  .step:nth-child(2) {
    margin-left: 0;
  }

  .order-example {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .btn {
    width: 100%;
  }

  .header__inner {
    grid-template-columns: auto 1fr auto;
  }

  .nav {
    right: 10px;
  }
}
