/*
 * Онпейдж 10.2026 (W3C, Устройство №25 / Главная №19): стили блоков, которые печатались <style>
 * внутри <body>. Перенесены сюда без изменений; подключение — interface/base_apple.php, после style.css.
 */

/* ===== главная, первый экран — interface/index_apple.php ===== */
      /* 24.09.2026: первый экран главной — визуально H1 → форма с галкой → карточки УТП → дисклеймер
         «…независимая организация». В разметке порядок прежний (дисклеймер сразу под H1), только CSS —
         как на страницах типа/модели (php_blocks/malf-select-block.php) и в temp69. */
      .page-index .main-section .row .left {
        display: flex;
        flex-direction: column;
        min-width: 0;
      }
      .page-index .main-section .row .left > h1 {
        margin-bottom: 24px;
      }
      .page-index .main-section .row .left > .card-row-form {
        order: 1;
        margin-bottom: 20px;
      }
      .page-index .main-section .row .left > .list-advantage {
        order: 2;
        margin: 0 0 20px;
      }
      .page-index .main-section .row .left > .hero-disclaimer {
        order: 3;
        margin: 0;
      }

/* ===== выбор поломки в первом экране — php_blocks/malf-select-block.php ===== */
  /* ── Первый экран, когда в нём есть выбор поломки (правка 24.09.2026, как в temp69) ─────────
     В разметке порядок прежний: H1 → дисклеймер «…независимая организация» → УТП → этот блок →
     «Стоимость работ» → старая форма. Визуально (ПК и мобилка одинаково): H1 → этот блок (мастер,
     поломки, карточка с формой, галка согласия) → карточки УТП → «Стоимость работ» → дисклеймер.
     Колонка становится flex, порядок — через order; старая форма прячется.
     Без поддержки :has (старые браузеры) всё остаётся как раньше, только форм будет две. */
  .main-section .row .left:has(> .malf-pick) {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  .main-section .row .left:has(> .malf-pick) > h1 {
    margin-bottom: 24px;
  }
  .main-section .row .left:has(> .malf-pick) > .malf-pick {
    order: 1;
  }
  .main-section .row .left:has(> .malf-pick) > .list-advantage {
    order: 2;
    margin: 0 0 20px;
  }
  .main-section .row .left:has(> .malf-pick) > .main-section-price {
    order: 3;
    margin-bottom: 16px;
  }
  .main-section .row .left:has(> .malf-pick) > .hero-disclaimer {
    order: 4;
    margin: 0;
  }
  .main-section .row .left:has(> .malf-pick) > .card-row-form {
    display: none;
  }
  .main-section .row:has(> .left > .malf-pick) {
    align-items: flex-start;
  }

  .malf-pick {
    margin-bottom: 20px;
  }
  .malf-pick__master {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
  }
  .malf-pick__master-img {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
  }
  .malf-pick__master-name {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--black);
  }
  .malf-pick__master-sub {
    margin-top: 2px;
    font-size: 14px;
    line-height: 1.35;
    color: var(--silver);
  }
  .malf-pick__title {
    margin-bottom: 14px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--black);
  }
  .malf-pick__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .malf-chip {
    padding: 9px 16px;
    border: 1px solid rgba(63, 63, 63, 0.15);
    border-radius: 100px;
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.25;
    color: var(--black);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.25s, background-color 0.25s, color 0.25s;
  }
  .malf-chip[hidden] {
    display: none;
  }
  .malf-chip:hover {
    border-color: var(--blue);
  }
  .malf-chip.is-active {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
  }
  .malf-chip--more {
    border-style: dashed;
    color: var(--silver);
  }
  .malf-chip--more:hover {
    color: var(--black);
  }

  .malf-card {
    margin-top: 16px;
    padding: 20px;
    border-radius: 18px;
    background: #fff;
  }
  .malf-card__panel[hidden] {
    display: none;
  }
  .malf-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
  }
  .malf-card__price {
    position: relative;
    padding-bottom: 10px;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--black);
  }
  .malf-card__price::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 3px;
    border-radius: 2px;
    background: var(--blue);
  }
  .malf-card__price--calc {
    font-size: 22px;
  }
  .malf-card__from {
    font-size: 0.6em;
    font-weight: 500;
    color: var(--silver);
  }
  .malf-card__time {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    padding: 7px 12px;
    border-radius: 100px;
    background: rgba(128, 128, 128, 0.1);
    font-size: 13px;
    font-weight: 500;
    color: var(--black);
    white-space: nowrap;
  }
  .malf-card__name {
    margin-top: 12px;
    font-size: 15px;
    color: var(--silver);
  }
  .malf-card__text {
    margin-top: 12px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--black);
  }
  .malf-card__link {
    margin-left: 4px;
    font-weight: 400;
    color: var(--silver);
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
  }
  .malf-card__link:hover {
    color: var(--black);
  }
  .malf-card__btn {
    width: 100%;
    height: 52px;
    margin-top: 18px;
    padding: 0 24px;
    font-size: 15px;
    border: 1px solid var(--blue);
  }
  .malf-card__terms {
    display: inline-block;
    margin-top: 12px;
    font-size: 14px;
    color: var(--black);
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  .malf-card__terms:hover {
    text-decoration: none;
  }
  .malf-pick__lead {
    margin: 0 0 24px;
    padding: 20px;
    border-radius: 18px;
    background: #fff;
  }
  .malf-pick__lead .pd-consent {
    margin-top: 10px;
  }
  .malf-card__form-text {
    margin-top: 0;
    font-size: 14px;
    line-height: 1.4;
    color: var(--black);
  }
  .malf-pick .malf-card__form {
    position: relative;
    display: block;
    margin-top: 10px;
  }
  .malf-pick .malf-card__form [name="phone"] {
    width: 100%;
    height: 52px;
    padding: 0 60px 0 20px;
    border: 1px solid rgba(63, 63, 63, 0.25);
    border-radius: 100px;
    background: #fff;
    font-family: inherit;
    font-size: 16px;
    color: var(--black);
    box-sizing: border-box;
  }
  .malf-pick .malf-card__form [name="phone"]:focus {
    outline: none;
    border-color: var(--blue);
  }
  .malf-pick .malf-card__send {
    position: absolute;
    top: 6px;
    right: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    cursor: pointer;
  }
  /* Название поломки для модалки: читается скриптом и скринридером, глазами не видно. */
  .malf-card__hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }
  .malf-pick__notes {
    margin-top: 12px;
  }
  .malf-pick__note {
    margin: 0 0 6px;
    font-size: 12px;
    line-height: 1.4;
    color: var(--silver);
  }
  .malf-pick__note span {
    font-weight: 600;
  }
  .malf-pick__note a {
    color: inherit;
    text-decoration: underline;
  }
  .malf-pick__notes .pd-consent {
    margin-top: 10px;
  }

  @media (max-width: 992px) {
    .malf-pick__master {
      margin-bottom: 18px;
    }
    .malf-pick__master-img {
      width: 44px;
      height: 44px;
    }
    .malf-pick__master-name {
      font-size: 15px;
    }
    .malf-pick__master-sub {
      font-size: 13px;
    }
    .malf-pick__title {
      margin-bottom: 12px;
      font-size: 18px;
    }
    .malf-chip {
      padding: 8px 12px;
      font-size: 13px;
    }
    .malf-card {
      padding: 16px;
    }
    .malf-card__price {
      font-size: 28px;
    }
    .malf-card__text {
      font-size: 14px;
    }
  }

/* ===== типы устройств — php_blocks/device-types-block.php ===== */
  .device-types {
    padding: 40px 0;
  }
  .device-types__title {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #2b2b2b;
    margin: 0 0 28px 0;
  }
  .device-types__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
  .device-types__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #f5f6f8;
    border-radius: 12px;
    padding: 28px 20px;
    text-decoration: none;
    transition: box-shadow .25s ease, transform .25s ease;
  }
  .device-types__card:hover {
    box-shadow: 0 8px 22px rgba(0, 0, 0, .10);
    transform: translateY(-2px);
  }
  .device-types__icon {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
  }
  .device-types__icon img {
    max-height: 64px;
    max-width: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
  }
  .device-types__name {
    font-size: 16px;
    font-weight: 700;
    color: #2b2b2b;
    margin-bottom: 10px;
  }
  .device-types__meta {
    font-size: 12px;
    line-height: 17px;
    color: #9a9a9a;
  }
  .device-types__card--hidden {
    display: none;
  }
  .device-types__grid.open .device-types__card--hidden {
    display: flex;
  }
  .device-types__more {
    margin-top: 24px;
    text-align: center;
  }
  .device-types__more button {
    border-radius: 100px;
    max-width: 223px;
    width: 100%;
    height: 51px;
    border: 1px solid #3f3f3f;
    color: var(--black, #3f3f3f);
    margin: 0 auto;
    background-color: transparent;
    transition: all .3s ease;
    display: block;
    font-weight: 600;
    cursor: pointer;
  }
  .device-types__more button:hover {
    background-color: var(--blue, #1278f2);
    border-color: var(--blue, #1278f2);
    color: #fff;
  }
  @media (max-width: 992px) {
    .device-types__grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  @media (max-width: 680px) {
    .device-types__grid {
      grid-template-columns: repeat(2, 1fr);
    }
    .device-types__title {
      font-size: 20px;
    }
    .device-types__card {
      padding: 20px 14px;
    }
  }

/* ===== «слово мастера» в блоке цен — php_blocks/inc/master-quote.php ===== */
.mq{position:relative;flex:1 1 100%;order:3;max-width:560px;margin:0 auto;box-sizing:border-box;background:#fff;
  border:1px solid #e6e6ea;border-radius:18px;padding:28px 28px 22px;color:var(--black);text-align:left;
  box-shadow:0 6px 24px rgba(20,20,40,.06);overflow:hidden}
.mq__mark{position:absolute;top:18px;right:22px;width:64px;height:auto;color:var(--blue);opacity:.12;pointer-events:none}
.mq__head{position:relative;display:flex;align-items:center;gap:16px;margin-bottom:18px;padding-right:52px}
.mq__ava{flex:0 0 auto;width:76px;height:76px;border-radius:50%;overflow:hidden;border:4px solid #fff;
  box-shadow:0 4px 14px rgba(0,0,0,.14)}
.mq__ava img{display:block;width:100%;height:100%;object-fit:cover;object-position:48% 20%;
  transform:scale(1.7);transform-origin:48% 26%}
.mq__name{font-weight:700;font-size:19px;line-height:1.2}
.mq__role{margin-top:3px;font-size:14px;line-height:1.3;color:var(--blue);font-weight:600}
.mq__org{margin-top:3px;font-size:14px;line-height:1.3;color:#6b6b72}
.single-price .row.text-seo{max-height:none!important}
.single-price .container .mq__text{margin:0;font-size:16px;line-height:1.55;text-align:left}
.mq .mq__list{list-style:none;margin:18px 0 0;padding:16px 0 0;border-top:1px solid #ececf0;display:flex;flex-direction:column;gap:10px}
.mq .mq__list li{display:flex;align-items:center;gap:10px;font-size:15px;line-height:1.3}
.mq__list svg{flex:0 0 auto;color:var(--blue)}
@media (min-width:993px){
  .single-price .text-seo{align-items:center}
  .single-price .text-seo .text-seo-block{flex:1 1 0;min-width:0}
  .mq{flex:0 0 400px;max-width:400px;order:0;margin:0}
}
@media (max-width:576px){
  .single-price .text-seo .text-seo-block{flex:1 1 100%}
  .mq{padding:22px 18px 18px;border-radius:16px}
  .mq__mark{width:48px;top:14px;right:14px}
  .mq__head{gap:12px;margin-bottom:14px;padding-right:40px}
  .mq__ava{width:64px;height:64px;border-width:3px}
  .mq__name{font-size:17px}
  .mq__role,.mq__org{font-size:13px}
  .single-price .container .mq__text{font-size:15px}
  .mq .mq__list li{font-size:14px}
}

/* ===== метро и районы — php_blocks/metro-block.php ===== */
        /* Формат по образцу fixdyson-fix.ru: метро слева, округа и районы справа, между ними черта. */
        .metro-lines {
            padding-top: 62px;
            padding-bottom: 62px;
        }

        .metro-lines .metro_title {
            font-size: 26px;
            font-weight: 400;
            color: #606060;
            text-align: center;
            padding-bottom: 32px;
            margin-bottom: 32px;
            border-bottom: 1px solid #f3f4f6;
        }

        .metro-lines .geo_grid {
            display: grid;
            grid-template-columns: minmax(0, 1fr);
        }

        .metro-lines .geo_grid.geo_grid--two {
            grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        }

        .metro-lines .geo_grid--two .geo_col:first-child {
            padding-right: 28px;
            border-right: 1px solid #f3f4f6;
        }

        .metro-lines .geo_grid--two .geo_col + .geo_col {
            padding-left: 28px;
        }

        .metro-lines .geo_nav {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 32px;
        }

        .metro-lines .geo_tabs {
            display: flex;
            gap: 8px;
            flex: 1 1 auto;
            min-width: 0;
            overflow-x: auto;
            scroll-behavior: smooth;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        .metro-lines .geo_tabs::-webkit-scrollbar {
            display: none;
        }

        .metro-lines .geo_arrow {
            flex: 0 0 auto;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            border: none;
            padding: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            background: var(--blue);
            cursor: pointer;
            transition: opacity 0.3s ease;
        }

        .metro-lines .geo_arrow--next svg {
            transform: rotate(180deg);
        }

        .metro-lines .geo_arrow:disabled {
            opacity: 0.35;
            cursor: default;
        }

        .metro-lines .geo_tab {
            flex: 0 0 auto;
            padding: 10px 16px;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 500;
            color: #3B3B3B;
            background-color: #f9f9f9;
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            text-decoration: underline;
            white-space: nowrap;
            user-select: none;
            transition: all 0.3s ease;
        }

        .metro-lines .geo_tab svg {
            pointer-events: none;
            flex: 0 0 auto;
        }

        .metro-lines .geo_tab:hover,
        .metro-lines .geo_tab.active {
            color: white;
            background: var(--blue);
        }

        .metro-lines .geo_tab.active {
            text-decoration: none;
        }

        /* Иконка «М» на активной/наведённой плашке уходит в белый: цвет ветки на заливке не читается. */
        .metro-lines .geo_tab:hover svg path,
        .metro-lines .geo_tab.active svg path {
            fill: white;
        }

        .metro-lines .geo_body {
            display: none;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 16px;
            align-items: start;
        }

        .metro-lines .geo_body.active {
            display: grid;
        }

        .metro-lines .geo-item {
            border: none;
            background: transparent;
            padding: 0;
            outline: none;
            text-align: left;
            font-size: 16px;
            font-weight: 700;
            line-height: 1.3;
            color: #3B3B3B;
            text-decoration: underline;
            cursor: pointer;
            transition: color 0.3s ease;
        }

        .metro-lines .geo-item:hover {
            color: var(--blue);
            text-decoration: none;
        }

        @media (max-width: 1200px) {
            .metro-lines .geo_tab,
            .metro-lines .geo-item {
                font-size: 14px;
            }
        }

        @media (max-width: 992px) {
            .metro-lines .geo_grid.geo_grid--two {
                grid-template-columns: minmax(0, 1fr);
            }

            .metro-lines .geo_grid--two .geo_col:first-child {
                padding-right: 0;
                padding-bottom: 32px;
                border-right: none;
                border-bottom: 1px solid #f3f4f6;
            }

            .metro-lines .geo_grid--two .geo_col + .geo_col {
                padding-left: 0;
                padding-top: 32px;
            }
        }

        @media (max-width: 640px) {
            .metro-lines {
                padding-top: 40px;
                padding-bottom: 40px;
            }

            .metro-lines .metro_title {
                font-size: 22px;
                padding-bottom: 24px;
                margin-bottom: 24px;
            }

            .metro-lines .geo_nav {
                margin-bottom: 24px;
            }

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

            .metro-lines .geo_tab,
            .metro-lines .geo-item {
                font-size: 13px;
            }
        }

/* ===== cookie-баннер — php_blocks/cookie-banner.php ===== */
  .cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 9990; /* ниже модалок и оверлея шаблона */
    display: none;
    align-items: center;
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
    padding: 16px 20px;
    border-radius: 14px;
    background: #fff;
    color: var(--black);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    font-size: 14px;
    line-height: 1.45;
  }
  .cookie-banner.is-visible {
    display: flex;
  }
  .cookie-banner__text {
    flex: 1 1 auto;
  }
  .cookie-banner__text a {
    color: var(--blue);
    text-decoration: underline;
  }
  .cookie-banner__btn {
    flex: 0 0 auto;
    padding: 10px 22px;
    border: 0;
    border-radius: 100px;
    background: var(--blue);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
  }
  /* Плавающая кнопка телефона живёт справа внизу — на мобилке баннер повыше. Одна строка: текст + «OK». */
  @media (max-width: 767px) {
    .cookie-banner {
      left: 10px;
      right: 10px;
      bottom: 84px;
      gap: 10px;
      padding: 8px 10px 8px 14px;
      font-size: 12px;
      line-height: 1.35;
    }
    .cookie-banner__btn {
      padding: 8px 14px;
      font-size: 13px;
    }
  }
