/* ============ БАЗА ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'PT Sans', 'Segoe UI', Arial, sans-serif;
  color: #1e293b;
  background: #f8fafc;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

:root {
  --navy: #1e3a5f;
  --navy-dark: #152a45;
  --navy-light: #e8eef5;
  --accent: #b91c1c;
  --gray: #64748b;
  --gray-light: #f1f5f9;
  --border: #e2e8f0;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ============ ШАПКА ============ */
.top-bar {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  padding: 8px 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.top-bar a { color: rgba(255,255,255,0.85); }
.top-bar a:hover { color: #fff; }
.top-bar .sep { margin: 0 12px; opacity: 0.4; }

header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 30px;
}
.logo { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.logo-mark {
  width: 48px; height: 48px;
  background: var(--navy);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 22px;
  font-family: Georgia, serif;
}
.logo-text h1 {
  font-size: 22px; font-weight: 700; color: var(--navy-dark);
  letter-spacing: 0.5px; font-family: Georgia, serif;
}
.logo-text p {
  font-size: 11px; color: var(--gray);
  text-transform: uppercase; letter-spacing: 1.5px;
}

nav.main-nav ul { display: flex; gap: 28px; flex-wrap: wrap; }
nav.main-nav a {
  font-size: 15px; font-weight: 600; color: var(--navy-dark);
  padding: 6px 0; position: relative; transition: color 0.2s;
}
nav.main-nav a:hover { color: var(--accent); }
nav.main-nav a.active { color: var(--accent); }
nav.main-nav a.active::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 100%; height: 2px; background: var(--accent);
}

.header-actions { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.header-phone {
  font-weight: 700; font-size: 17px; color: var(--navy-dark);
  font-family: Georgia, serif;
}
.btn {
  display: inline-block;
  padding: 11px 26px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  text-align: center;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { background: #991b1b; border-color: #991b1b; }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.burger span { width: 26px; height: 3px; background: var(--navy-dark); border-radius: 2px; transition: 0.3s; }

/* ============ ЗАГОЛОВКИ ============ */
.page-header {
  background: var(--navy);
  color: #fff;
  padding: 50px 0 44px;
}
.page-header h1 { font-size: clamp(26px, 3.5vw, 38px); font-weight: 700; font-family: Georgia, serif; margin-bottom: 8px; }
.page-header .breadcrumb { font-size: 14px; color: rgba(255,255,255,0.7); }
.page-header .breadcrumb a { color: rgba(255,255,255,0.85); text-decoration: underline; }
.page-header .breadcrumb span { margin: 0 8px; }

.section-title { font-size: clamp(24px, 3vw, 34px); font-weight: 700; color: var(--navy-dark); font-family: Georgia, serif; margin-bottom: 12px; }
.section-subtitle { color: var(--gray); font-size: 16px; max-width: 680px; margin-bottom: 40px; }
.section-pad { padding: 70px 0; }

/* ============ ГЕРОЙ ============ */
.hero {
  background: linear-gradient(135deg, #f0f4f9 0%, #ffffff 100%);
  padding: 70px 0 80px;
  border-bottom: 1px solid var(--border);
}
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
.hero h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 700; line-height: 1.15; color: var(--navy-dark); font-family: Georgia, serif; margin-bottom: 20px; }
.hero h2 span { color: var(--accent); }
.hero p { font-size: 17px; color: var(--gray); margin-bottom: 30px; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-image { border-radius: 8px; overflow: hidden; box-shadow: 0 20px 50px rgba(30,58,95,0.12); border: 1px solid var(--border); }
.hero-image img { width: 100%; height: 460px; object-fit: cover; }

/* ============ КАРТОЧКИ УСЛУГ ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 32px 28px;
  transition: all 0.25s;
  position: relative;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  border-color: var(--navy);
  box-shadow: 0 8px 30px rgba(30,58,95,0.08);
  transform: translateY(-2px);
}
.service-card h3 { font-size: 20px; font-weight: 700; color: var(--navy-dark); font-family: Georgia, serif; margin-bottom: 10px; }
.service-card p { font-size: 15px; color: var(--gray); flex-grow: 1; margin-bottom: 20px; }
.service-card .price-tag {
  font-size: 15px; font-weight: 700; color: var(--accent);
  padding-top: 16px; border-top: 1px solid var(--border);
}
.service-card .arrow { color: var(--navy); font-weight: 700; margin-top: 8px; display: inline-block; }

/* ============ ТАБЛИЦА ЦЕН ============ */
.price-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.price-table th {
  background: var(--navy);
  color: #fff;
  padding: 16px 20px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.price-table th:last-child { text-align: right; }
.price-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.price-table td:last-child { text-align: right; font-weight: 700; color: var(--navy-dark); white-space: nowrap; }
.price-table tr:last-child td { border-bottom: none; }
.price-table tr:hover td { background: var(--navy-light); }
.price-table .group-row td {
  background: var(--gray-light);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--navy-dark);
  padding: 12px 20px;
}

/* ============ ОФОРМЛЕНИЕ СТРАНИЦЫ УСЛУГИ ============ */
.service-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
.service-content h2 { font-size: 28px; font-weight: 700; color: var(--navy-dark); font-family: Georgia, serif; margin: 36px 0 16px; }
.service-content h2:first-child { margin-top: 0; }
.service-content p { font-size: 16px; color: #334155; margin-bottom: 16px; }
.service-content ul { margin: 0 0 20px 20px; }
.service-content ul li { font-size: 16px; color: #334155; margin-bottom: 8px; list-style: disc; }

.service-sidebar { position: sticky; top: 100px; }
.sidebar-nav { background: #fff; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.sidebar-nav h4 { background: var(--navy); color: #fff; padding: 16px 20px; font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.sidebar-nav ul li { border-bottom: 1px solid var(--border); }
.sidebar-nav ul li:last-child { border-bottom: none; }
.sidebar-nav ul a { display: block; padding: 14px 20px; font-size: 15px; color: var(--navy-dark); transition: 0.2s; }
.sidebar-nav ul a:hover, .sidebar-nav ul a.active { background: var(--navy-light); color: var(--accent); font-weight: 600; }

/* ============ ПОДВАЛ ============ */
footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  padding: 50px 0 30px;
  font-size: 14px;
  margin-top: 80px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 40px; }
.footer-grid h4 { color: #fff; font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 18px; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: rgba(255,255,255,0.5); }

/* ============ АДАПТИВ ============ */
@media (max-width: 992px) {
  nav.main-nav { display: none; }
  .header-phone { display: none; }
  .burger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-image img { height: 340px; }
  .service-layout { grid-template-columns: 1fr; }
  .service-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .hero { padding: 40px 0 50px; }
  .hero-actions .btn { width: 100%; }
  .section-pad { padding: 50px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }
  .price-table td, .price-table th { padding: 12px 14px; font-size: 14px; }
  .logo-text p { display: none; }
}

/* Мобильное меню */
.mobile-menu {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: #fff; z-index: 2000; padding: 30px 24px;
  transform: translateX(100%); transition: transform 0.3s;
  overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu .close-btn { position: absolute; top: 20px; right: 24px; font-size: 32px; background: none; border: none; cursor: pointer; color: var(--navy-dark); line-height: 1; }
.mobile-menu ul li { border-bottom: 1px solid var(--border); }
.mobile-menu ul a { display: block; padding: 16px 0; font-size: 17px; font-weight: 600; color: var(--navy-dark); }
.mobile-menu .btn { width: 100%; margin-top: 20px; }