/* =============================================
   _landing-template / content.css
   Стили контентных блоков шаблона лендинга.
   Префикс tpl- — чтобы не конфликтовать с другими страницами.

   Блоки howwork, advantages, faq, compare берутся
   из подключённых main.css / upscale.css / cloning_table.css.
   Здесь — только стили для НОВЫХ блоков шаблона.
   ============================================= */


/* === Отступы между секциями === */
.display__item > section {
    width: 100%;
    float: left;
    margin-top: 20px;
    box-sizing: border-box;
}
.display__item > section:first-of-type {
    margin-top: 0;
}


/* === Текстовые акценты (из voice.php content.css) === */
.text-accent {
    color: #3fdede;
    font-family: 'Avenir Next Cyr Demi';
}
.text-highlight {
    color: #fff;
    font-family: 'Avenir Next Cyr Demi';
}
.display__item__advantages-description.intro {
    margin: 12px 0 0 0;
}
.display__item__advantages-description a {
    color: #4e9eff;
    text-decoration: underline;
    text-decoration-color: rgba(78, 158, 255, 0.35);
    text-underline-offset: 3px;
}
.display__item__advantages-description a:hover {
    text-decoration-color: rgba(78, 158, 255, 0.75);
}


/* === Adv-card (карточки-преимущества из voice.php) === */
.adv-card {
    background: linear-gradient(145deg, #2E3640 0%, #262D36 100%);
    border: 1px solid rgba(57, 66, 75, 0.6);
    border-radius: 16px;
    padding: 24px 20px 20px;
    box-sizing: border-box;
    position: relative;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.adv-card:hover {
    border-color: rgba(78, 158, 255, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(78, 158, 255, 0.1);
}
.adv-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.adv-card__icon::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
    pointer-events: none;
}
.adv-card__icon-img {
    width: 28px;
    height: 28px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

/* Цветные маркеры списков в adv-card */
.adv-card ul > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--adv-accent, #4e9eff);
    border-bottom: 2px solid var(--adv-accent, #4e9eff);
    transform: rotate(-45deg);
    opacity: 0.7;
}
.adv-card:nth-child(1) { --adv-accent: #4e9eff; }
.adv-card:nth-child(2) { --adv-accent: #ffa64e; }
.adv-card:nth-child(3) { --adv-accent: #4effa6; }
.adv-card:nth-child(4) { --adv-accent: #c34eff; }
.adv-card:nth-child(5) { --adv-accent: #4ec3ff; }
.adv-card:nth-child(6) { --adv-accent: #ff4e6a; }

/* Трёхколоночная сетка adv-card */
.display__item__advantages__row--three .display__item__advantages__item {
    width: 31%;
    margin: 30px 0 0 0;
}


/* === tpl-stats: счётчики / статистика === */
.tpl-stats {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 0;
}
.tpl-stats__item {
    flex: 1;
    text-align: center;
    background: linear-gradient(135deg, #2E3640 0%, #252C35 100%);
    border: 1px solid #39424B;
    border-radius: 20px;
    padding: 30px 15px;
    transition: border-color 0.3s, transform 0.3s;
}
.tpl-stats__item:hover {
    border-color: rgba(78, 158, 255, 0.3);
    transform: translateY(-3px);
}
.tpl-stats__number {
    display: block;
    font-size: 36px;
    font-family: 'Avenir Next Cyr Demi';
    color: #4e9eff;
    line-height: 1.2;
}
.tpl-stats__label {
    display: block;
    font-size: 16px;
    color: #c9d3e0;
    margin-top: 8px;
}


/* === tpl-callout: CTA / промо-блок === */
.tpl-callout {
    width: 100%;
    float: left;
    background: linear-gradient(135deg, #1a2940 0%, #1e3350 50%, #1a2940 100%);
    border: 1px solid #2b5278;
    border-radius: 20px;
    padding: 30px 35px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}
.tpl-callout::before {
    content: "";
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(78,158,255,.15) 0%, transparent 70%);
    border-radius: 50%;
}
.tpl-callout__header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}
.tpl-callout__header .adv-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    flex-shrink: 0;
}
.tpl-callout__header .adv-card__icon::after {
    border-radius: 12px;
}
.tpl-callout h3 {
    font-size: 18px;
    font-family: 'Avenir Next Cyr Demi';
    color: #fff;
    margin: 0;
}
.tpl-callout p {
    font-size: 16px;
    color: #c9d3e0;
    line-height: 24px;
    margin: 0 0 18px;
}
.tpl-callout__links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.tpl-callout__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Avenir Next Cyr Medium';
    text-decoration: none;
    transition: background .2s, border-color .2s;
}
.tpl-callout__btn--primary {
    background: #4e9eff;
    color: #fff;
}
.tpl-callout__btn--primary:hover {
    background: #3a8cef;
}
.tpl-callout__btn--outline {
    background: transparent;
    border: 1px solid rgba(78,158,255,0.4);
    color: #4e9eff;
}
.tpl-callout__btn--outline:hover {
    background: rgba(78,158,255,.1);
    border-color: rgba(78,158,255,0.7);
}


/* === tpl-info-block: блок с иллюстрацией и колонками === */
.tpl-info-block {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    background: #21272E;
    border-radius: 20px;
    padding: 30px;
    box-sizing: border-box;
}
.tpl-info-block * {
    float: none;
}
.tpl-info-block__visual {
    flex-shrink: 0;
    width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tpl-info-block__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
}
.tpl-info-block__content {
    flex: 1;
    min-width: 0;
}
.tpl-info-block__subtitle {
    color: #9ba3ae;
    font-size: 15px;
    line-height: 22px;
    margin: 4px 0 18px;
}
.tpl-info-block__columns {
    display: flex;
    gap: 24px;
}
.tpl-info-block__col {
    flex: 1;
    min-width: 0;
}
.tpl-info-block__col-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.tpl-info-block__col-header .adv-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
}
.tpl-info-block__col-header .adv-card__icon::after {
    border-radius: 12px;
}
.tpl-info-block__col-label {
    font-size: 17px;
    font-family: 'Avenir Next Cyr Demi';
    color: #fff;
}
.tpl-info-block__list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.tpl-info-block__list > li {
    color: #c9d3e0;
    font-size: 15px;
    line-height: 21px;
    padding: 5px 0 5px 18px;
    position: relative;
}
.tpl-info-block__list > li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 6px;
    height: 6px;
    border: 2px solid transparent;
    border-bottom-color: #4BA0FF;
    border-right-color: #4BA0FF;
    transform: rotate(-45deg);
    box-sizing: border-box;
}
.tpl-info-block__cta {
    display: inline-block;
    margin-top: 14px;
    padding: 7px 16px;
    font-size: 14px;
    font-family: 'Avenir Next Cyr Demi';
    color: #4BA0FF;
    background: rgba(75,160,255,0.08);
    border: 1px solid rgba(75,160,255,0.25);
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.25s, border-color 0.25s;
}
.tpl-info-block__cta:hover {
    background: rgba(75,160,255,0.16);
    border-color: rgba(75,160,255,0.5);
}


/* === tpl-media-row: картинка + текст === */
.tpl-media-row {
    display: flex;
    align-items: center;
    gap: 30px;
    background: #21272E;
    border-radius: 20px;
    padding: 30px;
    box-sizing: border-box;
}
.tpl-media-row--reverse {
    flex-direction: row-reverse;
}
.tpl-media-row__image {
    flex: 0 0 45%;
    max-width: 45%;
    border-radius: 14px;
    overflow: hidden;
}
.tpl-media-row__image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
}
.tpl-media-row__text {
    flex: 1;
    min-width: 0;
}
.tpl-media-row__text h3 {
    font-size: 20px;
    font-family: 'Avenir Next Cyr Demi';
    color: #fff;
    margin: 0 0 12px;
}
.tpl-media-row__text p {
    font-size: 16px;
    color: #c9d3e0;
    line-height: 24px;
    margin: 0 0 16px;
}


/* === tpl-audio-compare: сравнение аудио === */
.tpl-audio-compare {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}
.tpl-audio-compare__item {
    flex: 1 1 calc(50% - 10px);
    min-width: 280px;
    background: #21272E;
    border: 1px solid #39424B;
    border-radius: 16px;
    padding: 20px;
    box-sizing: border-box;
}
.tpl-audio-compare__header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}
.tpl-audio-compare__header img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}
.tpl-audio-compare__name {
    font-size: 16px;
    font-family: 'Avenir Next Cyr Medium';
    color: #fff;
    margin: 0;
}
.tpl-audio-compare__meta {
    font-size: 14px;
    color: #8e99a5;
}
.tpl-audio-compare__players {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.tpl-audio-player {
    display: flex;
    align-items: center;
    gap: 12px;
}
.tpl-audio-player__label {
    flex-shrink: 0;
    width: 80px;
    font-size: 13px;
    font-family: 'Avenir Next Cyr Medium';
    padding: 4px 0;
    text-align: center;
    border-radius: 6px;
}
.tpl-audio-player__label--original {
    color: #4e9eff;
    background: rgba(78, 158, 255, 0.1);
    border: 1px solid rgba(78, 158, 255, 0.25);
}
.tpl-audio-player__label--result {
    color: #ed4b7c;
    background: rgba(237, 75, 124, 0.1);
    border: 1px solid rgba(237, 75, 124, 0.25);
}
.tpl-audio-player audio {
    flex: 1;
    min-width: 0;
    height: 36px;
    border-radius: 8px;
}


/* === tpl-video-wrap: видео-вставка === */
.tpl-video-wrap {
    width: 100%;
    margin-top: 20px;
    background: #1a1f26;
    border: 1px solid #39424B;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    aspect-ratio: 16 / 9;
}
.tpl-video-wrap iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}
.tpl-video-wrap__placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    color: #4e9eff;
    font-family: 'Avenir Next Cyr Medium';
    pointer-events: none;
}


/* === tpl-gallery: сетка изображений === */
.tpl-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
}
.tpl-gallery__item {
    flex: 1 1 calc(33.333% - 12px);
    min-width: 200px;
    background: #21272E;
    border: 1px solid #39424B;
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.3s, transform 0.3s;
}
.tpl-gallery__item:hover {
    border-color: rgba(78, 158, 255, 0.35);
    transform: translateY(-3px);
}
.tpl-gallery__item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}
.tpl-gallery__item p {
    padding: 12px 14px;
    font-size: 14px;
    color: #c9d3e0;
    margin: 0;
}


/* === tpl-related: перелинковка === */
.tpl-related-section {
    margin-top: 20px;
}
.tpl-related-grid {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 20px;
}
.tpl-related-card {
    flex: 1 1 calc(50% - 9px);
    min-width: 240px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 20px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}
.tpl-related-card:hover {
    border-color: rgba(78, 158, 255, 0.25);
}
.tpl-related-link,
.tpl-neighbor-link {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.45);
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}
.tpl-related-link:hover,
.tpl-neighbor-link:hover {
    color: #4e9eff;
    text-decoration-color: rgba(115, 181, 255, 0.75);
}
.tpl-neighbor-list {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-top: 16px;
}
.tpl-neighbor-item {
    color: #c9d3e0;
    font-size: 14px;
    line-height: 1.5;
}


/* =============================================
   МОБИЛЬНАЯ АДАПТАЦИЯ
   ============================================= */
@media (max-width: 768px) {

    /* Трёхколоночная сетка → одна колонка */
    .display__item__advantages__row--three .display__item__advantages__item {
        width: 100%;
    }

    /* Счётчики → вертикально */
    .tpl-stats {
        flex-direction: column;
    }
    .tpl-stats__number {
        font-size: 28px;
    }

    /* CTA блок */
    .tpl-callout {
        padding: 24px 20px;
    }
    .tpl-callout__links {
        flex-direction: column;
    }
    .tpl-callout__btn {
        justify-content: center;
    }

    /* Инфо-блок */
    .tpl-info-block {
        flex-direction: column;
        padding: 24px 18px;
    }
    .tpl-info-block__visual {
        width: 80px;
        margin: 0 auto 10px;
    }
    .tpl-info-block__columns {
        flex-direction: column;
        gap: 18px;
    }

    /* Медиа-ряд (картинка + текст) */
    .tpl-media-row,
    .tpl-media-row--reverse {
        flex-direction: column;
        padding: 20px;
    }
    .tpl-media-row__image {
        flex: none;
        max-width: 100%;
    }

    /* Аудио-сравнение */
    .tpl-audio-compare__item {
        flex-basis: 100%;
    }
    .tpl-audio-player {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .tpl-audio-player audio {
        width: 100%;
    }

    /* Галерея */
    .tpl-gallery__item {
        flex-basis: 100%;
    }
    .tpl-gallery__item img {
        height: 150px;
    }

    /* Перелинковка */
    .tpl-related-card {
        flex-basis: 100%;
    }
}

@media (max-width: 480px) {
    .tpl-media-row {
        padding: 16px;
    }
    .tpl-callout {
        padding: 20px 16px;
    }
    .tpl-info-block {
        padding: 20px 14px;
    }
}
