/* =========================================================
   Уралец — стили лендинга
   ========================================================= */

:root {
  --bg: #0f0f0f;
  --bg-soft: #171717;
  --surface: #1e1e1e;
  --surface-hover: #262626;
  --border: #2a2a2a;
  --text: #f5f5f5;
  --text-muted: #a3a3a3;
  --accent: #f97316;
  --accent-hover: #ea580c;
  --accent-soft: rgba(249, 115, 22, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1180px, 100% - 40px);
  margin-inline: auto;
}

/* ---------- HEADER ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 15, 15, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.logo__img {
  height: 34px;
  width: auto;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--text-muted);
}

.nav a {
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--text);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header__phone {
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}

.header__phone span {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.btn--accent {
  background: var(--accent);
  color: #0f0f0f;
}

.btn--accent:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  background: var(--surface);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding-block: 90px 70px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 75% 0%, rgba(249, 115, 22, 0.14), transparent 65%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(249, 115, 22, 0.06), transparent 60%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(249, 115, 22, 0.3);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero__title {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
}

.hero__title span {
  color: var(--accent);
}

.hero__text {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 34px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__stats {
  display: flex;
  gap: 36px;
  margin-top: 46px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.stat__value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
}

.stat__label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.hero__visual {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  background: var(--surface);
}

.hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(15, 15, 15, 0.65));
  pointer-events: none;
}

.hero__visual-caption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
}

.hero__visual-caption::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
  flex-shrink: 0;
}

.hero__slider {
  position: absolute;
  inset: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 1s ease;
  will-change: opacity;
}

.hero__slide.is-active {
  opacity: 1;
}

/* ---------- SECTION ---------- */
.section {
  padding-block: 80px;
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 42px;
}

.section__label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section__title {
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section__subtitle {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 440px;
  margin-top: 10px;
}

.section__link {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.section__link:hover {
  border-color: var(--accent);
}

/* ---------- PRODUCTS ---------- */
.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.25s;
}

.product-card:hover {
  border-color: rgba(249, 115, 22, 0.45);
  transform: translateY(-4px);
}

.product-card__image {
  aspect-ratio: 16 / 10;
  background: #222;
  overflow: hidden;
  position: relative;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card__image img {
  transform: scale(1.04);
}

.product-card__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(15, 15, 15, 0.75);
  backdrop-filter: blur(6px);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid rgba(249, 115, 22, 0.35);
  z-index: 1;
}

.product-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card__title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.product-card__specs {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.product-card__specs li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 13px;
  color: var(--text-muted);
  padding-bottom: 7px;
  border-bottom: 1px dashed var(--border);
}

.product-card__specs li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.product-card__specs b {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.product-card__price {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.product-card__price small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0;
}

.product-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(249, 115, 22, 0.3);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.product-card__btn:hover {
  background: var(--accent);
  color: #0f0f0f;
}

/* ---------- ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about__text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 15px;
}

.about__text p:last-child {
  margin-bottom: 0;
}

.about__title {
  margin-bottom: 18px;
}

.about__features {
  display: grid;
  gap: 14px;
}

.feature {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.feature__icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 19px;
  font-weight: 800;
}

.feature__title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 3px;
}

.feature__desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}


/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding-block: 40px;
  font-size: 14px;
  color: var(--text-muted);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer__brand-name {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.footer__address {
  font-size: 13px;
  color: var(--text-muted);
}

.footer__contacts {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer__contacts a {
  transition: color 0.2s;
}

.footer__contacts a:hover {
  color: var(--accent);
}

/* ---------- FOOTER: нижний ряд (служебные ссылки) ---------- */
.footer__bottom {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}

.footer__nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
}

.footer__nav a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer__nav a:hover {
  color: var(--accent);
}

.footer__copyright {
  color: var(--text-muted);
  white-space: nowrap;
}

@media (max-width: 720px) {
  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .footer__contacts {
    flex-direction: column;
    gap: 10px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .footer__copyright {
    white-space: normal;
  }
}

/* =========================================================
   СТРАНИЦА ТОВАРА
   ========================================================= */

/* ---------- BREADCRUMBS ---------- */
.breadcrumbs {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.breadcrumbs a {
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

/* ---------- PRODUCT LAYOUT ---------- */
.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
  align-items: start;
}

/* ---------- GALLERY ---------- */
.product__gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product__main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
}

.product__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.product__main:hover .product__image {
  transform: scale(1.02);
}

.product__thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.product__thumb {
  width: 80px;
  height: 60px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
  flex-shrink: 0;
}

.product__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product__thumb:hover {
  border-color: rgba(249, 115, 22, 0.5);
}

.product__thumb.is-active {
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* ---------- PRODUCT INFO ---------- */
.product__title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.product__short {
  color: var(--text-muted);
  margin-bottom: 22px;
  font-size: 15px;
}

.product__price {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin-bottom: 22px;
}

.product__price small {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0;
}

.product__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.product__subtitle {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
}

.product__specs {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.product__specs th,
.product__specs td {
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  text-align: left;
  vertical-align: top;
}

.product__specs th {
  color: var(--text-muted);
  font-weight: 500;
  width: 45%;
}

.product__specs td {
  font-weight: 600;
}

.product__description {
  max-width: 800px;
  margin-bottom: 50px;
}

.product__description h2 {
  margin-bottom: 16px;
}

.product__description p {
  color: var(--text-muted);
  margin-bottom: 14px;
  font-size: 15px;
}

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: zoom-out;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  cursor: default;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: rgba(30, 30, 30, 0.9);
  border: 1px solid var(--border);
  color: var(--text);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, color 0.2s;
}

.lightbox__close { top: 24px; right: 24px; font-size: 30px; }
.lightbox__prev  { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__next  { right: 24px; top: 50%; transform: translateY(-50%); }

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  background: var(--accent);
  color: #0f0f0f;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero__visual {
    max-width: 620px;
  }

  .products {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .product {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 720px) {
  .nav {
    display: none;
  }

  .header__phone {
    display: none;
  }

  .logo__img {
    height: 28px;
  }

  .logo {
    font-size: 18px;
  }

  .hero {
    padding-block: 60px 50px;
  }

  .hero__stats {
    gap: 24px;
    flex-wrap: wrap;
  }

  .products {
    grid-template-columns: 1fr;
  }

  .section {
    padding-block: 60px;
  }

  .section__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }


  /* страница товара на мобильных */
  .lightbox {
    padding: 16px;
  }

  .lightbox__close,
  .lightbox__prev,
  .lightbox__next {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

  .lightbox__prev { left: 8px; }
  .lightbox__next { right: 8px; }
  .lightbox__close { top: 8px; right: 8px; }

  .product__thumb {
    width: 64px;
    height: 48px;
  }

  .product__price {
    font-size: 26px;
  }
}

/* ---------- SPEC GROUPS ---------- */
.spec-group {
  margin-bottom: 26px;
}

.spec-group:last-child {
  margin-bottom: 0;
}

.spec-group__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

/* ---------- LEAD SECTION ---------- */
.lead-section {
  padding-block: 20px 80px;
}

.lead-block {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 54px 50px;
  background: linear-gradient(135deg, #1c1c1c 0%, #141414 100%);
  border: 1px solid var(--border);
}

.lead-block::before {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.18), transparent 65%);
  top: -200px;
  right: -120px;
  pointer-events: none;
}

.lead-block__head {
  position: relative;
  margin-bottom: 30px;
  max-width: 600px;
}

.lead-block__title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.lead-block__text {
  color: var(--text-muted);
  font-size: 15px;
}

/* ---------- LEAD FORM ---------- */
.lead-form {
  position: relative;
  display: grid;
  gap: 16px;
  max-width: 640px;
}

.lead-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.lead-form__field {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.lead-form__field input,
.lead-form__field textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.2s;
  width: 100%;
  resize: vertical;
}

.lead-form__field input:focus,
.lead-form__field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.lead-form__hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.lead-form__consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1.5;
}

.lead-form__consent input {
  margin-top: 3px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.lead-form__consent a {
  color: var(--accent);
  text-decoration: underline;
}

.lead-form__submit {
  justify-self: start;
  padding: 14px 32px;
}

.lead-form__submit[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.lead-form__status {
  font-size: 14px;
  min-height: 20px;
}

.lead-form__status.is-error {
  color: #f87171;
}

.lead-form__success {
  padding: 32px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 12px;
  color: #22c55e;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
}

@media (max-width: 720px) {
  .lead-block { padding: 36px 24px; }
  .lead-form__row { grid-template-columns: 1fr; }
  .lead-form__submit { justify-self: stretch; }
}