/* ============================
   Reset & base
   ============================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

:root {
  --primary: #1a3a6c;
  --primary-dark: #142a52;
  --primary-light: #2a4d8c;
  --accent: #d62828;
  --accent-dark: #b71c1c;
  --text: #2c3e50;
  --text-light: #5a6c7d;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --bg-blue: #e8f0fb;
  --border: #e0e6ed;
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.1);
  --radius: 8px;
  --radius-lg: 12px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --container-max: 1200px;
  --section-pad: 64px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--primary); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 { color: var(--primary); line-height: 1.2; font-weight: 700; }
h1 { font-size: 2.4rem; margin-bottom: 1rem; }
h2 { font-size: 1.9rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.75rem; }

p { margin-bottom: 1rem; }

/* ============================
   Layout
   ============================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: var(--section-pad) 0;
}

section.alt {
  background: var(--bg-alt);
}

/* ============================
   Header
   ============================ */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--primary);
}

.logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.logo-text strong {
  display: block;
  font-size: 1.4rem;
  color: var(--accent);
  line-height: 1;
}

.logo-text span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.2;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  gap: 28px;
}

.main-nav a {
  color: var(--text);
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
  border-bottom-color: var(--accent);
}

.header-phone {
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 28px;
  color: var(--primary);
  cursor: pointer;
  padding: 4px 8px;
}

/* ============================
   Hero
   ============================ */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 80px 0;
  text-align: center;
}

.hero h1 {
  color: #fff;
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.hero .subtitle {
  font-size: 1.2rem;
  opacity: 0.92;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

.btn-outline:hover {
  background: #fff;
  color: var(--primary);
}

/* ============================
   Page title
   ============================ */
.page-title {
  background: var(--bg-blue);
  padding: 48px 0 32px;
  text-align: center;
}

.page-title h1 { margin-bottom: 0.5rem; }
.page-title p { color: var(--text-light); margin: 0; }

/* ============================
   Service cards
   ============================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.card {
  background: var(--bg);
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.card .icon {
  width: 48px;
  height: 48px;
  background: var(--bg-blue);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 24px;
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ============================
   Service detail
   ============================ */
.service-detail {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.service-detail:first-of-type {
  border-top: 0;
}

.service-detail h2 {
  display: flex;
  align-items: center;
  gap: 12px;
}

.service-detail ul {
  margin: 12px 0 0 24px;
  color: var(--text-light);
}

/* ============================
   Features
   ============================ */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-top: 32px;
}

.feature {
  text-align: center;
}

.feature .num {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.feature h3 {
  margin: 12px 0 6px;
  font-size: 1.1rem;
}

.feature p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin: 0;
}

/* ============================
   CTA block
   ============================ */
.cta {
  background: var(--primary);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}

.cta h2 { color: #fff; }
.cta p { opacity: 0.9; max-width: 600px; margin: 0 auto 1.5rem; }

/* ============================
   Contacts
   ============================ */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 32px;
}

.contacts-info p {
  margin-bottom: 12px;
}

.contacts-info strong {
  color: var(--primary);
  display: inline-block;
  min-width: 120px;
}

.map-placeholder {
  background: var(--bg-alt);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
}

/* ============================
   Footer
   ============================ */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  padding: 48px 0 24px;
  margin-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.site-footer h4 {
  color: #fff;
  margin-bottom: 12px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.site-footer p, .site-footer li {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
}

.site-footer a {
  color: rgba(255,255,255,0.85);
}

.site-footer a:hover {
  color: #fff;
}

.site-footer ul {
  list-style: none;
}

.site-footer ul li {
  margin-bottom: 6px;
}

.copyright {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* ============================
   Responsive
   ============================ */
@media (max-width: 900px) {
  :root { --section-pad: 48px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .hero h1 { font-size: 2.2rem; }

  .header-phone {
    display: none;
  }
}

@media (max-width: 720px) {
  .mobile-menu-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    gap: 0;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .main-nav a:last-child {
    border-bottom: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .logo-text span {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero { padding: 56px 0; }
  .hero h1 { font-size: 1.8rem; }
  .hero .subtitle { font-size: 1rem; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.4rem; }
}
