/* =========================================================
   01) HERO
   ========================================================= */
.hero{
  /* layout handled by Bootstrap grid in markup */
}

.hero__promo{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin:12px 0 16px 0;
}
.input-row{
  display:flex;
  gap:10px;
  align-items:center;
}
.hero__stats{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:12px;
}

.hero__media{
  position:relative;
  border-radius:22px;
  border:1px solid var(--line);
  background:#eef6fc;
  display:grid;
  place-items:center;
  box-shadow:var(--shadow);
  overflow:hidden;
}
.media-placeholder{
  display:block;
  width:100%;
  height:auto;
  border-radius:22px;
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  object-fit:cover;
}
.corner-badge{
  position:absolute;
  top:10px;
  right:10px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  padding:6px 10px;
  font-weight:800;
  color:#0b4f7a;
  box-shadow:var(--shadow);
}

/* =========================================================
   02) CALC
   ========================================================= */
.section{ margin-top: clamp(48px, 6vw, 120px); }

.calc__grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px;
  margin-bottom:16px;
}
.control-head{
  display:flex;
  align-items:center;
  font-weight:800;
  margin-bottom:10px;
}
.range-row{
  display:flex;
  align-items:center;
  gap:10px;
}
.range-row input[type=range]{ width:100%; }
.range-row output,
.range-row input[type=number]{
  width:52px;
  text-align:center;
  background:#f5f9fd;
  border:1px solid var(--line);
  border-radius:10px;
  padding:6px 0;
  font-weight:700;
  color:#0b4f7a;
  appearance:textfield;
}
.range-row input[type=number]{
  width:72px;
  padding:8px 10px;
}

.plans{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
  margin-top:6px;
}
.plan{
  padding:20px;
  border-radius:18px;
  display:flex;
  flex-direction:column;
}
.plan.is-active{ outline:2px solid var(--primary); }
.plan__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:10px;
}
.plan__title{ font-weight:800; }
.plan__chip{
  background:#eff6ff;
  border:1px solid #dbeafe;
  color:#1d4ed8;
  padding:7px 12px;
  border-radius:999px;
  font-weight:700;
  font-size:13px;
}
.plan__list{ margin:0 0 10px 18px; }
.plan__price{
  font-size:24px;
  font-weight:800;
  margin-bottom:10px;
  color:#0b4f7a;
  display:flex;
  align-items:baseline;
  flex-wrap:wrap;
  gap:6px;
}
.calc__footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-top:14px;
  flex-wrap:wrap;
}
.calc__footer .muted{ min-width:140px; }
.calc__total{
  font-size:28px;
  font-weight:900;
  color:#0b4f7a;
}

/* =========================================================
   03) WHY SECTION
   ========================================================= */
.container-bg{
  padding:56px 48px;
  background:linear-gradient(180deg,#eaf4fb,#e7f2fa);
  border:1px solid #dff0fb;
  border-radius:24px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.6),
    0 10px 30px rgba(80,130,180,.15);
}
.why-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:36px;
  margin-top:8px;
}
.why-card{
  display:flex;
  gap:24px;
  align-items:flex-start;
  background:#fff;
  border:1px solid #e8eef6;
  border-radius:20px;
  padding:32px;
  box-shadow:0 10px 30px rgba(50,120,170,.12);
}
.why-icon{
  width:48px;
  height:48px;
  border-radius:0;
  background:transparent;
  border:none;
  box-shadow:none;
  display:flex;
  align-items:center;
  justify-content:center;
}

.why-h{ font-size:20px; font-weight:800; margin-bottom:6px; }
.why-p{ color:#6b7a8f; margin-bottom:10px; }
.why-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:700;
  color:#2a77a8;
}

/* =========================================================
   04) TIMELINE
   ========================================================= */
.timeline{
  position:relative;
  margin-top:10px;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:36px;
  align-items:start;
}
.timeline-line{
  position:absolute;
  left:0;
  right:0;
  top:72px;
  height:6px;
  background:linear-gradient(90deg,#3a8fbd,#a7cbe2);
  border-radius:6px;
  opacity:.35;
}
.timeline-item{
  position:relative;
  text-align:center;
}
.bubble{
  width:48px;
  height:48px;
  margin:0 auto 14px auto;
  border-radius:0;
  background:transparent;
  border:none;
  box-shadow:none;
  display:flex;
  align-items:center;
  justify-content:center;
}

.step-card{
  background:#fff;
  border-radius:16px;
  border:1px solid #e5eef6;
  padding:18px 20px;
  box-shadow:0 10px 26px rgba(50,120,170,.12);
}
.step-title{ font-weight:800; margin-bottom:6px; }
.step-text{ color:#6b7a8f; }

/* =========================================================
   05) SERVICES
   ========================================================= */
.svc-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:36px;
}
.svc-card{
  background:#fff;
  border:1px solid #e6eef6;
  border-radius:20px;
  padding:24px;
  box-shadow:0 10px 30px rgba(50,120,170,.12);
}
.svc-icon{
  width:48px;
  height:48px;
  border-radius:0;
  background:transparent;
  border:none;
  box-shadow:none;
  display:flex;
  align-items:center;
  justify-content:center;
}

.svc-h{
  font-size:22px;
  font-weight:800;
  margin:14px 0 6px 0;
}
.svc-p{ color:#6b7a8f; margin-bottom:10px; }
.svc-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:700;
  border-radius:999px;
  padding:6px 10px;
  font-size:13px;
}
.svc-badge.is-on{
  background:#e9f4ff;
  color:#1f6aa3;
  border:1px solid #cfe6ff;
}
.svc-badge.is-off{
  background:#f2f7fb;
  color:#47677f;
  border:1px solid #d9e7f3;
}


/* =========================================================
   HERO H1 responsive (main page)
   ========================================================= */
.hero .h1{
  font-size: clamp(30px, 7.2vw, 56px);
  line-height: 1.06;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  margin-bottom: 10px;
}

/* =========================================================
   07) HOME RESPONSIVE
   ========================================================= */
@media (max-width:1200px){
  .hero{ grid-template-columns:1fr; }
}
@media (max-width:1024px){
  .plans{ grid-template-columns:1fr; }
  .svc-grid{ grid-template-columns:1fr 1fr; }
  .timeline{ grid-template-columns:1fr 1fr; }
  .why-grid{ grid-template-columns:1fr 1fr; }
  .kpis{ grid-template-columns:1fr 1fr; }
}
@media (max-width:560px){
  .calc__grid{ grid-template-columns:1fr; }
  .kpis{ grid-template-columns:1fr; gap:8px; }
  .why-grid{ grid-template-columns:1fr; }
  .svc-grid{ grid-template-columns:1fr; }
  .timeline{ grid-template-columns:1fr; }
}

/* Countdown section with title */
#countdown-section {
  background: linear-gradient(135deg, #1E90FF 0%, #6A4CFF 100%);
  padding: 24px 28px;
  border-radius: 18px;
  margin: 16px 0 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow:
    0 10px 26px rgba(32, 86, 138, 0.18),
    0 4px 12px rgba(0, 0, 0, 0.10);
}

.countdown-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-title {
  margin-bottom: 16px;
  color: #ffffff;
}

.countdown-title .accent {
  color: #ffffff;
}

.countdown-timer {
  display: flex;
  gap: 16px;
  font-size: 40px;
  color: #ffffff;
  font-weight: bold;
}

.countdown-timer div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-timer div span {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.countdown-timer div p {
  margin: 0;
}

/* Более компактный вид на маленьких экранах */
@media (max-width: 768px) {
  #countdown-section {
    padding: 18px 16px;
    margin: 12px 0 18px;
  }
  .countdown-timer {
    font-size: 30px;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .countdown-timer {
    font-size: 24px;
    gap: 10px;
  }
}
.contact-form {
  margin-bottom: 20px;
}

/* ---- Calc: 2-column controls on desktop, without stretching ---- */
.calc .row.g-4{
  display:flex;
  flex-wrap:wrap;
  gap:22px;
}
.calc .row.g-4 > [class*="col-"]{
  flex: 1 1 100%;
  min-width: 0;
}
@media (min-width: 992px){
  .calc .row.g-4 > .col-lg-6{
    flex: 0 0 calc(50% - 11px);
    max-width: calc(50% - 11px);
  }
}

/* Keep the calc card compact and centered like other blocks */
.calc{
  padding-top: 22px;
}

/* ---- Calc: single cloud look (avoid double card inside content-block) ---- */
#calc-panel .content-block{
  padding: 28px 32px;
}

/* Remove inner "card" visuals so only the cloud wrapper is visible */
#calc-panel .content-block .card.calc{
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

/* Plans grid: prevent overflow and keep compact */
#calc-panel .plans{
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
#calc-panel .plan{
  min-width: 0;
}

/* Footer: keep aligned and avoid pushing width */
#calc-panel .calc__footer{
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 1024px){
  #calc-panel .plans{ grid-template-columns: 1fr; }
}

.svc-icon .ctrl-icon, .bubble .ctrl-icon, .why-icon .ctrl-icon{ width:48px; height:48px; }

#openOrder{ padding:10px 18px; border-radius:14px; font-weight:800; }


/* Калькулятор: минимальная стоимость */
.min-note{
  color:#ef4444;
  font-size:12px;
  font-weight:800;
  margin-left:8px;
}

/* Калькулятор: кнопка "О тарифе" прижата к низу карточки */
.plan__about{
  margin-top:auto;
}

/* Заблокированная кнопка заказа (когда не достигнут минимум) */
.btn-disabled{
  opacity:.55;
}


