/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #111;
  color: #d4d4d4;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #e52020; text-decoration: none; transition: color .2s; }

/* === STICKY HEADER === */
.sticky-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(17,17,17,.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229,32,32,.25);
  padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 56px;
}
.sticky-header .brand {
  font-weight: 800; font-size: .9rem; color: #e52020;
  text-transform: uppercase; letter-spacing: .5px;
}
.call-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: #e52020; color: #fff; font-weight: 800;
  font-size: 1rem; padding: 10px 20px; border-radius: 50px;
  text-decoration: none; animation: pulse 2.5s infinite;
  white-space: nowrap;
  min-height: 44px;
  transition: background .2s, transform .15s;
}
.call-btn:hover { background: #ff4040; transform: scale(1.04); }
.call-btn:active { transform: scale(.97); background: #c41818; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(229,32,32,.5); }
  50% { box-shadow: 0 0 0 10px rgba(229,32,32,0); }
}

/* === SECTIONS === */
section { padding: 64px 20px; }
.container { max-width: 960px; margin: 0 auto; }
h2 {
  font-size: 1.75rem; font-weight: 800; color: #fff;
  text-align: center; margin-bottom: 36px;
  text-transform: uppercase; letter-spacing: .5px;
  line-height: 1.3;
}
h2 span { color: #e52020; }

/* === HERO === */
.hero {
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding-top: 80px; padding-bottom: 40px;
  background: linear-gradient(180deg, rgba(0,0,0,.65) 0%, rgba(17,17,17,1) 100%),
              url('img/sobol-4x4.jpg') center 65%/cover no-repeat;
}
.hero h1 {
  font-size: 2.6rem; font-weight: 900; color: #fff;
  text-transform: uppercase; margin-bottom: 12px;
  text-shadow: 0 2px 24px rgba(0,0,0,.8);
  line-height: 1.15;
}
.hero h1 em { font-style: normal; color: #e52020; }
.hero .subtitle {
  font-size: 1.1rem; color: #bbb; margin-bottom: 20px;
  max-width: 460px; margin-left: auto; margin-right: auto;
  line-height: 1.6;
}
.hero .phone-big {
  font-size: 2rem; font-weight: 900; color: #fff;
  display: block; margin: 16px 0;
  letter-spacing: 1.5px;
  transition: color .2s;
}
.hero .phone-big:hover { color: #e52020; }
.hero-buttons {
  display: flex; flex-direction: column; gap: 12px;
  align-items: center; justify-content: center; margin-top: 20px;
  width: 100%;
}
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #e52020; color: #fff; font-weight: 800;
  font-size: 1.15rem; padding: 16px 36px; border-radius: 50px;
  text-decoration: none; text-transform: uppercase;
  min-height: 52px; width: 100%; max-width: 320px;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(229,32,32,.3);
}
.btn-primary:hover { background: #ff4040; transform: scale(1.03); box-shadow: 0 6px 28px rgba(229,32,32,.4); }
.btn-primary:active { transform: scale(.97); background: #c41818; }
.btn-whatsapp {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #28a745; color: #fff; font-weight: 700;
  font-size: 1rem; padding: 14px 28px; border-radius: 50px;
  min-height: 48px; width: 100%; max-width: 320px;
  transition: background .2s, transform .15s;
}
.btn-whatsapp:hover { background: #2fc754; transform: scale(1.03); }
.btn-whatsapp:active { transform: scale(.97); }
.btn-max {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #7B68EE; color: #fff; font-weight: 700;
  font-size: 1rem; padding: 14px 28px; border-radius: 50px;
  min-height: 48px; width: 100%; max-width: 320px;
  transition: background .2s, transform .15s;
}
.btn-max:hover { background: #9580FF; transform: scale(1.03); color: #fff; }
.btn-max:active { transform: scale(.97); }
.max-hint {
  color: #999; font-size: .85rem; margin-top: 4px; text-align: center;
  width: 100%; flex-basis: 100%;
}
.hero-features {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin-top: 28px;
}
.hero-features span {
  background: rgba(229,32,32,.1); border: 1px solid rgba(229,32,32,.25);
  padding: 10px 18px; border-radius: 20px; font-size: 1.1rem; color: #ff6b6b;
  font-weight: 500;
}

/* === PROBLEMS === */
.problems { background: #0a0a0a; }
.problems-grid {
  display: grid; grid-template-columns: 1fr; gap: 12px;
}
.problem-card {
  background: #161616; border: 1px solid #252525; border-radius: 14px;
  padding: 20px; display: flex; align-items: flex-start; gap: 16px;
  transition: border-color .2s, background .2s;
}
.problem-card:hover { border-color: rgba(229,32,32,.3); background: #1a1a1a; }
.problem-card .icon { font-size: 2rem; flex-shrink: 0; line-height: 1; }
.problem-card h3 { color: #fff; font-size: 1rem; margin-bottom: 6px; font-weight: 700; }
.problem-card p { font-size: .9rem; color: #888; line-height: 1.5; }

/* === HOW IT WORKS === */
.how-it-works { background: #111; }
.steps-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.step {
  text-align: center; padding: 28px 20px; background: #161616;
  border-radius: 14px; position: relative;
  border: 1px solid #222;
  transition: border-color .2s;
}
.step:hover { border-color: rgba(229,32,32,.25); }
.step .num {
  width: 44px; height: 44px; background: #e52020; color: #fff;
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.2rem; margin-bottom: 14px;
}
.step h3 { color: #fff; margin-bottom: 8px; font-weight: 700; }
.step p { color: #888; font-size: 1.05rem; line-height: 1.6; }

/* === COMPARISON === */
.comparison { background: #0a0a0a; }

/* Mobile: cards instead of table */
.compare-table { display: none; }
.compare-cards { display: flex; flex-direction: column; gap: 12px; }
.compare-card {
  background: #161616; border: 1px solid #252525; border-radius: 14px;
  padding: 20px; overflow: hidden;
}
.compare-card .compare-param {
  font-weight: 700; color: #e52020; font-size: .85rem;
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 12px;
}
.compare-card .compare-row {
  display: flex; flex-direction: column; gap: 8px;
}
.compare-card .bad {
  color: #ff5555; font-size: .9rem; line-height: 1.5;
  padding: 8px 12px; background: rgba(255,68,68,.06); border-radius: 8px;
}
.compare-card .good {
  color: #55ff55; font-size: .9rem; line-height: 1.5;
  padding: 8px 12px; background: rgba(68,255,68,.06); border-radius: 8px;
}

/* Desktop table */
@media (min-width: 700px) {
  .compare-table {
    display: table;
    width: 100%; border-collapse: separate; border-spacing: 0;
    background: #161616; border-radius: 14px; overflow: hidden;
    border: 1px solid #252525;
  }
  .compare-cards { display: none; }
  .compare-table th, .compare-table td {
    padding: 14px 18px; text-align: left; border-bottom: 1px solid #222;
  }
  .compare-table th { background: #1a1a1a; color: #e52020; font-weight: 700; font-size: .9rem; }
  .compare-table .bad { color: #ff5555; }
  .compare-table .good { color: #55ff55; }
  .compare-table tr:last-child td { border-bottom: none; }
}

/* === EQUIPMENT === */
.equipment { background: #111; }
.equip-content { display: flex; flex-direction: column; gap: 28px; }
.equip-img { border-radius: 0; overflow: hidden; background: #111; }
.equip-img img { width: 100%; object-fit: cover; border-radius: 0; display: block; }
.equip-list { list-style: none; }
.equip-list li {
  padding: 12px 0; border-bottom: 1px solid #222;
  font-size: 1rem; display: flex; align-items: center; gap: 12px;
  color: #ccc; line-height: 1.5;
}
.equip-list li::before { content: "✅"; }
.equip-list li:last-child { border-bottom: none; }

/* === GALLERY === */
.gallery { background: #0a0a0a; }
.gallery-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px;
}
.gallery-grid img {
  width: 100%; height: 180px; object-fit: cover; border-radius: 10px;
  cursor: pointer; transition: transform .25s, opacity .2s;
}
.gallery-grid img:hover { transform: scale(1.03); opacity: .9; }

/* === PRICES === */
.prices { background: #111; }
.price-note {
  text-align: center; padding: 28px 24px;
  background: rgba(229,32,32,.08); border: 1px solid rgba(229,32,32,.2);
  border-radius: 16px; color: #ff6b6b;
}

/* === WHY US === */
.why-us { background: #0a0a0a; }
.why-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.why-card {
  background: #161616; border-radius: 14px; padding: 24px;
  text-align: center; border: 1px solid #222;
  transition: border-color .2s, transform .2s;
}
.why-card:hover { border-color: rgba(229,32,32,.25); transform: translateY(-2px); }
.why-card .icon { font-size: 2.2rem; margin-bottom: 12px; }
.why-card h3 { color: #fff; margin-bottom: 8px; font-weight: 700; }
.why-card p { color: #888; font-size: 1.05rem; line-height: 1.6; }

/* === FAQ === */
.faq { background: #111; }
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #222; }
.faq-q {
  width: 100%; background: none; border: none; color: #fff;
  font-size: 1rem; font-weight: 700; padding: 20px 0;
  text-align: left; cursor: pointer; display: flex;
  justify-content: space-between; align-items: center;
  font-family: inherit; line-height: 1.4;
  min-height: 56px;
  -webkit-tap-highlight-color: transparent;
  transition: color .2s;
}
.faq-q:hover { color: #e52020; }
.faq-q::after {
  content: "+"; font-size: 1.4rem; color: #e52020;
  transition: transform .3s ease;
  flex-shrink: 0; margin-left: 12px;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .4s cubic-bezier(.4,0,.2,1), padding .3s ease;
  color: #999; font-size: .95rem; line-height: 1.7;
  padding: 0 0 0 0;
}
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 20px; }

/* === CONTACTS === */
.contacts { background: #0a0a0a; text-align: center; padding-bottom: 80px; }
.contacts .phone-huge {
  font-size: 2.2rem; font-weight: 900; color: #fff;
  display: block; margin: 20px 0;
  transition: color .2s;
}
.contacts .phone-huge:hover { color: #e52020; }
.contact-buttons {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  justify-content: center; margin-top: 20px;
}
.geo-list {
  margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
}
.geo-list span {
  background: #161616; padding: 8px 16px; border-radius: 20px;
  font-size: .85rem; color: #888; border: 1px solid #222;
}

/* === FOOTER === */
footer {
  text-align: center; padding: 24px 20px;
  border-top: 1px solid #222; color: #555; font-size: .8rem;
}

/* === LIGHTBOX === */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.96); align-items: center; justify-content: center;
  cursor: pointer;
  animation: fadeIn .2s ease;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 94%; max-height: 88vh; border-radius: 10px;
  box-shadow: 0 12px 48px rgba(0,0,0,.6);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* === SAFE AREA (notch phones) === */
@supports (padding: env(safe-area-inset-bottom)) {
  .contacts { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .sticky-header { padding-top: env(safe-area-inset-top); }
}

/* === TABLET === */
@media (min-width: 600px) {
  .problems-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .gallery-grid img { height: 200px; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 3rem; }
  .hero .phone-big { font-size: 2.6rem; }
  .hero-buttons { flex-direction: row; flex-wrap: wrap; justify-content: center; }
}

/* === DESKTOP === */
@media (min-width: 960px) {
  section { padding: 80px 24px; }
  .problems-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(5, 1fr); }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .gallery-grid img { height: 220px; }
  .why-grid { grid-template-columns: repeat(4, 1fr); }
  .equip-content { flex-direction: row; align-items: center; }
  .equip-img { flex: 1; }
  .equip-text { flex: 1; }
  .hero h1 { font-size: 3.5rem; }
  .contacts .phone-huge { font-size: 3rem; }
}
