/* ============================================================
   Страница «О компании» — редизайн в стилистике каталога
   ============================================================ */

.ab-page {
    --ab-blue: #225e99;
    --ab-blue-dark: #1b4f82;
    --ab-blue-light: #3796ca;
    --ab-ink: #27343c;
    --ab-muted: #5b6b78;
    --ab-border: #e0e7ee;
    --ab-soft: #f4f8fc;
    --ab-radius: 16px;
    --ab-radius-lg: 24px;
    --ab-shadow: 0 2px 12px rgba(16, 42, 67, .06);
    --ab-shadow-lg: 0 18px 50px rgba(16, 42, 67, .09);
    color: var(--ab-ink);
    padding-bottom: 96px;
}

.ab-page > section {
    margin-bottom: 96px;
}

.ab-page > section:last-child {
    margin-bottom: 0;
}

.ab-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* ---------- Общие элементы ---------- */

.ab-overline {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 10px;
    font: 600 12px/1 Inter;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ab-blue);
}

.ab-overline:before {
    content: "";
    width: 26px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.ab-overline_index {
    font-size: 13px;
    letter-spacing: .08em;
    color: var(--ab-muted);
}

.ab-overline_index:before {
    background: var(--ab-blue);
    opacity: .5;
}

.ab-title {
    margin: 14px 0 0;
    font: 700 40px/1.12 SFProDisplay;
    letter-spacing: -.02em;
    color: var(--ab-ink);
    text-wrap: balance;
}

.ab-title:first-child {
    margin-top: 0;
}

/* Кнопки */
.ab-btn {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 10px;
    height: 52px;
    padding: 0 26px;
    border: 1px solid transparent;
    border-radius: 10px;
    font: 600 15px/1 Inter;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    -webkit-transition: background .2s linear, color .2s linear, border-color .2s linear, -webkit-box-shadow .2s linear;
    transition: background .2s linear, color .2s linear, border-color .2s linear, box-shadow .2s linear;
}

.ab-btn svg {
    -webkit-box-flex: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    -webkit-transition: -webkit-transform .2s linear;
    transition: transform .2s linear;
}

.ab-btn:hover svg {
    -webkit-transform: translateX(3px);
    transform: translateX(3px);
}

.ab-btn_primary {
    background: var(--ab-blue);
    border-color: var(--ab-blue);
    color: #fff;
    -webkit-box-shadow: 0 8px 24px rgba(34, 94, 153, .22);
    box-shadow: 0 8px 24px rgba(34, 94, 153, .22);
}

.ab-btn_primary:hover {
    background: var(--ab-blue-dark);
    border-color: var(--ab-blue-dark);
    color: #fff;
}

/* Текст из ACF */
.ab-page .content {
    font: 400 16px/1.7 Inter;
    color: var(--ab-muted);
}

.ab-page .content > p {
    margin: 0 0 14px;
}

.ab-page .content > p:last-child {
    margin-bottom: 0;
}

.ab-page .content b,
.ab-page .content strong {
    font-weight: 600;
    color: var(--ab-blue);
}

.ab-page .content ul,
.ab-page .content ol {
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.ab-page .content li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 22px;
}

.ab-page .content li:last-child {
    margin-bottom: 0;
}

.ab-page .content ul > li:before {
    content: "";
    position: absolute;
    top: 9px;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ab-blue);
}

/* ============================================================
   ЗАГОЛОВОК
   ============================================================ */

.ab-head {
    padding-top: 104px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--ab-border);
}

.ab-page > .ab-head {
    margin-bottom: 40px;
}

.ab-head__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
    gap: 48px;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
}

.ab-head__titles {
    min-width: 0;
}

.ab-head__title {
    margin: 14px 0 0;
    font: 700 40px/1.12 SFProDisplay;
    letter-spacing: -.02em;
    color: var(--ab-ink);
}

.ab-head__lead {
    padding-top: 20px;
}

.ab-head__lead p {
    margin: 0;
    font: 400 16px/1.65 Inter;
    color: var(--ab-muted);
}

/* ============================================================
   БАННЕР
   ============================================================ */

.ab-hero {
    padding-top: 0;
}

.ab-page > .ab-hero {
    margin-bottom: 40px;
}

.ab-hero__banner {
    overflow: hidden;
    border-radius: 20px;
    background: #0b3e66;
}

.ab-hero__banner img {
    display: block;
    width: 100%;
    max-height: 360px;
    aspect-ratio: 2048 / 958;
    -o-object-fit: cover;
    object-fit: cover;
}

/* ============================================================
   БЛОКИ
   ============================================================ */

.ab-block {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 56px;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.ab-block[id] {
    scroll-margin-top: 104px;
}

.ab-block + .ab-block {
    margin-top: 88px;
}

.ab-block_reverse .ab-block__media {
    order: 2;
}

.ab-block__media {
    min-width: 0;
}

.ab-block__slider {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: var(--ab-soft);
    -webkit-box-shadow: var(--ab-shadow-lg);
    box-shadow: var(--ab-shadow-lg);
}

.ab-block__slide {
    position: relative;
}

.ab-block__slide img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    -o-object-fit: cover;
    object-fit: cover;
}

.ab-block__dots {
    position: absolute;
    right: 0;
    bottom: 18px;
    left: 0;
    z-index: 2;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 8px;
}

.ab-block__dots .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0 !important;
    border-radius: 50%;
    background: rgba(255, 255, 255, .65);
    opacity: 1;
    -webkit-transition: width .25s ease, background .25s ease;
    transition: width .25s ease, background .25s ease;
}

.ab-block__dots .swiper-pagination-bullet-active {
    width: 24px;
    border-radius: 999px;
    background: #fff;
}

.ab-block__body {
    min-width: 0;
}

.ab-block__title {
    margin: 14px 0 0;
    font: 700 32px/1.18 SFProDisplay;
    letter-spacing: -.02em;
    color: var(--ab-ink);
    text-wrap: balance;
}

.ab-block__text {
    margin-top: 18px;
}

/* ============================================================
   ПРЕЗЕНТАЦИЯ
   ============================================================ */

.ab-presentation__card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 40px 44px;
    border: 1px solid var(--ab-border);
    border-radius: var(--ab-radius-lg);
    background: #fff;
    -webkit-box-shadow: var(--ab-shadow);
    box-shadow: var(--ab-shadow);
}

.ab-presentation__info {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    gap: 24px;
}

.ab-presentation__badge {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, #225e99 0%, #3796ca 100%);
    color: #fff;
    font: 700 16px/1 Inter;
    letter-spacing: .04em;
    -webkit-box-shadow: 0 10px 22px rgba(34, 94, 153, .24);
    box-shadow: 0 10px 22px rgba(34, 94, 153, .24);
}

.ab-presentation__title {
    margin: 0 0 8px;
    font: 700 26px/1.2 SFProDisplay;
    letter-spacing: -.01em;
    color: var(--ab-ink);
}

.ab-presentation__text {
    font: 400 15px/1.65 Inter;
    color: var(--ab-muted);
}

.ab-presentation__text p {
    margin: 0;
}

/* ============================================================
   ВОПРОС-ОТВЕТ
   ============================================================ */

.ab-faq__grid {
    display: grid;
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    gap: 56px;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: start;
}

.ab-faq__lead {
    max-width: 300px;
    margin: 16px 0 0;
    font: 400 15px/1.65 Inter;
    color: var(--ab-muted);
}

.ab-faq__list {
    display: grid;
    gap: 10px;
}

.ab-faq__item {
    padding: 0 22px;
    border: 1px solid var(--ab-border);
    border-radius: 14px;
    background: #fff;
    -webkit-box-shadow: var(--ab-shadow);
    box-shadow: var(--ab-shadow);
    -webkit-transition: border-color .2s linear, box-shadow .2s linear;
    transition: border-color .2s linear, box-shadow .2s linear;
}

.ab-faq__item[open] {
    border-color: #c8dced;
    -webkit-box-shadow: 0 12px 32px rgba(16, 42, 67, .08);
    box-shadow: 0 12px 32px rgba(16, 42, 67, .08);
}

.ab-faq__question {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 0;
    font: 600 16px/1.45 SFProDisplay;
    color: var(--ab-ink);
    cursor: pointer;
    list-style: none;
}

.ab-faq__question::-webkit-details-marker {
    display: none;
}

.ab-faq__icon {
    position: relative;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--ab-soft);
    -webkit-transition: background .2s linear;
    transition: background .2s linear;
}

.ab-faq__icon:before,
.ab-faq__icon:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 2px;
    background: var(--ab-blue);
    -webkit-transition: opacity .2s linear, -webkit-transform .2s linear;
    transition: opacity .2s linear, transform .2s linear;
}

.ab-faq__icon:before {
    width: 12px;
    height: 2px;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.ab-faq__icon:after {
    width: 2px;
    height: 12px;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.ab-faq__item[open] .ab-faq__icon {
    background: var(--ab-blue);
}

.ab-faq__item[open] .ab-faq__icon:before,
.ab-faq__item[open] .ab-faq__icon:after {
    background: #fff;
}

.ab-faq__item[open] .ab-faq__icon:after {
    opacity: 0;
    -webkit-transform: translate(-50%, -50%) rotate(90deg);
    transform: translate(-50%, -50%) rotate(90deg);
}

.ab-faq__answer {
    padding: 0 0 22px;
    font-size: 15px;
    line-height: 1.7;
}

/* ============================================================
   БЛОК СВЯЗИ
   ============================================================ */

.ab-cta__card {
    padding: 56px 48px;
    border: 1px solid #e4eef7;
    border-radius: var(--ab-radius-lg);
    background: linear-gradient(180deg, #f8fbfe 0%, #eef6fc 100%);
    text-align: center;
}

.ab-cta__card .ab-overline {
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.ab-cta__title {
    max-width: 720px;
    margin: 16px auto 0;
    font: 700 34px/1.16 SFProDisplay;
    letter-spacing: -.02em;
    color: var(--ab-ink);
    text-wrap: balance;
}

.ab-cta__text {
    max-width: 560px;
    margin: 14px auto 0;
    font: 400 16px/1.65 Inter;
    color: var(--ab-muted);
}

.ab-cta__actions {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 24px;
    margin-top: 30px;
}

.ab-cta__phone {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 10px;
    font: 600 20px/1 Inter;
    color: var(--ab-ink);
    text-decoration: none;
    -webkit-transition: color .2s linear;
    transition: color .2s linear;
}

.ab-cta__phone svg {
    color: var(--ab-blue);
}

.ab-cta__phone:hover {
    color: var(--ab-blue);
}

/* ============================================================
   Адаптив
   ============================================================ */

@media (max-width: 1200px) {
    .ab-head__grid {
        gap: 36px;
    }

    .ab-block {
        gap: 40px;
    }

    .ab-block__title {
        font-size: 28px;
    }

    .ab-faq__grid {
        grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
        gap: 40px;
    }

    .ab-cta__title {
        font-size: 30px;
    }
}

@media (max-width: 1024px) {
    .ab-page {
        padding-bottom: 80px;
    }

    .ab-page > section {
        margin-bottom: 72px;
    }

    .ab-hero__banner img {
        aspect-ratio: 16 / 9;
        max-height: 300px;
    }

    .ab-head {
        padding-top: 92px;
        padding-bottom: 32px;
    }

    .ab-page > .ab-head {
        margin-bottom: 32px;
    }

    .ab-head__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .ab-head__lead {
        padding-top: 0;
    }

    .ab-head__lead p {
        max-width: 640px;
    }

    .ab-block {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .ab-block_reverse .ab-block__media {
        order: 0;
    }

    .ab-block + .ab-block {
        margin-top: 64px;
    }

    .ab-block__slide img {
        aspect-ratio: 16 / 10;
        max-height: 430px;
    }

    .ab-block__title {
        font-size: 30px;
    }

    .ab-presentation__card {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        padding: 32px;
    }

    .ab-presentation__actions .ab-btn {
        width: 100%;
    }

    .ab-faq__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .ab-faq__lead {
        max-width: 520px;
    }

    .ab-cta__card {
        padding: 40px 32px;
    }
}

@media (max-width: 767px) {
    .ab-page {
        padding-bottom: 64px;
    }

    .ab-page > section {
        margin-bottom: 56px;
    }

    .ab-head {
        padding-top: 88px;
        padding-bottom: 26px;
    }

    .ab-page > .ab-head {
        margin-bottom: 24px;
    }

    .ab-head__title {
        font-size: 30px;
    }

    .ab-head__lead p {
        font-size: 15px;
    }

    .ab-page > .ab-hero {
        margin-bottom: 28px;
    }

    .ab-hero__banner {
        border-radius: 18px;
    }

    .ab-hero__banner img {
        aspect-ratio: 16 / 9;
        max-height: 210px;
    }

    .ab-title {
        font-size: 28px;
    }

    .ab-block__title {
        font-size: 24px;
    }

    .ab-block__slide img {
        aspect-ratio: 4 / 3;
        max-height: 320px;
    }

    .ab-block__slider {
        border-radius: 16px;
    }

    .ab-presentation__card {
        padding: 24px 20px;
        border-radius: 20px;
    }

    .ab-presentation__info {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        gap: 16px;
    }

    .ab-presentation__badge {
        width: 52px;
        height: 52px;
        border-radius: 13px;
        font-size: 14px;
    }

    .ab-presentation__title {
        font-size: 22px;
    }

    .ab-faq__item {
        padding: 0 16px;
        border-radius: 12px;
    }

    .ab-faq__question {
        padding: 16px 0;
        font-size: 15px;
    }

    .ab-faq__icon {
        width: 28px;
        height: 28px;
    }

    .ab-faq__answer {
        padding-bottom: 18px;
        font-size: 14px;
    }

    .ab-cta__card {
        padding: 32px 20px;
        border-radius: 20px;
    }

    .ab-cta__title {
        font-size: 24px;
    }

    .ab-cta__text {
        font-size: 15px;
    }

    .ab-cta__actions {
        gap: 18px;
    }

    .ab-cta__actions .ab-btn {
        width: 100%;
    }

    .ab-cta__phone {
        font-size: 18px;
    }
}
