/* ============================================
   VOLTS.BY — Design System
   Electrician services Minsk
   ============================================ */

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

:root {
  --navy:   #0d1b2a;
  --navy2:  #162236;
  --accent: #f5a623;
  --accent2:#e8920f;
  --green:  #22c55e;
  --white:  #ffffff;
  --gray50: #f8fafc;
  --gray100:#f1f5f9;
  --gray200:#e2e8f0;
  --gray400:#94a3b8;
  --gray600:#475569;
  --gray800:#1e293b;
  --text:   #0f172a;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(13,27,42,.10);
  --shadow-lg: 0 8px 40px rgba(13,27,42,.16);
  --font-head: 'Geologica', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --max-w: 1160px;
  --section: 80px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--text); background: var(--white); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── TYPOGRAPHY ─────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
p { margin-bottom: 1rem; color: var(--gray600); }
p:last-child { margin-bottom: 0; }

/* ── LAYOUT ─────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.section { padding: var(--section) 0; }
.section--dark { background: var(--navy); color: var(--white); }
.section--dark p { color: rgba(255,255,255,.7); }
.section--gray { background: var(--gray50); }

/* ── HEADER ─────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 24px;
}
.logo {
  font-family: var(--font-head); font-weight: 900;
  font-size: 1.6rem; color: var(--white); letter-spacing: -1px;
}
.logo span { color: var(--accent); }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  font-size: .875rem; font-weight: 600; color: rgba(255,255,255,.75);
  padding: 6px 12px; border-radius: 8px;
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--white); background: rgba(255,255,255,.08); }
.header__cta {
  background: var(--accent); color: var(--navy) !important;
  font-weight: 700; border-radius: 8px;
  padding: 8px 18px !important;
  transition: background .15s !important;
}
.header__cta:hover { background: var(--accent2) !important; }
.header__phone { color: var(--white); font-weight: 700; font-size: .95rem; white-space: nowrap; }
.burger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.burger span { display: block; width: 24px; height: 2px; background: white; margin: 5px 0; border-radius: 2px; transition: .2s; }

/* ── HERO ────────────────────────────────────── */
.hero {
  background: var(--navy);
  position: relative; overflow: hidden;
  padding: 72px 0 80px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 800px 500px at 70% 50%, rgba(245,166,35,.12), transparent);
  pointer-events: none;
}
.hero__inner { display: grid; grid-template-columns: 1fr 420px; gap: 48px; align-items: center; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245,166,35,.15); border: 1px solid rgba(245,166,35,.3);
  border-radius: 100px; padding: 6px 14px;
  font-size: .8rem; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 20px;
}
.hero h1 { color: var(--white); margin-bottom: 16px; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero__sub { font-size: 1.05rem; color: rgba(255,255,255,.7); margin-bottom: 32px; max-width: 520px; }
.hero__btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius);
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  cursor: pointer; border: none; transition: all .15s;
}
.btn--primary { background: var(--accent); color: var(--navy); }
.btn--primary:hover { background: var(--accent2); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(245,166,35,.35); }
.btn--outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.3); }
.btn--outline:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn--dark { background: var(--navy); color: var(--white); }
.btn--dark:hover { background: var(--navy2); }
.hero__stats { display: flex; gap: 32px; margin-top: 40px; }
.hero__stat-n { font-family: var(--font-head); font-size: 1.8rem; font-weight: 900; color: var(--accent); }
.hero__stat-l { font-size: .8rem; color: rgba(255,255,255,.6); margin-top: 2px; }

/* ── CARD ────────────────────────────────────── */
.hero__card {
  background: var(--white); border-radius: 20px;
  padding: 28px; box-shadow: var(--shadow-lg);
}
.hero__card h3 { font-size: 1.1rem; margin-bottom: 16px; }
.price-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--gray100); }
.price-row:last-child { border-bottom: none; }
.price-row .label { font-size: .875rem; color: var(--gray600); }
.price-row .price { font-weight: 700; font-size: .95rem; color: var(--navy); }
.card-form { margin-top: 20px; }
.card-form input, .card-form textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--gray200); border-radius: 10px;
  font-family: var(--font-body); font-size: .9rem;
  margin-bottom: 10px; transition: border-color .15s;
  background: var(--gray50);
}
.card-form input:focus, .card-form textarea:focus { outline: none; border-color: var(--accent); background: white; }
.card-form .btn { width: 100%; justify-content: center; }

/* ── SERVICES GRID ──────────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service-card {
  background: var(--white); border: 1.5px solid var(--gray100);
  border-radius: var(--radius); padding: 24px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 3px; height: 100%; background: var(--accent);
  transform: scaleY(0); transition: transform .2s;
}
.service-card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.service-card:hover::before { transform: scaleY(1); }
.service-card__icon { font-size: 2rem; margin-bottom: 12px; }
.service-card__title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.service-card__desc { font-size: .85rem; color: var(--gray600); margin: 0; }
.service-card__price { margin-top: 12px; font-size: .85rem; font-weight: 700; color: var(--accent); }

/* ── PROCESS ────────────────────────────────── */
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.process-steps::before {
  content: ''; position: absolute; top: 28px; left: 10%; right: 10%;
  height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent2));
  z-index: 0;
}
.step { text-align: center; position: relative; z-index: 1; }
.step__num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent); color: var(--navy);
  font-family: var(--font-head); font-weight: 900; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; box-shadow: 0 0 0 6px rgba(245,166,35,.2);
}
.step h4 { margin-bottom: 8px; font-size: 1rem; }

/* ── PRICES TABLE ───────────────────────────── */
.prices-table { width: 100%; border-collapse: collapse; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.prices-table thead { background: var(--navy); color: white; }
.prices-table th { padding: 14px 20px; text-align: left; font-size: .875rem; text-transform: uppercase; letter-spacing: .06em; }
.prices-table td { padding: 14px 20px; border-bottom: 1px solid var(--gray100); font-size: .9rem; }
.prices-table tr:last-child td { border-bottom: none; }
.prices-table tr:hover td { background: var(--gray50); }
.prices-table td:last-child { font-weight: 700; color: var(--navy); white-space: nowrap; }

/* ── TRUST BLOCKS ───────────────────────────── */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.trust-card {
  background: var(--white); border-radius: var(--radius);
  padding: 28px; border-left: 4px solid var(--accent);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  color: var(--text);
}
.trust-card__icon { font-size: 2rem; margin-bottom: 12px; }
.trust-card h4 { margin-bottom: 8px; color: var(--text); font-size: 1rem; }
.trust-card p { color: var(--gray600); }

/* ── REVIEWS ────────────────────────────────── */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review-card {
  background: var(--white); border: 1.5px solid var(--gray100);
  border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow);
}
.review-stars { color: var(--accent); font-size: 1.1rem; margin-bottom: 10px; }
.review-text { font-size: .9rem; color: var(--gray600); margin-bottom: 14px; font-style: italic; }
.review-author { font-weight: 700; font-size: .875rem; }
.review-meta { font-size: .8rem; color: var(--gray400); margin-top: 2px; }

/* ── FAQ ────────────────────────────────────── */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--gray200); }
.faq-q {
  width: 100%; background: none; border: none; text-align: left;
  padding: 20px 0; display: flex; justify-content: space-between;
  align-items: center; cursor: pointer; font-family: var(--font-head);
  font-weight: 700; font-size: 1rem; color: var(--text);
  gap: 16px;
}
.faq-q svg { flex-shrink: 0; transition: transform .25s; color: var(--text); }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { display: none; padding-bottom: 18px; color: var(--gray600); font-size: .9rem; line-height: 1.7; }
.faq-item.open .faq-a { display: block; }
/* FAQ in dark sections */
.section--dark .faq-item { border-bottom: 1px solid rgba(255,255,255,.12); }
.section--dark .faq-q { color: var(--white); }
.section--dark .faq-q svg { color: var(--white); }
.section--dark .faq-q svg path { stroke: var(--white); }
.section--dark .faq-a { color: rgba(255,255,255,.72); }
/* Trust cards in dark sections — force white bg + dark text */
.section--dark .trust-card { background: var(--white); color: var(--text); }
.section--dark .trust-card h4 { color: var(--text); }
.section--dark .trust-card p { color: var(--gray600); }

/* ── SECTION HEADER ─────────────────────────── */
.section-header { text-align: center; margin-bottom: 48px; }
.section-header .tag {
  display: inline-block; background: rgba(245,166,35,.12);
  color: var(--accent2); border-radius: 100px; padding: 4px 14px;
  font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; margin-bottom: 12px;
}
.section-header h2 { margin-bottom: 12px; }
.section-header p { color: var(--gray600); max-width: 580px; margin: 0 auto; }

/* ── FORM ───────────────────────────────────── */
.form-section { background: var(--navy); }
.form-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.form-side h2 { color: white; margin-bottom: 16px; }
.form-side p { color: rgba(255,255,255,.65); }
.main-form { background: white; border-radius: 20px; padding: 36px; }
.main-form h3 { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.form-field label { font-size: .8rem; font-weight: 700; color: var(--gray600); text-transform: uppercase; letter-spacing: .06em; }
.form-field input, .form-field textarea, .form-field select {
  padding: 12px 14px; border: 1.5px solid var(--gray200);
  border-radius: 10px; font-family: var(--font-body); font-size: .9rem;
  transition: border-color .15s; background: var(--gray50);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--accent); background: white;
}
.form-field textarea { height: 100px; resize: vertical; }
.form-note { font-size: .78rem; color: var(--gray400); margin-top: 8px; }

/* ── BREADCRUMB ─────────────────────────────── */
.breadcrumb { padding: 14px 0; }
.breadcrumb ol { display: flex; gap: 8px; align-items: center; list-style: none; flex-wrap: wrap; }
.breadcrumb li { font-size: .82rem; color: var(--gray400); }
.breadcrumb li a { color: var(--gray600); }
.breadcrumb li a:hover { color: var(--accent); }
.breadcrumb li::after { content: '›'; margin-left: 8px; }
.breadcrumb li:last-child::after { display: none; }
.breadcrumb li:last-child { color: var(--text); }

/* ── PAGE HERO ──────────────────────────────── */
.page-hero {
  background: var(--navy); padding: 52px 0 56px;
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; right: -100px; top: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(245,166,35,.1), transparent 70%);
  pointer-events: none;
}
.page-hero h1 { color: white; margin-bottom: 14px; }
.page-hero p { color: rgba(255,255,255,.7); max-width: 600px; font-size: 1.05rem; }
.page-hero__img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  border-radius: var(--radius); margin-top: 36px;
  box-shadow: var(--shadow-lg);
}

/* ── CONTENT ARTICLE ────────────────────────── */
.content-grid { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.content-body h2 { margin: 2rem 0 1rem; }
.content-body h3 { margin: 1.5rem 0 .75rem; }
.content-body ul, .content-body ol { padding-left: 1.4rem; margin-bottom: 1rem; }
.content-body li { color: var(--gray600); margin-bottom: .4rem; }
.content-body img { border-radius: var(--radius); margin: 24px 0; box-shadow: var(--shadow); }

/* ── SIDEBAR ────────────────────────────────── */
.sidebar { position: sticky; top: 84px; }
.sidebar-card {
  background: var(--gray50); border: 1.5px solid var(--gray200);
  border-radius: var(--radius); padding: 24px; margin-bottom: 20px;
}
.sidebar-card h4 { margin-bottom: 14px; font-size: 1rem; }
.sidebar-links { list-style: none; }
.sidebar-links li { border-bottom: 1px solid var(--gray200); }
.sidebar-links a { display: block; padding: 10px 0; font-size: .875rem; color: var(--gray600); transition: color .15s; }
.sidebar-links a:hover { color: var(--accent); }
.sidebar-cta { background: var(--navy); border-radius: var(--radius); padding: 24px; color: white; text-align: center; }
.sidebar-cta h4 { color: white; margin-bottom: 8px; }
.sidebar-cta p { color: rgba(255,255,255,.7); font-size: .85rem; margin-bottom: 16px; }
.sidebar-cta .btn { width: 100%; justify-content: center; }

/* ── DISTRICT ───────────────────────────────── */
.district-map {
  background: var(--gray100); border-radius: var(--radius);
  height: 280px; display: flex; align-items: center; justify-content: center;
  font-size: 3rem; margin-bottom: 24px;
}

/* ── BLOG ───────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card {
  background: var(--white); border: 1.5px solid var(--gray100);
  border-radius: var(--radius); overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.blog-card__img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.blog-card__body { padding: 20px; }
.blog-card__tag { font-size: .75rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.blog-card__title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.blog-card__title:hover { color: var(--accent); }
.blog-card__date { font-size: .8rem; color: var(--gray400); }

/* ── FOOTER ─────────────────────────────────── */
.footer { background: var(--navy); color: rgba(255,255,255,.7); padding: 56px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer__brand p { font-size: .875rem; margin-top: 12px; max-width: 240px; }
.footer h5 { color: white; font-size: .875rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { font-size: .875rem; color: rgba(255,255,255,.65); transition: color .15s; }
.footer ul a:hover { color: var(--accent); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: .8rem; flex-wrap: wrap; gap: 12px; }
.footer__phone { color: white; font-weight: 700; font-size: 1.1rem; }

/* ── RESPONSIVE ─────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-steps::before { display: none; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__card { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}
@media (max-width: 768px) {
  :root { --section: 52px; }
  .trust-grid, .reviews-grid, .blog-grid { grid-template-columns: 1fr; }
  .form-wrap { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; position: fixed; inset: 0; top: 68px; background: var(--navy); padding: 20px; z-index: 99; }
  .burger { display: block; }
  .footer__grid { grid-template-columns: 1fr; }
  .prices-table { font-size: .8rem; }
  .prices-table th, .prices-table td { padding: 10px 12px; }
  .hero__stats { flex-wrap: wrap; gap: 20px; }
}
