:root {
  --bg: #0f1419;
  --bg-card: #1a222d;
  --bg-card-hover: #222c3a;
  --text: #e8edf4;
  --text-muted: #9aa8b8;
  --accent: #f59e0b;
  --accent-hover: #fbbf24;
  --accent-dark: #d97706;
  --border: #2a3544;
  --success: #22c55e;
  --max-width: 1120px;
  --radius: 12px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 20, 25, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.logo {
  display: flex;
  align-items: center;
  color: var(--text);
}

.logo img {
  display: block;
  height: 32px;
  width: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-messengers {
  display: flex;
  gap: 0.4rem;
}

.msg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 800;
  color: #fff !important;
}

.msg-wa { background: #25d366; }
.msg-tg { background: #2aabee; }
.msg-max { background: linear-gradient(135deg, #4f7cff, #8b5cf6); font-size: 0.62rem; }

.nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover,
.nav a.active {
  color: var(--accent);
}

.header-phones {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
}

.header-phones a {
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}

.header-phones a:hover {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
}

/* Hero */
.hero {
  padding: 3.5rem 0 2.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(245, 158, 11, 0.12), transparent),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin: 0 0 1rem;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  max-width: 38rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.badge strong {
  color: var(--accent);
}

.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.hero-card h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.price-list-compact {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.price-list-compact li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.price-list-compact li:last-child {
  border-bottom: none;
}

.price-list-compact .price {
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}

/* Buttons */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}

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

.btn-primary {
  background: var(--accent);
  color: #111;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #111;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

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

/* Sections */
.section {
  padding: 3rem 0;
}

.section-title {
  font-size: 1.65rem;
  margin: 0 0 0.5rem;
}

.section-subtitle {
  color: var(--text-muted);
  margin: 0 0 2rem;
  max-width: 40rem;
}

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.model-card {
  position: relative;
  isolation: isolate;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  min-height: 220px;
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s;
  display: flex;
  flex-direction: column;
  color: var(--text);
}

.model-card__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(80%) brightness(0.62) contrast(1.08);
  z-index: 0;
  transition: filter 0.2s, transform 0.25s;
  pointer-events: none;
}

.model-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 20, 25, 0.72) 0%,
    rgba(15, 20, 25, 0.38) 48%,
    rgba(15, 20, 25, 0.82) 100%
  );
  z-index: 1;
  transition: background 0.15s;
  pointer-events: none;
}

.model-card:hover {
  border-color: rgba(245, 158, 11, 0.35);
  transform: translateY(-2px);
}

.model-card:hover .model-card__photo {
  filter: grayscale(65%) brightness(0.7) contrast(1.08);
  transform: scale(1.04);
}

.model-card:hover::after {
  background: linear-gradient(
    180deg,
    rgba(15, 20, 25, 0.65) 0%,
    rgba(15, 20, 25, 0.3) 48%,
    rgba(15, 20, 25, 0.78) 100%
  );
}

.model-card__body {
  position: relative;
  z-index: 2;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  min-height: 220px;
}

.model-card .brand {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 700;
}

.model-card h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.model-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  flex: 1;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.model-card .card-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 0.25rem;
}

.model-card .card-link {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.feature-num {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  line-height: 2rem;
  text-align: center;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.feature p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Price table */
.price-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.price-table th,
.price-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.price-table th {
  background: var(--bg-card);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.price-table tr:last-child td {
  border-bottom: none;
}

.price-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.price-table .amount {
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.contact-card,
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}

.contact-list li:last-child {
  border-bottom: none;
}

.contact-list strong {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 320px;
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}

/* Model page */
.breadcrumbs {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.breadcrumbs a {
  color: var(--text-muted);
}

.model-hero {
  padding: 2rem 0 1rem;
}

.model-hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin: 0 0 0.75rem;
}

.model-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.model-meta-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
}

.model-meta-item span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.model-meta-item strong {
  font-size: 1.05rem;
  color: var(--accent);
}

.content-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.content-block h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}

.content-block p,
.content-block li {
  color: var(--text-muted);
}

.content-block ul {
  padding-left: 1.2rem;
}

.cta-banner {
  margin: 2rem 0;
  padding: 1.75rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(245, 158, 11, 0.05));
  border: 1px solid rgba(245, 158, 11, 0.3);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cta-banner h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}

.cta-banner p {
  margin: 0;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1.5rem;
}

.footer-grid h3 {
  color: var(--text);
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li {
  margin-bottom: 0.4rem;
}

.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
}

/* Floating bar */
.floating-bar {
  display: none;
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 200;
  flex-direction: column;
  gap: 0.5rem;
}

.float-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  color: #fff !important;
  font-size: 0.75rem;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.float-call { background: var(--success); font-size: 1.3rem; }
.float-wa { background: #25d366; }
.float-tg { background: #2aabee; }
.float-max { background: linear-gradient(135deg, #4f7cff, #8b5cf6); font-size: 0.62rem; }

.btn-max {
  background: linear-gradient(135deg, #4f7cff, #8b5cf6);
  color: #fff !important;
}

.btn-max:hover {
  filter: brightness(1.08);
  color: #fff !important;
}

/* Hero form */
.hero-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.hero-form-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.hero-form-note {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.form-consent {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.form-consent a { color: var(--accent); }

.form-message {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
}

.form-message--success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #86efac;
}

.form-message--error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-box {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 0.75rem;
}

.stat-box strong {
  display: block;
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.stat-box span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Brand filter */
.brand-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.brand-filter button {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}

.brand-filter button.active,
.brand-filter button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.step-num {
  width: 2rem;
  height: 2rem;
  line-height: 2rem;
  text-align: center;
  border-radius: 50%;
  background: var(--accent);
  color: #111;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

/* Compare table */
.compare-table {
  width: 100%;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  text-align: left;
}

.compare-table th {
  background: var(--bg-card);
}

.compare-table .yes { color: var(--success); }
.compare-table .no { color: #ef4444; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.gallery-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: transform 0.15s, border-color 0.15s;
}

.gallery-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.4);
}

.gallery-img {
  aspect-ratio: 4/3;
  background: #111820;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gallery-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-placeholder {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.gallery-caption {
  display: block;
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: var(--text);
}

/* Videos */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.video-card iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
  border-radius: var(--radius);
  background: #000;
}

.video-placeholder {
  aspect-ratio: 16/9;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
}

.video-placeholder p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.video-title {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 0.5rem; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.faq-q::after { content: "+"; color: var(--accent); }

.faq-item.open .faq-q::after { content: "−"; }

.faq-a {
  display: none;
  padding: 0 1.25rem 1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.faq-item.open .faq-a { display: block; }

/* Yandex reviews */
.yandex-reviews-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 500px;
}

.yandex-reviews-wrap iframe {
  width: 100%;
  height: 500px;
  border: 0;
}

.yandex-reviews-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.88rem;
}

.reviews-placeholder {
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.reviews-placeholder p { color: var(--text-muted); }

/* VK wall */
#vk-wall { min-height: 200px; }

.btn-navi {
  background: #fc3f1d;
  color: #fff !important;
}

.btn-navi:hover {
  background: #ff5533;
  color: #fff !important;
}

.symptoms-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.symptoms-list li {
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.kit-list {
  columns: 2;
  gap: 2rem;
  padding-left: 1.2rem;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .kit-list { columns: 1; }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .header-actions {
    display: none;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
  }

  .nav.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .floating-bar {
    display: flex;
  }
}
