/* ===================================
   iphone37.ru — Apple Store Ivanovo
   Main Stylesheet
=================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ===================================
   VARIABLES
=================================== */
:root {
  --red: #E8192C;
  --orange: #FF5A1F;
  --amber: #FF9500;
  --grad: linear-gradient(135deg, #E8192C 0%, #FF5A1F 55%, #FF9500 100%);
  --grad-h: linear-gradient(135deg, #c41020 0%, #e04015 55%, #e07800 100%);

  --t1: #1D1D1F;
  --t2: #424245;
  --t3: #6E6E73;
  --t4: #86868B;

  --bg: #FFFFFF;
  --bg-light: #F5F5F7;
  --bg-dark: #1D1D1F;
  --bg-darker: #111111;

  --border: #D2D2D7;
  --border-md: #C7C7CC;

  --sh-sm: 0 2px 10px rgba(0,0,0,0.06);
  --sh-md: 0 6px 24px rgba(0,0,0,0.09);
  --sh-lg: 0 12px 48px rgba(0,0,0,0.14);
  --sh-xl: 0 20px 70px rgba(0,0,0,0.22);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 36px;

  --ease: all 0.26s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-slow: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);

  --max-w: 1200px;
  --gap: 100px;
  --hh: 68px;
}

/* ===================================
   RESET
=================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--t1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; }

/* ===================================
   LAYOUT
=================================== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--gap) 0; }
.section--light { background: var(--bg-light); }
.section--dark { background: var(--bg-dark); }

/* ===================================
   TYPOGRAPHY UTILITIES
=================================== */
.label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
  display: block;
}

.h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.h2--white { color: white; }

.subtitle {
  font-size: 18px;
  color: var(--t3);
  margin-top: 14px;
  max-width: 560px;
  line-height: 1.6;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===================================
   BUTTONS
=================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--ease);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--grad);
  color: white;
  box-shadow: 0 4px 18px rgba(232,25,44,0.30);
}
.btn-primary:hover {
  background: var(--grad-h);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232,25,44,0.40);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--t1);
  border: 1.5px solid var(--border-md);
}
.btn-outline:hover {
  border-color: var(--t1);
  background: var(--bg-light);
}

.btn-outline-w {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,0.28);
}
.btn-outline-w:hover {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.08);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 13px;
}

.btn-full {
  width: 100%;
}

/* ===================================
   HEADER
=================================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--hh);
  z-index: 999;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: var(--ease);
}
.header.scrolled {
  background: rgba(255,255,255,0.96);
  box-shadow: var(--sh-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  height: var(--hh);
  gap: 32px;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo__mark { width: 34px; height: 34px; }
.logo__name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--t1);
  line-height: 1;
}
.logo__name span { color: var(--red); }

/* NAV */
.nav {
  display: flex;
  gap: 2px;
  flex: 1;
}
.nav__a {
  font-size: 14px;
  font-weight: 500;
  color: var(--t2);
  padding: 7px 13px;
  border-radius: 8px;
  transition: var(--ease);
}
.nav__a:hover, .nav__a.active {
  background: var(--bg-light);
  color: var(--t1);
}

.header__right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.header__phone {
  font-size: 14px;
  font-weight: 700;
  color: var(--t1);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.header__phone:hover { color: var(--red); }

/* BURGER */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  margin-left: auto;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--t1);
  border-radius: 2px;
  transition: var(--ease);
}

/* MOBILE NAV */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--hh);
  left: 0; right: 0;
  background: white;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--sh-lg);
  z-index: 998;
  padding: 12px 0 20px;
}
.mobile-nav.open { display: block; }
.mobile-nav__a {
  display: block;
  padding: 13px 24px;
  font-size: 16px;
  font-weight: 500;
  color: var(--t1);
  border-bottom: 1px solid var(--bg-light);
}
.mobile-nav__a:last-child { border: none; }
.mobile-nav__btns {
  display: flex;
  gap: 12px;
  padding: 16px 24px 4px;
}
.mobile-nav__btns .btn { flex: 1; }

/* ===================================
   HERO
=================================== */
.hero {
  min-height: 100vh;
  background: #0e0e0e;
  display: flex;
  align-items: center;
  padding-top: var(--hh);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -150px; right: -150px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(232,25,44,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: 10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,90,31,0.07) 0%, transparent 65%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  padding: 60px 0 80px;
  width: 100%;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(255,90,31,0.1);
  border: 1px solid rgba(255,90,31,0.2);
  border-radius: 20px;
  padding: 5px 14px;
  margin-bottom: 24px;
}

.hero__h1 {
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: white;
  margin-bottom: 14px;
}

.hero__sub {
  font-size: 20px;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  margin-bottom: 36px;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.hero__trust {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 44px;
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}

.check-icon {
  width: 20px;
  height: 20px;
  background: var(--grad);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* Hero visual */
.hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  align-self: stretch;
}
/* плавный переход gif → фон секции со всех сторон (через mask) */
.hero__visual::before {
  content: none;
}

.phone-wrap {
  animation: float 5s ease-in-out infinite;
  filter: drop-shadow(0 40px 80px rgba(0,0,0,0.6));
  position: relative;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(-1deg); }
  50% { transform: translateY(-18px) rotate(1deg); }
}

.phone-glow {
  position: absolute;
  bottom: -60px; left: 50%;
  transform: translateX(-50%);
  width: 200px; height: 60px;
  background: radial-gradient(ellipse, rgba(232,25,44,0.3) 0%, transparent 70%);
  pointer-events: none;
}

/* Hero gif */
.hero-video-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* плавный переход к фону блока со всех сторон */
  -webkit-mask-image:
    linear-gradient(to right,  transparent 0%, black 9%, black 91%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, black 10%, black 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right,  transparent 0%, black 9%, black 91%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, black 10%, black 88%, transparent 100%);
  mask-composite: intersect;
}
.hero-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

/* ===================================
   SECTION HEADERS
=================================== */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
}
.section-head__left {}
.section-head__right {
  font-size: 14px;
  font-weight: 600;
  color: var(--orange);
  flex-shrink: 0;
  padding-bottom: 4px;
  border-bottom: 1.5px solid var(--orange);
  transition: var(--ease);
}
.section-head__right:hover { color: var(--red); border-color: var(--red); }

/* ===================================
   PRODUCT CARDS GRID
=================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.products-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}
.products-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: white;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--ease);
  display: block;
  color: inherit;
  text-decoration: none;
  position: relative;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--red), var(--orange), #FF9500);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}
.card:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 60px rgba(232,25,44,0.12), 0 4px 16px rgba(0,0,0,0.07);
  border-color: transparent;
}
.card:hover::before {
  opacity: 1;
}

/* Card visual area */
.card__vis {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.card__vis--d1 { background: linear-gradient(145deg, #1c1c1e 0%, #3a3a3c 100%); }
.card__vis--d2 { background: linear-gradient(145deg, #1a1a1a 0%, #2c2c2e 60%, #48484a 100%); }
.card__vis--l1 { background: linear-gradient(145deg, #e8e8ed 0%, #d1d1d6 100%); }
.card__vis--l2 { background: linear-gradient(145deg, #f0f0f5 0%, #e0e0ea 100%); }
.card__vis--mb { background: linear-gradient(145deg, #1d1d1f 0%, #3a3a3c 100%); }
.card__vis--ipad { background: linear-gradient(145deg, #ebebf0 0%, #d8d8df 100%); }
.card__vis--wu { background: linear-gradient(145deg, #1c1c1e 0%, #3a3a3c 100%); }
.card__vis--ws { background: linear-gradient(145deg, #f5f5f7 0%, #e5e5ea 100%); }

.device-svg {
  transition: var(--ease-slow);
  filter: drop-shadow(0 10px 24px rgba(0,0,0,0.25));
}
.card:hover .device-svg {
  transform: scale(1.06) translateY(-6px);
}

/* Photo card */
.card__vis--photo {
  background: #ffffff;
  padding: 18px 18px 10px;
  cursor: zoom-in;
}
.card__photo {
  width: 100%;
  height: 176px;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.card:hover .card__vis--photo { background: #ffffff; }

.card__photo-dots {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding-top: 8px;
}
.dot {
  height: 4px;
  width: 4px;
  border-radius: 2px;
  background: rgba(0,0,0,0.18);
  transition: all 0.2s ease;
}
.dot.active {
  width: 14px;
  background: rgba(0,0,0,0.45);
}

.card__body {
  padding: 18px 18px 22px;
}
.card__name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 3px;
}
.card__spec {
  font-size: 12px;
  color: var(--t3);
  margin-bottom: 14px;
}
.card__price {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
}
.card__price em {
  font-style: normal;
  font-size: 12px;
  font-weight: 400;
  color: var(--t3);
}
.card__call {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  color: var(--t3);
  text-decoration: none;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  margin-bottom: 8px;
  transition: var(--ease);
  line-height: 1.4;
}
.card__call:hover {
  color: var(--red);
  border-color: rgba(232,25,44,0.25);
  background: rgba(232,25,44,0.04);
}
.card__call svg { flex-shrink: 0; }

.card__cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 9px;
  background: var(--bg-light);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--t1);
  border: 1px solid var(--border);
  transition: var(--ease);
  cursor: pointer;
}
.card__cta:hover {
  background: var(--grad);
  color: white;
  border-color: transparent;
}

/* Per-card buttons hidden — CTA moved to section level */
.card__call,
.card__cta { display: none; }

/* ===================================
   SECTION CTA (per-product-section)
=================================== */
.section-cta {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 22px 28px;
  background: white;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
}
.section--light .section-cta {
  background: var(--bg-light);
}
.section-cta__label {
  font-size: 15px;
  font-weight: 500;
  color: var(--t2);
  flex: 1;
  min-width: 200px;
}
.section-cta__btns {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
/* section-cta mobile → see RESPONSIVE section */

/* ===================================
   WHY US (dark section)
=================================== */
.why {
  background: var(--bg-dark);
  padding: var(--gap) 0;
}
.why__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 56px;
}
.why-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--r-md);
  padding: 28px 22px;
  transition: var(--ease);
}
.why-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,90,31,0.25);
  transform: translateY(-4px);
}
.why-card__icon {
  width: 46px;
  height: 46px;
  background: var(--grad);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.why-card__title {
  font-size: 15px;
  font-weight: 700;
  color: white;
  margin-bottom: 7px;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.why-card__text {
  font-size: 12px;
  color: rgba(255,255,255,0.42);
  line-height: 1.6;
}

/* ===================================
   TRADE-IN
=================================== */
.tradein {
  background: var(--bg-light);
  padding: 80px 0;
}
.tradein__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.tradein__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(232,25,44,0.07);
  border: 1px solid rgba(232,25,44,0.15);
  border-radius: 20px;
  padding: 5px 14px;
  margin-bottom: 20px;
}
.tradein__steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}
.tradein__step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.tradein__num {
  width: 32px;
  height: 32px;
  background: var(--grad);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}
.tradein__step-text {
  font-size: 15px;
  color: var(--t2);
  padding-top: 5px;
  line-height: 1.5;
}
.tradein__visual {
  background: linear-gradient(135deg, #1D1D1F 0%, #3A3A3C 100%);
  border-radius: var(--r-xl);
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.tradein__visual::before {
  content: 'Trade-in';
  font-size: 80px;
  font-weight: 900;
  color: rgba(255,255,255,0.04);
  letter-spacing: -3px;
  position: absolute;
}
.tradein__icon-wrap {
  position: relative;
  z-index: 1;
  text-align: center;
}
.tradein__icon-wrap p {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  margin-top: 12px;
  font-weight: 500;
}

/* ===================================
   CONTACTS
=================================== */
.contacts { padding: var(--gap) 0; }
.contacts__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contacts__list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 48px;
}
.citem {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.citem__icon {
  width: 44px;
  height: 44px;
  background: var(--bg-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.citem__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--t4);
  margin-bottom: 3px;
}
.citem__val {
  font-size: 17px;
  font-weight: 700;
  color: var(--t1);
  letter-spacing: -0.02em;
  line-height: 1.4;
}
.citem__val a { color: inherit; }
.citem__val a:hover { color: var(--red); }
.citem__note {
  font-size: 12px;
  color: var(--t3);
  margin-top: 2px;
}

.contacts__map {
  border-radius: var(--r-lg);
  overflow: hidden;
  /* высота задаётся самим изображением, чтобы pin точно попадал на метку */
  background: var(--bg-light);
  border: 1px solid var(--border);
  margin-top: 48px;
}
/* Статичная карта */
.map-wrap {
  position: relative;
  width: 100%;
}
.map-wrap__img {
  width: 100%;
  height: auto; /* сохраняет пропорции — pin всегда точно на месте */
  display: block;
  user-select: none;
}

/* Маркер iPhone 37 на карте */
.map-pin {
  position: absolute;
  left: 52%;
  top: 52%;
  transform: translate(-50%, calc(-100% - 10px));
  background: linear-gradient(135deg, #E8192C 0%, #FF5A1F 100%);
  border-radius: 12px 12px 12px 4px;
  padding: 8px 14px 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 28px rgba(232,25,44,0.45), 0 2px 8px rgba(0,0,0,0.2);
  white-space: nowrap;
  pointer-events: none;
}
.map-pin::after {
  content: '';
  position: absolute;
  bottom: -7px;
  left: 3px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7px 0 0 7px;
  border-color: transparent transparent transparent #FF5A1F;
}
.map-pin__logo {
  width: 20px;
  height: 23px;
  flex-shrink: 0;
  display: block;
}
.map-pin__info {
  display: flex;
  flex-direction: column;
}
.map-pin__name {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1;
}
.map-pin__sub {
  font-size: 10px;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  margin-top: 2px;
  line-height: 1;
}

/* Кнопка "Добраться" */
.map-btn {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: #fff;
  color: #1a1a1a;
  border-radius: 10px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.14), 0 1px 4px rgba(0,0,0,0.07);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.map-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  color: #1a1a1a;
}

/* ===================================
   FOOTER
=================================== */
.footer {
  background: var(--bg-darker);
  padding: 64px 0 40px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 36px;
}

.footer__brand .logo__name { color: white; }
.footer__desc {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255,255,255,0.38);
  margin-top: 14px;
}
.footer__social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.footer__soc-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--ease);
}
.footer__soc-btn:hover { background: rgba(255,255,255,0.12); }

.footer__col-t {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.38);
  margin-bottom: 16px;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__lnk {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  transition: var(--ease);
}
.footer__lnk:hover { color: white; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__legal {
  font-size: 11px;
  color: rgba(255,255,255,0.28);
  line-height: 2;
}

/* ===================================
   PRODUCT PAGE — HERO
=================================== */
.prod-hero {
  background: var(--bg-dark);
  padding-top: var(--hh);
  padding-bottom: 80px;
}

.breadcrumb {
  padding-top: 24px;
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,0.35); }
.breadcrumb a:hover { color: rgba(255,255,255,0.75); }
.breadcrumb span { color: rgba(255,255,255,0.15); }
.breadcrumb strong { color: rgba(255,255,255,0.65); font-weight: 500; }

.prod-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding-top: 40px;
}

.prod-hero__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}

.prod-hero__h1 {
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: white;
  margin-bottom: 20px;
}

.price-block {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-md);
  padding: 22px 24px;
  margin-bottom: 28px;
}
.price-block__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.38);
  margin-bottom: 6px;
}
.price-block__val {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 900;
  color: white;
  letter-spacing: -0.04em;
  line-height: 1;
}
.price-block__note {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  margin-top: 5px;
}

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

.prod-hero__vis {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 400px;
  background: rgba(255,255,255,0.03);
  border-radius: var(--r-xl);
  border: 1px solid rgba(255,255,255,0.05);
}

/* ===================================
   PRODUCT PAGE — CONTENT
=================================== */
.prod-content {
  padding: var(--gap) 0;
  max-width: 860px;
}
.prod-content h2 {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 52px 0 14px;
  color: var(--t1);
}
.prod-content h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 32px 0 10px;
  color: var(--t1);
}
.prod-content p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--t2);
  margin-bottom: 14px;
}
.prod-content ul {
  margin: 12px 0 20px;
}
.prod-content ul li {
  font-size: 16px;
  color: var(--t2);
  padding: 6px 0 6px 22px;
  position: relative;
  line-height: 1.6;
}
.prod-content ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 600;
}

/* Specs */
.specs {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 40px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
}
.specs tr:nth-child(even) { background: var(--bg-light); }
.specs td {
  padding: 13px 20px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.specs td:first-child {
  font-weight: 600;
  color: var(--t3);
  width: 42%;
}
.specs tr:last-child td { border-bottom: none; }

/* ===================================
   FAQ
=================================== */
.faq { background: var(--bg-light); padding: var(--gap) 0; }
.faq__list {
  max-width: 820px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq__item {
  background: white;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  overflow: hidden;
}
.faq__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 600;
  color: var(--t1);
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
  gap: 16px;
  line-height: 1.4;
}
.faq__ico {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  color: var(--t3);
  font-weight: 300;
  line-height: 1;
  transition: var(--ease);
}
.faq__item.open .faq__ico {
  transform: rotate(45deg);
  background: var(--grad);
  color: white;
}
.faq__ans {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease;
}
.faq__ans p {
  padding: 0 22px 22px;
  font-size: 15px;
  color: var(--t2);
  line-height: 1.7;
}
.faq__item.open .faq__ans { max-height: 600px; }

/* ===================================
   SEO TEXT BLOCK
=================================== */
.seo-text {
  padding: 52px 0 60px;
  background: var(--bg-light);
  border-top: 1px solid var(--border);
}
.seo-text__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.seo-text__h {
  font-size: 15px;
  font-weight: 700;
  color: var(--t2);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.seo-text__h--sm { font-size: 14px; }
.seo-text p {
  font-size: 13px;
  color: var(--t3);
  line-height: 1.75;
  margin-bottom: 10px;
}
.seo-text p a { color: var(--t3); text-decoration: underline; }
.seo-text p a:hover { color: var(--red); }
.seo-text p strong { color: var(--t2); font-weight: 600; }
@media (max-width: 640px) {
  .seo-text__inner { grid-template-columns: 1fr; gap: 24px; }
  .seo-text { padding: 36px 0 44px; }
}

/* ===================================
   RELATED PRODUCTS
=================================== */
.related { padding: var(--gap) 0; }

/* ===================================
   PRIVACY POLICY
=================================== */
.policy-page {
  padding-top: var(--hh);
  padding-bottom: var(--gap);
}
.policy-page h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  padding-top: 48px;
}
.policy-page .last-updated {
  color: var(--t3);
  font-size: 13px;
  margin-bottom: 40px;
}
.policy-page h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 36px 0 10px;
}
.policy-page p, .policy-page li {
  font-size: 15px;
  color: var(--t2);
  line-height: 1.8;
  margin-bottom: 10px;
}
.policy-page ul { padding-left: 20px; list-style: disc; }

/* ===================================
   ANIMATIONS
=================================== */
[data-a] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-a].vis {
  opacity: 1;
  transform: translateY(0);
}
[data-a="d1"] { transition-delay: 0.1s; }
[data-a="d2"] { transition-delay: 0.2s; }
[data-a="d3"] { transition-delay: 0.3s; }
[data-a="d4"] { transition-delay: 0.4s; }

/* ===================================
   RESPONSIVE
=================================== */

/* ── 1100px: планшеты / небольшие ноутбуки ── */
@media (max-width: 1100px) {
  .products-grid   { grid-template-columns: repeat(2, 1fr); }
  .products-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .why__grid       { grid-template-columns: repeat(3, 1fr); }
  .footer__inner   { grid-template-columns: 1fr 1fr; gap: 40px; }
  .hero__inner     { grid-template-columns: 1fr 1fr; gap: 0; }
}

/* ── 900px: планшеты / телефоны в альбомной ── */
@media (max-width: 900px) {
  :root { --gap: 70px; }

  /* header */
  .nav              { display: none; }
  .header__phone    { display: none; }
  .burger           { display: flex; }
  .header__right .btn { display: none; }

  /* hero: стек, gif сверху */
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 20px 0 56px;
  }
  .hero__visual {
    order: -1;
    height: 52vw;
    min-height: 200px;
    max-height: 360px;
    align-self: auto;
  }

  .hero__trust  { align-items: center; }
  .hero__btns   { justify-content: center; }

  /* sections */
  .contacts__inner  { grid-template-columns: 1fr; }
  .contacts__map    { margin-top: 0; }
  .tradein__inner   { grid-template-columns: 1fr; gap: 40px; }
  .tradein__visual  { height: 200px; }
  .why__grid        { grid-template-columns: repeat(2, 1fr); }
  .section-head     { flex-direction: column; align-items: flex-start; gap: 10px; }

  /* product pages */
  .prod-hero__inner { grid-template-columns: 1fr; }
  .prod-hero__vis   { order: -1; height: 300px; }
  .footer__inner    { grid-template-columns: 1fr 1fr; }
}

/* ── 640px: телефоны горизонтально / мелкие планшеты ── */
@media (max-width: 640px) {
  :root { --gap: 52px; }
  .container { padding: 0 16px; }

  /* grids — 2 кол на средних телефонах */
  .products-grid    { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .products-grid--2 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .products-grid--3 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .why__grid        { grid-template-columns: 1fr; }
  .footer__inner    { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom   { flex-direction: column; }
  .footer          { padding: 44px 0 28px; }

  /* hero */
  .hero__visual { height: 54vw; min-height: 180px; max-height: 280px; }
  .hero__inner  { padding: 14px 0 44px; }
  .hero__h1     { font-size: clamp(28px, 8vw, 42px); }
  .hero__sub    { font-size: 16px; margin-bottom: 20px; }
  .hero__trust  { margin-bottom: 24px; gap: 8px; }
  .hero__btns   { flex-direction: column; gap: 10px; }
  .hero__btns .btn { width: 100%; }

  /* cards: компактные для 2-кол */
  .card__vis        { height: 150px; }
  .card__photo      { height: 112px; }
  .card__vis--photo { padding: 10px 10px 8px; }
  .card__body       { padding: 10px 10px 14px; }
  .card__name       { font-size: 13px; }
  .card__spec       { font-size: 11px; margin-bottom: 8px; }
  .card__price      { font-size: 13px; margin-bottom: 0; }

  /* section CTA */
  .section-cta { flex-direction: column; padding: 16px; gap: 12px; margin-top: 28px; }
  .section-cta__label { min-width: unset; text-align: center; font-size: 14px; }
  .section-cta__btns  { width: 100%; gap: 10px; }
  .section-cta__btns .btn { flex: 1; padding: 12px 14px; font-size: 14px; }

  /* why */
  .why-card { padding: 20px 16px; }

  /* contacts */
  .contacts__list { margin-top: 28px; gap: 20px; }
  .map-pin { padding: 6px 10px 6px 8px; gap: 6px; }
  .map-pin__logo { width: 16px; height: 19px; }
  .map-pin__name { font-size: 12px; }
  .map-pin__sub  { font-size: 9px; }
  .map-btn { font-size: 13px; padding: 8px 13px; bottom: 10px; right: 10px; }

  /* product pages */
  .prod-hero__btns { flex-direction: column; }
  .prod-hero__btns .btn { width: 100%; }

  /* lightbox */
  .lb__nav  { width: 40px; height: 40px; }
  .lb__prev { left: 10px; }
  .lb__next { right: 10px; }
  .lb__img  { max-width: 92vw; max-height: 70vh; border-radius: 12px; }
}

/* ── 480px: типичные смартфоны (iPhone, Android 375–430px) ── */
@media (max-width: 480px) {
  :root { --gap: 44px; }
  .container { padding: 0 14px; }

  /* grids: 1 кол — карточки читаемы на маленьком экране */
  .products-grid    { grid-template-columns: 1fr; gap: 12px; }
  .products-grid--2 { grid-template-columns: 1fr; gap: 12px; }
  .products-grid--3 { grid-template-columns: 1fr; gap: 12px; }

  /* cards: восстанавливаем до нормального размера (1 кол) */
  .card__vis        { height: 190px; }
  .card__photo      { height: 150px; }
  .card__vis--photo { padding: 14px 14px 10px; }
  .card__body       { padding: 14px 14px 18px; }
  .card__name       { font-size: 15px; }
  .card__spec       { font-size: 12px; margin-bottom: 10px; }
  .card__price      { font-size: 14px; margin-bottom: 0; }

  /* hero */
  .hero__visual { height: 60vw; min-height: 160px; max-height: 240px; }
  .hero__inner  { padding: 10px 0 40px; }
  .hero__h1     { font-size: clamp(26px, 7.5vw, 36px); }
  .hero__tag    { font-size: 11px; margin-bottom: 16px; padding: 4px 12px; }
  .hero__sub    { font-size: 15px; }

  /* header */
  .logo__name { font-size: 16px; }
  .logo__mark { width: 28px; height: 28px; }

  /* section CTA: кнопки друг под другом */
  .section-cta__btns { flex-direction: column; gap: 8px; }
  .section-cta__btns .btn { width: 100%; flex: unset; }

  /* contacts */
  .citem__val    { font-size: 15px; }
  .citem__icon   { width: 38px; height: 38px; }
  .map-pin { padding: 5px 8px 5px 7px; gap: 5px; border-radius: 10px 10px 10px 3px; }
  .map-pin__logo { width: 14px; height: 16px; }
  .map-pin__name { font-size: 11px; }
  .map-pin__sub  { display: none; } /* скрываем подпись на очень маленьких экранах */
  .map-btn { font-size: 12px; padding: 7px 11px; gap: 5px; bottom: 8px; right: 8px; }

  /* lightbox */
  .lb__nav   { width: 36px; height: 36px; }
  .lb__prev  { left: 6px; }
  .lb__next  { right: 6px; }
  .lb__close { top: 12px; right: 12px; width: 36px; height: 36px; }
  .lb__img   { max-width: 96vw; max-height: 65vh; border-radius: 10px; }
}

/* ── 360px: очень маленькие экраны ── */
@media (max-width: 360px) {
  .container { padding: 0 12px; }
  .btn { padding: 12px 18px; font-size: 14px; }
  .hero__h1 { font-size: 26px; }
  .section-cta { padding: 14px 12px; }
}

/* ===================================
   FOCUS / ACCESSIBILITY
=================================== */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}

/* ===================================
   LIGHTBOX
=================================== */
.lb {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s;
}
.lb.open {
  opacity: 1;
  visibility: visible;
}
.lb__wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 16px;
}
.lb__img {
  max-width: min(88vw, 640px);
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.65);
  transform: scale(0.86);
  opacity: 0;
  transition:
    transform 0.36s cubic-bezier(0.34, 1.4, 0.64, 1),
    opacity 0.28s ease;
  cursor: zoom-out;
  user-select: none;
  -webkit-user-drag: none;
}
.lb.open .lb__img {
  transform: scale(1);
  opacity: 1;
}
.lb__dots-row {
  display: flex;
  gap: 7px;
  justify-content: center;
}
.lb__dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.22s ease;
}
.lb__dot.active {
  width: 20px;
  background: white;
}
.lb__nav,
.lb__close {
  position: fixed;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.lb__nav:hover,
.lb__close:hover {
  background: rgba(255, 255, 255, 0.22);
}
.lb__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
}
.lb__nav:hover { transform: translateY(-50%) scale(1.08); }
.lb__prev { left: 20px; }
.lb__next { right: 20px; }
.lb__close {
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
}
/* lightbox mobile → see RESPONSIVE section */
