:root {
  --bg: #161618;
  --bg-card: #1a1a1b;
  --border: #12575B;
  --accent: #24E9EB;
  --accent-dim: rgba(36, 233, 235, 0.15);
  --accent-glow: rgba(36, 233, 235, 0.25);
  --text: #E2E2E3;
  --text-dim: #888;
  --font: 'Exo 2', sans-serif;
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
* { scrollbar-width: thin; scrollbar-color: var(--border) var(--bg); }

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('bg.svg') center/cover no-repeat;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

header, main, footer, .map-section { position: relative; z-index: 1; }

.hidden { display: none !important; }

/* MAP */
.map-section {
  display: none;
  border-top: 1px solid var(--border);
}

.map-section.visible {
  display: block;
}

/* HEADER */
header {
  border-bottom: 1px solid var(--border);
  background: rgba(22, 22, 24, 0.95);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo svg {
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-main {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
}

.logo-sub {
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

nav {
  display: flex;
  gap: 4px;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 8px 18px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.tab-btn:hover { color: var(--text); }

.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* MAIN */
main {
  flex: 1;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
  padding: 28px 24px;
}

.tab-content { display: none; }
.tab-content.active { display: block; }

#tab-price { padding-bottom: 40vh; }

/* HERO */
.hero {
  text-align: center;
  margin-bottom: 32px;
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero-sub {
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.6;
}

/* SERVICES CARDS */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-icon { font-size: 1.4rem; }

.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.card p {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.5;
  flex: 1;
}

.btn-ghost {
  background: none;
  border: 1px solid var(--border);
  color: var(--accent);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  align-self: flex-start;
}

.btn-ghost:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
}

/* CONTACTS */
.contacts-section { text-align: center; }

.contacts-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 28px;
}

.contacts-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.contact-phone {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-shadow: 0 0 16px var(--accent-glow);
  display: block;
  width: 100%;
  margin-bottom: 8px;
}

.contact-phone:hover { opacity: 0.85; }

.contact-email {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-dim);
  text-decoration: none;
  display: block;
  width: 100%;
  margin-top: -4px;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.contact-email:hover { color: var(--accent); }

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--bg-card);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-btn:hover {
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  color: var(--accent);
}

/* PRICE TAB */
.price-header {
  margin-bottom: 28px;
}

.btn-back {
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0 0 12px;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: color 0.2s;
  display: block;
}

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

.price-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.price-note {
  color: var(--text-dim);
  font-size: 0.875rem;
}

.category-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.cat-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.cat-btn:hover { color: var(--text); border-color: #1e7a7f; }

.cat-btn.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

.price-table-wrap {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(26, 26, 27, 0.92);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.price-table th {
  background: #111113;
  color: var(--text-dim);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: left;
  padding: 14px 20px;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.price-table td {
  padding: 14px 20px;
  border-top: 1px solid rgba(18, 87, 91, 0.4);
}

.price-table tr:nth-child(even) td { background: rgba(26, 26, 27, 0.5); }

.price-table tr:hover td {
  background: var(--accent-dim);
  color: var(--accent);
}

.price-table td:last-child {
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
  text-align: right;
}

.header-right {
  display: flex;
  align-items: center;
}

.map-label {
  text-align: center;
  padding: 12px 24px;
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  background: var(--bg);
}

.map-section iframe {
  display: block;
  border: none;
  filter: saturate(0.6) brightness(0.85);
}

/* FOOTER */
footer {
  padding: 16px 24px;
  color: var(--text-dim);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.footer-address {
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  text-align: center;
}

.map-toggle-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--accent);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 7px 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.map-toggle-btn:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .header-inner { flex-direction: column; align-items: stretch; gap: 8px; }
  .header-right { width: 100%; }
  nav { width: 100%; }
  .tab-btn { flex: 1; text-align: center; }
  .logo-main { font-size: 0.95rem; }
  footer { flex-wrap: wrap; justify-content: center; gap: 10px; }
  .footer-address { width: 100%; text-align: center; order: -1; }
}
