:root {
  --primary: #2f6096;
  --primary-dark: #023369;
  --primary-light: #5c8dc3;
  --accent: #f1c700;
  --accent-dark: #c49a00;
  --text: #2E2E2E;
  --text-muted: #5C5C5C;
  --bg-light: #f5f7fa;
  --border: #e3e6eb;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.10);
  --shadow-lg: 0 14px 40px rgba(0,0,0,0.14);
  --radius: 14px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background-color: #fff;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== Кнопки ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 30px; font-family: 'Montserrat', sans-serif; font-size: 15px; font-weight: 600;
  border: none; border-radius: var(--radius-sm); cursor: pointer;
  transition: all var(--transition); text-align: center; white-space: nowrap;
}
.btn-primary { background-color: var(--accent); color: var(--primary-dark); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background-color: var(--primary-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background-color: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.6); }
.btn-outline:hover { background-color: #fff; color: var(--primary-dark); border-color: #fff; transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ===== HEADER ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  background-color: rgba(255,255,255,0.98); backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm); z-index: 1000; transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 20px; }

.logo { display: flex; align-items: center; gap: 12px; font-family: 'Montserrat', sans-serif; font-size: 22px; font-weight: 800; color: var(--primary); white-space: nowrap; }
.logo-mark {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; border-radius: 12px; font-size: 16px; font-weight: 800; letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(47,96,150,0.3);
}
.logo-text small { display: block; font-size: 10px; font-weight: 500; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; margin-top: -2px; }

.main-nav ul { display: flex; align-items: center; gap: 34px; list-style: none; }
.main-nav a {
  position: relative; font-size: 14px; font-weight: 600; color: var(--text);
  text-transform: uppercase; letter-spacing: 0.5px; padding: 8px 0; transition: color var(--transition);
}
.main-nav a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 3px;
  background-color: var(--accent); border-radius: 2px; transition: width var(--transition);
}
.main-nav a:hover, .main-nav a.active { color: var(--primary); }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }

.header-contacts { display: flex; flex-direction: column; align-items: flex-end; font-size: 13px; line-height: 1.3; }
.header-contacts a { font-family: 'Montserrat', sans-serif; font-size: 16px; font-weight: 700; color: var(--primary-dark); }
.header-contacts span { color: var(--text-muted); font-size: 11px; }

.hamburger {
  display: none; flex-direction: column; justify-content: space-between;
  width: 30px; height: 22px; background: none; border: none; cursor: pointer; padding: 0; z-index: 1100;
}
.hamburger span { display: block; height: 3px; background-color: var(--primary); border-radius: 2px; transition: all var(--transition); }
.hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 660px; margin-top: 84px;
  display: flex; align-items: center;
  background: linear-gradient(135deg, rgba(2,51,105,0.94) 0%, rgba(47,96,150,0.88) 100%);
  color: #fff; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 15% 25%, rgba(241,199,0,0.18) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(255,255,255,0.10) 0%, transparent 45%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 760px; padding: 80px 0; }
.hero-badge {
  display: inline-block; padding: 7px 18px;
  background-color: rgba(241,199,0,0.15); border: 1px solid rgba(241,199,0,0.45);
  border-radius: 50px; font-size: 13px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 26px;
}
.hero h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 800; color: #fff; line-height: 1.12; margin-bottom: 26px; letter-spacing: -0.5px; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: clamp(16px, 2vw, 19px); color: rgba(255,255,255,0.9); margin-bottom: 38px; max-width: 620px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 52px; margin-top: 60px; flex-wrap: wrap; }
.hero-stat strong { display: block; font-family: 'Montserrat', sans-serif; font-size: clamp(28px, 4vw, 42px); font-weight: 800; color: var(--accent); line-height: 1; }
.hero-stat span { font-size: 13px; color: rgba(255,255,255,0.75); text-transform: uppercase; letter-spacing: 1px; }

/* ===== PAGE HERO ===== */
.page-hero {
  position: relative; margin-top: 84px; padding: 80px 0 70px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff; text-align: center; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(241,199,0,0.15) 0%, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.08) 0%, transparent 45%);
  pointer-events: none;
}
.page-hero h1 { position: relative; font-size: clamp(30px, 4.5vw, 48px); font-weight: 800; color: #fff; margin-bottom: 14px; letter-spacing: -0.5px; }
.page-hero p { position: relative; font-size: 17px; color: rgba(255,255,255,0.85); max-width: 620px; margin: 0 auto; }
.breadcrumbs { position: relative; margin-top: 20px; font-size: 13px; color: rgba(255,255,255,0.7); }
.breadcrumbs a { color: rgba(255,255,255,0.9); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { margin: 0 8px; }

/* ===== SECTIONS ===== */
section { padding: 96px 0; }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section-header .eyebrow {
  display: inline-block; font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--primary); margin-bottom: 12px;
}
.section-header h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; margin-bottom: 16px; letter-spacing: -0.5px; }
.section-header p { color: var(--text-muted); font-size: 17px; }

/* ===== SERVICES ===== */
.services { background-color: var(--bg-light); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.service-card {
  background-color: #fff; border-radius: var(--radius); padding: 38px 32px;
  box-shadow: var(--shadow-sm); transition: all var(--transition);
  border: 1px solid transparent; position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  transform: scaleX(0); transform-origin: left; transition: transform var(--transition);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--border); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  display: flex; align-items: center; justify-content: center;
  width: 66px; height: 66px;
  background: linear-gradient(135deg, rgba(47,96,150,0.10) 0%, rgba(47,96,150,0.05) 100%);
  border-radius: 16px; color: var(--primary); margin-bottom: 24px; transition: all var(--transition);
}
.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff; transform: scale(1.05) rotate(-3deg);
}
.service-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.service-card p { color: var(--text-muted); font-size: 15px; line-height: 1.65; }

/* ===== ADVANTAGES ===== */
.advantages-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 36px; }
.advantage { text-align: center; padding: 20px; }
.advantage-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 76px; height: 76px;
  background: linear-gradient(135deg, var(--accent) 0%, #fff42d 100%);
  color: var(--primary-dark); border-radius: 50%; margin-bottom: 22px;
  box-shadow: 0 8px 24px rgba(241,199,0,0.35); transition: transform var(--transition);
}
.advantage:hover .advantage-icon { transform: translateY(-6px) rotate(6deg); }
.advantage h4 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.advantage p { color: var(--text-muted); font-size: 14px; }

/* ===== CONTENT (about, services) ===== */
.content-section { padding: 80px 0; }
.content-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; align-items: start; }
.content-main h2 { font-size: 26px; margin: 36px 0 14px; }
.content-main h2:first-child { margin-top: 0; }
.content-main p { color: var(--text-muted); font-size: 16px; margin-bottom: 16px; line-height: 1.75; }
.values-list { list-style: none; }
.values-list li { padding: 10px 0 10px 32px; position: relative; color: var(--text-muted); font-size: 16px; line-height: 1.7; }
.values-list li::before {
  content: '✓'; position: absolute; left: 0; top: 10px;
  color: var(--primary); font-weight: 800; font-size: 18px;
}
.values-list li strong { color: var(--text); }

.partners-list { list-style: none; }
.partners-list li {
  padding: 14px 20px 14px 44px; position: relative;
  background-color: var(--bg-light); border-radius: var(--radius-sm);
  margin-bottom: 10px; color: var(--text); font-size: 15px;
  transition: all var(--transition);
}
.partners-list li::before {
  content: ''; position: absolute; left: 20px; top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 8px; background-color: var(--accent); border-radius: 50%;
}
.partners-list li:hover {
  background-color: #fff; box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.info-card {
  background-color: #fff; border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.info-card h3 { font-size: 20px; margin-bottom: 20px; }
.info-list { list-style: none; margin-bottom: 24px; }
.info-list li {
  padding: 10px 0; border-bottom: 1px solid var(--border);
  font-size: 15px; color: var(--text-muted);
}
.info-list li:last-child { border-bottom: none; }
.info-list li strong { color: var(--text); }

/* ===== HOW WORKS ===== */
.how-works { background-color: var(--bg-light); }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.step {
  background-color: #fff; border-radius: var(--radius);
  padding: 36px 28px; text-align: center;
  box-shadow: var(--shadow-sm); transition: all var(--transition);
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff; font-family: 'Montserrat', sans-serif;
  font-size: 22px; font-weight: 800;
  border-radius: 50%; margin-bottom: 20px;
  box-shadow: 0 6px 20px rgba(47,96,150,0.35);
}
.step h4 { font-size: 18px; margin-bottom: 10px; }
.step p { color: var(--text-muted); font-size: 14px; }

/* ===== CONTACTS ===== */
.contacts-section { padding: 90px 0; }
.contacts-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contacts-info h2 { font-size: 28px; margin-bottom: 12px; }
.contacts-info > p { color: var(--text-muted); font-size: 16px; margin-bottom: 34px; }

.contact-info-item {
  display: flex; gap: 18px; margin-bottom: 22px; padding: 20px;
  background-color: var(--bg-light); border-radius: var(--radius);
  transition: all var(--transition);
}
.contact-info-item:hover {
  background-color: #fff; box-shadow: var(--shadow-md); transform: translateX(4px);
}
.contact-info-icon {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 12px; color: #fff;
}
.contact-info-item h4 {
  font-size: 13px; font-weight: 700; margin-bottom: 4px;
  color: var(--primary); text-transform: uppercase; letter-spacing: 0.5px;
}
.contact-info-item p, .contact-info-item a {
  font-size: 15px; color: var(--text); font-weight: 500; line-height: 1.5;
}
.contact-info-item a:hover { color: var(--primary); }

.contact-form {
  background-color: #fff; border-radius: var(--radius);
  padding: 40px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.contact-form h2 { font-size: 24px; margin-bottom: 8px; }
.contact-form > p { color: var(--text-muted); font-size: 15px; margin-bottom: 28px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 12px; font-weight: 700; color: var(--text);
  margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.6px;
}
.form-group input, .form-group textarea {
  width: 100%; padding: 14px 16px; font-family: inherit; font-size: 15px;
  color: var(--text); background-color: var(--bg-light);
  border: 2px solid transparent; border-radius: var(--radius-sm);
  transition: all var(--transition); outline: none;
}
.form-group input:focus, .form-group textarea:focus {
  background-color: #fff; border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(47,96,150,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.contact-form .btn-primary { width: 100%; }

/* ===== MAP ===== */
.map-section { padding: 0 0 90px 0; }
.map-wrapper {
  height: 440px; background-color: var(--bg-light);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-md);
}
.map-wrapper iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ===== CTA ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff; text-align: center; padding: 80px 0;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute;
  top: -50%; right: -10%; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(241,199,0,0.18) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-section h2 {
  color: #fff; font-size: clamp(26px, 4vw, 38px);
  margin-bottom: 16px; position: relative;
}
.cta-section p {
  color: rgba(255,255,255,0.85); font-size: 17px;
  max-width: 620px; margin: 0 auto 34px; position: relative;
}
.cta-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; position: relative; }

/* ===== FOOTER ===== */
.site-footer { background-color: #1a2332; color: rgba(255,255,255,0.7); padding: 64px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 44px; margin-bottom: 44px; }
.footer-brand .logo { color: #fff; margin-bottom: 18px; }
.footer-brand p { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.6); }
.footer-col h4 {
  font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 20px;
  text-transform: uppercase; letter-spacing: 1px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 26px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap; font-size: 13px;
}
.footer-bottom p { color: rgba(255,255,255,0.5); }

/* ===== SCROLL TOP ===== */
.scroll-top {
  position: fixed; bottom: 30px; right: 30px;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background-color: var(--primary); color: #fff;
  border: none; border-radius: 50%; cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition); z-index: 999;
}
.scroll-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background-color: var(--primary-dark); transform: translateY(-4px); }

/* ===== ANIMATIONS ===== */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .contacts-grid { grid-template-columns: 1fr; gap: 40px; }
  .content-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .header-contacts { display: none; }
}

@media (max-width: 768px) {
  section { padding: 64px 0; }
  .page-hero { margin-top: 70px; padding: 60px 0 50px; }
  .header-inner { height: 70px; }
  .logo-text small { display: none; }
  .hamburger { display: flex; }

  .main-nav {
    position: fixed; top: 70px; left: 0; right: 0;
    background-color: #fff; box-shadow: var(--shadow-md);
    max-height: 0; overflow: hidden;
    transition: max-height 0.4s ease;
  }
  .main-nav.open { max-height: 420px; }
  .main-nav ul {
    flex-direction: column; gap: 0;
    padding: 16px 20px; align-items: stretch;
  }
  .main-nav li { border-bottom: 1px solid var(--border); }
  .main-nav li:last-child { border-bottom: none; }
  .main-nav a { display: block; padding: 14px 0; }
  .main-nav a::after { display: none; }

  .hero { min-height: auto; margin-top: 70px; }
  .hero-content { padding: 60px 0; }
  .hero-stats { gap: 30px; margin-top: 44px; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn { width: 100%; }

  .contact-form { padding: 26px; }
  .map-wrapper { height: 340px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .logo { font-size: 18px; }
  .logo-mark { width: 40px; height: 40px; font-size: 14px; }
  .service-card { padding: 28px 22px; }
}