/* ─── Reset & Base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: #1a2535;
  background: #fff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ─── CSS Variables (logo palette) ─────────────────────────────── */
:root {
  --navy-deep:  #122d5e;   /* тёмно-синий — буквы МКК        */
  --navy:       #1b4382;   /* средний синий                   */
  --blue:       #2772bd;   /* яркий синий — фасад здания      */
  --teal:       #1a9e8c;   /* бирюзовый — сетка в логотипе   */
  --teal-dark:  #147d6e;
  --teal-light: #e4f5f2;
  --navy-light: #ecf2fb;
  --text:       #1a2535;
  --text-sec:   #52667a;
  --border:     #cdd9ea;
  --bg-light:   #f2f6fb;
  --white:      #ffffff;
  --shadow-sm:  0 1px 5px rgba(18,45,94,.08);
  --shadow:     0 3px 16px rgba(18,45,94,.12);
  --shadow-lg:  0 8px 36px rgba(18,45,94,.18);
  --radius:     12px;
  --radius-sm:  8px;
  --ease:       .25s ease;
}

/* ─── Layout ────────────────────────────────────────────────────── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }

.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -.5px;
  color: var(--navy-deep);
  margin-bottom: 12px;
}
.section-header p { font-size: 17px; color: var(--text-sec); max-width: 620px; margin: 0 auto; }

/* Decorative underline */
.section-header h2::after {
  content: '';
  display: block;
  width: 56px; height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--blue));
  border-radius: 2px;
  margin: 14px auto 0;
}

/* ─── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: all var(--ease); border: none; white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff;
  box-shadow: 0 4px 14px rgba(26,158,140,.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #21b8a4, var(--teal));
  box-shadow: 0 6px 20px rgba(26,158,140,.45);
  transform: translateY(-1px);
}

.btn-navy {
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  color: #fff;
  box-shadow: 0 4px 14px rgba(27,67,130,.30);
}
.btn-navy:hover {
  background: linear-gradient(135deg, var(--blue), var(--navy));
  box-shadow: 0 6px 20px rgba(27,67,130,.40);
  transform: translateY(-1px);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.65);
}
.btn-outline-white:hover { background: rgba(255,255,255,.12); border-color: #fff; }

.btn-outline-teal {
  background: transparent;
  color: var(--teal);
  border: 1.5px solid var(--teal);
}
.btn-outline-teal:hover { background: var(--teal-light); }

/* ─── Navbar ────────────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 900;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(18,45,94,.07);
}

.nav-inner {
  display: flex; align-items: center; gap: 24px; height: 72px;
}

.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 52px; width: auto; }

.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a {
  padding: 8px 15px; border-radius: 6px;
  font-size: 14px; font-weight: 500; color: var(--text);
  transition: all var(--ease);
}
.nav-links a:hover, .nav-links a.active {
  background: var(--navy-light); color: var(--navy);
}

.nav-email-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 14px; background: transparent;
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500; color: var(--text-sec);
  flex-shrink: 0; transition: all var(--ease);
  border: 1px solid var(--border);
}
.nav-email-btn:hover { background: var(--navy-light); color: var(--navy); border-color: var(--navy); }
.nav-email-btn svg { width: 14px; height: 14px; fill: var(--text-sec); flex-shrink: 0; }
.nav-email-btn:hover svg { fill: var(--navy); }

.nav-phone-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 18px; background: var(--teal-light);
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 700; color: var(--teal-dark);
  flex-shrink: 0; transition: all var(--ease);
  border: 1px solid rgba(26,158,140,.25);
}
.nav-phone-btn:hover { background: #c8ece8; color: var(--teal-dark); }
.nav-phone-btn svg { width: 15px; height: 15px; fill: var(--teal-dark); }

.burger {
  display: none; background: none; border: none; cursor: pointer;
  padding: 4px; margin-left: auto; flex-direction: column; gap: 5px;
}
.burger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; }

.mobile-nav {
  display: none; position: fixed;
  top: 72px; left: 0; right: 0;
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px; z-index: 899; box-shadow: var(--shadow);
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; padding: 12px 0; font-size: 16px; font-weight: 500;
  color: var(--text); border-bottom: 1px solid var(--border);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--teal); }

/* ─── Hero ──────────────────────────────────────────────────────── */
#hero {
  padding: 0; position: relative; overflow: hidden;
  min-height: 600px;
  background: url('https://images.unsplash.com/photo-1513326738677-b964603b136d?auto=format&fit=crop&w=1920&q=80')
              center/cover no-repeat;
}

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg,
    rgba(18,45,94,.93) 0%,
    rgba(27,67,130,.85) 60%,
    rgba(26,158,140,.70) 100%);
}

.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 380px;
  gap: 48px; align-items: center;
  padding-top: 80px; padding-bottom: 80px;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; background: rgba(26,158,140,.25);
  border: 1px solid rgba(26,158,140,.5);
  border-radius: 100px; font-size: 13px; font-weight: 600;
  color: #7fe8d8; margin-bottom: 22px;
}
.hero-badge::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal); flex-shrink: 0;
}

.hero-content h1 {
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 800; letter-spacing: -.6px;
  line-height: 1.1; color: #fff; margin-bottom: 20px;
}
.hero-content h1 em { font-style: normal; color: #7fe8d8; }

.hero-subtitle {
  font-size: 17px; color: rgba(255,255,255,.80);
  line-height: 1.75; max-width: 520px; margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero cards */
.hero-cards { display: flex; flex-direction: column; gap: 14px; }
.hcard {
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px; padding: 20px 24px;
}
.hcard-num {
  font-size: 34px; font-weight: 800; color: #7fe8d8;
  line-height: 1; margin-bottom: 4px;
}
.hcard-label { font-size: 13px; color: rgba(255,255,255,.70); }

/* ─── Stats ─────────────────────────────────────────────────────── */
#stats { padding: 0; background: linear-gradient(90deg, var(--teal-dark), var(--teal)); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item {
  padding: 32px 24px; text-align: center;
  border-right: 1px solid rgba(255,255,255,.20);
}
.stat-item:last-child { border-right: none; }
.stat-number { font-size: 36px; font-weight: 800; color: #fff; letter-spacing: -1px; line-height: 1; margin-bottom: 6px; }
.stat-label { font-size: 13px; color: rgba(255,255,255,.75); font-weight: 500; }

/* ─── About ─────────────────────────────────────────────────────── */
#about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 360px; gap: 64px; align-items: start; }

.about-text h3 { font-size: 22px; font-weight: 700; color: var(--navy-deep); margin-bottom: 16px; }
.about-text p { font-size: 16px; color: #3a4a5a; line-height: 1.8; margin-bottom: 18px; }
.about-text p:last-child { margin-bottom: 0; }

.about-highlight {
  margin: 24px 0; padding: 18px 22px;
  background: var(--teal-light);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 15.5px; color: var(--navy-deep); font-style: italic; line-height: 1.7;
}

/* Person card with photo */
.person-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
.person-photo {
  width: 100%; height: 320px; object-fit: cover; object-position: center top; display: block;
}
.person-info { padding: 24px; }
.person-info h3 { font-size: 18px; font-weight: 700; color: var(--navy-deep); margin-bottom: 4px; }
.person-info p { font-size: 14px; color: var(--text-sec); line-height: 1.6; margin-bottom: 4px; }
.person-cert {
  margin-top: 14px; padding: 10px 14px;
  background: var(--teal-light); border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; color: var(--teal-dark); display: flex; align-items: center; gap: 8px;
}
.person-cert::before { content: '✓'; font-size: 14px; }

/* ─── Services ──────────────────────────────────────────────────── */
#services { background: var(--bg-light); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.service-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: all var(--ease);
  display: flex; flex-direction: column;
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--teal); }

.service-img {
  width: 100%; height: 190px; object-fit: cover; display: block;
  transition: transform .4s ease;
}
.service-card:hover .service-img { transform: scale(1.04); }

.service-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }

.service-icon {
  width: 46px; height: 46px; background: var(--teal-light);
  border-radius: 11px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; flex-shrink: 0;
}
.service-icon svg { width: 24px; height: 24px; fill: var(--teal); }

.service-card h3 { font-size: 17px; font-weight: 700; color: var(--navy-deep); margin-bottom: 8px; line-height: 1.3; }
.service-card .card-desc { font-size: 13.5px; color: var(--text-sec); margin-bottom: 14px; line-height: 1.6; }

.service-list { flex: 1; margin-bottom: 20px; }
.service-list li {
  font-size: 13px; color: #3a4a5a;
  padding: 5px 0 5px 16px; position: relative;
  border-bottom: 1px solid #f0f4f8; line-height: 1.5;
}
.service-list li:last-child { border-bottom: none; }
.service-list li::before {
  content: ''; position: absolute; left: 0; top: 12px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--teal);
}
.service-list li.highlight { font-weight: 600; color: var(--teal-dark); }
.service-list li.highlight::before { background: var(--teal); box-shadow: 0 0 0 3px var(--teal-light); }

.service-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; background: var(--teal-light);
  border-radius: var(--radius-sm); font-size: 13px; font-weight: 600;
  color: var(--teal-dark); transition: all var(--ease); cursor: pointer;
  border: none; align-self: flex-start;
}
.service-cta:hover { background: var(--teal); color: #fff; }
.service-cta svg { width: 13px; height: 13px; fill: currentColor; }

/* ─── Why Us ─────────────────────────────────────────────────────── */
#why-us { background: var(--white); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-item {
  background: var(--bg-light); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  box-shadow: var(--shadow-sm); transition: all var(--ease);
}
.why-item:hover { box-shadow: var(--shadow); border-color: var(--teal); }
.why-icon {
  width: 48px; height: 48px; background: var(--teal-light);
  border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.why-icon svg { width: 24px; height: 24px; fill: var(--teal); }
.why-item h4 { font-size: 15px; font-weight: 700; color: var(--navy-deep); margin-bottom: 10px; line-height: 1.35; }
.why-item p { font-size: 13.5px; color: var(--text-sec); line-height: 1.7; }

/* ─── Documents ──────────────────────────────────────────────────── */
#documents { background: var(--teal-light); }
.docs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.doc-card {
  background: var(--white); border: 1px solid rgba(26,158,140,.20);
  border-radius: var(--radius); padding: 24px 20px;
  box-shadow: var(--shadow-sm); transition: all var(--ease);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.doc-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--teal); }
.doc-icon {
  width: 56px; height: 56px; background: var(--teal-light);
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.doc-icon svg { width: 28px; height: 28px; fill: var(--teal); }
.doc-card h4 { font-size: 14px; font-weight: 700; color: var(--navy-deep); margin-bottom: 8px; line-height: 1.4; }
.doc-card p { font-size: 12px; color: var(--text-sec); line-height: 1.6; margin-bottom: 18px; flex: 1; }
.doc-card a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; background: var(--teal); color: #fff;
  border-radius: 6px; font-size: 13px; font-weight: 600;
  transition: all var(--ease);
}
.doc-card a:hover { background: var(--teal-dark); }
.doc-card a svg { width: 14px; height: 14px; fill: #fff; }

/* ─── Contact ────────────────────────────────────────────────────── */
#contact { background: var(--white); }
.contact-layout { display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: start; }

.contact-info-panel h3 { font-size: 20px; font-weight: 700; margin-bottom: 24px; color: var(--navy-deep); }
.contact-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.ci-icon {
  width: 42px; height: 42px; background: var(--teal-light);
  border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ci-icon svg { width: 18px; height: 18px; fill: var(--teal); }
.ci-body strong { display: block; font-size: 12px; font-weight: 600; color: var(--text-sec); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.ci-body a, .ci-body span { font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.5; }
.ci-body a:hover { color: var(--teal); }

.contact-note {
  margin-top: 28px; padding: 16px 18px;
  background: var(--teal-light); border-radius: var(--radius-sm);
  font-size: 13.5px; color: var(--teal-dark); line-height: 1.65;
  border: 1px solid rgba(26,158,140,.25);
}

/* Form */
.form-card {
  background: var(--bg-light); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px 32px; box-shadow: var(--shadow-sm);
}
.form-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 6px; color: var(--navy-deep); }
.form-card p.form-sub { font-size: 14px; color: var(--text-sec); margin-bottom: 28px; line-height: 1.6; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-group label .req { color: var(--teal); }

.form-control {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 15px; font-family: inherit; color: var(--text);
  background: var(--white); transition: border-color var(--ease), box-shadow var(--ease);
  outline: none; appearance: none;
}
.form-control:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(26,158,140,.14); }
textarea.form-control { resize: vertical; min-height: 110px; }

/* File upload */
.file-drop {
  position: relative; border: 2px dashed var(--border);
  border-radius: var(--radius-sm); padding: 22px;
  text-align: center; cursor: pointer; transition: all var(--ease); background: var(--white);
}
.file-drop:hover, .file-drop.drag-over { border-color: var(--teal); background: var(--teal-light); }
.file-drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.file-drop-icon { width: 30px; height: 30px; fill: var(--teal); margin: 0 auto 8px; }
.file-drop-text { font-size: 14px; color: var(--text-sec); }
.file-drop-text strong { color: var(--teal); }
.file-drop-hint { font-size: 12px; color: var(--text-sec); margin-top: 4px; }

#fileList { margin-top: 10px; }
.file-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; background: var(--white); border: 1px solid var(--border);
  border-radius: 6px; margin-bottom: 6px; font-size: 13px;
}
.file-item-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.file-item-size { color: var(--text-sec); flex-shrink: 0; }
.file-item-remove { background: none; border: none; cursor: pointer; color: #b00; padding: 0 2px; font-size: 16px; line-height: 1; flex-shrink: 0; opacity: .6; transition: opacity var(--ease); }
.file-item-remove:hover { opacity: 1; }

.btn-submit { width: 100%; justify-content: center; padding: 14px 28px; font-size: 16px; margin-top: 8px; border-radius: var(--radius-sm); }

#formMsg { display: none; margin-top: 14px; padding: 14px 18px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 500; line-height: 1.5; }
#formMsg.success { background: #e5f5f2; border: 1px solid var(--teal); color: var(--teal-dark); }
#formMsg.error { background: #fde8e8; border: 1px solid #f5a0a0; color: #b71c1c; }

.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Footer ─────────────────────────────────────────────────────── */
footer { background: var(--navy-deep); color: rgba(255,255,255,.80); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }

.footer-logo-wrap { display: inline-block; background: #fff; border-radius: 10px; padding: 8px 14px; margin-bottom: 18px; }
.footer-logo-wrap img { height: 44px; width: auto; display: block; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,.55); line-height: 1.7; margin-bottom: 18px; }
.footer-phone { font-size: 18px; font-weight: 700; color: #7fe8d8; }
.footer-phone:hover { color: #fff; }

.footer-col h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: rgba(255,255,255,.45); margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { font-size: 14px; color: rgba(255,255,255,.70); transition: color var(--ease); }
.footer-col ul a:hover { color: #7fe8d8; }
.footer-col p { font-size: 14px; color: rgba(255,255,255,.60); line-height: 1.7; margin-bottom: 5px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,.60); }
.footer-col a:hover { color: #7fe8d8; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,.35); }

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-cards { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .docs-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  section { padding: 60px 0; }
  .nav-links, .nav-phone-btn, .nav-email-btn { display: none; }
  .burger { display: flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.15); }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.15); }
  .stat-item:last-child, .stat-item:nth-last-child(2):nth-child(odd) { border-bottom: none; }
  .contact-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 24px 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 540px) {
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .docs-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 400px) {
  .docs-grid { grid-template-columns: 1fr; }
}
