:root {
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --accent: #2563eb;          /* Сапфирово-синий */
  --accent-hover: #1d4ed8;
  --accent-text: #ffffff;
  --text-main: #0f172a;        /* Глубокий темный сланец */
  --text-muted: #64748b;       /* Спокойный серый */
  --border: #e2e8f0;          /* Тонкие чистые границы */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --radius: 16px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.55;
  padding-bottom: 70px;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px;
}

/* Навигация */
header {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #0f172a;
  white-space: nowrap;
}

.logo span {
  color: var(--accent);
}

.header-status {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
}

@media(min-width: 900px) {
  .header-status {
    display: inline-flex;
  }
}

.header-contacts {
  display: flex;
  align-items: center;
}

.phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.25);
  padding: 8px 16px;
  border-radius: 10px;
  color: #1e3a8a;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  letter-spacing: -0.2px;
  transition: var(--transition);
}

.phone-btn:hover {
  background: rgba(37, 99, 235, 0.12);
  border-color: var(--accent);
  box-shadow: 0 0 14px rgba(37, 99, 235, 0.15);
}

.phone-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  flex-shrink: 0;
}

.phone-number {
  white-space: nowrap;
}

@media(max-width: 480px) {
  .phone-btn {
    padding: 6px 10px;
    font-size: 0.85rem;
    gap: 6px;
  }
  .phone-icon {
    width: 22px;
    height: 22px;
  }
  .phone-icon svg {
    width: 13px;
    height: 13px;
  }
}

/* Главный экран (Hero) */
.hero {
  padding: 38px 0 32px;
}

.badge {
  display: inline-block;
  max-width: 100%;
  padding: 6px 14px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 16px;
}

h1 {
  font-size: 1.85rem;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.6px;
  word-break: break-word;
  overflow-wrap: break-word;
  color: #0f172a;
}

h1 span {
  color: var(--accent);
}

@media(min-width: 768px) {
  h1 {
    font-size: 2.75rem;
    line-height: 1.15;
  }
  .hero {
    padding: 64px 0 44px;
  }
}

.hero-sub {
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 740px;
  margin-bottom: 28px;
}

@media(min-width: 768px) {
  .hero-sub {
    font-size: 1.15rem;
    margin-bottom: 34px;
  }
}

/* Карточка захвата и расчета */
.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-md);
}

@media(min-width: 768px) {
  .hero-card {
    padding: 30px;
  }
}

.hero-card-title {
  margin-bottom: 8px;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.hero-card-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 18px;
  line-height: 1.5;
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media(min-width: 860px) {
  .form-grid {
    flex-direction: row;
  }
}

.input-link {
  flex: 1;
  padding: 15px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #f8fafc;
  color: #0f172a;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.input-link:focus {
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.btn-group {
  display: flex;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 22px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-size: 0.95rem;
  text-align: center;
  white-space: nowrap;
}

.btn-accent {
  background: var(--accent);
  color: var(--accent-text);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-accent:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
}

.btn-viber {
  background: #7360f2;
  color: #fff;
  box-shadow: 0 4px 14px rgba(115, 96, 242, 0.25);
}

.btn-viber:hover {
  background: #5f4cd0;
}

.btn-secondary {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Блок честной сметы */
.breakdown-section {
  padding-bottom: 40px;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.4px;
  color: #0f172a;
}

@media(min-width: 768px) {
  .section-title {
    font-size: 2rem;
    margin-bottom: 10px;
  }
}

.section-sub {
  color: var(--text-muted);
  margin-bottom: 26px;
  font-size: 0.95rem;
  max-width: 700px;
}

.breakdown-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media(min-width: 640px) {
  .breakdown-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(min-width: 1024px) {
  .breakdown-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.breakdown-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.breakdown-card:hover {
  border-color: rgba(37, 99, 235, 0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.breakdown-icon {
  font-size: 1.7rem;
  margin-bottom: 12px;
}

.breakdown-card h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  font-weight: 700;
  color: #0f172a;
}

.breakdown-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Тарифы */
.tariffs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 48px;
}

@media(min-width: 860px) {
  .tariffs-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 64px;
  }
}

.tariff-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

@media(min-width: 768px) {
  .tariff-card {
    padding: 30px;
  }
}

.tariff-card.featured {
  border-color: var(--accent);
  box-shadow: 0 10px 30px -5px rgba(37, 99, 235, 0.15);
}

.tariff-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.tariff-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #0f172a;
}

.tariff-price {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 10px;
}

.tariff-lead {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  min-height: 40px;
}

.tariff-list {
  list-style: none;
  margin-bottom: 26px;
  flex-grow: 1;
}

.tariff-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: #334155;
  line-height: 1.45;
}

.tariff-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

/* Bento Grid */
.grid-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 48px;
}

@media(min-width: 640px) {
  .grid-bento {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media(min-width: 1024px) {
  .grid-bento {
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 64px;
  }
}

.bento-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.bento-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 6px;
}

.bento-title {
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 1rem;
  color: #0f172a;
}

.bento-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Этапы доставки */
.steps-section {
  padding-bottom: 40px;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media(min-width: 640px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(min-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.step-badge {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.step-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #0f172a;
}

.step-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* География доставки */
.geo-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 48px;
  box-shadow: var(--shadow-sm);
}

@media(min-width: 768px) {
  .geo-box {
    padding: 32px;
    margin-bottom: 64px;
  }
}

.geo-title {
  font-size: 1.25rem;
  margin-bottom: 8px;
  font-weight: 700;
  color: #0f172a;
}

.geo-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.geo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag {
  background: #f1f5f9;
  color: #334155;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  border: 1px solid var(--border);
}

/* Подвал */
footer {
  border-top: 1px solid var(--border);
  background: #ffffff;
  padding: 36px 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media(min-width: 768px) {
  footer {
    padding: 44px 0;
  }
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-brand {
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.footer-disclaimer {
  margin-top: 8px;
  font-size: 0.78rem;
  color: #94a3b8;
}

/* Мобильный плавающий бар */
.mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  padding: 8px 12px;
  display: flex;
  gap: 8px;
  z-index: 999;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.04);
}

@media(min-width: 768px) {
  .mobile-bar {
    display: none;
  }
  body {
    padding-bottom: 0;
  }
}

.bar-btn {
  flex: 1;
  text-align: center;
  padding: 11px 6px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
}

.bar-phone {
  background: var(--accent);
  color: #fff;
}

.bar-tg {
  background: #229ed9;
  color: #fff;
}

.bar-viber {
  background: #7360f2;
  color: #fff;
}