/* =========================================================
   DESKTOP STYLES (>= 901px)
   ========================================================= */

@media (min-width: 901px) {

  /* =========================================================
     DESIGN TOKENS
     ========================================================= */
  :root {
    --bg: #ffffff;
    --bg2: #f5f7ff;

    --text: #0f172a;
    --muted: #52607a;
    --line: rgba(15, 23, 42, 0.10);

    --accent: #2338d6;
    --accent2: #1c2db3;

    --radius: 18px;

    --shadow: 0 18px 60px rgba(2, 6, 23, 0.10);
    --shadow2: 0 10px 28px rgba(2, 6, 23, 0.08);

    --container: 1180px;
    --header-height: 88px;
  }

  /* =========================================================
     BASE
     ========================================================= */
  html, body {
    height: 100%;
  }

  body {
    margin: 0;
    padding-top: var(--header-height);
    background: #f5f7ff; /* единый фон сайта */
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  main {
    width: min(var(--container), calc(100% - 56px));
    margin: 0 auto;
  }

  /* Все секции КРОМЕ lead-section */
  section:not(.lead-section) {
    padding: 34px;
    margin: 18px 0;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  /* =========================================================
     HEADER (FIXED)
     ========================================================= */
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3000;
    background: #ffffff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  }

  .site-header .header-row {
    max-width: var(--container);
    margin: 0 auto;
    padding: 18px 28px;
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: nowrap;
  }

  .site-header .brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex: 0 0 auto;
  }

  .site-header .brand-logo {
    height: 58px;
    width: auto;
    object-fit: contain;
    display: block;
  }

  /* Навигация */
  .site-header .nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
    flex: 0 0 auto;
  }

  .site-header .nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 12px;
    border-radius: 12px;
    transition: 0.18s ease;
    white-space: nowrap;
  }

  .site-header .nav a:hover {
    background: rgba(35, 56, 214, 0.07);
    color: var(--accent);
  }

  /* CTA */
  .site-header .cta {
    flex: 0 0 auto;
    margin-left: 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 14px 18px;
    border-radius: 16px;

    background: linear-gradient(180deg, var(--accent), var(--accent2));
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;

    border: 1px solid rgba(35, 56, 214, 0.35);
    box-shadow: var(--shadow2);

    transition: 0.18s ease;
    white-space: nowrap;
  }

  .site-header .cta:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
  }

  /* Burger скрыт */
  .site-header .nav-toggle {
    display: none !important;
  }

  /* =========================================================
     TYPOGRAPHY
     ========================================================= */
  h1 {
    font-size: 44px;
    line-height: 1.1;
    margin: 0 0 14px;
    letter-spacing: -0.02em;
  }

  h2 {
    font-size: 30px;
    line-height: 1.15;
    margin-bottom: 12px;
  }

  h3 {
    font-size: 20px;
    margin: 16px 0 10px;
  }

  p {
    margin: 0 0 12px;
    color: var(--muted);
  }

  /* ===============================
   BUTTONS (общий стиль)
   =============================== */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 14px 18px;
    border-radius: 14px;

    background: linear-gradient(180deg, var(--accent), var(--accent2));
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;

    border: 1px solid rgba(35, 56, 214, 0.35);
    box-shadow: var(--shadow2);

    transition: 0.18s ease;
    white-space: nowrap;
  }

  .btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
  }


  /* =========================================================
     PROOF SECTION (фото 2 в ряд)
     ========================================================= */
  .proof__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
  }

  .proof__photos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .proof__photos img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.10);
  }

  .proof__btn {
    grid-column: 1 / -1;
    margin-top: 10px;
  }

  /* ===============================
     METRICS (clean premium style)
     =============================== */
  .proof__metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 42px;
  }

  .metric {
    background: #ffffff;
    padding: 34px 28px;
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    transition: 0.25s ease;
  }

  .metric:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  }

  .metric__value {
    font-size: 44px;
    font-weight: 800;
    color: #2338d6;
    letter-spacing: -1px;
  }

  .metric__divider {
    width: 48px;
    height: 3px;
    background: #2338d6;
    margin: 16px 0 14px;
    border-radius: 2px;
    opacity: 0.4;
  }

  .metric__label {
    font-size: 15px;
    color: #52607a;
    line-height: 1.5;
  }

  .metric-note {
    margin-top: 28px;
    color: #52607a;
    font-size: 15px;
  }


  /* =========================================================
     ANCHOR OFFSET
     ========================================================= */
  #mkd,
  #check,
  #price,
  #calc,
  #contacts {
    scroll-margin-top: calc(var(--header-height) + 12px);
  }


  /* ===============================
     FOOTER — компактная версия
     =============================== */
  .site-footer {
    margin-top: 50px;
    padding: 22px 0 14px; /* уменьшаем верх/низ */
    background: #ffffff;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
  }

  .site-footer__inner {
    width: min(var(--container), calc(100% - 56px));
    margin: 0 auto;
  }

  /* верхний блок */
  .site-footer__top {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 14px;
  }

  /* левая часть */
  .site-footer__company {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 4px;
  }

  .site-footer__region {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 6px;
  }

  .site-footer__address {
    font-size: 14px;
    color: var(--muted);
  }

  /* контакты справа */
  .site-footer__contact {
    font-size: 15px;
    margin-bottom: 6px;
  }

  .site-footer__contact a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
  }

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

  /* убираем избыточный CTA-блок полностью */
  .site-footer__cta {
    display: none;
  }

  /* legal — максимально компактно */
  .site-footer__legal {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
  }

  .site-footer__requisites {
    margin-top: 6px;
    font-size: 13px;
    color: #6b7280;
  }

}