@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;800;900&display=swap");

:root {
      --bg: #071226;
      --bg-soft: #0c1a33;
      --panel: #0f2142;
      --panel-2: #11284f;
      --text: #f4f7fb;
      --muted: #c8d1de;
      --accent: #ff9f1a;
      --accent-2: #ffb84d;
      --line: rgba(255,255,255,.10);
      --shadow: 0 18px 50px rgba(0,0,0,.28);
      --radius: 22px;
      --radius-sm: 16px;
      --container: 1180px;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
    body {
      margin: 0;
      font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
      color: var(--text);
      background: var(--bg);
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      text-rendering: optimizeLegibility;
      -webkit-tap-highlight-color: transparent;
    }

    body, button, input, textarea {
      font-family: inherit;
    }

    img {
      max-width: 100%;
      display: block;
      height: auto;
      border-radius: 14px;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    .container {
      width: min(calc(100% - 32px), var(--container));
      margin: 0 auto;
    }

    .section {
      padding: 88px 0;
    }

    .section-light {
      background: #f5f7fb;
      color: #13233f;
    }

    .section-light .section-title,
    .section-light .card-title,
    .section-light strong {
      color: #122748;
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 18px;
      color: var(--accent-2);
      font-weight: 700;
      letter-spacing: .08em;
      text-transform: uppercase;
      font-size: 12px;
    }

    .eyebrow::before {
      content: "";
      width: 54px;
      height: 2px;
      background: var(--accent);
      border-radius: 999px;
    }

    .section-title {
      margin: 0 0 14px;
      font-size: clamp(30px, 4vw, 48px);
      line-height: 1.08;
      letter-spacing: -.02em;
    }

    .section-subtitle {
      margin: 0;
      max-width: 760px;
      color: inherit;
      opacity: .82;
      font-size: 18px;
    }

    .site-header {
      position: sticky;
      top: 0;
      z-index: 1000;
      padding-top: env(safe-area-inset-top, 0px);
      backdrop-filter: blur(14px);
      background: rgba(7, 18, 38, .82);
      border-bottom: 1px solid rgba(255,255,255,.08);
    }

    .site-header__inner {
      min-height: 80px;
      display: grid;
      grid-template-columns: auto 1fr auto;
      align-items: center;
      gap: 20px;
    }

    .brand {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .brand__name {
      font-weight: 800;
      letter-spacing: .04em;
      font-size: 18px;
    }

    .brand__meta {
      color: rgba(255,255,255,.68);
      font-size: 12px;
    }

    .menu-toggle {
      display: none;
      width: 46px;
      height: 46px;
      border: 1px solid rgba(255,255,255,.16);
      border-radius: 12px;
      background: transparent;
      color: #fff;
      font-size: 22px;
      cursor: pointer;
    }

    .nav {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 22px;
    }

    .nav a {
      color: rgba(255,255,255,.86);
      font-size: 15px;
      transition: color .2s ease;
    }

    .nav a:hover,
    .nav a:focus-visible {
      color: #fff;
    }

    .header-actions {
      display: flex;
      gap: 12px;
      align-items: center;
      justify-content: flex-end;
      flex-wrap: nowrap;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      min-height: 50px;
      padding: 0 20px;
      border-radius: 14px;
      border: 1px solid transparent;
      font-weight: 700;
      transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
      cursor: pointer;
      appearance: none;
      -webkit-appearance: none;
    }

    .btn:hover {
      transform: translateY(-1px);
    }

    .btn-primary {
      background: linear-gradient(135deg, var(--accent), #ffbf69);
      color: #14233f;
      box-shadow: 0 10px 30px rgba(255, 159, 26, .22);
    }

    .btn-secondary {
      background: rgba(255,255,255,.06);
      color: #fff;
      border-color: rgba(255,255,255,.16);
    }

    .btn-phone {
      min-width: 214px;
      padding-inline: 18px;
      white-space: nowrap;
    }

    .btn-phone::before {
      content: "☎";
      font-size: 16px;
      line-height: 1;
    }

    .btn-connect::before {
      content: "✉";
      font-size: 15px;
      line-height: 1;
    }

    .btn-compact {
      min-height: 46px;
      padding-inline: 16px;
      font-size: 14px;
    }

    .hero {
      position: relative;
      min-height: auto;
      display: flex;
      align-items: flex-start;
      background:
        linear-gradient(90deg, rgba(7,18,38,.92) 0%, rgba(7,18,38,.68) 45%, rgba(7,18,38,.46) 100%),
        url('wp-content/uploads/2024/09/regnum_picture_15093751881482880_normal-1.jpg') center/cover no-repeat;
      overflow: hidden;
    }

    .hero::after {
      content: "";
      position: absolute;
      inset: auto 0 0;
      height: 180px;
      background: linear-gradient(180deg, rgba(7,18,38,0), rgba(7,18,38,1));
      pointer-events: none;
    }

    .hero__inner {
      position: relative;
      z-index: 1;
      padding: 56px 0 36px;
      display: grid;
      gap: 22px;
      max-width: none;
    }

    .hero__lead {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      width: fit-content;
      padding: 10px 14px;
      border-radius: 999px;
      background: rgba(255,255,255,.08);
      border: 1px solid rgba(255,255,255,.12);
      color: rgba(255,255,255,.88);
      font-size: 14px;
      font-weight: 700;
    }

    .hero h1 {
      margin: 0;
      max-width: 700px;
      font-size: clamp(34px, 4.8vw, 58px);
      line-height: 1.01;
      letter-spacing: -.03em;
    }

    .hero__desc {
      margin: 0;
      max-width: 640px;
      font-size: clamp(16px, 1.45vw, 20px);
      color: rgba(255,255,255,.84);
    }

    .hero__chips {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 2px;
    }

    .chip {
      padding: 10px 14px;
      border-radius: 999px;
      background: rgba(255,255,255,.08);
      border: 1px solid rgba(255,255,255,.14);
      color: rgba(255,255,255,.92);
      font-size: 13px;
    }

    .hero__actions {
      display: flex;
      flex-wrap: wrap;
      gap: 14px;
      margin-top: 8px;
    }

    .hero__layout {
      display: grid;
      grid-template-columns: minmax(0, 1.05fr) minmax(320px, .72fr);
      gap: 24px;
      align-items: end;
    }

    .hero__content {
      display: grid;
      gap: 18px;
      align-content: start;
    }

    .hero__top-space {
      height: 32px;
    }

    .hero__callback-wrap {
      display: flex;
      justify-content: center;
      width: 100%;
      margin-top: 8px;
    }

    .btn-callback {
      width: min(100%, 480px);
      min-width: 360px;
      max-width: 100%;
      min-height: 58px;
      padding-inline: 30px;
      font-size: 18px;
      border-radius: 16px;
      box-shadow: 0 14px 34px rgba(0,0,0,.22);
    }

    .btn-callback::before {
      content: "";
      width: 14px;
      height: 14px;
      border-radius: 999px;
      background: linear-gradient(135deg, var(--accent), #ffcf80);
      box-shadow: 0 0 0 4px rgba(255,159,26,.12);
      flex: 0 0 14px;
    }

    .hero-panel {
      position: relative;
      z-index: 1;
      display: grid;
      gap: 16px;
      padding: 24px;
      border-radius: 24px;
      background: linear-gradient(180deg, rgba(10, 26, 52, .92), rgba(8, 22, 45, .84));
      border: 1px solid rgba(255,255,255,.10);
      box-shadow: var(--shadow);
      backdrop-filter: blur(8px);
    }

    .hero-panel__title {
      margin: 0;
      font-size: 22px;
      line-height: 1.15;
    }

    .hero-panel__text {
      margin: 0;
      color: rgba(255,255,255,.78);
      font-size: 14px;
    }

    .hero-panel__list {
      display: grid;
      gap: 12px;
    }

    .hero-panel__item {
      display: grid;
      gap: 4px;
      padding: 14px 16px;
      border-radius: 16px;
      background: rgba(255,255,255,.05);
      border: 1px solid rgba(255,255,255,.10);
    }

    .hero-panel__label {
      font-size: 11px;
      letter-spacing: .08em;
      text-transform: uppercase;
      color: rgba(255,255,255,.58);
    }

    .hero-panel__value {
      font-size: 16px;
      font-weight: 700;
      line-height: 1.35;
    }

    .hero-panel__actions {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
      margin-top: 6px;
    }

    .hero-panel__actions .btn {
      width: 100%;
      min-height: 52px;
      padding-inline: 18px;
    }

    .section-head {
      max-width: 820px;
      margin-bottom: 38px;
    }

    .contact-card {
      background: rgba(8, 22, 45, .72);
      border: 1px solid rgba(255,255,255,.10);
      border-radius: 20px;
      padding: 18px;
      box-shadow: var(--shadow);
    }

    .contact-card__label {
      display: block;
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: .08em;
      color: rgba(255,255,255,.62);
      margin-bottom: 8px;
    }

    .contact-card__value {
      font-size: 17px;
      font-weight: 700;
      line-height: 1.4;
    }

    .stats {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 18px;
      margin-top: 28px;
    }

    .stat {
      background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
      border: 1px solid var(--line);
      border-radius: 22px;
      padding: 24px;
      box-shadow: var(--shadow);
    }

    .stat__value {
      display: block;
      font-size: clamp(26px, 4vw, 44px);
      line-height: 1;
      font-weight: 800;
      color: #fff;
      margin-bottom: 10px;
    }

    .stat__label {
      color: rgba(255,255,255,.78);
      font-size: 15px;
    }

    .about-grid,
    .history-grid,
    .final-cta {
      display: grid;
      grid-template-columns: 1.1fr .9fr;
      gap: 28px;
      align-items: stretch;
    }

    .stack {
      display: grid;
      gap: 20px;
      height: 100%;
    }

    .card {
      background: rgba(255,255,255,.04);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      padding: 24px;
      box-shadow: var(--shadow);
      height: 100%;
    }

    .section-light .card {
      background: #fff;
      border-color: rgba(19, 35, 63, .08);
      box-shadow: 0 18px 45px rgba(15, 33, 66, .08);
    }

    .card-title {
      margin: 0 0 12px;
      font-size: 24px;
      line-height: 1.15;
    }

    .muted {
      color: rgba(255,255,255,.76);
    }

    .section-light .muted {
      color: rgba(19,35,63,.72);
    }

    .infra-grid,
    .services-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 24px;
      margin-top: 40px;
    }

    .infra-card {
      display: grid;
      grid-template-rows: auto 1fr;
      gap: 0;
      background: #fff;
      border-radius: 22px;
      overflow: hidden;
      box-shadow: 0 18px 45px rgba(15, 33, 66, .10);
      border: 1px solid rgba(19,35,63,.08);
      height: 100%;
    }

    .infra-card img {
      width: 100%;
      aspect-ratio: 16/9;
      object-fit: cover;
      border-radius: 0;
    }

    .infra-card__body {
      padding: 22px 22px 24px;
      display: grid;
      align-content: start;
      gap: 10px;
    }

    .infra-card__title {
      margin: 0 0 12px;
      color: #f97316;
      font-size: 22px;
      line-height: 1.08;
      text-transform: uppercase;
    }

    .services-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .infra-card__body p,
    .service p,
    .card p {
      margin: 0;
    }

    .infra-card__body p + p,
    .service p + p,
    .card p + p {
      margin-top: 8px;
    }


    .service {
      display: flex;
      gap: 16px;
      align-items: flex-start;
      padding: 22px;
      border: 1px solid var(--line);
      border-radius: 20px;
      background: rgba(255,255,255,.04);
      box-shadow: var(--shadow);
      min-height: 158px;
    }

    .service__icon {
      flex: 0 0 36px;
      width: 36px;
      height: 36px;
      border-radius: 999px;
      display: grid;
      place-items: center;
      background: linear-gradient(135deg, var(--accent), #ffc76c);
      color: #13233f;
      font-weight: 900;
    }

    .service p {
      margin: 0;
      color: rgba(255,255,255,.88);
    }

    .final-cta {
      margin-top: 40px;
      gap: 24px;
    }

    .contact-list {
      display: grid;
      gap: 12px;
      margin-top: 18px;
    }

    .contact-list a {
      color: var(--text);
      font-weight: 700;
    }

    .contact-panel {
      display: grid;
      gap: 14px;
      background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
      border: 1px solid var(--line);
      border-radius: 22px;
      padding: 28px;
      box-shadow: var(--shadow);
      align-content: start;
    }

    .contact-panel__callout {
      display: grid;
      gap: 10px;
      padding: 18px;
      border-radius: 18px;
      background: rgba(255,255,255,.05);
      border: 1px solid rgba(255,255,255,.10);
    }

    .contact-panel__caption {
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: .08em;
      color: rgba(255,255,255,.62);
    }

    .contact-panel__main-phone {
      font-size: clamp(24px, 3vw, 32px);
      font-weight: 800;
      line-height: 1.05;
    }

    .contact-panel__subphones {
      display: grid;
      gap: 10px;
      margin-top: 4px;
    }

    .contact-panel__subphones a {
      display: inline-flex;
      width: fit-content;
      font-weight: 700;
      color: var(--text);
      opacity: .9;
    }

    .footer {
      padding: 24px 0 40px;
      background: #06101f;
      color: rgba(255,255,255,.68);
      font-size: 14px;
    }

    .warning-ribbon {
      position: fixed;
      left: 16px;
      bottom: 16px;
      z-index: 999;
      max-width: min(420px, calc(100% - 32px));
      padding: 14px 16px;
      border-radius: 16px;
      background: rgba(255, 159, 26, .96);
      color: #1a2235;
      box-shadow: 0 14px 35px rgba(0,0,0,.28);
      font-weight: 700;
      font-size: 14px;
    }

    @media (max-width: 1180px) {
      .site-header__inner {
        grid-template-columns: auto 1fr;
      }

      .header-actions {
        grid-column: 1 / -1;
      }
    }

    @media (max-width: 1100px) {
      .hero__layout,
      .hero__contacts,
      .stats,
      .about-grid,
      .history-grid,
      .final-cta,
      .infra-grid,
      .services-grid {
        grid-template-columns: 1fr;
      }

      .site-header__inner {
        min-height: 72px;
      }
    }

    @media (max-width: 860px) {
      .menu-toggle {
        display: inline-grid;
        place-items: center;
      }

      .nav {
        position: absolute;
        top: calc(100% + 10px);
        right: 16px;
        left: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 18px;
        background: rgba(7, 18, 38, .97);
        border: 1px solid rgba(255,255,255,.10);
        box-shadow: var(--shadow);
      }

      .nav.open {
        display: flex;
      }

      .site-header__inner {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 12px;
        min-height: 68px;
        padding: 10px 0;
      }

      .brand {
        min-width: 0;
      }

      .header-actions {
        gap: 8px;
        justify-content: flex-end;
        align-self: center;
        flex-wrap: nowrap;
      }

      .header-actions .btn-connect {
        order: 1;
      }

      .menu-toggle {
        order: 2;
      }

      .hero {
        min-height: auto;
      }

      .section {
        padding: 72px 0;
      }

      .hero__inner {
        padding: 40px 0 44px;
      }

      .hero-panel {
        padding: 20px;
      }

      .card,
      .contact-panel,
      .infra-card__body,
      .service {
        padding-left: 18px;
        padding-right: 18px;
      }
    }

    @media (max-width: 580px) {
      .container {
        width: min(calc(100% - 24px), var(--container));
      }

      .hero__lead,
      .chip {
        font-size: 13px;
      }

      .header-actions .btn-primary,
      .header-actions .btn-secondary {
        min-height: 44px;
        padding-inline: 14px;
        font-size: 13px;
      }

      .site-header {
        background: rgba(7, 18, 38, .92);
      }

      .brand__name {
        font-size: 16px;
      }

      .brand__meta {
        font-size: 11px;
      }

      .btn-connect {
        min-width: 152px;
      }

      .menu-toggle {
        width: 50px;
        height: 50px;
        border-radius: 16px;
      }

      .hero__inner {
        padding: 28px 0 36px;
      }

      .hero h1 {
        font-size: clamp(30px, 8vw, 42px);
      }

      .hero__top-space {
        display: none;
      }

      .hero__desc {
        font-size: 15px;
      }

      .hero__chips,
      .hero__actions,
      .hero-panel__actions {
        gap: 10px;
      }

      .btn-callback {
        width: 100%;
        min-width: 0;
        min-height: 64px;
        font-size: 17px;
        justify-content: center;
      }

      .hero-panel {
        gap: 14px;
      }

      .hero-panel__actions {
        grid-template-columns: 1fr;
      }

      .modal {
        padding: 20px;
      }

      .modal__title {
        font-size: 24px;
      }

      .back-to-top {
        right: 14px;
        bottom: 14px;
      }
    }
    .back-to-top {
      position: fixed;
      right: 18px;
      bottom: 18px;
      width: 46px;
      height: 46px;
      border-radius: 999px;
      display: grid;
      place-items: center;
      background: rgba(15, 33, 66, .88);
      border: 1px solid rgba(255,255,255,.14);
      color: #fff;
      box-shadow: var(--shadow);
      z-index: 1100;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transform: translateY(8px);
      transition: opacity .2s ease, transform .2s ease, visibility .2s ease, background .2s ease;
      font-size: 20px;
      line-height: 1;
    }

    .back-to-top:hover,
    .back-to-top:focus-visible {
      background: linear-gradient(135deg, var(--accent), #ffbf69);
      color: #14233f;
      transform: translateY(0);
    }

    .back-to-top.show {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transform: translateY(0);
    }


    .modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(4, 10, 22, .72);
      backdrop-filter: blur(8px);
      display: none;
      place-items: center;
      padding: 16px;
      z-index: 1400;
    }

    .modal-overlay.open {
      display: grid;
    }

    .modal {
      width: min(100%, 560px);
      border-radius: 24px;
      background: linear-gradient(180deg, rgba(10, 26, 52, .98), rgba(8, 22, 45, .96));
      border: 1px solid rgba(255,255,255,.12);
      box-shadow: var(--shadow);
      padding: 24px;
      position: relative;
    }

    .modal__title {
      margin: 0 0 8px;
      font-size: 28px;
      line-height: 1.08;
    }

    .modal__desc {
      margin: 0 0 18px;
      color: rgba(255,255,255,.76);
      font-size: 15px;
    }

    .modal__close {
      position: absolute;
      right: 14px;
      top: 14px;
      width: 40px;
      height: 40px;
      border-radius: 12px;
      border: 1px solid rgba(255,255,255,.14);
      background: rgba(255,255,255,.04);
      color: #fff;
      font-size: 20px;
      cursor: pointer;
    }

    .form-grid {
      display: grid;
      gap: 14px;
    }

    .field {
      display: grid;
      gap: 8px;
    }

    .field label {
      font-size: 13px;
      letter-spacing: .04em;
      text-transform: uppercase;
      color: rgba(255,255,255,.68);
    }

    .field input,
    .field textarea {
      width: 100%;
      border-radius: 14px;
      border: 1px solid rgba(255,255,255,.12);
      background: rgba(255,255,255,.05);
      color: #fff;
      padding: 14px 16px;
      font: inherit;
      outline: none;
    }

    .field input::placeholder,
    .field textarea::placeholder {
      color: rgba(255,255,255,.38);
    }

    .field textarea {
      min-height: 120px;
      resize: vertical;
    }

    .modal__actions {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-top: 6px;
    }

    .modal__hint {
      margin: 8px 0 0;
      color: rgba(255,255,255,.58);
      font-size: 13px;
    }

/* v9 refinements */
.brand { min-width: 0; }
.header-actions { white-space: nowrap; }
.site-header__inner { padding-top: 0; padding-bottom: 0; }
.hero-panel__actions .btn {
  flex: 1 1 0;
  min-width: 0;
}
@media (max-width: 860px) {
  .site-header__inner {
    grid-template-columns: minmax(0,1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 62px;
    padding: 8px 0;
  }

  .brand {
    gap: 2px;
    min-width: 0;
  }

  .brand__name {
    font-size: 17px;
    line-height: 1.05;
  }

  .brand__meta {
    display: block;
    font-size: 10px;
    line-height: 1.2;
    color: rgba(255,255,255,.64);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .header-actions {
    gap: 8px;
    align-self: center;
  }

  .header-actions .btn-connect {
    min-height: 42px;
    padding-inline: 14px;
    font-size: 13px;
    border-radius: 13px;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    font-size: 21px;
  }

  .hero__inner {
    padding-top: 26px;
  }
}

@media (max-width: 580px) {
  .site-header__inner {
    min-height: 58px;
    gap: 8px;
    padding: 8px 0;
  }

  .brand__name {
    font-size: 15px;
  }

  .brand__meta {
    display: block;
    font-size: 9px;
  }

  .header-actions .btn-connect {
    min-height: 40px;
    padding-inline: 12px;
    font-size: 12px;
    gap: 8px;
  }

  .btn-connect::before {
    font-size: 13px;
  }

  .hero h1 {
    margin-top: 2px;
  }

  .hero-panel__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-panel__actions .btn {
    width: 100%;
    padding-inline: 12px;
    min-height: 46px;
  }

  .back-to-top {
    width: 50px;
    height: 50px;
  }
}


/* Final hero adjustments */
@media (min-width: 861px) {
  .hero__content {
    padding-right: 12px;
  }
}

@media (max-width: 860px) {
  .hero__top-space {
    height: 18px;
  }

  .hero__callback-wrap {
    justify-content: flex-start;
    margin-top: 2px;
  }

  .btn-callback {
    min-width: 0;
    width: 100%;
    font-size: 17px;
    min-height: 54px;
    padding-inline: 22px;
  }

  .hero-panel__actions {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 580px) {
  .hero__top-space {
    height: 12px;
  }

  .btn-callback {
    font-size: 16px;
    min-height: 52px;
  }

  .hero-panel__actions {
    grid-template-columns: 1fr;
  }

  .hero-panel__actions .btn {
    min-height: 50px;
  }
}



/* font + mobile header fix */
body, button, input, textarea, select, .btn, .brand__name, .brand__meta, .nav a, h1, h2, h3, .section-title, .hero-panel__title, .stat__value {
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

@media (max-width: 860px) {
  .site-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 220px);
  }

  .brand__name {
    font-size: 17px;
    line-height: 1.02;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand__meta {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 100%;
    line-height: 1.12;
    font-size: 10px;
  }

  .header-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
  }
}

@media (max-width: 580px) {
  .site-header__inner {
    min-height: 60px;
    gap: 8px;
  }

  .brand {
    max-width: calc(100% - 200px);
  }

  .brand__name {
    font-size: 15px;
  }

  .brand__meta {
    font-size: 9px;
  }

  .header-actions .btn-connect {
    min-width: 138px;
    min-height: 42px;
    padding-inline: 12px;
    font-size: 12px;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
  }
}



/* Contact block pro */
.contact-cta-section {
  padding-top: 24px;
}
.contact-cta-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 26px;
  align-items: start;
}
.contact-cta-copy {
  padding-top: 8px;
}
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--accent-2);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
}
.section-kicker::before {
  content: "";
  width: 54px;
  height: 2px;
  background: var(--accent);
  border-radius: 999px;
}
.contact-cta-title {
  margin: 0 0 14px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.06;
}
.contact-cta-text {
  margin: 0 0 18px;
  max-width: 720px;
  color: var(--muted);
}
.contact-cta-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
}
.contact-cta-list li + li {
  margin-top: 8px;
}
.contact-card-pro {
  background: linear-gradient(180deg, rgba(17,30,66,.98) 0%, rgba(10,19,47,.98) 100%);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 22px 60px rgba(0,0,0,.28);
}
.contact-card-pro__company {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 8px;
}
.contact-card-pro__address {
  color: var(--muted);
  line-height: 1.55;
}
.contact-card-pro__phone {
  display: block;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffc35a 0%, #f0a62c 100%);
  color: #081124;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(240,166,44,.24);
}
.contact-card-pro__actions {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.contact-card-pro__meta {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 22px;
}
.contact-meta-label {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  color: rgba(233,238,248,.6);
  text-transform: uppercase;
}
.contact-meta-value,
.contact-meta-value a {
  color: #fff;
  text-decoration: none;
  line-height: 1.65;
}
.btn-light {
  background: #ffffff;
  color: #09142f;
  border: 1px solid rgba(255,255,255,.96);
}
.btn-light:hover { background: #f2f4f8; color: #09142f; }
.btn-block { width: 100%; }

.btn-outline-light {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
}
.lead-modal.is-open { display: block; }
.lead-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 9, 24, 0.72);
  backdrop-filter: blur(4px);
}
.lead-modal__dialog {
  position: relative;
  width: min(92vw, 560px);
  margin: 10vh auto 0;
  padding: 28px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(20, 33, 73, 0.98) 0%, rgba(11, 22, 53, 0.98) 100%);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 30px 80px rgba(0,0,0,0.42);
}
.lead-modal__dialog h3 {
  margin: 0 36px 10px 0;
  font-size: 30px;
  line-height: 1.08;
}
.lead-modal__desc {
  margin: 0 0 18px;
  color: rgba(233, 238, 248, 0.82);
  line-height: 1.65;
}
.lead-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.lead-form {
  display: grid;
  gap: 12px;
}
.lead-form input,
.lead-form textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: #fff;
  outline: none;
}
.lead-form textarea { min-height: 120px; resize: vertical; }
.lead-form input::placeholder,
.lead-form textarea::placeholder { color: rgba(233,238,248,.48); }
.lead-form__status { min-height: 22px; font-size: 14px; color: rgba(233,238,248,.82); }
.body-lock { overflow: hidden; }

@media (max-width: 1024px) {
  .contact-cta-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .contact-card-pro { padding: 20px; border-radius: 20px; }
  .contact-card-pro__company { font-size: 24px; }
  .contact-card-pro__meta { grid-template-columns: 1fr; }
  .lead-modal__dialog { width: min(94vw, 560px); margin-top: 8vh; padding: 22px 18px; border-radius: 18px; }
  .lead-modal__dialog h3 { font-size: 24px; }
}
.promo-banner {
  margin: 18px 0 0;
}

.promo-banner__inner {
  background: #f5f8fc;
  border: 1px solid #d9e4f2;
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.promo-banner__link {
  background: none;
  border: none;
  color: #0b63c9;
  cursor: pointer;
  font-weight: 600;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-window {
  position: relative;
  width: min(92vw, 520px);
  background: #fff;
  border-radius: 16px;
  padding: 24px;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: none;
  font-size: 28px;
  cursor: pointer;
}

.modal-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.modal-form input,
.modal-form button {
  padding: 12px 14px;
  border-radius: 10px;
}

.form-status {
  font-size: 14px;
}
/* === АКЦИИ: липкий блок под хедером === */
.promo-sticky-wrap {
  position: sticky;
/*  top: 0;  */
  z-index: 1200;
/*  background: rgba(4, 16, 43, 0.96);  */
/*  backdrop-filter: blur(8px);  */
/*  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);  */
}

#promo-slot {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 16px;
}

.promo-banner {
  margin: 0 0 8px;
}

.promo-banner:last-child {
  margin-bottom: 0;
}

.promo-banner__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #f4f7fb;
  border: 1px solid #dbe4f0;
  color: #17233a;
}

.promo-banner__label {
  font-weight: 700;
  color: #0f172a;
}

.promo-banner__title {
  font-weight: 600;
  color: #17233a;
}

.promo-banner__link {
  border: none;
  background: none;
  color: #1d4ed8;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.promo-banner__close {
  margin-left: auto;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #475569;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.promo-banner__close:hover {
  background: rgba(15, 23, 42, 0.06);
}

/* если у тебя хедер fixed и имеет высоту, например 84px */
@media (min-width: 992px) {
  .promo-sticky-wrap {
    top: 84px;
  }
}

/* === АКЦИИ: улучшенная версия для десктопа и телефона === 
.promo-sticky-wrap {
  background: rgba(4, 16, 43, 0.94);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

@media (max-width: 991px) {
  .promo-sticky-wrap {
    top: 0;
  }
  
  
*/

#promo-slot {
  padding: 8px 16px 10px;
}

.promo-banner {
  margin: 0 0 8px;
}

.promo-banner__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  min-height: 46px;
  padding: 10px 16px;
  border-radius: 14px;
  background: #f4f7fb;
  border: 1px solid #dbe4f0;
  color: #17233a;
  box-shadow: 0 6px 18px rgba(12, 26, 51, 0.06);
}

.promo-banner__main {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: wrap;
  cursor: pointer;
}

.promo-banner__label {
  flex: 0 0 auto;
  font-weight: 800;
  color: #d39a2f;
}

.promo-banner__title {
  min-width: 0;
  font-weight: 700;
  color: #17233a;
  line-height: 1.28;
}

.promo-banner__hint,
.promo-banner__link {
  flex: 0 0 auto;
  margin-left: 4px;
  border: none;
  background: none;
  padding: 0;
  color: #4d6485;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  transition: color .18s ease, opacity .18s ease;
}

.promo-banner__hint:hover,
.promo-banner__hint:focus-visible,
.promo-banner__link:hover,
.promo-banner__link:focus-visible {
  color: #d39a2f;
}

.promo-banner__close {
  flex: 0 0 auto;
  margin-left: auto;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  transition: background .18s ease, color .18s ease;
}

.promo-banner__close:hover,
.promo-banner__close:focus-visible {
  background: rgba(15, 23, 42, 0.06);
  color: #17233a;
}


  #promo-slot {
    padding: 2px 12px 2px;
  }

  .promo-banner {
    margin-bottom: 1px;
  }

  .promo-banner__inner {
    min-height: 40px;
    padding: 9px 12px;
    gap: 10px;
    border-radius: 12px;
  }

  .promo-banner__main {
    gap: 4px;
  }

  .promo-banner__label,
  .promo-banner__title {
    font-size: 15px;
    line-height: 1.24;
  }

  .promo-banner__hint,
  .promo-banner__link {
    display: none;
  }

  .promo-banner__close {
    width: 24px;
    height: 24px;
    font-size: 18px;
    border-radius: 7px;
  }
}

@media (max-width: 580px) {
  #promo-slot {
    padding: 6px 12px 6px;
  }

  .promo-banner__inner {
    padding: 8px 12px;
  }

  .promo-banner__label,
  .promo-banner__title {
    font-size: 14px;
  }
}
/* === ПРИНУДИТЕЛЬНО УБИРАЕМ СИНИЙ ФОН У ГЛАВНОГО БЛОКА === */
.hero__content {
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
}

/* Если за текстом есть еще и общий темный градиент-затемнитель на всю ширину - отключаем и его (по желанию можете удалить эту часть, если картинка станет слишком светлой) */
.hero::before {
    background: transparent !important; 
    /* или display: none !important; */
}
/* --- Адаптация текста для светлых секций (section-light) --- */
.section-light .card p,
.section-light .card .muted,
.section-light .service p {
    color: #46556f !important; /* Темно-серый текст для читаемости */
    opacity: 1;
}

.section-light .card h3,
.section-light .card .card-title,
.section-light .service strong {
    color: #10284f !important; /* Глубокий синий для заголовков и выделений */
}

.section-light .card,
.section-light .service {
    background: #ffffff; /* Убеждаемся, что фон карточек точно белый */
    box-shadow: 0 10px 28px rgba(9, 20, 44, 0.08), 0 2px 8px rgba(9, 20, 44, 0.04);
}
/* --- ГЛОБАЛЬНОЕ ИСПРАВЛЕНИЕ ТЕКСТА НА БЕЛЫХ КАРТОЧКАХ --- */

/* 1. Карточки инфраструктуры (с картинками) */
.infra-card { 
    background: #ffffff !important; 
}
.infra-card__title { 
    color: #10284f !important; 
}
.infra-card__body p { 
    color: #46556f !important; 
    opacity: 1 !important; 
}

/* 2. Светлые секции: карточки услуг и истории */
.section-light .card,
.section-light .service {
    background: #ffffff !important;
}
.section-light .card p,
.section-light .card .muted,
.section-light .service p {
    color: #46556f !important;
    opacity: 1 !important; 
}
.section-light .card h3,
.section-light .card .card-title,
.section-light .service strong {
    color: #10284f !important;
    opacity: 1 !important;
}
/* =========================================================
   АДАПТАЦИЯ ПОД МОБИЛЬНЫЕ УСТРОЙСТВА (СМАРТФОНЫ И ПЛАНШЕТЫ)
   ========================================================= */
@media (max-width: 768px) {
    
    /* 1. Сворачиваем все основные сетки в одну колонку */
    .history-grid,
    .info-grid,
    .services-grid,
    .feature-list,
    .infra-grid,
    .contact-cta-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* 2. Сворачиваем Flex-контейнеры (чтобы картинка и текст шли друг под другом) */
    .stack {
        display: flex !important;
        flex-direction: column !important;
    }

    /* 3. Даем картинкам внутри карточек возможность занимать всю ширину на мобилке */
    .card img,
    .infra-card img {
        width: 100% !important;
        height: auto !important;
        margin-bottom: 16px;
    }

    /* 4. Немного уменьшаем гигантские отступы по краям экрана для смартфонов */
    .container {
        padding-left: 4px !important;
        padding-right: 4px !important;
    }
}
.btn {
  white-space: nowrap;
}