:root {
  --navy: #1a2332;
  --navy-dark: #0d1219;
  --navy-light: #2d3f56;
  --gold: #d35400;
  --gold-light: #e67e22;
  --bg: #f8f9fb;
  --surface: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --font: 'Inter', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --header-h: 80px;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(26, 35, 50, 0.08);
  --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.header--scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo__mark {
  width: 44px;
  height: 44px;
  background: var(--navy);
  color: var(--gold);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
}

.logo__text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

.logo__sub {
  display: block;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: 8px; }

.nav__link {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 8px;
  transition: all var(--transition);
}

.nav__link:hover,
.nav__link--active {
  color: var(--navy);
  background: rgba(26, 35, 50, 0.06);
}

.header__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  flex-shrink: 0;
}

.header__cta {
  padding: 10px 20px;
  background: var(--gold);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  transition: all var(--transition);
  flex-shrink: 0;
}

.header__cta:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none;
  cursor: pointer; padding: 8px;
}

.burger span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}

.burger--active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger--active span:nth-child(2) { opacity: 0; }
.burger--active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn--primary {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

.btn--primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(211, 84, 0, 0.35);
}

.btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn--outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.btn--dark {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.btn--dark:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
}

.page-hero {
  padding: calc(var(--header-h) + 64px) 0 64px;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-light) 100%);
  color: #fff;
}

.page-hero--compact { padding-bottom: 48px; }

.page-hero__label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-light);
  margin-bottom: 16px;
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}

.page-hero__text {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 560px;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 24px;
}

.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb span { color: var(--gold-light); }

.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 48px) 0 80px;
  overflow: hidden;
}

.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(13, 18, 25, 0.93) 0%, rgba(26, 35, 50, 0.78) 50%, rgba(45, 63, 86, 0.45) 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero__content { color: #fff; }

.hero__badge {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(211, 84, 0, 0.2);
  border: 1px solid rgba(211, 84, 0, 0.4);
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero__text {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  max-width: 480px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }

.hero__stats { display: flex; gap: 40px; }
.hero__stats li { display: flex; flex-direction: column; }

.hero__stats strong {
  font-size: 28px;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1.2;
}

.hero__stats span { font-size: 13px; color: rgba(255, 255, 255, 0.7); }

.hero__card {
  background: var(--surface);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}

.hero__card-title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 20px;
}

.hero__card-list li {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--text-muted);
}

.hero__card-check { color: var(--gold); font-weight: 700; flex-shrink: 0; }

.section { padding: 88px 0; }
.section--alt { background: var(--surface); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}

.section-subtitle { font-size: 17px; color: var(--text-muted); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}

.service-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-card__image { width: 100%; height: 180px; object-fit: cover; }
.service-card__body { padding: 28px; }

.service-card__icon {
  width: 48px; height: 48px;
  background: rgba(26, 35, 50, 0.08);
  color: var(--navy);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 22px;
}

.service-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.service-card__desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.service-card__link { font-size: 14px; font-weight: 600; color: var(--gold); }
.service-card__link:hover { color: var(--navy); }

.advantages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.advantage { text-align: center; padding: 32px 20px; }

.advantage__icon {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  background: var(--navy);
  color: var(--gold-light);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.advantage__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.advantage__text { font-size: 14px; color: var(--text-muted); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split__image { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.split__image img { width: 100%; height: 420px; object-fit: cover; }
.split__text { font-size: 16px; color: var(--text-muted); margin-bottom: 24px; }

.split__list li {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 15px;
}

.split__list-icon { color: var(--gold); font-weight: 700; flex-shrink: 0; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.team-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.team-card__photo { width: 100%; height: 280px; object-fit: cover; object-position: top; }
.team-card__body { padding: 24px; }

.team-card__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.team-card__role {
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 8px;
}

.team-card__exp { font-size: 13px; color: var(--text-muted); }

.cta-banner {
  padding: 64px 0;
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: #fff;
  text-align: center;
}

.cta-banner__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 36px);
  margin-bottom: 12px;
}

.cta-banner__text {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 28px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.contact-info__item { display: flex; gap: 16px; margin-bottom: 28px; }

.contact-info__icon {
  width: 48px; height: 48px;
  background: rgba(26, 35, 50, 0.08);
  color: var(--navy);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-info__label { font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }
.contact-info__value { font-size: 16px; font-weight: 600; color: var(--navy); }

.contact-map {
  margin-top: 32px;
  border-radius: var(--radius);
  overflow: hidden;
  height: 240px;
  background: var(--border);
}

.contact-map img { width: 100%; height: 100%; object-fit: cover; }

.form {
  background: var(--surface);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.form__title {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--navy);
  margin-bottom: 8px;
}

.form__subtitle { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; }
.form__group { margin-bottom: 20px; }

.form__label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.form__input {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font);
  font-size: 15px;
  border: 2px solid var(--border);
  border-radius: 10px;
  outline: none;
  transition: border-color var(--transition);
  background: var(--bg);
}

.form__input:focus { border-color: var(--navy); }
.form__input--error { border-color: #ef4444; }
.form__textarea { resize: vertical; min-height: 120px; }

.form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}

.form__error { display: block; font-size: 13px; color: #ef4444; margin-top: 6px; min-height: 18px; }

.form__success {
  margin-top: 16px;
  padding: 16px;
  background: #dcfce7;
  color: #166534;
  border-radius: 10px;
  font-weight: 600;
  text-align: center;
}

.service-detail {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: start;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

.service-detail:last-child { border-bottom: none; }
.service-detail__image { border-radius: var(--radius); overflow: hidden; }
.service-detail__image img { width: 100%; height: 260px; object-fit: cover; }

.service-detail__title {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--navy);
  margin-bottom: 12px;
}

.service-detail__desc { font-size: 15px; color: var(--text-muted); margin-bottom: 20px; }

.service-detail__list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text);
}

.service-detail__list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.stat-box {
  text-align: center;
  padding: 32px 16px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.stat-box__num {
  display: block;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
}

.stat-box__label { font-size: 14px; color: var(--text-muted); }

.footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.7);
  padding-top: 64px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer .logo__text { color: #fff; }
.footer .logo__sub { color: rgba(255, 255, 255, 0.5); }
.footer__desc { font-size: 14px; margin-top: 16px; line-height: 1.7; }

.footer__title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  margin-bottom: 16px;
}

.footer__link {
  display: block;
  font-size: 14px;
  margin-bottom: 10px;
  transition: color var(--transition);
}

a.footer__link:hover { color: var(--gold-light); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
}

@media (max-width: 1024px) {
  .hero__inner, .split, .contact-grid, .service-detail { grid-template-columns: 1fr; gap: 40px; }
  .services-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .advantages, .stats-row { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .header__phone, .header__cta { display: none; }
  .burger { display: flex; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0; bottom: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    background: var(--surface);
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 99;
  }
  .nav--open { transform: translateX(0); }
  .nav__link {
    padding: 16px 0;
    font-size: 18px;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }
  .hero { min-height: auto; }
  .hero__stats { gap: 24px; }
  .services-grid, .team-grid, .advantages, .stats-row { grid-template-columns: 1fr; }
  .form { padding: 28px 24px; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* Mobile menu вЂ” Android fix */
@media (max-width: 768px) {
  body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
  }

  .header {
    z-index: 1200 !important;
  }

  .header--menu-open {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .burger {
    position: relative;
    z-index: 1202;
  }

  .header .nav,
  #nav.nav,
  #nav {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    min-height: 100dvh !important;
    margin: 0 !important;
    padding: calc(var(--header-height, var(--header-h, 72px)) + 8px) 24px 32px !important;
    background-color: #ffffff !important;
    background-image: none !important;
    opacity: 1 !important;
    isolation: isolate !important;
    z-index: 1201 !important;
    transform: translate3d(100%, 0, 0) !important;
    transition: transform 0.28s ease, visibility 0.28s ease !important;
    visibility: hidden !important;
    pointer-events: none !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.18) !important;
    gap: 0 !important;
  }

  .header .nav--open,
  #nav.nav--open,
  #nav.nav--open {
    transform: translate3d(0, 0, 0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1199;
    background-color: rgba(15, 23, 42, 0.65);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
  }

  .nav-backdrop--visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}
