/* ============================================
   FISENKO A.YU. — Юрист по недвижимости
   Стилистика: тёмно-синий, как bg63.ru
   ============================================ */

:root {
  /* Основная палитра — тёмный navy */
  --bg-deep: #080d24;
  --bg-base: #0b1030;
  --bg-card: #0f1540;
  --bg-card-hover: #141a4a;
  --bg-elevated: #161c50;
  --bg-lighter: #0e1338;

  /* Акцент — синий (как бриллиант) */
  --accent: #4747ff;
  --accent-glow: rgba(71, 71, 255, 0.3);
  --accent-subtle: rgba(71, 71, 255, 0.12);

  /* Текст */
  --text: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.45);

  /* Линии */
  --line: rgba(255, 255, 255, 0.08);
  --line-hover: rgba(255, 255, 255, 0.18);

  /* Утилиты */
  --radius: 4px;
  --container: 1240px;
  --gap: 24px;
  --section-py: 120px;
  --transition: all 0.3s ease;
}

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

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

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================
   WAVE PATTERN (фоновый паттерн круговых волн)
   ============================================ */
.wave-pattern {
  position: relative;
}

.wave-pattern::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-radial-gradient(
      circle at 70% 40%,
      transparent 0,
      transparent 60px,
      rgba(71, 71, 255, 0.03) 60px,
      rgba(71, 71, 255, 0.03) 61px
    );
  pointer-events: none;
  z-index: 0;
}

.wave-pattern > .container {
  position: relative;
  z-index: 1;
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 13, 36, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 88px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  flex-shrink: 0;
}

.header__logo-mark {
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.5px;
}

.header__logo-text small {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.header__nav {
  display: flex;
  gap: 32px;
}

.header__nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
}

.header__nav a:hover {
  color: var(--text);
}

.header__phone {
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  color: var(--text);
}

.header__phone:hover {
  color: var(--accent);
}

.header__burger {
  display: none;
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}

.header__burger span {
  display: block;
  height: 2px;
  background: var(--text);
  width: 100%;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn--primary:hover {
  background: #5c5cff;
  border-color: #5c5cff;
  box-shadow: 0 0 30px var(--accent-glow);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-hover);
}

.btn--ghost:hover {
  border-color: var(--text);
  background: rgba(255,255,255,0.05);
}

.btn--light {
  background: transparent;
  color: var(--text);
  border-color: rgba(255,255,255,0.25);
}

.btn--light:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}

.btn--full {
  width: 100%;
}

.btn--lg {
  padding: 22px 48px;
  font-size: 16px;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 80px 0 120px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 70% 0%, rgba(71, 71, 255, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 0% 100%, rgba(71, 71, 255, 0.08) 0%, transparent 50%),
    var(--bg-deep);
  position: relative;
  overflow: hidden;
}

/* Круговые волны на hero */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-radial-gradient(
      circle at 75% 35%,
      transparent 0,
      transparent 50px,
      rgba(71, 71, 255, 0.025) 50px,
      rgba(71, 71, 255, 0.025) 51px
    );
  pointer-events: none;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

/* Декоративный бриллиант в hero */
.hero__diamond {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 80px;
  align-items: start;
}

.hero__badge {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid rgba(71, 71, 255, 0.4);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 32px;
  color: var(--text-secondary);
  background: var(--accent-subtle);
}

.hero__title {
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 32px;
  color: var(--text);
}

.hero__subtitle {
  font-size: 20px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 48px;
  max-width: 600px;
}

.hero__directions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 48px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero__directions li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
}

.hero__num {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

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

.hero__side {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--line);
}

.hero__stat {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.hero__stat:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.hero__stat-num {
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -2px;
  margin-bottom: 12px;
  color: var(--text);
}

.hero__stat-label {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: var(--section-py) 0;
  background: var(--bg-deep);
  position: relative;
}

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

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

.section--accent {
  background:
    radial-gradient(ellipse at 30% 50%, rgba(71, 71, 255, 0.12) 0%, transparent 60%),
    var(--bg-base);
  position: relative;
  overflow: hidden;
}

/* Секции с волновым паттерном на карточках */
.section--accent::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-radial-gradient(
      circle at 50% 50%,
      transparent 0,
      transparent 80px,
      rgba(71, 71, 255, 0.02) 80px,
      rgba(71, 71, 255, 0.02) 81px
    );
  pointer-events: none;
}

.section--accent > .container {
  position: relative;
  z-index: 1;
}

.section__head {
  margin-bottom: 64px;
  max-width: 800px;
}

.section__eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 16px;
}

.section__title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--text);
}

/* ============================================
   GRID
   ============================================ */
.grid {
  display: grid;
  gap: var(--gap);
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--bordered {
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.grid--bordered > * {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ============================================
   CARDS (1.2)
   ============================================ */
.card {
  padding: 40px 32px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 200px;
  transition: var(--transition);
}

.card:hover {
  border-color: var(--line-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.card__num {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
}

.card__text {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

/* ============================================
   FEATURES (1.3)
   ============================================ */
.feature {
  padding: 48px 32px;
  background: var(--bg-card);
}

.feature__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--text);
}

.feature__text {
  font-size: 15px;
  color: var(--text-muted);
}

/* ============================================
   PRIORITY (1.4) — карточки с волновым паттерном
   ============================================ */
.priority {
  padding: 48px 40px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
}

/* Волновой паттерн на карточках — как на bg63.ru */
.priority::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-radial-gradient(
      circle at 80% 80%,
      transparent 0,
      transparent 30px,
      rgba(71, 71, 255, 0.04) 30px,
      rgba(71, 71, 255, 0.04) 31px
    );
  pointer-events: none;
}

.priority > * {
  position: relative;
  z-index: 1;
}

.priority:hover {
  border-color: rgba(71, 71, 255, 0.3);
  background: var(--bg-card-hover);
}

.priority__num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 32px;
}

.priority__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text);
}

.priority__desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.priority__for {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.priority__for strong {
  color: var(--text);
}

.priority .btn {
  margin-top: auto;
}

/* ============================================
   SERVICES (детально)
   ============================================ */
.service {
  background: var(--bg-card);
  border: 1px solid var(--line);
  margin-bottom: 24px;
  overflow: hidden;
}

.service__head {
  padding: 40px 48px 32px;
  border-bottom: 1px solid var(--line);
}

.service__priority {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 12px;
}

.service__title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

.service__body {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
}

.service__col {
  padding: 40px 48px;
  border-right: 1px solid var(--line);
}

.service__col:last-child {
  border-right: none;
}

.service__col--meta {
  background: var(--bg-elevated);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.service__label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 20px;
}

.service__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service__list li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.service__list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

.service__meta {
  margin-bottom: 16px;
}

.service__meta-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.service__meta-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

/* Other services (2.4) */
.other-services {
  margin-top: 64px;
}

.other-services__title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--text);
}

.service-mini {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--transition);
}

.service-mini:hover {
  border-color: var(--line-hover);
  background: var(--bg-card-hover);
}

.service-mini__name {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

.service-mini__term {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ============================================
   PROCESS (1.5)
   ============================================ */
.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.process__step {
  padding: 40px 24px 0 24px;
  border-right: 1px solid var(--line);
  position: relative;
}

.process__step:last-child {
  border-right: none;
}

.process__num {
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -2px;
  margin-bottom: 24px;
  color: var(--accent);
  opacity: 0.6;
}

.process__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--text);
}

.process__text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================
   GUARANTEES (1.6)
   ============================================ */
.guarantee {
  padding: 48px 32px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  display: flex;
  align-items: center;
  min-height: 140px;
  color: var(--text);
  transition: var(--transition);
}

.guarantee:hover {
  border-color: var(--line-hover);
  background: var(--bg-card-hover);
}

.guarantee::before {
  content: "✓";
  margin-right: 16px;
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
}

/* ============================================
   CASES (1.7)
   ============================================ */
.cases-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.case-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  transition: var(--transition);
}

.case-item:hover {
  border-color: var(--line-hover);
}

.case-item[open] {
  border-color: rgba(71, 71, 255, 0.3);
}

.case-item__head {
  padding: 40px 48px;
  display: flex;
  align-items: center;
  gap: 24px;
  cursor: pointer;
  list-style: none;
}

.case-item__head::-webkit-details-marker {
  display: none;
}

.case-item__from {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 600;
  flex-shrink: 0;
}

.case-item__arrow {
  font-size: 28px;
  color: var(--accent);
  flex-shrink: 0;
}

.case-item__to {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  flex-grow: 1;
}

.case-item__toggle {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  position: relative;
  margin-left: auto;
}

.case-item__toggle::before,
.case-item__toggle::after {
  content: "";
  position: absolute;
  background: var(--accent);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease;
}

.case-item__toggle::before {
  width: 20px;
  height: 2px;
}

.case-item__toggle::after {
  width: 2px;
  height: 20px;
}

.case-item[open] .case-item__toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.case-item__body {
  padding: 0 48px 40px;
  border-top: 1px solid var(--line);
  margin: 0 48px;
  padding-top: 32px;
  margin-top: -8px;
}

.case-item__body p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.case-item__body p:last-child {
  margin-bottom: 0;
}

.case-item__body strong {
  color: var(--text);
}

.cases__cta {
  margin-top: 64px;
  text-align: center;
}

/* ============================================
   ABOUT — с бриллиантом
   ============================================ */
.about-section {
  background:
    radial-gradient(ellipse at 80% 50%, rgba(71, 71, 255, 0.1) 0%, transparent 50%),
    var(--bg-base);
  position: relative;
  overflow: hidden;
}

.about-section .about__diamond {
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 350px;
  opacity: 0.05;
  pointer-events: none;
}

.about {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.about__name {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 16px;
}

.about__person {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 40px;
  color: var(--text);
}

.about__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about__list li {
  font-size: 18px;
  padding-left: 24px;
  position: relative;
  color: var(--text-secondary);
}

.about__list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

.about__quote {
  font-size: 22px;
  line-height: 1.5;
  font-style: italic;
  padding: 40px;
  border-left: 3px solid var(--accent);
  color: var(--text-secondary);
}

/* ============================================
   PRICES (таблица)
   ============================================ */
.prices__table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--line);
}

.prices__table th,
.prices__table td {
  padding: 24px 32px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.prices__table th {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  background: var(--bg-elevated);
}

.prices__table td {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
}

.prices__table tr:last-child td {
  border-bottom: none;
}

.prices__table tr:hover td {
  background: rgba(71, 71, 255, 0.04);
}

.prices__note {
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
}

/* ============================================
   FAQ
   ============================================ */
.faq {
  max-width: 900px;
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__item[open] .faq__q::after {
  transform: rotate(45deg);
}

.faq__q {
  padding: 32px 0;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  color: var(--text);
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__q::after {
  content: "+";
  font-size: 32px;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--accent);
}

.faq__a {
  padding: 0 0 32px 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 700px;
}

/* ============================================
   CONTACTS
   ============================================ */
.contacts {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  margin-bottom: 64px;
}

.contacts__info {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contacts__item {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.contacts__label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 12px;
}

.contacts__value {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  display: block;
  color: var(--text);
}

a.contacts__value:hover {
  color: var(--accent);
}

.contacts__value--tg {
  font-size: 20px;
  color: var(--accent);
}

.contacts__value--tg:hover {
  color: #5c5cff;
}

.contacts__sub {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
}

/* FORM */
.form {
  background: var(--bg-card);
  padding: 48px;
  border: 1px solid var(--line);
}

.form__title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--text);
}

.form__field {
  margin-bottom: 24px;
}

.form__field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form__field input,
.form__field textarea {
  width: 100%;
  padding: 16px 0;
  font-size: 16px;
  font-family: inherit;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  outline: none;
  transition: var(--transition);
  color: var(--text);
  resize: vertical;
}

.form__field input:focus,
.form__field textarea:focus {
  border-bottom-color: var(--accent);
}

.form__field input::placeholder,
.form__field textarea::placeholder {
  color: var(--text-muted);
}

.form__check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.form__check input {
  margin-top: 3px;
  flex-shrink: 0;
}

.form__check a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-decoration-color: var(--line-hover);
}

.form__check a:hover {
  color: var(--accent);
}

.form__status {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.5;
  min-height: 24px;
}

.form__status--success {
  color: #4ade80;
}

.form__status--error {
  color: #f87171;
}

/* MAP */
.map {
  border: 1px solid var(--line);
  overflow: hidden;
}

.map iframe {
  display: block;
  filter: brightness(0.8) saturate(0.6);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-base);
  color: var(--text);
  padding: 80px 0 32px;
  border-top: 1px solid var(--line);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__col a,
.footer__col span {
  font-size: 14px;
  color: var(--text-muted);
}

.footer__col a:hover {
  color: var(--text);
}

.footer__logo {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text);
}

.footer__about {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 360px;
}

.footer__diamond {
  width: 200px;
  margin-top: 24px;
  opacity: 0.7;
}

.footer__label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 8px;
}

.footer__bottom {
  border-top: 1px solid var(--line);
  padding-top: 32px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

/* Декоративный бриллиант в секции «Почему выбирают» */
.diamond-decor {
  position: absolute;
  pointer-events: none;
  opacity: 0.04;
  z-index: 0;
}

.diamond-decor--right {
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
}

.diamond-decor--left {
  left: -60px;
  bottom: -40px;
  width: 300px;
}

/* ============================================
   FLOATING BUTTON (Telegram)
   ============================================ */
.floating-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 60px;
  height: 60px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  box-shadow: 0 4px 24px var(--accent-glow);
  transition: var(--transition);
}

.floating-btn:hover {
  background: #5c5cff;
  transform: scale(1.1);
  box-shadow: 0 6px 32px rgba(71, 71, 255, 0.5);
}

@media (max-width: 640px) {
  .floating-btn {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
  }
}

/* ============================================
   MODAL
   ============================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.is-open {
  display: flex;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
}

.modal__box {
  position: relative;
  background: var(--bg-card);
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 56px 48px;
  border: 1px solid var(--line);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  color: var(--text);
}

.modal__close:hover {
  color: var(--accent);
}

.modal__box h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text);
}

.modal__box p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 16px;
}

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

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  :root {
    --section-py: 80px;
  }

  .header__nav {
    display: none;
  }

  .header__burger {
    display: flex;
  }

  .header.menu-open .header__nav {
    display: flex;
    position: absolute;
    top: 88px;
    left: 0;
    right: 0;
    background: var(--bg-base);
    flex-direction: column;
    padding: 24px 32px;
    gap: 20px;
    border-bottom: 1px solid var(--line);
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero__diamond {
    width: 300px;
    right: -40px;
  }

  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .service__col {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .service__col:last-child {
    border-bottom: none;
  }

  .process {
    grid-template-columns: repeat(2, 1fr);
    border-left: 1px solid var(--line);
  }

  .process__step {
    border-bottom: 1px solid var(--line);
    padding: 32px 24px;
  }

  .process__step:nth-child(2n) {
    border-right: none;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

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

@media (max-width: 640px) {
  :root {
    --section-py: 64px;
  }

  .container {
    padding: 0 20px;
  }

  .case-item__head {
    padding: 24px 20px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .case-item__to {
    font-size: 20px;
    flex-basis: 100%;
  }

  .case-item__body {
    padding: 0 20px 24px;
    margin: 0 20px;
  }

  .header__phone {
    display: none;
  }

  .header__inner {
    height: 72px;
  }

  .hero {
    padding: 48px 0 64px;
  }

  .hero__title {
    font-size: 36px;
    letter-spacing: -1px;
  }

  .hero__subtitle {
    font-size: 16px;
  }

  .hero__directions li {
    font-size: 16px;
  }

  .hero__side {
    padding: 32px 24px;
  }

  .hero__stat-num {
    font-size: 42px;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__diamond {
    width: 200px;
    opacity: 0.04;
  }

  .section__title {
    font-size: 32px;
  }

  .section__head {
    margin-bottom: 40px;
  }

  .grid--2,
  .grid--3 {
    grid-template-columns: 1fr;
  }

  .grid--bordered > * {
    border-right: none;
  }

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

  .process__step {
    border-right: none;
  }

  .service__head {
    padding: 32px 24px 24px;
  }

  .service__title {
    font-size: 22px;
  }

  .service__col {
    padding: 28px 24px;
  }

  .form {
    padding: 32px 24px;
  }

  .prices__table th,
  .prices__table td {
    padding: 16px;
    font-size: 14px;
  }

  .prices__table {
    display: block;
    overflow-x: auto;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .modal__box {
    padding: 48px 24px 32px;
  }

  .about__person {
    font-size: 32px;
  }

  .about__quote {
    font-size: 18px;
    padding: 24px;
  }

  .about-section .about__diamond {
    width: 180px;
    opacity: 0.03;
  }

  .diamond-decor {
    display: none;
  }
}
