/* ============================================================================
   APPLE INFOPAGES: информационные страницы
   Вынесено из user.css 11.08.2026: грузилось на каждой странице, а нужно только тут:
   инфо-страницы (доставка, оплата, гарантия…) — page.html.
   Подключается из head.html по глобалу, который выставляет соответствующий шаблон.
   Порядок важен: файл идёт ПОСЛЕ user.css — как эта секция шла в исходном файле.
   ============================================================================ */

/* ==================== APPLE INFO (информационные страницы, 02.08.2026) ==================== */
/* Доставка / Оплата / Гарантия / Техподдержка / Установка / Контакты */
.ahp-info {
    --ahp-i-gray: #f5f5f7;
    --ahp-i-mut: #6e6e73;
    --ahp-i-line: #e8e8ed;
    --ahp-i-blue: #006BD7;
}
.ahp-info .block__content { max-width: 900px; margin: 0 auto; }

/* навигация по информационным разделам */
.ahp-info__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 900px;
    margin: 0 auto 26px;
    padding-bottom: 4px;
}
.ahp-info__nav-link {
    background: var(--ahp-i-gray);
    border-radius: 999px;
    padding: 9px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #3a3a3e !important;
    text-decoration: none !important;
    transition: background .2s ease, color .2s ease;
    white-space: nowrap;
}
.ahp-info__nav-link:hover { background: #ececef; }
.ahp-info__nav-link_active { background: #111114; color: #fff !important; }

/* типографика контента */
.ahp-info .content-decorator { font-size: 16px; line-height: 1.6; color: #1d1d1f; }
.ahp-info .content-decorator > p:first-child {
    font-size: 18px;
    line-height: 1.55;
    color: var(--ahp-i-mut);
    margin-bottom: 22px;
}
.ahp-info .content-decorator p { margin: 0 0 14px; }
.ahp-info .content-decorator a { color: var(--ahp-i-blue); }
.ahp-info .content-decorator h2,
.ahp-info .content-decorator h3 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.3px;
    line-height: 1.25;
    margin: 0 0 14px;
}
.ahp-info .content-decorator h4 { font-size: 17px; font-weight: 600; margin: 0 0 10px; }
.ahp-info .content-decorator hr { border: 0; border-top: 1px solid var(--ahp-i-line); margin: 22px 0; }
.ahp-info .content-decorator img { max-width: 100%; height: auto; border-radius: 14px; }
.ahp-info .content-decorator figure { margin: 0 0 16px; }

/* секции-карточки (собирает JS: заголовок + содержимое до следующего заголовка) */
.ahp-sec {
    background: var(--ahp-i-gray);
    border-radius: 22px;
    padding: 26px 28px;
    margin: 0 0 16px;
}
.ahp-sec > :last-child { margin-bottom: 0 !important; }
.ahp-sec_lead { background: none; padding: 0; }
.ahp-sec_bare { background: none; padding: 0; margin-bottom: 12px; }
.ahp-sec_bare h2, .ahp-sec_bare h3 { margin-bottom: 0; }

/* сетка однотипных карточек (например, установочные центры) */
.ahp-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 0 0 16px; }
.ahp-cards .ahp-sec { margin: 0 !important; padding: 20px 22px; }
.ahp-cards .ahp-sec h2, .ahp-cards .ahp-sec h3 { font-size: 17px; margin-bottom: 8px; }
.ahp-cards .ahp-sec p { font-size: 14.5px; color: var(--ahp-i-mut); }
@media (max-width: 760px) { .ahp-cards { grid-template-columns: 1fr; } }

/* списки */
.ahp-info .content-decorator ul { list-style: none; padding: 0; margin: 0 0 14px; }
.ahp-info .content-decorator ul > li {
    position: relative;
    padding: 0 0 0 30px;
    margin: 0 0 10px;
    line-height: 1.55;
}
.ahp-info .content-decorator ul > li::before {
    content: '';
    position: absolute;
    left: 0; top: 5px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #34c759 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/11px 11px no-repeat;
}
.ahp-info .content-decorator ol { list-style: none; counter-reset: ahp-num; padding: 0; margin: 0 0 14px; }
.ahp-info .content-decorator ol > li {
    counter-increment: ahp-num;
    position: relative;
    padding: 0 0 0 38px;
    margin: 0 0 12px;
    line-height: 1.55;
}
.ahp-info .content-decorator ol > li::before {
    content: counter(ahp-num);
    position: absolute;
    left: 0; top: 1px;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: #fff;
    color: #1d1d1f;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ahp-sec_lead ol > li::before, .ahp-info .block__content > .content-decorator > ol > li::before { background: var(--ahp-i-gray); }

/* таблицы (в т.ч. таблица доставки) */
.ahp-info .content-decorator table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 15px; }
.ahp-info .content-decorator th {
    text-align: left;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--ahp-i-mut);
    font-weight: 600;
    padding: 0 12px 10px;
}
.ahp-info .content-decorator td { padding: 12px; border-top: 1px solid var(--ahp-i-line); vertical-align: top; }

/* формы (страница контактов, техподдержка) */
.ahp-info .wa-form { float: none !important; width: 100%; }
.ahp-info .wa-form .wa-field { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px !important; }
.ahp-info .wa-form .wa-field .wa-name {
    float: none !important;
    width: 100% !important;
    font-size: 13px !important;
    font-weight: 600;
    color: var(--ahp-i-mut);
    padding: 0 !important;
}
.ahp-info .wa-form .wa-field .wa-value { margin: 0 !important; width: 100%; max-width: 520px; }
.ahp-info .wa-form input[type="text"],
.ahp-info .wa-form input[type="email"],
.ahp-info .wa-form input[type="password"],
.ahp-info .wa-form textarea {
    width: 100% !important;
    background: #fff;
    border: 1px solid var(--ahp-i-line) !important;
    border-radius: 14px !important;
    padding: 12px 16px !important;
    font: inherit !important;
    font-size: 15px !important;
    color: #1d1d1f !important;
    box-sizing: border-box;
    transition: border-color .2s ease;
}
.ahp-info .wa-form input:focus, .ahp-info .wa-form textarea:focus { border-color: #111114 !important; outline: none; }
.ahp-info .wa-form textarea { min-height: 120px; }
.ahp-info .wa-form input[type="submit"], .ahp-info .wa-form button[type="submit"] {
    background: #111114;
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 13px 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s ease;
}
.ahp-info .wa-form input[type="submit"]:hover { opacity: .85; }
.ahp-info .wa-captcha img { border-radius: 10px; }

/* карточки контактов (собирает JS на /contactus/) */
.ahp-contacts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 0 0 22px; }
.ahp-contact {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--ahp-i-gray);
    border-radius: 18px;
    padding: 18px 20px;
    text-decoration: none !important;
    color: inherit !important;
    transition: background .2s ease, transform .2s ease;
}
a.ahp-contact:hover { background: #ececef; transform: translateY(-1px); }
.ahp-contact__ico {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex: none;
}
.ahp-contact__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ahp-contact__label { font-size: 12.5px; color: var(--ahp-i-mut); }
.ahp-contact__value { font-size: 15.5px; font-weight: 600; line-height: 1.35; word-break: break-word; }

/* перечни исключений — нейтральный маркер вместо галочки */
.ahp-sec_neg ul > li::before {
    background: #d2d2d7 !important;
    width: 6px !important; height: 6px !important;
    top: 11px !important; left: 5px !important;
}

/* карты на информационных страницах */
.ahp-info .content-decorator iframe { max-width: 100%; border-radius: 14px; }
.ahp-info .content-decorator iframe[src*="yandex"],
.ahp-info .content-decorator iframe[src*="maps"],
.ahp-info .content-decorator iframe[src*="2gis"] {
    width: 100% !important;
    min-height: 420px;
    border: 0;
    border-radius: 18px;
    display: block;
    margin-top: 14px;
}

/* страница техподдержки: баннер и FAQ */
.ahp-info .technical-support__subtitle { font-size: 18px; color: var(--ahp-i-mut); }
.ahp-info .technical-support__banner {
    background: var(--ahp-i-gray);
    border-radius: 22px;
    padding: 24px 26px;
    margin: 0 0 18px;
}
.ahp-info .technical-support__banner-title { font-size: 21px; font-weight: 700; letter-spacing: -.3px; margin: 0 0 6px !important; }
.ahp-info .technical-support__banner-subtitle { font-size: 15px; color: var(--ahp-i-mut); margin: 0 !important; }
.ahp-info .technical-support__faq-title { font-size: 24px; font-weight: 700; margin: 28px 0 14px; }
.ahp-info .technical-support__faq-item {
    background: var(--ahp-i-gray);
    border-radius: 16px;
    margin: 0 0 10px;
    overflow: hidden;
}
.ahp-info .technical-support__faq-item-question {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    cursor: pointer;
    font-size: 15.5px;
    font-weight: 600;
    transition: background .2s ease;
}
.ahp-info .technical-support__faq-item-question:hover { background: #ececef; }
.ahp-info .technical-support__faq-arrow {
    margin-left: auto;
    flex: none;
    width: 9px; height: 9px;
    border-right: 2px solid #86868b;
    border-bottom: 2px solid #86868b;
    transform: rotate(45deg);
    transition: transform .2s ease;
}
.ahp-info .accordion-block_open .technical-support__faq-arrow { transform: rotate(-135deg); }
.ahp-info .technical-support__faq-item-answer { padding: 0 20px 18px; font-size: 15px; line-height: 1.55; color: var(--ahp-i-mut); }

/* реквизиты компании */
.ahp-legal {
    background: var(--ahp-i-gray);
    border-radius: 20px;
    padding: 22px 24px;
    margin: 0 0 22px;
}
.ahp-legal__title { font-size: 13px; font-weight: 600; color: var(--ahp-i-mut); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 10px; }
.ahp-legal p { margin: 0 0 6px !important; }
.ahp-legal p:last-child { margin-bottom: 0 !important; }

/* --- страница «Доставка»: таблица плагина dp -> карточки способов --- */
.ahp-info .dp-page__group-header { display: none !important; }
.ahp-info .dp-page__group { border: 0 !important; }
.ahp-info .dp-page__row.dp-page__service {
    display: grid !important;
    grid-template-columns: 1fr 170px 120px;
    align-items: center;
    gap: 16px;
    background: var(--ahp-i-gray);
    border: 0 !important;
    border-radius: 18px;
    padding: 16px 20px !important;
    margin: 0 0 10px !important;
}
.ahp-info .dp-page__service-caption { padding: 0 !important; }
.ahp-info .dp-page__service-caption-inner { display: flex; align-items: flex-start; gap: 14px; }
.ahp-info .dp-page__service-caption-icon {
    width: 44px; height: 44px;
    /* аудит 14.08.2026: было `background: #fff` — шорткат сбрасывал background-size в auto,
       и картинка показывалась в натуральную величину от левого верхнего угла. Логотипы служб
       примерно 44 px и смотрелись нормально, а широкая картинка установочного центра
       (200×120) выглядела пустым белым квадратом. */
    background-color: #fff;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.ahp-info .dp-page__service-caption-icon img { width: auto !important; height: auto !important; max-width: 34px; max-height: 34px; object-fit: contain; }
.ahp-info .dp-page__service-caption-name { font-size: 15.5px; font-weight: 600; margin-bottom: 3px; }
.ahp-info .dp-page__service-caption-description { font-size: 13px; color: var(--ahp-i-mut); line-height: 1.45; }
.ahp-info .dp-page__service-caption-view-on-map-link { font-size: 13px; color: var(--ahp-i-blue) !important; }
.ahp-info .dp-page__col { padding: 0 !important; border: 0 !important; width: auto !important; min-width: 0; max-width: none !important; }
.ahp-info .dp-page__service-caption-inner { width: 100%; }
.ahp-info .dp-page__service-caption-col:last-child { flex: 1 1 auto; min-width: 0; }
.ahp-info .dp-page__service-estimated-date::before,
.ahp-info .dp-page__service-cost::before {
    display: block;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--ahp-i-mut);
    margin-bottom: 3px;
}
.ahp-info .dp-page__service-estimated-date::before { content: 'Срок'; }
.ahp-info .dp-page__service-cost::before { content: 'Стоимость'; }
.ahp-info .dp-page__service-estimated-date { font-size: 14px; }
.ahp-info .dp-page__service-cost { font-size: 16px; font-weight: 700; }
.ahp-info .dp-page__service-payment { display: none; }
.ahp-info .dp-city-select-link { font-size: 15px; margin-bottom: 18px; }
@media (max-width: 760px) {
    .ahp-info .dp-page__row.dp-page__service { grid-template-columns: 1fr 1fr; }
    .ahp-info .dp-page__service-caption { grid-column: 1 / -1; }
}

/* CTA внизу информационных страниц */
.ahp-info__cta {
    max-width: 900px;
    margin: 28px auto 0;
    background: #111114;
    border-radius: 24px;
    padding: 26px 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: #fff;
}
.ahp-info__cta-title { font-size: 21px; font-weight: 700; letter-spacing: -.3px; }
.ahp-info__cta-sub { font-size: 14.5px; color: rgba(255,255,255,.65); margin-top: 4px; }
.ahp-info__cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ahp-info__cta-btn {
    background: rgba(255,255,255,.12);
    color: #fff !important;
    border-radius: 999px;
    padding: 12px 22px;
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background .2s ease;
}
.ahp-info__cta-btn:hover { background: rgba(255,255,255,.22); }
.ahp-info__cta-btn_dark { background: #fff; color: #111114 !important; }
.ahp-info__cta-btn_dark:hover { background: rgba(255,255,255,.85); }

@media (max-width: 760px) {
    .ahp-info .content-decorator > p:first-child { font-size: 16.5px; }
    .ahp-sec { padding: 20px 18px; border-radius: 18px; }
    .ahp-contacts { grid-template-columns: 1fr; }
    .ahp-info__cta { padding: 22px 20px; border-radius: 20px; }
    /* чипы разделов НЕ прокручиваются вбок: покупатель должен видеть сразу все
       страницы и понимать, на какой находится (правка 14.08.2026) */
    .ahp-info__nav { flex-wrap: wrap; overflow-x: visible; gap: 7px; }
    .ahp-info__nav-link { padding: 8px 13px; font-size: 13.5px; }
}
@media (max-width: 400px) {
    .ahp-info__nav-link { padding: 7px 11px; font-size: 13px; }
}

/* ---- галерея документов (/sertifikaty/) ---- */
.ahp-docs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 6px 0 10px;
}
.ahp-docs__item {
    display: block;
    background: var(--ahp-i-gray);
    border: 1px solid var(--ahp-i-line);
    border-radius: 18px;
    padding: 14px;
    overflow: hidden;
    transition: transform .15s ease, box-shadow .2s ease;
}
.ahp-docs__item:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.10); }
.ahp-docs__item img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    background: #fff;
}

/* ---- персональный промокод (/personalnyy-kupon/) ---- */
.ahp-coupon {
    background: #111114;
    color: #fff;
    border-radius: 22px;
    padding: 28px 30px;
    margin: 4px 0 22px;
}
.ahp-coupon__label { font-size: 13.5px; color: #a9a9b2; margin-bottom: 12px; }
.ahp-coupon__row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ahp-coupon__code {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 10px 20px;
    border: 2px dashed rgba(255,255,255,.35);
    border-radius: 14px;
}
.ahp-coupon__copy {
    height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #111114;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease;
}
.ahp-coupon__copy:hover { background: #ececef; }
.ahp-coupon__note { margin-top: 14px; font-size: 14.5px; color: #c9c9d1; line-height: 1.45; }
.ahp-coupon-terms {
    list-style: none;
    margin: 0 0 8px;
    padding: 0;
    display: grid;
    gap: 8px;
}
.ahp-coupon-terms li {
    background: var(--ahp-i-gray);
    border-radius: 14px;
    padding: 12px 16px;
    font-size: 14.5px;
    color: #3a3a3e;
}

@media (max-width: 560px) {
    .ahp-docs { grid-template-columns: 1fr; }
    .ahp-coupon { padding: 22px 18px; border-radius: 18px; }
    .ahp-coupon__code { font-size: 26px; padding: 8px 16px; }
    .ahp-coupon__copy { flex: 1 1 auto; }
}

/* ---- анкета оптового клиента (/opt/, форма приложения «Лендинги») ---- */
.ahp-info .capture-button,
.ahp-info input[type="submit"].button,
.ahp-info .oc-light-form__submit-button,
.ahp-info .oc-light-form-button {
    background: #111114 !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 999px !important;
    height: 46px;
    padding: 0 26px !important;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease;
}
.ahp-info .capture-button:hover,
.ahp-info input[type="submit"].button:hover,
.ahp-info .oc-light-form__submit-button:hover,
.ahp-info .oc-light-form-button:hover { background: #2a2a30 !important; }

/* ---- страница с готовым лендингом (/yandeks-split/): капсулы и CTA берём,
       а контент не сужаем до 900px — вёрстка Яндекса рассчитана на всю ширину ---- */
.ahp-info_wide .block__content { max-width: none; }
.ahp-info_wide .ahp-info__nav { max-width: 1100px; }
.ahp-info_wide .ahp-info__cta { max-width: 1100px; margin-left: auto; margin-right: auto; }
/* ==================== /APPLE INFO ==================== */


/* аудит 14.08.2026: описания способов доставки на /delivery/ приходят серым #828282 из
   frontend.page.css плагина dp — контраст 3.52 на подложке #f5f5f7 при норме 4.5.
   Перекрываем в теме, а не в плагине: правка в плагине слетит при его обновлении. */
.ahp-info .dp-page__col-description,
.dp-container__page .dp-page__col-description {
    color: #6e6e73;
}

/* аудит 14.08.2026: вписываем картинку целиком независимо от того, обёрнут ли блок доставки
   нашим классом .ahp-info (на части страниц JS-обёртка не отрабатывает). */
.dp-page__service-caption-icon {
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}
