:root {
  --bg: #0d0e10;
  --bg-soft: #16181b;
  --bg-card: #1b1d21;
  --border: #2a2d32;
  --text: #f3f4f5;
  --text-dim: #a7acb3;
  --light-blue: #6cc9ff;
  --blue: #2f6fe0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --max-w: 1180px;
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Manrope", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Manrope", "Inter", system-ui, sans-serif;
  font-weight: 800;
  margin: 0 0 14px;
  line-height: 1.15;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 12px; color: var(--text-dim); }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(13, 14, 16, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.logo img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.logo span { color: var(--light-blue); }

.nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.nav a {
  color: var(--text-dim);
  font-size: 15px;
  font-weight: 600;
  transition: color 0.15s;
}
.nav a:hover { color: var(--text); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.phone-link {
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}
.phone-link:hover { color: var(--light-blue); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
  border: 1.5px solid transparent;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--light-blue);
  color: #071a33;
}
.btn-primary:hover { background: var(--blue); }

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--light-blue); color: var(--light-blue); }

.btn-lg { padding: 14px 28px; font-size: 16px; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  padding: 0;
}
.burger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Hero */
.hero {
  position: relative;
  padding: 90px 0 70px;
  background-size: cover;
  background-position: center;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 0%, rgba(108, 201, 255, 0.18), transparent 55%),
    linear-gradient(180deg, rgba(13, 14, 16, 0.88), rgba(13, 14, 16, 0.96) 70%, var(--bg));
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  margin-bottom: 20px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  color: var(--light-blue);
}

.hero h1 {
  font-size: clamp(30px, 5vw, 52px);
  max-width: 820px;
  margin: 0 auto 18px;
}

.hero-sub {
  max-width: 620px;
  margin: 0 auto 32px;
  font-size: 17px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.hero-stats div {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-stats strong {
  font-size: 22px;
  font-weight: 800;
  color: var(--light-blue);
}
.hero-stats span {
  font-size: 13px;
  color: var(--text-dim);
}

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-soft); }
.section h2 {
  font-size: clamp(26px, 4vw, 36px);
  text-align: center;
}
.section-sub {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
  font-size: 16px;
}

/* Services */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.15s, transform 0.15s;
  flex: 1 1 240px;
  max-width: 320px;
}
.service-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
}

.service-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(108, 201, 255, 0.14);
  color: var(--light-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.service-icon svg { width: 24px; height: 24px; }

.service-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.service-list li {
  padding: 6px 0;
  border-top: 1px solid var(--border);
  font-size: 14.5px;
  color: var(--text-dim);
}
.service-list li:first-child { border-top: none; }

.combo-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-dim);
}
.combo-list li:first-child { border-top: none; }
.combo-list .price {
  white-space: nowrap;
  font-weight: 700;
  color: var(--text);
}

/* Prices */
.prices-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.price-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  flex: 1 1 240px;
  max-width: 320px;
}

.price-group h3 {
  font-size: 17px;
  margin-bottom: 14px;
  color: var(--light-blue);
}

.price-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  font-size: 14px;
}
.price-list li:first-child { border-top: none; }

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

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

.gallery-item {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.stars {
  color: var(--light-blue);
  font-size: 16px;
  margin-bottom: 10px;
  letter-spacing: 2px;
}
.review-card p {
  font-size: 14.5px;
  color: var(--text);
  margin-bottom: 16px;
}
.review-author {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
}

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

.news-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s;
}
.news-card:hover {
  border-color: var(--light-blue);
  transform: translateY(-3px);
}

.news-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.news-card-body { padding: 20px 22px 24px; }

.news-date {
  font-size: 12px;
  color: var(--light-blue);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.news-card h3 {
  font-size: 18px;
  margin: 8px 0 10px;
}

.news-card p {
  font-size: 14.5px;
  margin-bottom: 16px;
}

.news-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--light-blue);
}
.news-link:hover { color: var(--text); }

/* Article page */
.article-hero {
  padding-top: 50px;
}
.article-hero img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 32px;
}

.article-meta {
  font-size: 13px;
  color: var(--light-blue);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.article-title {
  font-size: clamp(26px, 4vw, 40px);
  max-width: 780px;
  margin: 0 auto 36px;
  text-align: center;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
}

.article-body h2 {
  font-size: 22px;
  margin-top: 36px;
}

.article-body p, .article-body li {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.7;
}

.article-body ul {
  margin: 0 0 20px;
  padding-left: 22px;
  list-style: disc;
}
.article-body li { margin-bottom: 8px; }

.article-cta {
  margin-top: 40px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}
.article-cta p { color: var(--text); margin-bottom: 16px; }

.back-link {
  display: inline-block;
  margin: 40px auto 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--light-blue);
  text-align: center;
}
.back-link:hover { color: var(--text); }
.back-link-wrap { text-align: center; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: center;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.about-info h2 { text-align: left; }

.about-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.about-role {
  color: var(--light-blue);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

@media (max-width: 700px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 240px; margin: 0 auto; }
}

/* Contacts */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.contacts-info h2 { text-align: left; }

.contact-list { margin-bottom: 28px; }
.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}
.contact-list li:first-child { border-top: none; }

.contact-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--light-blue);
  font-weight: 700;
}

.socials { display: flex; gap: 16px; }
.socials a { font-weight: 700; }
.socials a:hover { color: var(--light-blue); }

.contacts-map {
  min-height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.contacts-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

/* Footer */
.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-dim);
}
.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: var(--light-blue); }

/* Floating MAX button */
.fab-max {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  z-index: 90;
}
.fab-max svg { width: 28px; height: 28px; }

/* Page header (sub-pages) */
.page-header {
  padding: 60px 0 40px;
  text-align: center;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.page-header h1 {
  font-size: clamp(28px, 4.5vw, 42px);
  margin-bottom: 10px;
}
.page-header p {
  max-width: 560px;
  margin: 0 auto;
  font-size: 16px;
}

/* Hub grid (homepage quick links) */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.hub-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.15s, transform 0.15s;
}
.hub-card:hover {
  border-color: var(--light-blue);
  transform: translateY(-3px);
}
.hub-card .service-icon { margin-bottom: 16px; }
.hub-card h3 { font-size: 18px; margin-bottom: 8px; }
.hub-card p { font-size: 14px; margin-bottom: 12px; }
.hub-card .news-link { font-size: 13.5px; }

/* Price tables */
.price-table-wrap { margin-bottom: 44px; }
.price-table-wrap h2 {
  font-size: 20px;
  text-align: left;
  margin-bottom: 16px;
  color: var(--light-blue);
}
table.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
table.price-table th,
table.price-table td {
  padding: 14px 20px;
  text-align: left;
  font-size: 15px;
}
table.price-table th {
  background: var(--bg-soft);
  color: var(--light-blue);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}
table.price-table td { border-top: 1px solid var(--border); color: var(--text-dim); }
table.price-table tr td:last-child,
table.price-table th:last-child {
  text-align: right;
  white-space: nowrap;
  font-weight: 700;
  color: var(--text);
}
table.price-table tbody tr:hover td { background: rgba(108, 201, 255, 0.05); }

/* Gallery captions */
.gallery-item { position: relative; }
.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(0deg, rgba(0,0,0,0.75), transparent);
}

/* Responsive */
@media (max-width: 860px) {
  .contacts-grid { grid-template-columns: 1fr; }
  .contacts-map { min-height: 260px; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 10px 0;
    transform: translateY(-130%);
    transition: transform 0.25s ease;
  }
  .nav.open { transform: translateY(0); }
  .nav a {
    width: 100%;
    text-align: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
  }
  .header-actions .phone-link { display: none; }
  .header-actions .btn-primary { display: none; }
  .burger { display: flex; }
  .hero { padding: 60px 0 50px; }
  .hero-stats { gap: 28px; }
  table.price-table { font-size: 13px; }
  table.price-table th, table.price-table td { padding: 10px 12px; }
}
