/* ==========================================================================
   Невская правовая группа — основная таблица стилей
   Палитра: тёмно-синий #202534, золото #DBA66D, светлый фон #F6F7F9
   ========================================================================== */

:root {
  --navy: #202534;
  --navy-l: #2b3145;
  --navy-d: #161a26;
  --gold: #DBA66D;
  --gold-d: #c8914f;
  --gold-soft: #fdf7f0;
  --light: #F6F7F9;
  --line: #e6e8ee;
  --muted: #6b6f7d;
  --muted-2: #9aa0ae;
  --white: #fff;
  --green: #1fbf45;
  --radius: 4px;
  --shadow: 0 10px 30px rgba(32, 37, 52, .08);
  --shadow-h: 0 16px 40px rgba(32, 37, 52, .14);
  --font: 'Roboto', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Roboto Slab', Georgia, 'Times New Roman', serif;
}

/* ------------------------------------- блоки страниц практик (уникальные) -- */
.cases-list { list-style: none; margin: 0; }
.cases-list li { position: relative; padding-left: 34px; margin-bottom: 18px; }
.cases-list li:before { content: ''; position: absolute; left: 0; top: 7px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--gold-soft); border: 2px solid var(--gold); }
.terms-table { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
.terms-table th { text-align: left; font-size: 14px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted-2); font-weight: 500; padding: 0 16px 10px 0; border-bottom: 1px solid var(--line); }
.terms-table td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.terms-table td:first-child { width: 62%; }
.terms-table td:last-child { color: var(--navy); font-weight: 500; }
.mistakes-list { list-style: none; margin: 0; }
.mistakes-list li { position: relative; padding-left: 34px; margin-bottom: 16px; color: #3d4356; }
.mistakes-list li:before { content: '!'; position: absolute; left: 0; top: 0; width: 22px; height: 22px;
  border-radius: 50%; background: var(--navy); color: var(--gold); font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; }
.related-box { background: var(--light); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 28px; }
.related-box b { display: block; margin-bottom: 10px; }
.related-box p { margin-bottom: 8px; }
.related-list { list-style: none; margin: 0 0 10px; }
.related-list li { display: inline; }
.related-list li + li:before { content: '\00b7'; color: var(--muted-2); margin: 0 10px; }

.related-box a { color: var(--navy); border-bottom: 1px solid var(--gold); font-weight: 500; }
.related-box a:hover { color: var(--gold-d); }
@media (max-width: 700px) {
  .terms-table td:first-child { width: auto; }
  .terms-table td { padding: 12px 10px 12px 0; font-size: 15px; }
  .related-box { padding: 20px 18px; }
  /* на телефоне ссылки столбиком: точки-разделители на переносе смотрятся неряшливо */
  .related-list li { display: block; }
  .related-list li + li:before { content: none; }
  .related-list li { margin-bottom: 8px; }
}


/* ------------------------------------------- связь материала с практикой -- */
.topic-link { background: var(--gold-soft); border: 1px solid rgba(219, 166, 109, .5);
  border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 20px 24px; }
.topic-link b { display: block; margin-bottom: 6px; font-size: 17px; }
.topic-link p { margin: 0; }
.topic-link a { color: var(--navy); font-weight: 500; border-bottom: 1px solid var(--gold); }
.topic-link a:hover { color: var(--gold-d); }


/* --------------------------------------------- звонок и панель на телефоне -- */
/* Номер на сайте — картинка, ссылку tel: собирает скрипт в момент нажатия. */
.link-tel { text-decoration: none; display: inline-block; }
.link-tel:hover { text-decoration: none; }
.header-tel { align-items: center; }
.header-tel img { display: block; }
.muted-l { color: rgba(255, 255, 255, .5); }
.f-13 { font-size: 13px; }
.contact-actions { display: inline-flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.callbar { display: none; }

@media (max-width: 992px) {
  .callbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 185;
    display: flex; gap: 10px; padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(32, 37, 52, .12);
  }
  .callbar .btn { flex: 1; padding: 14px 8px; font-size: 15px; }
  /* запас под панель: плюс «безопасная зона» iPhone, иначе кнопки лягут на системную полосу */
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}


/* прилипающая шапка не должна закрывать заголовок при переходе по ссылке */
html { scroll-padding-top: 150px; }

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

html { scroll-behavior: smooth; }

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

img, svg { max-width: 100%; }

a { color: var(--gold-d); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--navy); }

h1, h2, h3, h4, .serif { font-family: var(--serif); font-weight: 700; line-height: 1.25; }

h1 { font-size: 40px; }
h2 { font-size: 32px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }

p { margin-bottom: 16px; }

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

.row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
[class^="col-"] { padding: 0 15px; }
.col-2 { width: 16.6666%; }
.col-3 { width: 25%; }
.col-4 { width: 33.3333%; }
.col-5 { width: 41.6666%; }
.col-6 { width: 50%; }
.col-7 { width: 58.3333%; }
.col-8 { width: 66.6666%; }
.col-9 { width: 75%; }
.col-12 { width: 100%; }

.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }
.bg-light { background: var(--light); }
.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy .section-title,
.bg-navy h2 { color: var(--white); }
.center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.mb-50 { margin-bottom: 50px; }
.mt-10 { margin-top: 10px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.muted { color: var(--muted); }
.f-14 { font-size: 14px; }
.f-18 { font-size: 18px; }
.nowrap { white-space: nowrap; }

.section-title { font-size: 32px; margin-bottom: 12px; }
.section-sub { color: var(--muted); max-width: 760px; margin: 0 auto 45px; }
.section-head { margin-bottom: 45px; }
.section-head--left .section-sub { margin-left: 0; text-align: left; }

/* ------------------------------------------------------------------ кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  padding: 17px 32px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .2s ease;
  text-align: center;
}
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-d); border-color: var(--gold-d); color: var(--navy-d); }
.btn-navy { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-l); border-color: var(--navy-l); color: var(--white); }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .55); color: var(--white); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-line { background: transparent; border-color: var(--gold); color: var(--gold-d); }
.btn-line:hover { background: var(--gold); color: var(--white); }
.btn-wa { background: var(--green); border-color: var(--green); color: var(--white); }
.btn-wa:hover { background: #19a63a; border-color: #19a63a; color: var(--white); }
.btn-sm { padding: 12px 22px; font-size: 14px; }
.btn-block { display: flex; width: 100%; }
.btn svg { width: 20px; height: 20px; flex: none; }

.link-more { font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.link-more:after { content: '\2192'; transition: transform .2s ease; }
.link-more:hover:after { transform: translateX(4px); }

/* ------------------------------------------------------- верхняя панель --- */
.header-panel { background: var(--navy); color: var(--white); font-size: 14px; height: 50px; display: flex; align-items: center; }
.header-panel-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; }
.header-panel a { color: var(--white); }
.header-panel a:hover { color: var(--gold); }
.header-panel .divider { opacity: .35; margin: 0 10px; }
.header-panel-right { display: flex; align-items: center; gap: 18px; }
.header-addr svg, .header-panel svg { width: 15px; height: 15px; flex: none; }
.header-addr { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .85); }
.hp-phone { font-weight: 500; display: inline-flex; align-items: center; gap: 7px; }

/* ------------------------------------------------------------- шапка ------ */
.header { background: var(--white); border-bottom: 1px solid var(--line); position: relative; z-index: 60; }
.header.fixed { position: fixed; top: 0; left: 0; right: 0; box-shadow: var(--shadow); animation: slideDown .25s ease; }
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 92px; }
.logo { display: inline-flex; align-items: center; flex: none; }
.logo img, .logo svg { height: 56px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav > li { position: relative; list-style: none; flex: 0 0 auto; }
.nav > li > a {
  display: block;
  padding: 34px 0;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
  color: var(--navy); white-space: nowrap; }
.nav > li > a:hover, .nav > li.active > a { color: var(--gold-d); }
.nav > li.has-sub > a:after {
  content: ''; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 8px;
  border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy);
  transform: rotate(45deg); transition: all .2s ease;
}
.nav > li.has-sub:hover > a:after { border-color: var(--gold-d); }
.nav-drop {
  position: absolute; top: 100%; left: -24px; width: 286px; background: var(--white);
  box-shadow: 0 18px 40px rgba(32, 37, 52, .14); padding: 8px 0; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s ease; z-index: 70;
}
.nav > li:hover .nav-drop { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-drop a { display: block; padding: 11px 24px; font-size: 14px; color: var(--navy); border-bottom: 1px solid var(--light); }
.nav-drop li:last-child a { border-bottom: none; }
.nav-drop a:hover { color: var(--gold-d); background: #fcfbf9; }
/* мега-меню позиционируется относительно шапки, а не пункта меню: ширина 760px
   не должна выходить за контейнер и создавать горизонтальную прокрутку */
.nav > li.has-sub { position: static; }
.header-inner { position: relative; }
.nav-mega { width: 760px; max-width: calc(100vw - 40px); left: 50%; transform: translate(-50%, 8px); padding: 26px 30px; }
.nav > li:hover .nav-mega { transform: translate(-50%, 0); }
/* мега-меню «Услуги»: два столбца пунктов + строка с прайсом */
.nav-mega { display: none; flex-wrap: wrap; padding: 22px 26px 18px; }
.nav > li:hover .nav-mega { display: flex; }
.nav-mega > li { width: 50%; padding-right: 26px; }
.nav-mega > li > a { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: none; font-size: 14px; color: var(--navy); }
.nav-mega > li > a:before { content: ''; width: 5px; height: 5px; border-radius: 1px; background: var(--gold); margin-top: 8px; flex: none; }
.nav-mega > li > a:hover { background: none; color: var(--gold-d); }
.nav-mega > li.mm-price { width: 100%; padding: 16px 0 0; margin-top: 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.header-cta { display: flex; align-items: center; gap: 16px; flex: none; }
.header-phone { font-family: var(--serif); font-size: 17px; font-weight: 700; color: var(--navy); white-space: nowrap; }
.header-phone span { display: block; font-family: var(--font); font-size: 11px; font-weight: 400; color: var(--muted); text-transform: none; }
.header-wa { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.header-wa .pphone { opacity: .92; }
.header-wa:hover .pphone { opacity: 1; }
.burger { display: none; width: 46px; height: 46px; border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); cursor: pointer; padding: 13px 11px; }
.burger span { display: block; height: 2px; background: var(--navy); margin-bottom: 5px; }
.burger span:last-child { margin-bottom: 0; }

/* --------------------------------------------------------- мобильное меню -- */
.mobile-menu { position: fixed; inset: 0 0 0 auto; width: 320px; max-width: 88%; background: var(--navy); color: var(--white); z-index: 200; overflow-y: auto; padding: 26px 24px 40px; transform: translateX(100%); transition: transform .28s ease; }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu .close { position: absolute; top: 16px; right: 18px; background: none; border: none; color: var(--gold); font-size: 30px; line-height: 1; cursor: pointer; }
.mobile-menu ul { list-style: none; margin: 18px 0; }
.mobile-menu a { color: var(--white); display: block; padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, .09); font-size: 15px; }
.mobile-menu a:hover { color: var(--gold); }
.mobile-menu .mm-title { color: var(--gold); text-transform: uppercase; font-size: 12px; letter-spacing: 1px; margin-top: 22px; }
.overlay { position: fixed; inset: 0; background: rgba(22, 26, 38, .6); z-index: 190; opacity: 0; visibility: hidden; transition: all .28s ease; }
.overlay.open { opacity: 1; visibility: visible; }

/* --------------------------------------------------------- hero-слайдер --- */
.hero { position: relative; overflow: hidden; background: var(--navy); }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; background-size: cover; background-position: center; }
.hero-slide.active { opacity: 1; position: relative; }
.hero-slide-img { position: absolute; inset: 0; }
.hero-slide-img img, .hero-slide-img svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-slide:after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22, 26, 38, .97) 0%, rgba(22, 26, 38, .92) 40%, rgba(22, 26, 38, .55) 68%, rgba(22, 26, 38, .38) 100%); }
.hero-inner { position: relative; z-index: 5; display: flex; align-items: center; min-height: 620px; padding: 90px 0; }
.hero-content { max-width: 730px; color: var(--white); }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold); margin-bottom: 22px; }
.hero-kicker:before { content: ''; width: 44px; height: 2px; background: var(--gold); }
.hero h1, .hero h2 { font-size: 48px; line-height: 1.18; margin-bottom: 26px; }
.hero p.hero-text { font-size: 19px; line-height: 1.6; color: rgba(255, 255, 255, .86); margin-bottom: 36px; max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-arrows { position: absolute; z-index: 6; bottom: 44px; right: 20px; display: flex; gap: 10px; }
.hero-arrow { width: 46px; height: 46px; border: 1px solid rgba(219, 166, 109, .55); border-radius: 50%; background: rgba(22, 26, 38, .55); color: var(--white); font-size: 19px; line-height: 1; cursor: pointer; transition: all .2s ease; }
.hero-arrow:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.hero-dots { position: absolute; z-index: 6; bottom: 57px; left: 50%; transform: translateX(-50%); display: flex; gap: 12px; }
.hero-dot { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .8); background: rgba(22, 26, 38, .6); cursor: pointer; padding: 0; transition: all .2s ease; }
.hero-dot:hover { border-color: var(--gold); }
.hero-dot.active { background: var(--gold); border-color: var(--gold); }
.hero-facts { position: relative; z-index: 6; background: var(--navy-d); }
.hero-facts-inner { display: flex; flex-wrap: wrap; }
.hero-fact { flex: 1 1 25%; padding: 26px 30px; border-right: 1px solid rgba(255, 255, 255, .09); color: var(--white); }
.hero-fact:last-child { border-right: none; }
.hero-fact b { font-family: var(--serif); font-size: 26px; color: var(--gold); display: block; margin-bottom: 4px; }
.hero-fact span { font-size: 14px; color: rgba(255, 255, 255, .78); }

/* --------------------------------------------------------- карточки услуг - */
.services-grid { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.service-card {
  width: calc(33.3333% - 30px);
  margin: 0 15px 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid transparent;
  border-radius: var(--radius);
  padding: 34px 30px 30px;
  display: flex;
  flex-direction: column;
  transition: all .25s ease;
}
.service-card:hover { border-top-color: var(--gold); box-shadow: var(--shadow-h); transform: translateY(-4px); }
.service-card .icon { width: 92px; height: 92px; margin-bottom: 20px; }
.service-card h3 { font-size: 20px; margin-bottom: 12px; }
.service-card h3 a { color: var(--navy); }
.service-card h3 a:hover { color: var(--gold-d); }
.service-card p { font-size: 15px; color: var(--muted); flex: 1; }
.service-card .price-from { font-size: 14px; color: var(--gold-d); font-weight: 500; margin-bottom: 14px; }

.service-tile {
  width: calc(33.3333% - 30px);
  margin: 0 15px 30px;
  border-radius: var(--radius);
  padding: 34px 30px 30px;
  display: flex;
  flex-direction: column;
  background: var(--navy);
  color: var(--white);
  border: 1px solid var(--navy);
}
.service-tile h3 { font-size: 20px; color: var(--white); margin-bottom: 12px; }
.service-tile p { font-size: 15px; color: rgba(255, 255, 255, .8); flex: 1; }
.service-tile.tile-gold { background: var(--gold-soft); border-color: var(--gold); color: var(--navy); }
.service-tile.tile-gold h3 { color: var(--navy); }
.service-tile.tile-gold p { color: var(--muted); }
.service-tile .btn { align-self: flex-start; }
.service-card .icon { width: 92px; height: 92px; margin-bottom: 20px; }

/* ------------------------------------------------------- о компании ------- */
.about-row { display: flex; align-items: center; gap: 60px; }
.about-row > div { flex: 1 1 50%; }
.about-art { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-list { list-style: none; margin: 26px 0 0; }
.about-list li { position: relative; padding-left: 34px; margin-bottom: 14px; font-size: 15px; }
.about-list li:before { content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--gold-soft); border: 1px solid var(--gold); }
.about-list li:after { content: ''; position: absolute; left: 5px; top: 9px; width: 8px; height: 4px; border-left: 2px solid var(--gold-d); border-bottom: 2px solid var(--gold-d); transform: rotate(-45deg); }

/* --------------------------------------------------------- цифры ---------- */
.numbers { display: flex; flex-wrap: wrap; }
.number-item { flex: 1 1 25%; padding: 0 20px; text-align: center; border-right: 1px solid rgba(255, 255, 255, .12); }
.number-item:last-child { border-right: none; }
.number-item b { display: block; font-family: var(--serif); font-size: 46px; line-height: 1.1; color: var(--gold); margin-bottom: 8px; }
.number-item span { font-size: 15px; color: rgba(255, 255, 255, .82); }

/* ------------------------------------------------------- преимущества ----- */
.features-grid { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.feature { width: calc(25% - 30px); margin: 0 15px 30px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; }
.feature .num { font-family: var(--serif); font-size: 15px; font-weight: 700; color: var(--gold); letter-spacing: 1px; margin-bottom: 14px; display: block; }
.feature h3 { font-size: 18px; margin-bottom: 10px; }
.feature p { font-size: 14px; color: var(--muted); margin-bottom: 0; }

/* ------------------------------------------------------------ шаги -------- */
.steps { display: flex; flex-wrap: wrap; margin: 0 -15px; counter-reset: step; }
.step { width: calc(25% - 30px); margin: 0 15px; position: relative; padding-top: 58px; }
.step:before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 42px; height: 42px; border-radius: 50%;
  background: var(--gold); color: var(--white); font-family: var(--serif); font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 18px; margin-bottom: 10px; }
.step p { font-size: 14px; color: var(--muted); margin-bottom: 0; }
.steps--line .step:after { content: ''; position: absolute; top: 20px; left: 62px; right: 10px; height: 1px; background: var(--line); }
.steps--line .step:last-child:after { display: none; }

/* --------------------------------------------------------- команда -------- */
.team-grid { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.team-card { width: calc(33.3333% - 30px); margin: 0 15px 30px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; text-align: center; transition: all .25s ease; }
.team-card:hover { box-shadow: var(--shadow-h); transform: translateY(-4px); }
.team-card .ava { width: 140px; height: 140px; margin: 0 auto 20px; }
.team-card h3 { font-size: 19px; margin-bottom: 6px; }
.team-card h3 a { color: var(--navy); }
.team-card h3 a:hover { color: var(--gold-d); }
.team-card .role { font-size: 14px; color: var(--gold-d); font-weight: 500; margin-bottom: 6px; }
.team-card .meta { font-size: 13px; color: var(--muted); }
.team-card p { font-size: 14px; color: var(--muted); margin: 16px 0 0; text-align: left; }

/* --------------------------------------------------------- отзывы --------- */
.reviews-grid { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.review { width: calc(50% - 30px); margin: 0 15px 30px; background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--radius); padding: 28px 30px; }
.review .tag { display: inline-block; font-size: 12px; text-transform: uppercase; letter-spacing: .8px; color: var(--gold-d); margin-bottom: 12px; }
.review p { font-size: 15px; color: #3d4356; font-style: italic; }
.review .author { font-size: 14px; color: var(--muted); margin: 0; }

/* --------------------------------------------------------- новости -------- */
.news-grid { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.news-card { width: calc(33.3333% - 30px); margin: 0 15px 30px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: all .25s ease; }
.news-card:hover { box-shadow: var(--shadow-h); transform: translateY(-4px); }
.news-card .cover { display: block; line-height: 0; }
.news-card .cover img, .news-card .cover svg { width: 100%; height: 190px; object-fit: cover; }
.news-card .body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.news-card .date { font-size: 13px; color: var(--muted-2); margin-bottom: 10px; }
.h4-like { font-size: 18px; }
.sidebar-help h2.h4-like { font-size: 18px; margin-bottom: 10px; }
.related-title { font-size: 17px; margin-bottom: 10px; }
.news-card .card-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.news-card .card-meta .tag { text-transform: uppercase; letter-spacing: .04em; }
.news-card .card-meta time { white-space: nowrap; }
.tag-inline { text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 700px) { .news-card .card-meta { font-size: 12px; } }

.news-card h3 { font-size: 18px; margin-bottom: 10px; }
.news-card h3 a { color: var(--navy); }
.news-card h3 a:hover { color: var(--gold-d); }
.news-card p { font-size: 14px; color: var(--muted); flex: 1; }

/* ------------------------------------------------------------- CTA -------- */
.cta { position: relative; background: var(--navy); color: var(--white); overflow: hidden; }
.cta .cta-art { position: absolute; inset: 0; opacity: .9; }
.cta .container { position: relative; z-index: 3; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 60px 0; }
.cta h2 { font-size: 30px; margin-bottom: 10px; }
.cta p { color: rgba(255, 255, 255, .82); margin-bottom: 0; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; flex: none; }

/* ---------------------------------------------------------- подвал -------- */
.footer { background: var(--navy-d); color: rgba(255, 255, 255, .78); font-size: 14px; }
.footer-top { padding: 60px 0 50px; }
.footer .row { row-gap: 34px; }
.footer .logo svg { height: 58px; }
.footer h3.h4-like, .footer h4 { color: var(--white); font-size: 16px; margin-bottom: 20px; padding-bottom: 12px; position: relative; }
.footer h3.h4-like:after, .footer h4:after { content: ''; position: absolute; left: 0; bottom: 0; width: 34px; height: 2px; background: var(--gold); }
.footer a { color: rgba(255, 255, 255, .8); }
.footer a:hover { color: var(--gold); }
.footer ul { list-style: none; }
.footer-menu li { margin-bottom: 11px; }
.footer-contacts li { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.footer-contacts li > :last-child { min-width: 0; overflow-wrap: break-word; }
.footer-contacts { overflow-wrap: break-word; }
.footer-contacts svg { width: 17px; height: 17px; flex: none; margin-top: 3px; }
.footer-contacts b { color: var(--white); font-weight: 500; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; color: rgba(255, 255, 255, .6); }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.social a:hover { border-color: var(--gold); background: rgba(219, 166, 109, .12); }
.social svg { width: 18px; height: 18px; }

/* -------------------------------------------------- внутренние страницы --- */
.page-head { background: var(--navy); color: var(--white); padding: 54px 0 60px; position: relative; overflow: hidden; }
.page-head:after { content: ''; position: absolute; right: -80px; top: -60px; width: 420px; height: 420px; border: 1px solid rgba(219, 166, 109, .28); transform: rotate(45deg); }
.page-head .container { position: relative; z-index: 3; }
.page-head h1 { font-size: 38px; margin-bottom: 14px; }
.page-head p { color: rgba(255, 255, 255, .82); max-width: 820px; margin-bottom: 0; font-size: 17px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; font-size: 13px; color: rgba(255, 255, 255, .6); margin-bottom: 18px; }
.breadcrumbs a { color: rgba(255, 255, 255, .78); }
.breadcrumbs li:not(:last-child):after { content: '/'; margin-left: 8px; opacity: .5; }

.layout { display: flex; gap: 40px; align-items: flex-start; }
.sidebar { flex: 0 0 288px; position: sticky; top: 20px; }
.sidebar-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.sidebar-title { background: var(--navy); color: var(--white); font-family: var(--serif); font-size: 17px; padding: 18px 22px; }
.sidebar-list { list-style: none; }
.sidebar-list a { display: block; padding: 13px 22px; font-size: 14px; color: #3d4356; border-bottom: 1px solid var(--light); }
.sidebar-list a:hover { color: var(--gold-d); background: #fcfbf9; }
.sidebar-list li.active a { color: var(--gold-d); font-weight: 500; background: var(--gold-soft); border-left: 3px solid var(--gold); padding-left: 19px; }
.sidebar-help { background: var(--light); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; margin-top: 24px; }
.sidebar-help h2.h4-like, .sidebar-help h4 { font-size: 18px; margin-bottom: 10px; }
.sidebar-help p { font-size: 14px; color: var(--muted); }
.main-col { flex: 1 1 auto; min-width: 0; }

.content h2 { font-size: 28px; margin: 40px 0 18px; }
.content h2:first-child { margin-top: 0; }
.content h3 { font-size: 21px; margin: 30px 0 14px; }
.content p { color: #3d4356; }
.content ul, .content ol { margin: 0 0 20px 22px; color: #3d4356; }
.content li { margin-bottom: 9px; }
.content .lead { font-size: 18px; color: var(--navy); }

.checklist { list-style: none; margin: 0 0 20px; }
.checklist li { position: relative; padding-left: 36px; margin-bottom: 13px; color: #3d4356; }
.checklist li:before { content: ''; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--gold-soft); border: 1px solid var(--gold); }
.checklist li:after { content: ''; position: absolute; left: 7px; top: 9px; width: 9px; height: 5px; border-left: 2px solid var(--gold-d); border-bottom: 2px solid var(--gold-d); transform: rotate(-45deg); }

.cards-2 { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 24px; }
.cards-2 > div { width: calc(50% - 12px); background: var(--light); border-left: 3px solid var(--gold); border-radius: var(--radius); padding: 22px 24px; font-size: 15px; color: #3d4356; }

/* -------------------------------------------------------- прайс/аккордеон */
.accordeon { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item:last-child { border-bottom: none; }
.acc-head { width: 100%; text-align: left; background: var(--white); border: none; padding: 22px 60px 22px 26px; font-family: var(--serif); font-size: 19px; font-weight: 700; color: var(--navy); cursor: pointer; position: relative; transition: background .2s ease; }
.acc-head:hover { background: #fcfbf9; }
.acc-head:after { content: ''; position: absolute; right: 26px; top: 50%; width: 11px; height: 11px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.acc-item.open .acc-head:after { transform: translateY(-30%) rotate(-135deg); }
.acc-body { display: none; padding: 0 26px 26px; }
.acc-item.open .acc-body { display: block; }
.pricetable { width: 100%; border-collapse: collapse; font-size: 15px; }
.pricetable tr { border-bottom: 1px solid var(--light); }
.pricetable tr:last-child { border-bottom: none; }
.pricetable td { padding: 14px 0; vertical-align: top; }
.pricetable td:last-child { text-align: right; white-space: nowrap; font-weight: 500; color: var(--navy); padding-left: 20px; }
.pricetable tr:hover td { background: #fcfbf9; }

/* --------------------------------------------------------------- FAQ ------ */
.faq { }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-head { width: 100%; text-align: left; background: none; border: none; padding: 20px 44px 20px 0; font-family: var(--font); font-size: 17px; font-weight: 500; color: var(--navy); cursor: pointer; position: relative; }
.faq-head:after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--gold-d); font-size: 24px; line-height: 1; font-weight: 400; }
.faq-item.open .faq-head:after { content: '\2212'; }
.faq-body { display: none; padding: 0 40px 22px 0; color: #3d4356; font-size: 15px; }
.faq-item.open .faq-body { display: block; }

/* ------------------------------------------------------------- формы ----- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 32px; box-shadow: var(--shadow); }
.form-row { display: flex; gap: 18px; flex-wrap: wrap; }
.form-row > .form-group { flex: 1 1 220px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 7px; }
.form-group label .req { color: #d94a3d; }
.form-control { width: 100%; font-family: var(--font); font-size: 15px; color: var(--navy); background: var(--white); border: 1px solid #d9dde6; border-radius: var(--radius); padding: 14px 16px; transition: border-color .2s ease, box-shadow .2s ease; }
.form-control:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(219, 166, 109, .15); }
textarea.form-control { min-height: 120px; resize: vertical; }
.checkbox { display: flex; gap: 11px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.5; }
.checkbox input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--gold-d); flex: none; }
.form-note { font-size: 13px; color: var(--muted-2); margin-top: 12px; }
.form-error { color: #d94a3d; font-size: 13px; margin-top: 6px; display: none; }
.form-group.has-error .form-control { border-color: #d94a3d; }
.form-group.has-error .form-error { display: block; }
/* Сообщения о результате отправки заявки (появляются вместо формы или над ней) */
.form-status { display: none; border-radius: var(--radius); padding: 15px 18px; font-size: 15px; margin-bottom: 18px; line-height: 1.5; }
.form-status--ok { display: block; background: #eef8f0; border: 1px solid #b7e0c2; color: #1d6b36; }
.form-status--error { display: block; background: #fdf0ef; border: 1px solid #eec3bf; color: #9c2b21; }
.form-status--wait { display: block; background: var(--light); border: 1px solid var(--line); color: var(--muted); }
.form-status a { color: inherit; text-decoration: underline; }
/* Ловушка для ботов: люди это поле не видят и не заполняют */
.form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
button[type="submit"].is-busy { opacity: .75; cursor: default; }

/* ------------------------------------------------ защищённый номер WhatsApp - */
/* Номер выводится картинкой (растр @2x): в HTML текста с номером нет. */
.pphone { display: inline-block; vertical-align: -1px; height: auto; border: 0; }
.wa-inline { display: inline-flex; align-items: center; gap: 7px; }
.wa-line { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.link-wa { color: var(--gold); display: inline-flex; align-items: center; gap: 8px; }
.link-wa:hover { color: var(--white); }
.link-wa--dark { color: var(--white); border-bottom: 1px solid rgba(255, 255, 255, .09); padding: 9px 0; }
.link-wa--dark:hover { color: var(--gold); }
.btn-wa .pphone { vertical-align: middle; }
.wa-label { color: rgba(255, 255, 255, .75); }
.content .wa-label, .contact-item .wa-label { color: var(--muted); }
.sidebar-help .wa-inline, .footer .wa-inline { color: rgba(255, 255, 255, .78); }

/* -------------------------------------------------------- модальные окна - */
.modal { position: fixed; inset: 0; z-index: 300; display: none; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 60px 20px; background: rgba(22, 26, 38, .68); }
.modal.open { display: flex; }
.modal-dialog { background: var(--white); border-radius: var(--radius); width: 100%; max-width: 480px; padding: 40px 36px; position: relative; animation: popIn .25s ease; }
@keyframes popIn { from { transform: translateY(-14px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close { position: absolute; top: 14px; right: 18px; background: none; border: none; font-size: 28px; line-height: 1; color: var(--muted-2); cursor: pointer; }
.modal-close:hover { color: var(--navy); }
.modal h3 { font-size: 24px; margin-bottom: 10px; }
.modal p.modal-sub { font-size: 15px; color: var(--muted); margin-bottom: 24px; }
body.modal-open { overflow: hidden; }

/* -------------------------------------------------------- контакты ------- */
.contacts-grid { display: flex; flex-wrap: wrap; gap: 40px; }
.contacts-grid > div { flex: 1 1 380px; }
.contact-item { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-item .ci-icon { width: 46px; height: 46px; flex: none; border-radius: 50%; background: var(--gold-soft); border: 1px solid var(--gold); display: flex; align-items: center; justify-content: center; }
.contact-item .ci-icon svg { width: 20px; height: 20px; }
.contact-item b { display: block; font-size: 17px; color: var(--navy); font-family: var(--serif); margin-bottom: 3px; }
.contact-item span { font-size: 14px; color: var(--muted); }
.map-box { background: var(--light); border: 1px solid var(--line); border-radius: var(--radius); min-height: 320px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 40px; position: relative; overflow: hidden; }
.map-box:before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 46px 46px; opacity: .7; }
.map-box .map-inner { position: relative; z-index: 3; }
.map-box .pin { width: 60px; height: 60px; margin: 0 auto 18px; }
.doc .pphone, .contact-item .pphone { margin: 2px 0; }

/* ------------------------------------------------------ политика/карта --- */
.doc { color: #3d4356; }
.doc h2 { font-size: 24px; margin: 34px 0 14px; }
.doc h3 { font-size: 19px; margin: 26px 0 12px; }
.sitemap-list { columns: 2; column-gap: 40px; list-style: none; }
.sitemap-list li { break-inside: avoid; margin-bottom: 12px; font-size: 15px; }

/* ------------------------------------------------------------- отклик ---- */
@media (max-width: 1100px) {
  .nav { gap: 20px; }
  .nav > li > a { font-size: 13px; }
  .header-phone { font-size: 15px; }
  .hero h1, .hero h2 { font-size: 40px; }
  .feature { width: calc(50% - 30px); }
  .step { width: calc(50% - 30px); margin-bottom: 30px; }
  .steps--line .step:after { display: none; }
}

@media (max-width: 992px) {
  .nav, .header-cta .btn, .header-cta .header-phone { display: none; }
  .burger { display: block; }
  .logo { min-width: 0; }
  .logo img, .logo svg { height: 42px; }
  .header-inner { min-height: 74px; gap: 12px; }
  html { scroll-padding-top: 90px; }
  .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10,
  .col-11, .col-12 { width: 100%; }
  .service-card, .team-card, .news-card, .review, .service-tile { width: calc(50% - 30px); }
  .layout { flex-direction: column; }
  .sidebar { position: static; width: 100%; flex: none; }
  .about-row { flex-direction: column; gap: 34px; }
  .cta-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .numbers .number-item { flex: 1 1 50%; border-right: none; margin-bottom: 30px; }
  .hero-inner { min-height: 520px; padding: 70px 0; }
  .hero h1, .hero h2 { font-size: 34px; }
  .header-panel { font-size: 13px; }
  .header-addr { display: none; }
  .header-panel-inner { justify-content: center; }
}

@media (max-width: 700px) {
  body { font-size: 15px; }
  .logo img, .logo svg { height: 38px; }
  .header-inner { min-height: 66px; }
  html { scroll-padding-top: 76px; }
  .footer .logo img, .footer .logo svg { height: 50px; }
  .pricetable { table-layout: fixed; }
  .pricetable td { padding: 12px 0; font-size: 14px; word-break: break-word; }
  .pricetable td:last-child { white-space: normal; padding-left: 12px; }
  .acc-body { padding: 0 18px 20px; }
  .acc-head { padding: 18px 48px 18px 18px; font-size: 17px; }
  .section { padding: 54px 0; }
  .section-title, h2 { font-size: 25px; }
  .page-head h1, .hero h1, .hero h2 { font-size: 27px; }
  .service-card, .team-card, .news-card, .review, .feature, .step, .service-tile { width: calc(100% - 30px); }
  .cards-2 { gap: 16px; }
  .cards-2 > div { width: 100%; }
  .hero p.hero-text { font-size: 16px; }
  .hero-actions .btn { width: 100%; }
  .hero-dots { bottom: 22px; }
  .hero-arrows { bottom: 18px; }
  .sitemap-list { columns: 1; }
  .footer-bottom-inner { flex-direction: column; }
  .service-tile { padding: 26px 22px 24px; }
  .service-tile .btn { align-self: stretch; text-align: center; }
  .number-item b { font-size: 34px; }
}

/* --- оглавление и врезки в длинных материалах --- */
.toc {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 28px 0 34px;
}
.toc-title {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 12px;
}
.toc ol { margin: 0 0 0 20px; }
.toc li { margin-bottom: 8px; font-size: 15px; line-height: 1.45; }
.toc a { color: var(--navy); text-decoration: none; border-bottom: 1px solid rgba(219, 166, 109, .55); }
.toc a:hover { color: var(--gold-d); }
.note {
  background: var(--light);
  border-left: 3px solid var(--gold);
  padding: 16px 20px;
  margin: 24px 0;
  color: #3d4356;
}
.note b, .note strong { color: var(--navy); }
.content h2, .content h3 { scroll-margin-top: 96px; }
.content .table-wrap { overflow-x: auto; margin: 0 0 22px; }
.content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.content th, .content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.content th { background: var(--light); color: var(--navy); font-weight: 600; }

/* Jivo: на мобильных поднимаем кнопку чата над нижней панелью звонка,
   иначе виджет перекрывает кнопки «Позвонить» и WhatsApp */
@media (max-width: 900px) {
  jdiv[class*="__bottom__"] { bottom: 80px !important; }
}
