/* ==============================================================
   1. БАЗОВЫЕ НАСТРОЙКИ
   ============================================================== */
:root {
  --navy: #0f2943;
  --navy-deep: #0a2037;
  --gold: #c99f57;
  --gold-dark: #b9893d;
  --text: #13273b;
  --muted: #5f6770;
  --line: #e5e6e8;
  --paper: #f8f8f6;
  --white: #ffffff;
  --shadow: 0 10px 28px rgba(18, 35, 51, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #0a2037; }
body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

h1, h2, h3, p { margin-top: 0; }
h1, h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: -.02em;
}

/* ==============================================================
   2. ШАПКА
   ============================================================== */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
  color: var(--text);
}

.header-inner {
  min-height: 92px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 42px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 245px;
}

.logo-mark {
  width: 52px;
  height: 58px;
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  font-size: 31px;
  letter-spacing: -8px;
  padding-right: 7px;
  border-left: 2px solid var(--navy);
  border-right: 2px solid var(--gold);
}

.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text strong {
  font-family: Georgia, serif;
  font-size: 18px;
  letter-spacing: .12em;
  font-weight: 500;
}
.logo-text small {
  margin-top: 6px;
  font-size: 7px;
  letter-spacing: .12em;
}

.main-nav {
  justify-self: center;
  display: flex;
  gap: 34px;
  font-size: 13px;
  color: white;
}
.main-nav a { transition: .2s ease;
white-space: nowrap; }
.main-nav a:hover { color: var(--gold-dark); }

.header-phone { text-align: right; display: flex; flex-direction: column; gap: 4px;
color: white;
}
.header-phone > a:first-child {
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}
.callback-link { color: var(--gold-dark); font-size: 12px; text-transform: uppercase; }

.burger {
  display: none;
  border: 0;
  background: transparent;
  padding: 8px;
  cursor: pointer;
}

.burger span {
  transition: background-color .2s ease, transform .2s ease;
}

.burger:hover span,
.burger:focus-visible span {
  background: var(--gold) !important;
}
.burger span { display:block; width:25px; height:2px; background:var(--navy); margin:5px 0; }

/* ==============================================================
   3. HERO
   ============================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  overflow: hidden;
  background:
    url('assets/hero-right.jpg')
    #eef2f3;
    background-repeat: no-repeat; /* НЕ повторять картинку */
    background-size: cover;       /* растянуть на весь блок */
    background-position: center;  /* поставить по центру */
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(15,41,67,.06));
  pointer-events: none;
}
.hero-overlay { position:absolute; inset:0;
background: linear-gradient(
        to right,
        transparent 0%,
        rgba(4, 25, 35, 0.92) 50%,
        transparent 100%
    );
}
.hero-content { position: relative; z-index: 2; padding-top: 170px; }
.hero-copy { max-width: 1100px;
  width: 100%;
  margin: 0 auto
}
.hero-title {
    display: flex;
    flex-direction: column;

    align-items: flex-start;
    text-align: center;

    font-size: 58px;
    line-height: 1.15;
    font-weight: 400;

    color: white;
    transform: translateX(190px);
}

.hero-title span {
    display: block;
}

.hero-title .gold {
    color: #C9A45C;
    font-size: 42px;
    margin-top: 18px;
}
.eyebrow { display:none; }
.hero h1 { font-size: clamp(44px, 5vw, 69px); line-height: 1.02; margin-bottom: 25px; }
.hero-text { font-size: 17px; line-height: 1.45; margin-bottom: 100px; color: white; transform: translateX(195px); }
.hero-actions { display:flex;
  flex-wrap:wrap;
  gap:16px;
  justify-content: center;
}

.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 29px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: .2s ease;
}
.btn-gold { background: var(--gold); color:#fff; }
.btn-gold:hover { background: var(--gold-dark); }
.btn-light { background: rgba(255,255,255,.88); border-color:#708090; color:var(--text); }
.btn-light:hover { background:#fff; }
.btn-outline-gold { border-color:var(--gold); color:var(--gold-dark); background:#fff; }
.btn-outline-gold:hover { color:#fff; background:var(--gold); }

/* ==============================================================
   4. БЕЛАЯ ПАНЕЛЬ НА 4 КОЛОНКИ
   ============================================================== */
.feature-strip { position: relative; z-index:5; margin-top:-56px; }
.feature-grid {
  background:#fff;
  box-shadow: var(--shadow);
  border-radius: 4px;
  display:grid;
  grid-template-columns: repeat(4,1fr);
  padding: 28px 18px;
}
.feature-item {
  min-height: 180px;
  padding: 10px 32px;
  text-align:center;
  border-right:1px solid var(--line);
}
.feature-item:last-child { border-right:0; }
.line-icon { font-size: 42px; line-height:1; color:var(--navy); margin-bottom:18px; }
.feature-item h3 { font-size:16px; line-height:1.25; margin-bottom:18px; }
.feature-item p { font-size:12px; line-height:1.5; color:#4b535c; margin-bottom:0; }

/* ==============================================================
   5. ОБЩИЕ СЕКЦИИ
   ============================================================== */
.section { padding: 78px 0; }
.section-kicker {
  display: flex;
  align-items: center;

  gap: 12px;

  margin-bottom: 20px;

  color: var(--gold-dark);

  font-size: 12px;
  font-weight: 600;

  line-height: 1;

  letter-spacing: .22em;

  text-transform: uppercase;
}


/* ЗОЛОТАЯ ЛИНИЯ СЛЕВА */

.section-kicker::before {
  content: "";

  display: block;

  width: 32px;
  height: 1px;

  flex-shrink: 0;

  background: var(--gold);
}


/* МАЛЕНЬКИЙ РОМБ СПРАВА */

.section-kicker::after {
  content: "";

  display: block;

  width: 5px;
  height: 5px;

  flex-shrink: 0;

  background: var(--gold);

  transform: rotate(45deg);
}
.section-heading.centered { text-align:center; }
.section-heading h2 { font-size: 38px; margin-bottom: 28px; }

/* ==============================================================
   6. О КОМПАНИИ
   ============================================================== */
.about-grid { display:grid; grid-template-columns: 1.03fr .97fr; gap:70px; align-items:start; }
.about-copy h2 { font-size: 42px; line-height:1.07; margin-bottom:22px; }
.about-copy > p:not(.section-kicker) { max-width: 560px; color:#3f4952; font-size:15px; }
.about-copy .btn { margin-top:12px; }

.stats-card {
  background:#fff;
  box-shadow:var(--shadow);
  display:grid;
  grid-template-columns:1fr 1fr;
}
.stat-cell {
  min-height:160px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  border-right:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.stat-cell:nth-child(2n) { border-right:0; }
.stat-cell:nth-child(n+3) { border-bottom:0; }
.stat-cell strong { font-family:Georgia,serif; color:var(--gold); font-size:53px; font-weight:400; line-height:1; }
.stat-cell span { margin-top:14px; font-size:12px; }
.handshake { font-size:38px; }
.stats-icon {
    width: 55px;
    height: 55px;
    display: block;
    object-fit: contain;
    margin: 0 auto;
}
/* ==============================================================
   7. КАРТОЧКИ УСЛУГ
   ============================================================== */
.services { padding-top:22px; }
.service-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.service-card {
  overflow:hidden;
  border-radius:5px;
  background:var(--navy);
  box-shadow:0 8px 20px rgba(14,34,52,.12);
  color:#fff;
}
.service-image { height:170px; background-size:cover; background-position:center; }
.service-body { position:relative; min-height:260px; padding:34px 20px 24px; background:var(--navy); }
.service-round-icon {
  position:absolute; top:-24px; left:18px;
  width:50px; height:50px; border-radius:50%;
  border:1px solid var(--gold); background:var(--navy);
  display:grid; place-items:center; color:var(--gold); font-size:24px;
}
.service-body h3 { font-size:18px; line-height:1.3; margin-bottom:16px; }
.service-body p { color:#e6ebf0; font-size:12px; line-height:1.55; min-height:78px; }
.service-body a { color:var(--gold); text-transform:uppercase ; font-size:11px; letter-spacing:.05em; }

/* ==============================================================
   8. ПРЕИМУЩЕСТВА
   ============================================================== */
.benefits { background:var(--paper); }
.benefits-grid { display:grid; grid-template-columns:1fr 1fr; gap:90px; align-items:center; }
.benefits-copy h2 { font-size:41px; line-height:1.1; }
.benefits-copy > p:not(.section-kicker) { color:#59616a; max-width:520px; }
.benefits-copy .btn { margin-top:15px; }
.benefit-list { display:flex; flex-direction:column; gap:23px; }
.benefit-row { display:grid; grid-template-columns:58px 1fr; gap:20px; align-items:start; }
.benefit-icon { font-size:38px; color:var(--navy); text-align:center; line-height:1; }
.benefit-row h3 { margin:0 0 5px; font-size:16px; }
.benefit-row p { margin:0; font-size:12px; color:#5d6570; line-height:1.5; }

/* ==============================================================
   9. ПРОЦЕСС
   ============================================================== */
.process { background:var(--navy); color:#fff; padding:72px 0 82px; }
.light-heading .section-kicker { color:var(--gold); }
.light-heading h2 { color:#fff; }
.process-grid { position:relative; display:grid; grid-template-columns:repeat(5,1fr); gap:28px; margin-top:30px; }
.process-grid::before {
  content:''; position:absolute; top:38px; left:8%; right:8%; border-top:1px dashed rgba(255,255,255,.32);
}
.process-step { position:relative; z-index:2; text-align:center; }
.process-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 12px;

    border: 1px solid #d4a64f;
    border-radius: 50%;
    background: #0a2138;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
    box-sizing: border-box;
}

.process-icon img {
    display: block;

    width: 40px;
    height: 40px;

    object-fit: contain;
}

.step-num { color:var(--gold); font-family:Georgia,serif; font-size:16px; }
.process-step h3 { font-size:14px; text-transform:uppercase; margin:8px 0 9px; }
.process-step p { font-size:11px; line-height:1.5; color:#d5dde4; margin:0; }

/* ==============================================================
   10. КОНТАКТЫ
   ============================================================== */
.contact {
  position:relative;
  color:#fff;
  background:
    url('assets/contact-bg.png') center / cover no-repeat;
  padding:72px 0 68px;
}
.contact-overlay { position:absolute; inset:0; background:linear-gradient(90deg, rgba(8,31,52,.35), rgba(8,31,52,.08)); }
.contact-grid { position:relative; z-index:2; display:grid; grid-template-columns:.9fr 1.1fr; gap:60px; align-items:center; }
.contact-copy h2 { color:#fff; font-size:44px; line-height:1.06; margin-bottom:20px; }
.contact-copy > p { max-width:440px; color:#e6ebef; font-size:14px; }
/* =========================================
   КОНТАКТНЫЕ ДАННЫЕ
========================================= */

.contact-lines {
  display: flex;
  flex-direction: column;

  gap: 18px;

  margin-top: 26px;

  font-size: 15px;
}


/* ОДНА СТРОКА КОНТАКТА */

.contact-line {
 display: grid;
    grid-template-columns: 28px 1fr;
    column-gap: 10px;
    align-items: start;
}


/* ИКОНКА */

.contact-icon {
   width: 18px;
    height: 18px;
    display: block;
    object-fit: contain;

    justify-self: center;
    align-self: start;

    margin-top: 2px;
}
.contact-line:first-child .contact-icon {
    transform: translateY(2px);
}

/* ТЕКСТ СПРАВА ОТ ИКОНКИ */

.contact-value {
  display: flex;
  flex-direction: column;

  gap: 3px;

  min-width: 0;

  line-height: 1.45;
}


/* ССЫЛКИ И АДРЕС */

.contact-value a,
.contact-value span {
  display: block;

  margin: 0;

  color: #fff;

  text-decoration: none;
}


/* НОМЕРА И EMAIL ПРИ НАВЕДЕНИИ */

.contact-value a {
  transition: color 0.2s ease;
}

.contact-value a:hover {
  color: var(--gold);
}

.contact-form {
  background:rgba(255,255,255,.97);
  padding:18px;
  border-radius:5px;
  display:grid;
  gap:8px;
  box-shadow:0 14px 30px rgba(0,0,0,.18);
}
.contact-form input, .contact-form textarea {
  width:100%; border:1px solid #d9dde1; border-radius:3px; padding:13px 14px; outline:none; color:#25384a; background:#fff;
}
.contact-form input:focus, .contact-form textarea:focus { border-color:var(--gold); }
.contact-form textarea { resize:vertical; }
.btn-submit { width:100%; border:0; }
.privacy { color:#9aa1a7; font-size:10px; text-align:center; margin:2px 0 0; }
.bot-trap {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
/* ==============================================================
   11. ФУТЕР
   ============================================================== */
.site-footer { background:#0a223a; color:#fff; border-top:1px solid rgba(255,255,255,.25); }
.footer-inner {
  min-height:112px;
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:35px;
  align-items:center;
}
.logo-footer .logo-mark { border-left-color:#fff; }
.logo-footer .logo-text strong { color:#fff; }
.logo-footer .logo-text small { color:#c8d0d8; }
.footer-nav { justify-self:center; display:flex; gap:28px; font-size:11px; }
.copyright { margin:0; font-size:10px; color:#d0d8df; line-height:1.5; text-align:right; }


/* =========================================
   КНОПКА "ПОДРОБНЕЕ"
========================================= */

.more-btn {
    border: none;
    padding: 0;

    background: transparent;

    color: #c9a85c;

    font: inherit;
    font-weight: 600;

    cursor: pointer;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}


.more-btn:hover {
    color: #e1c477;

    transform: translateX(4px);
}

/* =========================
   MODAL
========================= */

.service-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;

  background: rgba(8, 22, 31, 0.82);

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: opacity 0.25s ease,
              visibility 0.25s ease;
}

.service-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}


.service-modal-window {
  position: relative;

  width: 100%;
  max-width: 650px;

  padding: 48px 48px 42px;

  background: #102f4b;

  border: 1px solid #caa64d;
  border-radius: 12px;

  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.45);

  color: #fff;

  transform: translateY(25px) scale(0.97);

  transition: transform 0.25s ease;
}

.service-modal.active .service-modal-window {
  transform: translateY(0) scale(1);
}


.modal-top-line {
  position: absolute;

  top: 0;
  left: 50%;

  width: 110px;
  height: 3px;

  transform: translateX(-50%);

  background: #caa64d;
}


.modal-label {
  display: block;

  margin-bottom: 12px;

  color: #caa64d;

  font-size: 12px;
  font-weight: 600;

  letter-spacing: 3px;
}


.service-modal-window h2 {
  margin: 0;

  color: #fff;

  font-size: 34px;
  line-height: 1.2;
}


.modal-gold-line {
  width: 55px;
  height: 2px;

  margin: 22px 0;

  background: #caa64d;
}


.service-modal-window p {
  margin: 0 0 30px;

  color: rgba(255,255,255,0.85);

  font-size: 17px;
  line-height: 1.7;
}


.modal-contact-btn {
  display: inline-block;

  padding: 13px 22px;

  border: 1px solid #caa64d;

  color: #fff;
  text-decoration: none;

  transition: 0.2s ease;
}

.modal-contact-btn:hover {
  background: #caa64d;
  color: #102f4b;
}


.service-modal-close {
  position: absolute;

  top: 15px;
  right: 18px;

  width: 38px;
  height: 38px;

  border: none;
  background: transparent;

  color: #fff;

  font-size: 32px;
  line-height: 1;

  cursor: pointer;
}

.service-modal-close:hover {
  color: #caa64d;
}


body.modal-open {
  overflow: hidden;
}


/* Телефон */

@media (max-width: 600px) {

  .service-modal {
    padding: 15px;
  }

  .service-modal-window {
    padding: 42px 25px 30px;
  }

  .service-modal-window h2 {
    font-size: 27px;
  }

  .service-modal-window p {
    font-size: 15px;
  }

  .modal-contact-btn {
    display: block;
    text-align: center;
  }
}

/* =========================================
   ТЕКСТ В МОДАЛЬНОМ ОКНЕ
========================================= */

#modalText {
  margin: 0 0 30px;

  color: rgba(255, 255, 255, 0.86);

  font-size: 16px;
  line-height: 1.7;
}


/* Обычные абзацы */
#modalText p {
  margin: 0 0 20px;

  color: rgba(255, 255, 255, 0.86);
}


/* Выделенный текст */
#modalText strong {
  color: #fff;
  font-weight: 600;
}


/* Список */
#modalText ul {
  list-style: none;

  margin: 22px 0 0;
  padding: 0;
}


/* Пункты списка */
#modalText li {
  position: relative;

  margin-bottom: 13px;
  padding-left: 25px;

  color: rgba(255, 255, 255, 0.88);

  font-size: 15px;
  line-height: 1.55;
}


/* Золотые ромбики */
#modalText li::before {
  content: "";

  position: absolute;

  left: 2px;
  top: 8px;

  width: 7px;
  height: 7px;

  background: #caa64d;

  transform: rotate(45deg);
}


/* Последний пункт без лишнего отступа */
#modalText li:last-child {
  margin-bottom: 0;
}

/*адаптив модалок тф*/

@media (max-width: 600px) {

  #modalText {
    font-size: 14px;
    line-height: 1.6;
  }

  #modalText li {
    font-size: 14px;
    padding-left: 22px;
  }

  #modalText li::before {
    width: 6px;
    height: 6px;
  }
}
/* =========================================================
   КРАСИВОЕ СОДЕРЖИМОЕ МОДАЛЬНОГО ОКНА
   ========================================================= */

#modalText {
  margin: 0 0 28px;

  color: rgba(255, 255, 255, 0.84);

  font-size: 15px;
  line-height: 1.65;
}


/* ---------- ВВОДНЫЕ АБЗАЦЫ ---------- */

#modalText .modal-intro {
  margin: 0 0 14px;

  color: rgba(255, 255, 255, 0.86);

  font-size: 15px;
  line-height: 1.65;
}


/* ---------- ОТДЕЛЬНЫЕ СЕКЦИИ ---------- */

#modalText .modal-section {
  margin-top: 24px;
}


/* ---------- ЗОЛОТЫЕ ПОДЗАГОЛОВКИ ---------- */

#modalText .modal-subtitle {
  position: relative;

  margin: 0 0 16px;
  padding-left: 17px;

  color: #d1a84f;

  font-family: Arial, Helvetica, sans-serif;

  font-size: 12px;
  font-weight: 700;

  line-height: 1.3;

  letter-spacing: 1.8px;
  text-transform: uppercase;
}


/* золотой ромб слева */

#modalText .modal-subtitle::before {
  content: "";

  position: absolute;

  left: 1px;
  top: 4px;

  width: 7px;
  height: 7px;

  background: #d1a84f;

  transform: rotate(45deg);
}


/* ---------- СПИСОК ---------- */

#modalText .modal-list {
  list-style: none;

  margin: 0;
  padding: 0;
}


#modalText .modal-list li {
  position: relative;

  margin: 0 0 10px;
  padding-left: 25px;

  color: rgba(255, 255, 255, 0.88);

  font-size: 14px;
  line-height: 1.5;
}


#modalText .modal-list li::before {
  content: "";

  position: absolute;

  left: 3px;
  top: 7px;

  width: 7px;
  height: 7px;

  background: #d1a84f;

  transform: rotate(45deg);
}


#modalText .modal-list li:last-child {
  margin-bottom: 0;
}


/* ---------- ТЕКСТ В СЕКЦИЯХ ---------- */

#modalText .modal-section > p {
  margin: 0;

  color: rgba(255, 255, 255, 0.84);

  font-size: 14px;
  line-height: 1.65;
}


/* =========================================================
   ФИНАЛЬНЫЙ АКЦЕНТНЫЙ БЛОК
   ========================================================= */

#modalText .modal-result {
  margin-top: 25px;

  padding: 17px 19px;

  background: rgba(255, 255, 255, 0.045);

  border-left: 2px solid #d1a84f;

  border-radius: 0 4px 4px 0;
}


#modalText .modal-result strong {
  display: block;

  margin: 0 0 9px;

  color: #fff;

  font-size: 14px;
  font-weight: 600;

  line-height: 1.5;
}


#modalText .modal-result p {
  margin: 0;

  color: rgba(255, 255, 255, 0.76);

  font-size: 14px;
  line-height: 1.55;
}


/* =========================================================
   ПРОКРУТКА ДЛИННОЙ МОДАЛКИ
   ========================================================= */

.service-modal-window {
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}


/* аккуратный scrollbar */

.service-modal-window::-webkit-scrollbar {
  width: 5px;
}

.service-modal-window::-webkit-scrollbar-track {
  background: transparent;
}

.service-modal-window::-webkit-scrollbar-thumb {
  background: rgba(209, 168, 79, 0.55);
  border-radius: 10px;
}


/* =========================================================
   ТЕЛЕФОН
   ========================================================= */

@media (max-width: 600px) {

  #modalText {
    font-size: 14px;
    line-height: 1.55;
  }

  #modalText .modal-intro {
    font-size: 14px;
    line-height: 1.55;

    margin-bottom: 12px;
  }

  #modalText .modal-section {
    margin-top: 20px;
  }

  #modalText .modal-subtitle {
    font-size: 11px;

    letter-spacing: 1.4px;

    margin-bottom: 14px;
  }

  #modalText .modal-list li {
    font-size: 13px;

    padding-left: 21px;

    margin-bottom: 9px;
  }

  #modalText .modal-result {
    margin-top: 20px;

    padding: 14px 15px;
  }

  #modalText .modal-result strong {
    font-size: 13px;
  }

  #modalText .modal-result p {
    font-size: 13px;
  }

}
.service-modal {
  align-items: center;
  padding: 20px;
  overflow-y: auto;
}

.service-modal-window {
  margin: auto;
}

/* ==============================================================
   ЕДИНАЯ ФИНАЛЬНАЯ АДАПТАЦИЯ
   ВАЖНО: этот блок рассчитан и на текущую структуру шапки,
   где .main-nav / .header-phone / .burger могут быть соседями
   .header-inner, а не его дочерними элементами.
   ============================================================== */

.mobile-section-btn { display: none; }

/* ==============================================================
   1) ШИРОКИЙ ДЕСКТОП — 1401px+
   ============================================================== */
@media (min-width: 1401px) {

  .container {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
  }

  .site-header {
    height: 92px;
    position: absolute;
    inset: 0 0 auto 0;
  }

  .header-inner {
    min-height: 92px;
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
    display: flex;
    align-items: center;
  }

  .logo {
    min-width: 0;
    margin: 0;
  }

  .header-logo,
  .logo img {
    width: 245px;
    max-width: 100%;
    height: auto;
  }

  /* Работает даже если nav — сосед .header-inner */
  .main-nav {
    position: absolute;
    top: 34px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 34px;
    width: auto;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    z-index: 30;
  }

  .main-nav::before,
  .main-nav a::before {
    display: none;
  }

  .main-nav a {
    padding: 0;
    border: 0;
    color: #fff;
    font-size: 13px;
    white-space: nowrap;
  }

  .header-phone {
    position: absolute;
    top: 29px;
    right: max(24px, calc((100vw - 1180px) / 2));
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    text-align: right;
    color: #fff;
    z-index: 30;
  }

  .burger { display: none; }

  .hero-content {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
    padding-top: 170px;
  }

  .hero-copy {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
  }

  .hero-title {
    width: max-content;
    max-width: calc(100% - 190px);
    margin: 0;
    transform: translateX(190px);
    align-items: flex-start;
    text-align: left;
  }

  .hero-text {
    width: auto;
    max-width: 760px;
    transform: translateX(195px);
  }

  .hero-actions {
    justify-content: center;
  }
}


/* ==============================================================
   2) УЗКИЙ ДЕСКТОП — 1101–1400px
   ============================================================== */
@media (min-width: 1101px) and (max-width: 1400px) {

  .container {
    width: min(1080px, calc(100% - 48px));
    margin-inline: auto;
  }

  .site-header {
    height: 88px;
    position: absolute;
    inset: 0 0 auto 0;
  }

  .header-inner {
    min-height: 88px;
    width: min(1080px, calc(100% - 48px));
    margin-inline: auto;
    display: flex;
    align-items: center;
  }

  .logo {
    min-width: 0;
    margin: 0;
  }

  .header-logo,
  .logo img {
    width: 215px;
    max-width: 100%;
    height: auto;
  }

  .main-nav {
    position: absolute;
    top: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 18px;
    width: auto;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    z-index: 30;
  }

  .main-nav::before,
  .main-nav a::before {
    display: none;
  }

  .main-nav a {
    padding: 0;
    border: 0;
    color: #fff;
    font-size: 12px;
    white-space: nowrap;
  }

  .header-phone {
    position: absolute;
    top: 27px;
    right: max(24px, calc((100vw - 1080px) / 2));
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    color: #fff;
    text-align: right;
    z-index: 30;
  }

  .header-phone > a:first-child { font-size: 14px; }
  .callback-link { font-size: 11px; }
  .burger { display: none; }

  .hero {
    min-height: 720px;
  }

  .hero-content {
    width: min(1080px, calc(100% - 48px));
    margin-inline: auto;
    padding-top: 155px;
  }

  .hero-copy {
    width: min(900px, 100%);
    max-width: 900px;
    margin: 0 auto;
  }

  .hero-title {
    width: 100%;
    max-width: 100%;
    margin: 0;
    transform: none;
    align-items: flex-start;
    text-align: left;
    font-size: clamp(50px, 5vw, 58px);
    line-height: 1.04;
  }

  .hero-title .gold {
    font-size: clamp(34px, 3.5vw, 42px);
    line-height: 1.08;
  }

  .hero-text {
    width: 100%;
    max-width: 760px;
    margin: 28px 0 64px;
    transform: none;
  }

  .hero-actions {
    width: 100%;
    justify-content: center;
  }
}


/* ==============================================================
   3) ПЛАНШЕТ / ОЧЕНЬ УЗКИЙ ПК — 641–1100px
   ============================================================== */
@media (min-width: 641px) and (max-width: 1100px) {

  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .container {
    width: min(900px, calc(100% - 48px));
    margin-inline: auto;
  }

  .site-header {
    height: 88px;
    overflow: visible;
  }

  .header-inner {
    width: min(900px, calc(100% - 48px));
    min-height: 88px;
    margin-inline: auto;
    display: flex;
    align-items: center;
  }

  .logo {
    min-width: 0;
    margin: 0;
  }

  .header-logo,
  .logo img {
    width: clamp(190px, 28vw, 255px);
    max-width: 100%;
    height: auto;
  }

  .header-phone { display: none; }

  .burger {
    display: block;
    position: absolute;
    top: 24px;
    right: max(24px, calc((100vw - 900px) / 2));
    margin: 0;
    z-index: 1001;
  }

  .burger span {
    background: #fff;
  }

  .main-nav {
    position: absolute;
    top: 76px;
    right: max(24px, calc((100vw - 900px) / 2));
    left: auto;
    transform: none;
    width: min(310px, calc(100vw - 48px));
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 10px 20px;
    background: linear-gradient(145deg, #102f4b, #0a223a);
    border: 1px solid rgba(202,166,77,.55);
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,.30);
    overflow: hidden;
    z-index: 1000;
  }

  .main-nav::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 90px;
    height: 2px;
    transform: translateX(-50%);
    background: #caa64d;
  }

  .main-nav.open {
    display: flex;
    animation: navOpen .22s ease;
  }

  .main-nav a {
    position: relative;
    display: block;
    padding: 14px 5px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    border-bottom: 1px solid rgba(255,255,255,.10);
  }

  .main-nav a:last-child { border-bottom: 0; }

  .hero {
    min-height: 720px;
    background-position: center;
    background-size: cover;
  }

  .hero-content {
    width: min(900px, calc(100% - 48px));
    margin-inline: auto;
    padding-top: 145px;
  }

  .hero-copy {
    width: min(760px, 100%);
    max-width: 760px;
    margin: 0 auto;
  }

  .hero-title {
    width: 100%;
    max-width: 100%;
    margin: 0;
    transform: none;
    align-items: flex-start;
    text-align: left;
    font-size: clamp(42px, 6.2vw, 56px);
    line-height: 1.03;
  }

  .hero-title .gold {
    width: 100%;
    margin-top: 18px;
    font-size: clamp(29px, 4.5vw, 39px);
    line-height: 1.07;
    text-align: left;
  }

  .hero-text {
    width: 100%;
    max-width: 720px;
    margin: 28px 0 54px;
    transform: none;
    font-size: 16px;
    line-height: 1.5;
    text-align: left;
  }

  .hero-actions {
    width: 100%;
    justify-content: center;
    gap: 16px;
  }

  .feature-strip {
    width: min(900px, calc(100% - 48px));
    margin: -42px auto 0;
  }

  /* Одинаковая ширина белой панели 4 преимуществ и блока статистики */
  .feature-strip,
  .stats-card {
    width: min(900px, calc(100% - 48px));
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }

  .stats-card {
    border-radius: 4px;
    overflow: hidden;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
    padding: 22px 14px;
  }

  .feature-item {
    min-width: 0;
    padding: 22px 18px;
  }

  .feature-item:nth-child(2) { border-right: 0; }
  .feature-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

  .about-grid,
  .benefits-grid,
  .contact-grid {
    grid-template-columns: minmax(0,1fr);
    gap: 44px;
  }

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

  .process-grid {
    grid-template-columns: repeat(3, minmax(0,1fr));
    row-gap: 38px;
  }

  .process-grid::before { display: none; }

  .footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 30px 0;
  }

  .logo-footer {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .logo-footer img {
    width: min(440px, 85%);
    height: auto;
    margin: 0 auto;
  }

  .footer-nav {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
  }

  .copyright {
    width: 100%;
    margin: 0;
    text-align: center;
  }
}


/* ==============================================================
   4) ТЕЛЕФОН — до 640px
   ============================================================== */
@media (max-width: 640px) {

  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  html,
  body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow-x: hidden;
  }

  .container,
  .site-header .container,
  .site-footer .container {
    width: calc(100% - 32px);
    max-width: 100%;
    margin-inline: auto;
  }

  .site-header {
    height: 86px;
    overflow: visible;
  }

  .header-inner {
    width: calc(100% - 32px);
    min-height: 86px;
    margin-inline: auto;
    display: flex;
    align-items: center;
  }

  .logo {
    min-width: 0;
    margin: 0;
  }

  .header-logo,
  .logo img {
    width: min(250px, 72vw);
    max-width: 100%;
    height: auto;
  }

  .header-phone { display: none; }

  .burger {
    display: block;
    position: absolute;
    top: 22px;
    right: 16px;
    margin: 0;
    z-index: 1001;
  }

  .burger span {
    background: #fff;
  }

  .main-nav {
    position: absolute;
    top: 74px;
    right: 16px;
    left: auto;
    transform: none;
    width: min(290px, calc(100vw - 32px));
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 10px 20px;
    background: linear-gradient(145deg, #102f4b, #0a223a);
    border: 1px solid rgba(202,166,77,.55);
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,.30);
    overflow: hidden;
    z-index: 1000;
  }

  .main-nav::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 90px;
    height: 2px;
    transform: translateX(-50%);
    background: #caa64d;
  }

  .main-nav.open {
    display: flex;
    animation: navOpen .22s ease;
  }

  .main-nav a {
    position: relative;
    display: block;
    padding: 14px 5px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    border-bottom: 1px solid rgba(255,255,255,.10);
  }

  .main-nav a:last-child { border-bottom: 0; }

  .hero {
    min-height: 0;
    padding-bottom: 42px;
    overflow: hidden;
    background:
      linear-gradient(180deg, rgba(13,39,64,.68), rgba(13,39,64,.90)),
      url('assets/hero-right.jpg') center / cover no-repeat;
  }

  .hero-content {
    width: calc(100% - 32px);
    max-width: 100%;
    margin-inline: auto;
    padding-top: 128px;
  }

  .hero-copy {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    transform: none;
  }

  .hero-title {
    width: 100%;
    max-width: 100%;
    margin: 0;
    transform: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    font-size: clamp(38px, 10.5vw, 54px);
    line-height: .99;
    letter-spacing: -1px;
    overflow-wrap: break-word;
  }

  .hero-title span { max-width: 100%; }

  .hero-title .gold {
    width: 100%;
    max-width: 100%;
    margin-top: 22px;
    font-size: clamp(25px, 7vw, 36px);
    line-height: 1.06;
    text-align: left;
  }

  .hero-text {
    width: 100%;
    max-width: 100%;
    margin: 30px 0 34px;
    transform: none;
    font-size: 15px;
    line-height: 1.55;
    text-align: left;
    color: #eef4f8;
  }

  .hero-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin: 0;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 56px;
    margin: 0;
  }

  .btn-light {
    color: #fff;
    background: transparent;
    border-color: rgba(255,255,255,.72);
  }

  .feature-strip {
    width: calc(100% - 32px);
    margin: 22px auto 0;
    border: 1px solid #e3e3e3;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 28px rgba(0,0,0,.07);
  }

  .feature-grid {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0,1fr));
    padding: 18px 8px;
  }

  .feature-item {
    min-width: 0;
    min-height: 190px;
    padding: 22px 10px;
  }

  .feature-item:nth-child(2) { border-right: 0; }
  .feature-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

  .feature-item h3 {
    font-size: 17px;
    line-height: 1.2;
  }

  .feature-item p {
    font-size: 12px;
    line-height: 1.5;
  }

  .section { padding: 64px 0; }

  .about-grid,
  .benefits-grid,
  .contact-grid {
    grid-template-columns: minmax(0,1fr);
    gap: 34px;
  }

  .about-copy h2,
  .benefits-copy h2,
  .contact-copy h2,
  .section-heading h2 {
    font-size: clamp(34px, 9vw, 48px);
    line-height: 1.07;
  }

  .stats-card {
    width: calc(100% - 32px);
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    grid-template-columns: repeat(2, minmax(0,1fr));
    border-radius: 14px;
    overflow: hidden;
  }

  .stat-cell {
    min-height: 145px;
    padding: 18px 8px;
  }

  .stat-cell strong { font-size: 43px; }

  .desktop-section-btn { display: none; }

  .mobile-section-btn {
    display: flex;
    width: 100%;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    margin: 0;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-image { height: 210px; }

  .service-body {
    min-height: 0;
    padding: 38px 22px 26px;
  }

  .service-body h3 { font-size: 21px; }

  .service-body p {
    min-height: 0;
    font-size: 14px;
  }

  .benefit-row {
    grid-template-columns: 56px minmax(0,1fr);
    gap: 16px;
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 42px 16px;
  }

  .process-grid::before { display: none; }

  .process-step:last-child {
    grid-column: 1 / -1;
  }

  .contact {
    padding: 58px 0;
    overflow: hidden;
  }

  .contact-grid {
    width: calc(100% - 20px);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }

  .contact-form {
    width: calc(100% - 24px);
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    padding: 16px;
  }

  .footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 28px 0;
  }

  .logo-footer {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .logo-footer img {
    width: min(330px, 90%);
    height: auto;
    margin: 0 auto;
  }

  .footer-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 0;
  }

  .footer-nav a {
    display: block;
    min-width: 0;
    padding: 6px 2px;
    text-align: center;
    white-space: nowrap;
    font-size: 11px;
  }

  .copyright {
    width: 100%;
    margin: 0;
    text-align: center;
    font-size: 10px;
  }
  .section-kicker {
  gap: 9px;

  margin-bottom: 16px;

  font-size: 10px;

  letter-spacing: .18em;
}

.section-kicker::before {
  width: 22px;
}

.section-kicker::after {
  width: 4px;
  height: 4px;
}
}


/* ==============================================================
   5) ОЧЕНЬ УЗКИЕ ТЕЛЕФОНЫ — до 390px
   ============================================================== */
@media (max-width: 390px) {

  .container,
  .site-header .container,
  .site-footer .container,
  .hero-content {
    width: calc(100% - 24px);
  }

  .header-inner {
    width: calc(100% - 24px);
  }

  .header-logo,
  .logo img {
    width: min(220px, 69vw);
  }

  .hero-content { padding-top: 120px; }

  .hero-title {
    font-size: 35px;
  }

  .hero-title .gold {
    font-size: 23px;
  }

  .feature-strip {
    width: calc(100% - 24px);
  }

  .feature-item h3 {
    font-size: 15px;
  }

  .footer-nav a {
    font-size: 10px;
  }
}


@keyframes navOpen {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* =========================================================
   FOOTER NAV — GOLD HOVER / KEYBOARD FOCUS
   ========================================================= */
.footer-nav a {
  transition: color .2s ease;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--gold) !important;
}


/* =========================================================
   MODALS — убрать ромбик именно у золотых подзаголовков
   ========================================================= */
#modalText .modal-subtitle::before {
  content: none !important;
  display: none !important;
}

#modalText .modal-subtitle {
  padding-left: 0 !important;
}

/* =========================================================
   MOBILE CONTACT — аккуратные боковые поля для ВСЕГО блока
   Текст + контакты + форма. Остальные стили не меняются.
   ========================================================= */
@media (max-width: 640px) {
  .contact > .container {
    width: calc(100% - 32px) !important;
    max-width: calc(100% - 32px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .contact-grid {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .contact-copy,
  .contact-form {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .contact-copy h2,
  .contact-copy > p,
  .contact-lines {
    max-width: 100% !important;
  }
}
/* =========================================================
   ТЕЛЕФОН В ГОРИЗОНТАЛЬНОМ ПОЛОЖЕНИИ
   ========================================================= */

@media (orientation: landscape) and (max-height: 600px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
        background: #0a2037;
    }

    /* Все основные секции строго на ширину экрана */
    .site-header,
    .hero,
    main,
    section,
    .contact,
    .process,
    .benefits,
    .site-footer {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    /* Контент внутри — с нормальными небольшими отступами */
    .container,
    .site-header .container,
    .site-footer .container {
        width: calc(100% - 32px);
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    /* HERO закрывает экран от края до края */
    .hero {
        min-height: 100svh;
        background-size: cover;
        background-position: center;
        overflow: hidden;
    }

    .hero-content {
        width: calc(100% - 32px);
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    /* Чтобы картинки физически не могли распереть страницу */
    img,
    svg,
    video {
        max-width: 100%;
        height: auto;
    }

    /* Контакты тоже без белых краёв */
    .contact {
        background-size: cover;
        background-position: center;
    }

    /* Футер от края до края */
    .site-footer {
        background: #0a223a;
    }
/* Заголовок блока УСЛУГИ */
  .services .section-heading h2 {
    color: #ffffff !important;
    opacity: 1 !important;
  }

  /* Маленькая надпись УСЛУГИ */
  .services .section-kicker {
    color: #d2a653 !important;
    opacity: 1 !important;
  }

}
/* =========================================================
   LANDSCAPE — ТЕЛЕФОН / УЗКИЙ ПЛАНШЕТ
   ========================================================= */

@media (max-width: 950px) and (orientation: landscape) {

    /* ---------- HERO ---------- */

    .hero {
        min-height: 100vh !important;
        height: auto !important;
        padding-bottom: 55px !important;
    }

    .hero-content {
        width: min(88%, 900px) !important;
        max-width: 900px !important;

        margin-left: auto !important;
        margin-right: auto !important;

        padding-left: 0 !important;
        padding-right: 0 !important;

        text-align: left !important;
    }

    /* ЗАЩИЩАЕМ ИНТЕРЕСЫ БИЗНЕСА */
    .hero h1 {
        font-size: clamp(38px, 5.2vw, 64px) !important;
        line-height: .96 !important;
        margin-bottom: 22px !important;
        max-width: 900px !important;
    }

    /* золотая часть заголовка */
    .hero h1 span {
        font-size: inherit !important;
        line-height: 1.05 !important;
    }

    /* описание */
    .hero-subtitle,
    .hero-content > p {
        font-size: clamp(16px, 2vw, 21px) !important;
        line-height: 1.5 !important;
        max-width: 760px !important;
        margin-bottom: 32px !important;
    }


    /* ---------- КНОПКИ HERO ---------- */

    .hero-actions {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;

        gap: 18px !important;

        width: 100% !important;
        max-width: 650px !important;

        margin: 25px auto 0 !important;
    }

    .hero-actions .btn {
        flex: 1 1 0 !important;

        width: auto !important;
        min-width: 0 !important;
        max-width: 300px !important;

        padding: 15px 22px !important;

        font-size: 15px !important;
        white-space: nowrap !important;
    }


    /* =====================================================
       О КОМПАНИИ
       ===================================================== */

    #about {
        color: #fff !important;
    }

    #about .section-heading h2 {
        color: #f5f5f2 !important;
        opacity: 1 !important;
    }

    #about p,
    #about .about-text,
    #about .about-text p {
        color: rgba(255, 255, 255, .82) !important;
        opacity: 1 !important;

        font-size: clamp(15px, 1.8vw, 19px) !important;
        line-height: 1.65 !important;
    }

    #about .section-kicker {
        color: #d2a653 !important;
        opacity: 1 !important;
    }


    /* =====================================================
       УСЛУГИ
       ===================================================== */

    #services .section-heading h2 {
        color: #f5f5f2 !important;
        opacity: 1 !important;
    }

    #services .section-kicker {
        color: #d2a653 !important;
        opacity: 1 !important;
    }
    .hero-actions {
        position: relative !important;
        z-index: 5 !important;
        margin-bottom: 45px !important;
    }

    .quick-services,
    .hero-services,
    .services-preview {
        position: relative !important;
        margin-top: 0 !important;
    }
    .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

  /* Возвращаем текст внутри белой статистической таблицы */
    #about .stats-card {
        color: var(--text) !important;
    }

    #about .stats-card .stat-cell span {
        color: var(--text) !important;
        opacity: 1 !important;
    }

    #about .stats-card .stat-cell strong {
        color: var(--gold) !important;
        opacity: 1 !important;
    }

}
/* =========================================================
   PROCESS / КАК МЫ РАБОТАЕМ
   АДАПТИВНЫЕ СОЕДИНИТЕЛЬНЫЕ ЛИНИИ
   ========================================================= */


/* =========================================================
   ВЕРТИКАЛЬНЫЙ ТЕЛЕФОН — РОВНЫЕ ЗОЛОТЫЕ ЛИНИИ

   01 ───────── 02
   03 ───────── 04
          05
   ========================================================= */

@media (max-width: 640px) and (orientation: portrait) {

    .process-grid {
        position: relative !important;

        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;

        column-gap: 16px !important;
        row-gap: 42px !important;

        overflow: visible !important;
    }


    /* Старую общую desktop-линию отключаем */

    .process-grid::before {
        content: none !important;
        display: none !important;
    }


    .process-step {
        position: relative !important;

        min-width: 0 !important;

        overflow: visible !important;

        z-index: 1 !important;
    }


    /* Последний 05 остаётся строго по центру */

    .process-step:nth-child(5) {
        grid-column: 1 / -1 !important;

        width: 50% !important;

        justify-self: center !important;
    }


    /* КРУЖКИ */

    .process-icon {
        position: relative !important;

        width: 72px !important;
        height: 72px !important;

        margin-left: auto !important;
        margin-right: auto !important;

        background: #0a2037 !important;

        z-index: 3 !important;
    }


    /* SVG внутри кружка */

    .process-icon img {
        width: 22px !important;
        height: 22px !important;

        object-fit: contain !important;

        display: block !important;
    }


    /* =====================================================
       ЛИНИИ

       Только:
       01 → 02
       03 → 04
       ===================================================== */

    .process-step:nth-child(1)::after,
    .process-step:nth-child(3)::after {

        content: "" !important;

        display: block !important;

        position: absolute !important;

        /*
           Кружок 72px.
           Его центр = 36px.
           Линия проходит ровно через центр.
        */

        top: 36px !important;


        /*
           Начинаем на 3px после правого края кружка.
        */

        left: calc(50% + 39px) !important;


        /*
           ВАЖНО:
           учитываем ширину текущей колонки
           + gap между колонками
           - два радиуса кружков
           - небольшой воздух около обводки.
        */

        width: calc(100% + 16px - 78px) !important;


        height: 0 !important;

        border: 0 !important;

        border-top:
            1px dashed rgba(201, 159, 87, 0.78) !important;

        background: transparent !important;

        z-index: 0 !important;

        pointer-events: none !important;
    }


    /* Никаких лишних линий */

    .process-step:nth-child(2)::after,
    .process-step:nth-child(4)::after,
    .process-step:nth-child(5)::after {

        content: none !important;
        display: none !important;
    }
}


/* =========================================================
   2. ВЕРТИКАЛЬНЫЙ ПЛАНШЕТ
              01 ─── 02 ─── 03

                  04 ─── 05

   04 и 05 специально центрируем относительно всей сетки
   ========================================================= */

@media (min-width: 641px) and (max-width: 1100px) and (orientation: portrait) {

    .process-grid {
        position: relative !important;

        display: grid !important;
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;

        column-gap: 0 !important;
        row-gap: 60px !important;

        width: 100% !important;

        overflow: visible !important;
    }

    /* Отключаем старую общую линию */
    .process-grid::before {
        content: none !important;
        display: none !important;
    }

    .process-step {
        position: relative !important;

        min-width: 0 !important;

        overflow: visible !important;

        transform: none !important;

        z-index: 1 !important;
    }


    /* -----------------------------------------------------
       ПЕРВЫЙ РЯД

       Каждая карточка занимает две из шести колонок.

       01 = 1-2
       02 = 3-4
       03 = 5-6
       ----------------------------------------------------- */

    .process-step:nth-child(1) {
        grid-column: 1 / 3 !important;
        grid-row: 1 !important;
    }

    .process-step:nth-child(2) {
        grid-column: 3 / 5 !important;
        grid-row: 1 !important;
    }

    .process-step:nth-child(3) {
        grid-column: 5 / 7 !important;
        grid-row: 1 !important;
    }


    /* -----------------------------------------------------
       ВТОРОЙ РЯД

       Оставляем по половине карточки с краёв,
       благодаря этому 04 и 05 стоят ПО ЦЕНТРУ.

              | 04 | 05 |

       ----------------------------------------------------- */

    .process-step:nth-child(4) {
        grid-column: 2 / 4 !important;
        grid-row: 2 !important;
    }

    .process-step:nth-child(5) {
        grid-column: 4 / 6 !important;
        grid-row: 2 !important;
    }


    /* КРУЖКИ */

    .process-icon {
        position: relative !important;

        z-index: 3 !important;

        background: #0a2037 !important;
    }


    /* -----------------------------------------------------
       ЛИНИИ 01 → 02
              02 → 03
              04 → 05
       ----------------------------------------------------- */

    .process-step:nth-child(1)::after,
    .process-step:nth-child(2)::after,
    .process-step:nth-child(4)::after {

        content: "" !important;

        display: block !important;

        position: absolute !important;

        top: 36px !important;

        /* от правого края кружка */
        left: calc(50% + 38px) !important;

        /* до левого края следующего кружка */
        width: calc(100% - 76px) !important;

        height: 0 !important;

        border: 0 !important;

        border-top:
            1px dashed rgba(201, 159, 87, 0.75) !important;

        background: none !important;

        z-index: 0 !important;

        pointer-events: none !important;
    }


    /* После 03 и 05 линий нет */

    .process-step:nth-child(3)::after,
    .process-step:nth-child(5)::after {

        content: none !important;
        display: none !important;
    }
}


/* =========================================================
   3. ГОРИЗОНТАЛЬНЫЙ ТЕЛЕФОН / ПЛАНШЕТ

   01 ─── 02 ─── 03 ─── 04 ─── 05
   ========================================================= */

@media (orientation: landscape) and (max-height: 700px) {

    .process-grid {

        position: relative !important;

        display: grid !important;

        grid-template-columns:
            repeat(5, minmax(0, 1fr)) !important;

        gap: 12px !important;

        width: 100% !important;

        margin-top: 28px !important;

        overflow: visible !important;
    }


    /* Убираем индивидуальные линии */

    .process-step::after {

        content: none !important;
        display: none !important;
    }


    /* ОДНА линия под всеми кружками */

    .process-grid::before {

        content: "" !important;

        display: block !important;

        position: absolute !important;

        top: 36px !important;

        /*
           Центры крайних элементов находятся
           примерно на 10% и 90% ширины сетки.
        */

        left: 10% !important;
        right: 10% !important;

        width: auto !important;

        height: 0 !important;

        border: 0 !important;

        border-top:
            1px dashed rgba(201, 159, 87, 0.75) !important;

        background: none !important;

        transform: none !important;

        z-index: 0 !important;

        pointer-events: none !important;
    }


    .process-step {

        position: relative !important;

        min-width: 0 !important;

        transform: none !important;

        z-index: 1 !important;
    }


    /* Кружки перекрывают линию */

    .process-icon {

        position: relative !important;

        z-index: 3 !important;

        background: #0a2037 !important;
    }
}
/* =========================================================
   КАРТОЧКИ УСЛУГ — КНОПКИ "ПОДРОБНЕЕ" НА ОДНОЙ ЛИНИИ
   ========================================================= */

.service-card {
    display: flex;
    flex-direction: column;
}

.service-body {
    display: flex;
    flex-direction: column;

    flex: 1;
}

/* описание занимает доступное место */
.service-body p {
    flex-grow: 1;
}

/* кнопка всегда у нижнего края карточки */
.more-btn {
    margin-top: auto;
    align-self: flex-start;
    padding-top: 18px;
}
/* =========================================================
   HERO DESKTOP — ФИНАЛЬНЫЙ ФИКС
   НЕ ПРЫГАЕТ ПРИ ЗУМЕ
   ВСЯ КОМПОЗИЦИЯ ПО ЦЕНТРУ
   ТЕКСТ ВНУТРИ ВЫРОВНЕН ВЛЕВО
   КНОПКИ ПО ЦЕНТРУ
   ========================================================= */

@media (min-width: 1101px) {

    /* Общая область HERO */
    .hero-content {
        width: min(1180px, calc(100% - 48px)) !important;
        max-width: 1180px !important;

        margin-left: auto !important;
        margin-right: auto !important;

        padding-left: 0 !important;
        padding-right: 0 !important;

        transform: none !important;
    }


    /* =====================================================
       ТЕКСТОВАЯ КОЛОНКА
       Центрируем весь блок по экрану
       ===================================================== */

    .hero-copy {
        width: fit-content !important;
        max-width: 100% !important;

        margin-left: auto !important;
        margin-right: auto !important;

        padding: 0 !important;

        transform: none !important;

        text-align: left !important;
    }


    /* =====================================================
       ОСНОВНОЙ ЗАГОЛОВОК
       ===================================================== */

    .hero-title,
    .hero h1 {
        width: fit-content !important;
        max-width: 100% !important;

        margin-left: 0 !important;
        margin-right: 0 !important;

        padding-left: 0 !important;
        padding-right: 0 !important;

        transform: none !important;

        align-items: flex-start !important;
        text-align: left !important;
    }


    /* Каждая строка заголовка */
    .hero-title > span {
        width: auto !important;
        max-width: 100% !important;

        margin-left: 0 !important;
        margin-right: 0 !important;

        transform: none !important;

        text-align: left !important;
    }


    /* =====================================================
       ЗОЛОТАЯ СТРОКА
       ===================================================== */

    .hero-title .gold {
        width: auto !important;
        max-width: 100% !important;

        margin-left: 0 !important;
        margin-right: 0 !important;

        transform: none !important;

        text-align: left !important;
    }


    /* =====================================================
       ОПИСАНИЕ
       Начинается ровно там же, где заголовок
       ===================================================== */

    .hero-text {
        width: 100% !important;
        max-width: 760px !important;

        margin-top: 28px !important;
        margin-right: 0 !important;
        margin-bottom: 64px !important;
        margin-left: 0 !important;

        padding: 0 !important;

        transform: none !important;

        text-align: left !important;
    }


    /* =====================================================
       КНОПКИ
       Центрируем относительно всей композиции
       ===================================================== */

    .hero-actions {
        width: 100% !important;
        max-width: 100% !important;

        margin-left: auto !important;
        margin-right: auto !important;

        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;

        gap: 16px !important;

        transform: none !important;
    }


    .hero-actions .btn {
        margin: 0 !important;
        transform: none !important;
    }
}
/* =========================================================
   SVG ИКОНКИ — 4 НАПРАВЛЕНИЯ
   ========================================================= */

.line-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-left: auto;
    margin-right: auto;

    flex-shrink: 0;
}

.line-icon img {
    display: block;

    width: 42px;
    height: 42px;

    max-width: 100%;
    max-height: 100%;

    object-fit: contain;
}
/* =========================================================
   FEATURE STRIP — РОВНЫЕ ОПИСАНИЯ + БЛИЗКИЕ ИКОНКИ
   ========================================================= */

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ИКОНКА */
.feature-item .line-icon {
    flex-shrink: 0;
    margin-bottom: 7px;
}

/* ЗАГОЛОВОК */
.feature-item h3 {
    min-height: 38px;

    display: flex;
    align-items: flex-start;
    justify-content: center;

    margin: 0 0 8px;

    text-align: center;
    line-height: 1.15;
}

/* ОПИСАНИЕ */
.feature-item p {
    margin: 0;

    text-align: center;
    line-height: 1.45;
}
/* =========================================================
   КОНТАКТЫ — УБИРАЕМ ВСЕ ЭФФЕКТЫ ПРИ НАВЕДЕНИИ
   ========================================================= */

.contact-line,
.contact-line:hover,
.contact-value,
.contact-value:hover,
.contact-value a,
.contact-value a:hover,
.contact-icon,
.contact-line:hover .contact-icon {
    transform: none !important;
    transition: none !important;
    animation: none !important;
}

/* Телефон и почта не меняют цвет */
.contact-value a,
.contact-value a:hover {
    color: #fff !important;
    text-decoration: none !important;
}
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.contact-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex: 0 0 24px;
    margin-top: 1px;
}

.contact-item a {
    color: inherit;
    text-decoration: none;
}
/* =========================================================
   CONTACT ICONS — ФИНАЛЬНОЕ РОВНОЕ ВЫРАВНИВАНИЕ
   ========================================================= */

.contact-line {
    display: grid !important;
    grid-template-columns: 22px 1fr !important;
    column-gap: 12px !important;
    align-items: start !important;
}

.contact-icon {
    width: 18px !important;
    height: 18px !important;

    display: block !important;
    object-fit: contain !important;

    justify-self: center !important;
    align-self: start !important;

    position: static !important;
    top: auto !important;

    margin: 2px 0 0 0 !important;

    transform: none !important;
}
.contact-form input.bot-trap {
    position: absolute !important;
    left: -9999px !important;
    top: auto !important;

    width: 1px !important;
    height: 1px !important;

    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;

    opacity: 0 !important;
    pointer-events: none !important;
}