/* ========= BASE ========= */
:root{
  --container: 1200px;
  --radius-xl: 28px;
  --radius-lg: 20px;

  --text: #e6ecf5;
  --muted: #c2c9d6;

  --card: #ffffff;
  --card-text: #0f172a;

  --brand: #2563eb;     /* link (синий) */
  --accent: #ef4444;    /* кнопка (красная) */

  --shadow: 0 18px 60px rgba(0,0,0,.35);
  --shadow-soft: 0 10px 30px rgba(2,6,23,.18);
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font: 16px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img{ display:block; max-width:100%; height:auto; }
a{ color: inherit; text-decoration: none; }

.container{
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
  position: relative;
}

/* ========= HERO ========= */
.hero{
  position: relative;
  padding: clamp(48px, 6vw, 72px) 0 clamp(120px, 12vw, 160px);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin: 20px;
  background: #0d1530;
}

.hero-media{
  position: absolute; inset: 0;
}

.hero-bg{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 55% center;
  filter: saturate(1.05) contrast(1.05) brightness(.9);
}

.hero-overlay{
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 600px at 15% 10%, rgba(255,255,255,.08), transparent 60%),
    linear-gradient(180deg, rgba(13,20,46,.45) 0%, rgba(13,20,46,.65) 100%),
    var(--overlay);
  mix-blend-mode: multiply;
}

.hero-content{
  position: relative;
  max-width: 800px;
}

.hero h1{
  margin: 0 0 14px 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-size: clamp(32px, 6vw, 64px);
}

.lead{
  margin: 0;
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text);
  opacity: .95;
}

/* ========= PROMO CARD ========= */
.promo-card{
  position: relative;
  margin-top: clamp(24px, 5vw, 40px);
  max-width: 760px;
  background: var(--card);
  color: var(--card-text);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 3vw, 32px);
  box-shadow: var(--shadow);
}

.promo-card h2{
  margin: 0 0 10px 0;
  font-size: clamp(20px, 3.2vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.promo-card p{
  margin: 0 0 16px 0;
  color: #243142;
}

.cta-link{
  display: inline-block;
  font-weight: 700;
  color: var(--brand);
  margin: 6px 0 14px 0;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.btn-danger{
  background: var(--accent);
  color: #fff;
}

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

/* ========= LAYOUT TWEAKS ========= */
@media (min-width: 1000px){
  .promo-card{
    /* лёгкое «всплытие» карточки как в макете */
    transform: translateY(10px);
  }
}

/* Мобильные правки */
@media (max-width: 720px){
  .hero{
    margin: 12px;
    padding-bottom: 40px; /* карточка станет обычным блоком без большого отступа */
    border-radius: 18px;
  }
  .promo-card{
    margin-top: 18px;
    border-radius: 16px;
  }
}
/* ========= INTRO SECTION ========= */
.intro{
  padding: clamp(42px, 7vw, 80px) 0;
}

.intro-title{
  margin: 0 0 clamp(22px, 3vw, 32px);
  text-align: center;
  font-size: clamp(26px, 4.5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #0f172a;
  color: #0f172a; /* белый на тёмном фоне */
}

.intro-grid{
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(20px, 5vw, 48px);
  align-items: start;
}

.intro-text p{
  margin: 0 0 18px;
  color: rgba(7, 17, 30, 0.95);
  font-size: clamp(16px, 2vw, 18px);
}

.intro-media{
  margin: 0;
  border-radius: 22px;
  background: rgba(255,255,255,.04);
  padding: 0; /* без рамки, только скругление у картинки */
  box-shadow: 0 20px 60px rgba(2, 6, 23, .28); /* мягкая тень */
  overflow: hidden;
}

.intro-media img{
  display:block;
  width:100%;
  height:auto;
  border-radius: 22px; /* повторяем скругление */
  object-fit: cover;
}

/* Мобильная адаптация */
@media (max-width: 900px){
  .intro-grid{
    grid-template-columns: 1fr;
  }
  .intro-media{
    order: 2; /* картинка после текста */
    border-radius: 18px;
  }
  .intro-media img{ border-radius: 18px; }
}

/* ========= SERVICES SECTION ========= */
.services {
  background: #f9fafb;
  padding: clamp(10px, 1vw, 500px) 0;
}

.services-title {
  text-align: center;
  font-size: clamp(26px, 4.5vw, 42px);
  font-weight: 800;
  color: #0f172a;
  margin-bottom: clamp(36px, 5vw, 60px);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(20px, 4vw, 40px);
}

.service-card {
  background: #fff;
  border-radius: 20px;
  padding: clamp(22px, 3vw, 32px);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
  font-size: clamp(18px, 2.2vw, 22px);
  color: #0f172a;
  margin: 14px 0 10px;
  font-weight: 700;
}

.service-card p {
  margin: 0 0 10px;
  color: #475569;
  font-size: 16px;
  line-height: 1.6;
}

.icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
}

.icon.blue { background: #2563eb; }
.icon.green { background: #16a34a; }
.icon.red { background: #ef4444; }

/* Адаптив */
@media (max-width: 700px) {
  .service-card {
    text-align: left;
  }
}

/* ========= WHY SECTION ========= */
.why {
  background: #f9fafb;
  padding: clamp(60px, 8vw, 100px) 0;
}

.why-title {
  text-align: center;
  font-size: clamp(26px, 4.5vw, 44px);
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 20px;
}

.why-subtext {
  text-align: center;
  color: #475569;
  font-size: 17px;
  line-height: 1.65;
  margin: 0 auto 16px;
  max-width: 900px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(18px, 3vw, 30px);
  margin-top: clamp(36px, 6vw, 60px);
}

.why-card {
  background: #fff;
  border-radius: 20px;
  padding: clamp(20px, 3vw, 30px);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.06);
  text-align: center;
  transition: all 0.3s ease;
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.1);
}

.why-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eff6ff;
  color: #2563eb;
  font-size: 22px;
  border-radius: 50%;
  margin: 0 auto 14px;
}

.why-card h3 {
  font-size: 18px;
  color: #0f172a;
  margin: 10px 0 8px;
  font-weight: 700;
}

.why-card p {
  color: #475569;
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

/* ========= IMPORTANCE SECTION ========= */
.importance {
  background: #fff;
  border-radius: 20px;
  padding: clamp(26px, 4vw, 40px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.05);
  margin-top: clamp(40px, 8vw, 70px);
}

.importance h3 {
  text-align: center;
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 18px;
}

.importance p {
  color: #475569;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 14px;
}

/* Мобильная адаптация */
@media (max-width: 700px) {
  .why-subtext { font-size: 15px; }
  .importance p { text-align: left; }
}

/* ========= INDUSTRIES ========= */
.industries{
  background: #f5f7fb;
  padding: clamp(60px, 1vw, 100px) 0;
}

.industries-title{
  text-align:center;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  color:#0f172a;
  margin: 0 0 10px;
}

.industries-sub{
  text-align:center;
  max-width: 900px;
  margin: 0 auto clamp(30px, 5vw, 50px);
  color:#475569;
  font-size: 17px;
  line-height: 1.65;
}

.industries-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 3vw, 28px);
}

@media (max-width: 1100px){
  .industries-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px){
  .industries-grid{ grid-template-columns: 1fr; }
}

.industry-card{
  background:#fff;
  border-radius: 20px;
  overflow: hidden; /* чтобы скругление работало для фото */
  box-shadow: 0 8px 30px rgba(0,0,0,.06);
  transition: transform .28s ease, box-shadow .28s ease;
}

.industry-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(0,0,0,.10);
}

.industry-img{
  margin:0;
  height: 200px;                 /* одинаковая высота превью */
  overflow:hidden;
}

.industry-img img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

.industry-body{
  padding: 18px 22px 22px;
}

.industry-body h3{
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  color:#0f172a;
}

.industry-body p{
  margin:0;
  color:#475569;
  line-height:1.6;
  font-size:15px;
}

/* ========= SERVICE AREAS ========= */
.areas {
  background: #f5f7fb;
  padding: clamp(50px, 1vw, 90px) 0;
}

.areas-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 12px 34px rgba(2, 6, 23, 0.08);
  padding: clamp(24px, 4vw, 40px);
}

.areas-title {
  text-align: center;
  font-size: clamp(26px, 4.5vw, 42px);
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px;
}

.areas-sub {
  text-align: center;
  color: #475569;
  font-size: 17px;
  margin: 0 0 clamp(20px, 3vw, 32px);
}

.areas-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(10px, 2vw, 16px);
}

@media (max-width: 1200px) {
  .areas-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 980px) {
  .areas-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .areas-grid { grid-template-columns: 1fr; }
}

.area-chip {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  text-align: center;
  padding: 14px 10px;
  border-radius: 14px;
  font-weight: 600;
  box-shadow: 0 2px 0 rgba(15, 23, 42, 0.06) inset;
}

.areas-foot {
  text-align: center;
  color: #64748b;
  margin: clamp(20px, 3vw, 28px) 0 14px;
}

.btn-primary {
  background: #2563eb;
  color: #fff;
  border: none;
}

.areas-cta {
  display: block;
  width: max(260px, 40%);
  margin: 0 auto;
  text-align: center;
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.25);
}
.areas-cta:active { transform: translateY(1px); }

/* ========= TOP 10 PROBLEMS ========= */
.problems{
  background:#ffffff;
  padding: clamp(50px, 1vw, 90px) 0;
}

.problems-title{
  text-align:center;
  font-size: clamp(26px, 5vw, 44px);
  font-weight: 800;
  color:#0f172a;
  margin: 0 0 clamp(20px, 4vw, 36px);
}

.problems-grid{
  list-style:none;      /* отключаем стандартную нумерацию <ol> */
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2.5vw, 22px);
}

@media (max-width: 1000px){
  .problems-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px){
  .problems-grid{ grid-template-columns: 1fr; }
}

.problem-card {
  position: relative;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px 18px 18px 54px; /* ← добавили слева место под цифру */
  box-shadow: 0 6px 24px rgba(0, 0, 0, .06);
  transition: transform .25s ease, box-shadow .25s ease;
}

.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .10);
}

.problem-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
  color: #0f172a;
  font-weight: 800;
}

.problem-card p {
  margin: 0;
  color: #475569;
  font-size: 15px;
  line-height: 1.6;
}

.badge{
  position: absolute;
  top: 12px; left: 12px;
  display:inline-flex;
  align-items:center; justify-content:center;
  width:28px; height:28px;
  border-radius:999px;
  background:#2563eb;
  color:#fff;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 4px 14px rgba(37,99,235,.35);
}

/* ========= REPAIR PROCESS ========= */
.process {
  background: #f8fafc;
  padding: clamp(30px, 1vw, 50px) 0;
}

.process-title {
  text-align: center;
  font-size: clamp(26px, 4.8vw, 44px);
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 clamp(28px, 4vw, 48px);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 3vw, 28px);
}

@media (max-width: 1000px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
}

.process-card {
  background: #fff;
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.process-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1);
}

.process-card h3 {
  margin: 12px 0 10px;
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}

.process-card p {
  margin: 0;
  color: #475569;
  font-size: 15.5px;
  line-height: 1.7;
}

/* Номера шагов */
.step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  border-radius: 8px;
}

.step-red {
  background: #dc2626;
}

.step-blue {
  background: #2563eb;
}

.step-green {
  background: #16a34a;
}

/* ======= CONTACT / CALL CLEAN ======= */
.contact {
  background: #1e3a8a;
  color: #fff;
  text-align: center;
  padding: clamp(20px, 1vw, 100px) 0;
}

.contact-title {
  font-size: clamp(28px, 4.8vw, 46px);
  font-weight: 800;
  margin-bottom: 10px;
}

.contact-sub {
  font-size: 17px;
  opacity: 0.95;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.btn-call {
  display: inline-block;
  padding: 18px 42px;
  border-radius: 12px;
  background: #dc2626;
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  transition: background 0.25s ease, transform 0.2s ease;
}

.btn-call:hover {
  background: #b91c1c;
  transform: translateY(-2px);
}

.call-note {
  font-size: 15px;
  opacity: 0.9;
  margin-top: 16px;
}

.business-hours {
  background: #172554;
  border-radius: 16px;
  padding: 20px 24px;
  max-width: 420px;
  margin: 40px auto 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
  text-align: left;
}

.business-hours h4 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
}

.business-hours p {
  margin: 6px 0;
  font-size: 15px;
}

.business-hours hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 12px 0;
}

.business-hours .emergency {
  color: #facc15;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.business-hours .emergency span {
  color: #facc15;
  font-weight: 800;
}

/* ===== FOOTER ===== */
.site-footer{
  background:#0f172a; /* тёмный */
  color:#e2e8f0;
  padding:56px 0 28px;
}
.site-footer .container{max-width:1200px;margin:0 auto;padding:0 20px;}

.footer-grid{
  display:grid;
  grid-template-columns: 1.25fr 1fr 1fr 1fr;
  gap:28px;
}
@media (max-width:1000px){
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width:640px){
  .footer-grid{ grid-template-columns: 1fr; }
}

.footer-title{
  font-size:24px;
  font-weight:800;
  margin:0 0 14px;
  color:#f8fafc;
}
.footer-subtitle{
  font-size:18px;
  font-weight:800;
  margin:0 0 12px;
  color:#f8fafc;
}
.footer-text{
  margin:0 0 16px;
  color:#cbd5e1;
  line-height:1.6;
}

.footer-icons{ display:flex; gap:12px; margin-top:10px; }
.icon-btn{
  width:38px; height:38px;
  display:inline-flex; align-items:center; justify-content:center;
  border-radius:50%;
  background:#2563eb; color:#fff; text-decoration:none;
}
.icon-btn:hover{ filter:brightness(1.1); }

.footer-list{ list-style:none; padding:0; margin:0; }
.footer-list li{
  padding:6px 0; color:#e2e8f0; opacity:.9;
}

.footer-more{
  display:inline-block; margin-top:8px;
  color:#93c5fd; text-decoration:none;
}
.footer-more:hover{ text-decoration:underline; }

.footer-label{
  margin:14px 0 4px;
  font-weight:800; color:#f8fafc;
}
.footer-emergency{ margin:0 0 8px; }
.wa-link{
  display:inline-flex; align-items:center; gap:8px;
  color:#25d366; font-weight:700; text-decoration:none;
}
.wa-link:hover{ text-decoration:underline; }

.licensed{ color:#16a34a; font-weight:700; }

/* bottom line */
.footer-copy{
  border-top:1px solid rgba(255,255,255,0.08);
  margin-top:28px; padding-top:18px;
  display:flex; gap:16px; justify-content:space-between; align-items:center;
  font-size:14px; color:#94a3b8;
}
.footer-copy .foot-meta{ display:flex; gap:10px; align-items:center; }
.footer-copy .dot{ opacity:.5; }
@media (max-width:700px){
  .footer-copy{ flex-direction:column; align-items:flex-start; gap:8px; }
}

/* === WHITE NAV === */
.white-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: background 0.3s ease;
}

.white-nav .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 70px;
}

.brand {
  color: #111827;
  font-weight: 800;
  font-size: 1.1rem;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav a {
  color: #374151;
  text-decoration: none;
  padding: 10px 8px;
  font-weight: 500;
  border-radius: 8px;
  transition: 0.2s;
}

.nav a:hover {
  color: #2563eb;
}

.nav a.active {
  color: #ffffff;
  background: #2563eb;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

/* burger */
.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  cursor: pointer;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #111827;
  margin: 4px 0;
  border-radius: 2px;
  transition: 0.3s;
}

/* responsive */
@media (max-width: 960px) {
  .nav {
    position: fixed;
    inset: 70px 0 auto 0;
    background: #ffffff;
    display: none;
    flex-direction: column;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  }

  .nav.show {
    display: flex;
  }

  .nav a {
    padding: 16px 20px;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #f3f4f6;
  }

  .nav-toggle {
    display: flex;
  }
}

/* плавный скролл */
html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 80px;
}

/* === CALL BUTTON === */
.btn-call {
  background: #2563eb;
  color: #fff !important;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.25s;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.25);
}

.btn-call:hover {
  background: #1d4ed8;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

/* мобильная версия */
@media (max-width: 960px) {
  .btn-call {
    display: block;
    width: 80%;
    margin: 16px auto;
    text-align: center;
    font-size: 1rem;
  }
}
/* ===== WHITE STICKY NAV with anchors ===== */
.white-nav{
  position: sticky; top: 0; z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0,0,0,.04);
}
.white-nav .container{ max-width:1200px; margin:0 auto; padding:0 20px; }

.nav-wrap{
  display:flex; align-items:center; justify-content:space-between;
  min-height:70px;
}

.brand{ color:#111827; font-weight:800; font-size:1.1rem; text-decoration:none; }

.nav{ display:flex; gap:22px; align-items:center; }
.nav a{
  color:#374151; text-decoration:none; padding:10px 8px; border-radius:8px; font-weight:500; transition:.2s;
}
.nav a:hover{ color:#2563eb; }
.nav a.active{ color:#fff; background:#2563eb; box-shadow:0 2px 6px rgba(37,99,235,.3); }

/* Call Now button in nav */
.nav .btn-call{
  background:#2563eb; color:#fff !important; font-weight:600;
  padding:10px 20px; border-radius:8px; box-shadow:0 3px 10px rgba(37,99,235,.25);
  transition:.25s;
}
.nav .btn-call:hover{ background:#1d4ed8; box-shadow:0 4px 14px rgba(37,99,235,.35); transform:translateY(-1px); }

/* burger */
.nav-toggle{
  display:none; border:none; background:transparent; cursor:pointer;
  width:40px; height:40px; flex-direction:column; justify-content:center; align-items:center;
}
.nav-toggle span{ width:24px; height:2px; background:#111827; margin:4px 0; border-radius:2px; transition:.3s; }

/* mobile */
@media (max-width:960px){
  .nav{
    position: fixed; inset:70px 0 auto 0;
    background:#ffffff; display:none; flex-direction:column;
    box-shadow:0 10px 20px rgba(0,0,0,.05);
  }
  .nav.show{ display:flex; }
  .nav a{ width:100%; text-align:center; padding:16px 20px; border-bottom:1px solid #f3f4f6; }
  .nav .btn-call{ width:80%; margin:16px auto; }
  .nav-toggle{ display:flex; }
}

/* smooth anchor scroll + offset for sticky header */
html{ scroll-behavior:smooth; }
[id]{ scroll-margin-top: 84px; }

/* высота шапки как переменная */
:root { --nav-h: 70px; }

/* 1) Делаем меню фиксированным */
.white-nav{
  position: fixed;      /* было: sticky */
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background:#fff;
  border-bottom:1px solid #e5e7eb;
  box-shadow:0 4px 12px rgba(0,0,0,.04);
  height: var(--nav-h);
}

/* чтобы контент не уехал под фиксированную шапку */
body{ padding-top: var(--nav-h); }

.white-nav .container{max-width:1200px;margin:0 auto;padding:0 20px;}
.nav-wrap{display:flex;align-items:center;justify-content:space-between;height:var(--nav-h);}

.brand{color:#111827;font-weight:800;text-decoration:none;}
.nav{display:flex;gap:20px;align-items:center;}
.nav a{color:#374151;text-decoration:none;padding:10px 8px;border-radius:8px;}
.nav a:hover{color:#2563eb;}
.btn-call{background:#2563eb;color:#fff!important;padding:10px 18px;border-radius:8px;}

/* 2) Мобильное меню: открывается под фиксированной шапкой */
.nav-toggle{display:none;border:0;background:transparent;width:40px;height:40px;flex-direction:column;justify-content:center;align-items:center;cursor:pointer;}
.nav-toggle span{display:block;width:24px;height:2px;background:#111827;margin:4px 0;border-radius:2px;}

@media (max-width:960px){
  .nav{
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    display: none;
    flex-direction: column;
    background: #fff;
    border-bottom:1px solid #f3f4f6;
    box-shadow:0 10px 20px rgba(0,0,0,.05);
  }
  .nav.show{ display:flex; }
  .nav a{ width:100%; text-align:center; border-bottom:1px solid #f3f4f6; padding:16px 20px; }
  .btn-call{ width:80%; margin:16px auto; }
  .nav-toggle{ display:flex; }
}

/* 3) Плавная прокрутка + компенсация фиксированной шапки для якорей */
html{ scroll-behavior: smooth; }
[id]{ scroll-margin-top: calc(var(--nav-h) + 14px); }

:root { --nav-h: 70px; }

/* фиксированная шапка поверх всего */
.white-nav{
  position: fixed; top:0; left:0; right:0; z-index:1300;
  background:#fff; border-bottom:1px solid #e5e7eb; height:var(--nav-h);
  box-shadow:0 4px 12px rgba(0,0,0,.04);
}
body{ padding-top: var(--nav-h); }

.nav-wrap{ display:flex; align-items:center; justify-content:space-between; height:var(--nav-h); }
.nav{ display:flex; gap:20px; align-items:center; }

/* бургер */
.nav-toggle{ display:none; width:40px; height:40px; border:0; background:transparent;
  flex-direction:column; justify-content:center; align-items:center; cursor:pointer; }
.nav-toggle span{ width:24px; height:2px; background:#111827; margin:4px 0; border-radius:2px; }

/* мобильное меню */
@media (max-width: 1024px){
  .nav{
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    display: none; flex-direction: column;
    background:#fff; border-bottom:1px solid #f3f4f6;
    box-shadow:0 10px 20px rgba(0,0,0,.05);
    z-index: 1200; /* выше контента */
  }
  .nav.show{ display:flex; }
  .nav a{ width:100%; text-align:center; padding:16px 20px; border-bottom:1px solid #f3f4f6; }
  .btn-call{ width:80%; margin:16px auto; }

  .nav-toggle{ display:flex; }
  /* блокируем скролл страницы, когда меню открыто */
  body.nav-open{ overflow: hidden; }
}

/* якоря: учёт высоты фикс-меню */
html{ scroll-behavior: smooth; }
[id]{ scroll-margin-top: calc(var(--nav-h) + 12px); }
