:root {
  --primary: #e63900;
  --primary-dark: #cc3300;
  --primary-light: #ff4d1a;
  --accent: #ffb700;
  --dark: #1a1a2e;
  --dark-secondary: #16213e;
  --gray-900: #212121;
  --gray-800: #333;
  --gray-700: #555;
  --gray-600: #777;
  --gray-500: #999;
  --gray-300: #ddd;
  --gray-200: #eee;
  --gray-100: #f5f5f5;
  --white: #fff;
  --green: #2ecc71;
  --red: #e74c3c;
  --blue: #3498db;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 2px 15px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --transition: 0.25s ease;
  --max-width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* Typography */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.25; color: var(--dark); }
h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.2rem; margin-bottom: 0.4rem; }
p { margin-bottom: 1rem; color: var(--gray-700); }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

.section-title { text-align: center; margin-bottom: 2.5rem; }
.section-title h2 { position: relative; display: inline-block; }
.section-title h2::after {
  content: ''; display: block; width: 60px; height: 3px;
  background: var(--primary); margin: 10px auto 0; border-radius: 2px;
}
.section-title p { font-size: 1.1rem; color: var(--gray-600); max-width: 600px; margin: 0 auto; }

/* Header */
.header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky; top: 0; z-index: 1000;
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 0;
}
.header__logo {
  font-size: 1.5rem; font-weight: 800; color: var(--dark); display: flex; align-items: center; gap: 10px;
}
.header__logo span { color: var(--primary); }
.header__nav { display: flex; align-items: center; gap: 24px; }
.header__nav a { color: var(--gray-700); font-weight: 500; font-size: 0.95rem; }
.header__nav a:hover, .header__nav a.active { color: var(--primary); }
.header__phone {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.25rem; font-weight: 700; color: var(--primary);
}
.header__phone svg { width: 20px; height: 20px; }
.header__burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 5px; }
.header__burger span { display: block; width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: var(--transition); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-secondary) 100%);
  color: var(--white); padding: 80px 0; position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; right: -100px; top: -50px;
  width: 500px; height: 500px; background: radial-gradient(circle, rgba(230,57,0,0.15), transparent 70%);
}
.hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero__content h1 { color: var(--white); font-size: 3rem; margin-bottom: 1.25rem; }
.hero__content h1 span { color: var(--primary-light); }
.hero__content p { color: rgba(255,255,255,0.8); font-size: 1.15rem; margin-bottom: 2rem; }
.hero__features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 2rem; }
.hero__feature { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,0.85); }
.hero__feature svg { width: 24px; height: 24px; color: var(--green); flex-shrink: 0; }
.hero__buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__visual {
  background: rgba(255,255,255,0.05); border-radius: var(--radius-lg);
  padding: 40px; text-align: center; border: 1px solid rgba(255,255,255,0.1);
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; border-radius: var(--radius); font-weight: 600; font-size: 1rem; cursor: pointer; transition: all var(--transition); border: none; text-align: center; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 4px 20px rgba(230,57,0,0.3); color: var(--white); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-white { background: var(--white); color: var(--dark); }
.btn-white:hover { background: var(--gray-200); transform: translateY(-2px); }
.btn-lg { padding: 18px 40px; font-size: 1.1rem; }
.btn-sm { padding: 8px 20px; font-size: 0.85rem; }
.btn-block { width: 100%; justify-content: center; }

/* Price cards */
.pricing { padding: 80px 0; background: var(--gray-100); }
.pricing__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.price-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 30px;
  box-shadow: var(--shadow); transition: all var(--transition); border: 1px solid var(--gray-300);
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.price-card--featured { border: 2px solid var(--primary); position: relative; }
.price-card--featured::before {
  content: 'Популярное'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: var(--white); padding: 4px 16px; border-radius: 20px;
  font-size: 0.8rem; font-weight: 600;
}
.price-card__icon { width: 56px; height: 56px; background: rgba(230,57,0,0.1); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.price-card__icon svg { width: 28px; height: 28px; color: var(--primary); }
.price-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.price-card__price { font-size: 2rem; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.price-card__price span { font-size: 1rem; font-weight: 400; color: var(--gray-600); }
.price-card__list { list-style: none; margin: 16px 0; }
.price-card__list li { padding: 6px 0; color: var(--gray-700); font-size: 0.9rem; padding-left: 20px; position: relative; }
.price-card__list li::before { content: '\2713'; color: var(--green); position: absolute; left: 0; font-weight: 700; }

/* Calculator */
.calculator { padding: 80px 0; }
.calculator__box {
  background: var(--white); border-radius: var(--radius-lg); padding: 40px;
  box-shadow: var(--shadow-lg); max-width: 700px; margin: 0 auto;
}
.calculator__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.calculator__field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
.calculator__field select, .calculator__field input {
  width: 100%; padding: 12px 16px; border: 2px solid var(--gray-300); border-radius: var(--radius);
  font-size: 1rem; transition: border-color var(--transition); background: var(--white);
}
.calculator__field select:focus, .calculator__field input:focus { outline: none; border-color: var(--primary); }
.calculator__result {
  margin-top: 24px; padding: 20px; background: rgba(230,57,0,0.05); border-radius: var(--radius);
  text-align: center;
}
.calculator__result .price { font-size: 2.5rem; font-weight: 800; color: var(--primary); }
.calculator__result .note { font-size: 0.85rem; color: var(--gray-600); margin-top: 4px; }

/* Service grid */
.services { padding: 80px 0; }
.services__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.service-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 30px;
  box-shadow: var(--shadow); border: 1px solid var(--gray-300); transition: var(--transition);
}
.service-card:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); }
.service-card__icon { width: 48px; height: 48px; background: rgba(230,57,0,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.service-card__icon svg { width: 24px; height: 24px; color: var(--primary); }
.service-card h3 { font-size: 1.15rem; }
.service-card p { font-size: 0.9rem; }
.service-card a { font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 6px; }

/* Advantages */
.advantages { padding: 80px 0; background: var(--dark); color: var(--white); }
.advantages__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; }
.advantage-card { text-align: center; padding: 30px; }
.advantage-card__icon { width: 64px; height: 64px; background: rgba(230,57,0,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.advantage-card__icon svg { width: 32px; height: 32px; color: var(--primary-light); }
.advantage-card h3 { color: var(--white); font-size: 1.1rem; }
.advantage-card p { color: rgba(255,255,255,0.7); font-size: 0.9rem; }

/* CTA block */
.cta-block {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 60px 0; text-align: center; color: var(--white);
}
.cta-block h2 { color: var(--white); margin-bottom: 12px; }
.cta-block p { color: rgba(255,255,255,0.85); margin-bottom: 24px; }
.cta-block .btn { font-size: 1.15rem; padding: 16px 40px; }

/* How it works */
.steps { padding: 80px 0; }
.steps__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; }
.step-card { text-align: center; padding: 20px; }
.step-card__num {
  width: 56px; height: 56px; background: var(--primary); color: var(--white);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 800; margin: 0 auto 16px;
}
.step-card h4 { font-size: 1.05rem; }
.step-card p { font-size: 0.9rem; color: var(--gray-600); }

/* Metro grid */
.metro-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.metro-card {
  display: block; padding: 14px 18px; background: var(--white); border: 1px solid var(--gray-300);
  border-radius: var(--radius); text-align: center; font-size: 0.9rem; font-weight: 500;
  color: var(--dark); transition: var(--transition);
}
.metro-card:hover { border-color: var(--primary); background: rgba(230,57,0,0.03); color: var(--primary); transform: translateY(-2px); }

/* OKRUG grid */
.okrug-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }

/* Faq */
.faq { padding: 80px 0; background: var(--gray-100); }
.faq__list { max-width: 800px; margin: 0 auto; }
.faq__item {
  background: var(--white); border-radius: var(--radius); margin-bottom: 12px;
  box-shadow: var(--shadow); overflow: hidden;
}
.faq__question {
  width: 100%; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center;
  background: none; border: none; cursor: pointer; font-size: 1.05rem; font-weight: 600;
  text-align: left; color: var(--dark);
}
.faq__question svg { width: 20px; height: 20px; flex-shrink: 0; transition: transform var(--transition); }
.faq__item.active .faq__question svg { transform: rotate(45deg); }
.faq__answer { padding: 0 24px; max-height: 0; overflow: hidden; transition: all var(--transition); }
.faq__item.active .faq__answer { padding: 0 24px 20px; max-height: 500px; }
.faq__answer p { font-size: 0.95rem; color: var(--gray-700); }
.faq__answer ul { margin-left: 20px; margin-bottom: 1rem; }
.faq__answer li { color: var(--gray-700); font-size: 0.95rem; }
.faq__answer a { font-weight: 600; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; }
.blog-card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); transition: var(--transition);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card__image { height: 200px; background: var(--gray-200); display: flex; align-items: center; justify-content: center; }
.blog-card__image svg { width: 60px; height: 60px; color: var(--gray-500); }
.blog-card__body { padding: 20px; }
.blog-card__body h3 { font-size: 1.15rem; margin-bottom: 8px; }
.blog-card__body p { font-size: 0.9rem; color: var(--gray-600); margin-bottom: 12px; }
.blog-card__body a { font-weight: 600; font-size: 0.9rem; }

/* Breadcrumbs */
.breadcrumbs { padding: 16px 0; font-size: 0.9rem; color: var(--gray-600); }
.breadcrumbs a { color: var(--gray-600); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs span { color: var(--gray-500); margin: 0 8px; }

/* Content page */
.content-page { padding: 40px 0 80px; }
.content-page h1 { margin-bottom: 0.5rem; }
.content-page__intro { font-size: 1.15rem; color: var(--gray-700); margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--gray-300); }
.content-page h2 { margin-top: 2.5rem; }
.content-page ul { margin-left: 20px; margin-bottom: 1.5rem; }
.content-page li { color: var(--gray-700); margin-bottom: 6px; }
.content-page table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.content-page table th, .content-page table td { padding: 12px 16px; border: 1px solid var(--gray-300); text-align: left; }
.content-page table th { background: var(--gray-100); font-weight: 700; }
.content-page table tr:hover { background: var(--gray-100); }

/* Sitemap */
.sitemap { padding: 80px 0; }
.sitemap__group { margin-bottom: 2rem; }
.sitemap__group h3 { color: var(--primary); margin-bottom: 12px; }
.sitemap__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* Footer */
.footer { background: var(--dark); color: rgba(255,255,255,0.7); padding: 60px 0 30px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer__col h4 { color: var(--white); margin-bottom: 16px; font-size: 1.05rem; }
.footer__col a { color: rgba(255,255,255,0.6); font-size: 0.9rem; display: block; margin-bottom: 8px; }
.footer__col a:hover { color: var(--primary-light); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; flex-wrap: wrap; gap: 12px; }

/* Trust badges */
.trust-bar {
  background: var(--gray-100); padding: 20px 0;
  display: flex; justify-content: center; gap: 40px; flex-wrap: wrap;
}
.trust-bar__item { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--gray-700); font-weight: 500; }
.trust-bar__item svg { width: 24px; height: 24px; color: var(--green); }

/* Page header */
.page-header {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-secondary) 100%);
  color: var(--white); padding: 50px 0; text-align: center;
}
.page-header h1 { color: var(--white); }
.page-header p { color: rgba(255,255,255,0.8); font-size: 1.1rem; }

/* Sidebar layout */
.content-layout { display: grid; grid-template-columns: 280px 1fr; gap: 40px; padding: 40px 0 80px; }
.sidebar { position: sticky; top: 100px; align-self: start; }
.sidebar__nav { background: var(--gray-100); border-radius: var(--radius); padding: 20px; }
.sidebar__nav h4 { font-size: 1rem; margin-bottom: 12px; }
.sidebar__nav ul { list-style: none; }
.sidebar__nav ul li { margin-bottom: 6px; }
.sidebar__nav ul li a { font-size: 0.9rem; color: var(--gray-700); display: block; padding: 6px 10px; border-radius: 4px; }
.sidebar__nav ul li a:hover, .sidebar__nav ul li a.active { background: var(--primary); color: var(--white); }

/* Contact form */
.contact-form { display: grid; gap: 16px; max-width: 500px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 14px 16px; border: 2px solid var(--gray-300);
  border-radius: var(--radius); font-size: 1rem; font-family: inherit;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary); }
.contact-form textarea { min-height: 120px; resize: vertical; }

/* Table of contents */
.toc { background: var(--gray-100); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 2rem; }
.toc h4 { margin-bottom: 12px; }
.toc ul { list-style: none; margin-left: 0; }
.toc ul li { margin-bottom: 6px; }
.toc ul li a { color: var(--gray-700); font-size: 0.9rem; }

/* Highlight box */
.highlight-box {
  background: rgba(230,57,0,0.05); border-left: 4px solid var(--primary);
  padding: 20px 24px; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0;
}
.highlight-box p { margin-bottom: 0; }

/* Price table */
.price-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.price-table th { background: var(--dark); color: var(--white); padding: 14px 16px; text-align: left; }
.price-table td { padding: 12px 16px; border-bottom: 1px solid var(--gray-300); }
.price-table tr:hover td { background: var(--gray-100); }
.price-table .price-cell { font-weight: 700; color: var(--primary); white-space: nowrap; }

/* Call button mobile */
.mobile-call {
  display: none; position: fixed; bottom: 20px; right: 20px; z-index: 999;
  width: 56px; height: 56px; background: var(--green); border-radius: 50%;
  align-items: center; justify-content: center; box-shadow: 0 4px 15px rgba(46,204,113,0.4);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .content-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

@media (max-width: 768px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  .hero { padding: 50px 0; }
  .hero__content h1 { font-size: 2rem; }
  .header__nav { display: none; }
  .header__phone { display: none; }
  .header__burger { display: flex; }
  .header__nav.open {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); padding: 20px; box-shadow: var(--shadow-lg);
  }
  .calculator__row { grid-template-columns: 1fr; }
  .mobile-call { display: flex; }
  .pricing__grid { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .trust-bar { gap: 16px; }
  .hero__buttons { flex-direction: column; }
  .hero__buttons .btn { width: 100%; justify-content: center; }
  .steps__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .steps__grid { grid-template-columns: 1fr; }
}
