/* ===== Базовые настройки ===== */
:root {
  --dark: #0e1b33;
  --dark-2: #152644;
  --navy: #1c2f52;
  --gold: #c9a227;
  --gold-light: #e0bd45;
  --text: #24334d;
  --muted: #5c6b85;
  --light: #f6f8fc;
  --white: #ffffff;
  --border: #e3e9f2;
  --radius: 14px;
  --shadow: 0 20px 50px rgba(14, 27, 51, 0.10);
  --font: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

.section { padding: 96px 0; }
.section--dark { background: var(--dark); color: var(--white); }
.section--dark .section-head__kicker { color: var(--gold-light); }

.accent { color: var(--gold); }

/* ===== Кнопки ===== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.3px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s ease;
  text-align: center;
}

.btn--gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--dark);
  box-shadow: 0 10px 24px rgba(201, 162, 39, 0.35);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(201, 162, 39, 0.45); }

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }

.btn--lg { padding: 17px 38px; font-size: 16px; }
.btn--full { width: 100%; }

/* ===== Заголовки секций ===== */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head__kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.section-head__title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  color: var(--dark);
}
.section--dark .section-head__title { color: var(--white); }
.section-head__subtitle { margin-top: 16px; color: var(--muted); font-size: 17px; }
.section--dark .section-head__subtitle { color: rgba(255, 255, 255, 0.7); }

/* ===== Шапка ===== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.header.scrolled { border-color: var(--border); box-shadow: 0 8px 30px rgba(14, 27, 51, 0.08); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

.logo { display: flex; align-items: center; gap: 12px; }
.logo__mark {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--dark), var(--navy));
  color: var(--gold-light);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo__mark--img {
  width: 48px; height: 48px;
  object-fit: contain;
  border-radius: 0;
  background: none;
}
.logo__text { display: flex; flex-direction: column; line-height: 1.25; }
.logo__name { font-weight: 800; font-size: 15px; color: var(--dark); text-transform: uppercase; letter-spacing: 0.5px; }
.logo__tag { font-size: 10.5px; color: var(--muted); letter-spacing: 0.8px; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav__link { font-weight: 600; font-size: 15px; color: var(--text); position: relative; padding: 4px 0; transition: color 0.2s; }
.nav__link::after {
  content: '';
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; border-radius: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}
.nav__link:hover { color: var(--dark); }
.nav__link:hover::after { width: 100%; }
.nav__cta { padding: 11px 22px; font-size: 14px; }

.header__phone { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.35; }
.header__phone-link { font-weight: 800; font-size: 16px; color: var(--dark); white-space: nowrap; }
.header__phone-note { font-size: 12px; color: var(--muted); }

/* Бургер */
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { width: 26px; height: 3px; border-radius: 2px; background: var(--dark); transition: all 0.3s ease; }
.burger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== Главный экран ===== */
.hero {
  position: relative;
  padding: 180px 0 120px;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(201, 162, 39, 0.18), transparent 60%),
    linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 55%, var(--navy) 100%);
  color: var(--white);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  right: -140px; top: 50%;
  width: 560px; height: 560px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  transform: translateY(-50%);
}
.hero::after {
  content: '';
  position: absolute;
  right: -40px; top: 50%;
  width: 380px; height: 380px;
  border: 1px solid rgba(201, 162, 39, 0.25);
  border-radius: 50%;
  transform: translateY(-50%);
}

.hero__content { max-width: 760px; position: relative; z-index: 2; }

.hero__badge {
  display: inline-block;
  background: rgba(201, 162, 39, 0.15);
  border: 1px solid rgba(201, 162, 39, 0.4);
  color: var(--gold-light);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 26px;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(34px, 5.5vw, 60px);
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.78);
  max-width: 560px;
  margin-bottom: 38px;
}

.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 64px; }

.hero__stats { display: flex; gap: 56px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat__num { font-family: var(--font-serif); font-size: 38px; color: var(--gold-light); line-height: 1.1; }
.stat__num span { font-size: 22px; }
.stat__label { font-size: 14px; color: rgba(255, 255, 255, 0.65); }

/* ===== О компании ===== */
.about__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: start; }

.about__text p { margin-bottom: 18px; font-size: 16.5px; color: var(--text); }
.about__text strong { color: var(--dark); }

.about__list { margin-top: 28px; display: grid; gap: 14px; }
.about__list li {
  position: relative;
  padding-left: 30px;
  font-weight: 600;
  color: var(--dark);
}
.about__list li::before {
  content: '✓';
  position: absolute; left: 0; top: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(201, 162, 39, 0.15);
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

.about__card {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.about__card-title {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--dark);
  margin-bottom: 28px;
}
.about__card-item { display: flex; gap: 18px; padding: 18px 0; border-top: 1px solid var(--border); }
.about__card-item:first-of-type { border-top: none; }
.about__card-num {
  font-family: var(--font-serif);
  color: var(--gold);
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}
.about__card-item p { font-size: 14.5px; color: var(--muted); }
.about__card-item strong { display: block; color: var(--dark); margin-bottom: 3px; }

/* ===== Услуги ===== */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.service {
  background: var(--dark-2);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.service:hover { transform: translateY(-6px); border-color: rgba(201, 162, 39, 0.5); background: var(--navy); }

.service__icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid rgba(201, 162, 39, 0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}
.service__title { font-size: 19px; color: var(--white); margin-bottom: 10px; }
.service__text { font-size: 14.5px; color: rgba(255, 255, 255, 0.65); }

/* ===== Прайс-лист ===== */
.tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.tab {
  padding: 12px 26px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--muted);
  font-family: var(--font);
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.tab:hover { border-color: var(--gold); color: var(--dark); }
.tab--active {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--gold-light);
}

.price-panel { display: none; }
.price-panel--active { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.price-table thead { background: var(--dark); color: var(--white); }
.price-table th {
  text-align: left;
  padding: 20px 26px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.price-table th:last-child { text-align: right; width: 220px; }

.price-table td {
  padding: 17px 26px;
  border-top: 1px solid var(--border);
  font-size: 15.5px;
  color: var(--text);
}
.price-table tbody tr { transition: background 0.2s ease; }
.price-table tbody tr:hover { background: var(--light); }
.price-table td.price {
  text-align: right;
  font-weight: 800;
  color: var(--dark);
  white-space: nowrap;
  font-size: 15px;
}

.prices__note { text-align: center; margin-top: 28px; color: var(--muted); font-size: 14.5px; }

/* ===== Консультация ===== */
.consult__card {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.consult__title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.5vw, 38px);
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 16px;
}
.consult__text { color: var(--muted); font-size: 16px; margin-bottom: 28px; }

.consult__contacts { display: grid; gap: 12px; }
.consult__contacts li { font-weight: 600; color: var(--dark); font-size: 16px; }
.consult__contacts a:hover { color: var(--gold); }

.consult__form { display: grid; gap: 14px; }
.consult__form input {
  width: 100%;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.consult__form input::placeholder { color: var(--muted); }
.consult__form input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.15);
}
.consult__form input.error { border-color: #d64545; }

.consult__privacy { font-size: 12.5px; color: var(--muted); text-align: center; }
.consult__success { color: #1c7c3c; font-weight: 600; text-align: center; font-size: 15px; }

/* ===== Контакты ===== */
.contacts__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.contact {
  background: var(--dark-2);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.contact:hover { transform: translateY(-6px); border-color: rgba(201, 162, 39, 0.5); }

.contact__icon {
  width: 56px; height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid rgba(201, 162, 39, 0.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.contact h3 { color: var(--white); font-size: 16px; margin-bottom: 8px; }
.contact p { color: rgba(255, 255, 255, 0.65); font-size: 14px; }
.contact a:hover { color: var(--gold-light); }

/* ===== Подвал ===== */
.footer { background: #0a1428; color: rgba(255, 255, 255, 0.7); padding: 64px 0 0; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.logo--footer .logo__name { color: var(--white); }
.footer__about { margin-top: 16px; font-size: 14px; max-width: 300px; }
.footer__nav, .footer__contacts { display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; }
.footer__nav a:hover, .footer__contacts a:hover { color: var(--gold-light); }
.footer__nav-title {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 700;
  margin-bottom: 6px;
}
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

/* ===== Анимация появления ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Адаптивность ===== */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .contacts__grid { grid-template-columns: repeat(2, 1fr); }
  .consult__card { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    top: 0; right: -100%;
    width: min(340px, 82vw);
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 26px;
    padding: 60px 36px;
    box-shadow: -20px 0 60px rgba(14, 27, 51, 0.18);
    transition: right 0.35s ease;
    z-index: 99;
  }
  .nav.open { right: 0; }
  .nav__link { font-size: 19px; }
  .nav__cta { width: 100%; text-align: center; }

  .burger { display: flex; position: relative; z-index: 100; }

  .header__phone { display: none; }
  .section { padding: 72px 0; }
  .hero { padding: 140px 0 90px; }
  .footer__inner { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 600px) {
  .services__grid { grid-template-columns: 1fr; }
  .contacts__grid { grid-template-columns: 1fr; }
  .hero__stats { gap: 32px; }
  .consult__card { padding: 32px 24px; }
  .price-table th:last-child, .price-table td.price { width: auto; white-space: normal; }
  .hero__actions .btn { width: 100%; }
}
