:root {
    --blue: #197eba;
    --dark: #102f48;
    --muted: #667b8b;
    --ice: #edf7fc
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px
}

body {
    margin: 0;
    color: var(--dark);
    font-family: Arial, Helvetica, sans-serif;
    background: #fff
}

a {
    color: inherit;
    text-decoration: none
}

button {
    font: inherit;
    cursor: pointer
}

button,
a {
    touch-action: manipulation
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 3px solid #eaa33d;
    outline-offset: 5px
}

.wrap {
    max-width: 1180px;
    margin: auto;
    padding: 0 32px
}

header {
    border-bottom: 1px solid #e8f0f5;
    background: #fff
}

.nav {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px
}

.logo {
    width: 128px;
    height: auto;
    display: block
}

.links {
    display: flex;
    gap: 28px;
    font-size: 14px;
    font-family: 'Onest', Arial, sans-serif;
    font-weight: 500;
}

.navright {
    display: flex;
    align-items: center;
    gap: 20px
}

.lang {
    border: 0;
    background: none;
    color: var(--muted);
    padding: 8px
}

.lang.active {
    color: var(--blue);
    font-weight: 700
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    border-radius: 100px;
    padding: 17px 25px;
    background: var(--blue);
    color: white;
    font-family: 'Onest', Arial, sans-serif;
    font-weight: 600;
    font-size: 15px;
    transition: background .2s, transform .2s
}

.btn:hover {
    background: #126394;
    transform: translateY(-2px)
}

.btn.light {
    background: #fff;
    color: var(--blue)
}

.btn.small {
    padding: 13px 20px
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 11px;
    font-family: 'Onest', Arial, sans-serif;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 25px;
}

.hero {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: 36px;
    padding: 65px 0 70px
}

h1 {
    font-size: 36px;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin: 0 0 27px;
}

h1 em {
    color: var(--blue)
}

.lead {
    font-family: 'Onest', Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.75;
    color: var(--muted);
    max-width: 450px;
}

.hero .btn {
    margin-top: 15px
}

.micro {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.6
}

.hero-photo {
    position: relative;
    height: 530px;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    isolation: isolate;
}

.photo-tag {
    position: absolute;
    bottom: 24px;
    left: 24px;
    padding: 16px 22px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 6px 24px rgba(16, 47, 72, 0.06);
}

.photo-tag strong {
    display: block;
    font-family: 'Onest', Arial, sans-serif;
    font-size: 27px;
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.2;
}

.photo-tag span {
    display: block;
    margin-top: 5px;
    font-family: 'Onest', Arial, sans-serif;
    font-size: 11px;
    color: var(--muted);
}

.facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid #dceaf3;
    border-bottom: 1px solid #dceaf3;
    padding: 27px 0;
    gap: 25px
}

.fact {
    display: flex;
    gap: 18px;
    align-items: center
}

.fact b {
    font-size: 25px;
    color: var(--blue);
    font-weight: 500
}

.fact span {
    font-size: 13px;
    line-height: 1.55;
    color: var(--muted)
}

section {
    padding: 85px 0
}

.sectiontop {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
    margin-bottom: 35px
}

h2 {
    font-family: 'PT Serif', Georgia, serif;
    font-size: 32px;
    font-weight: 400;
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin: 0;
}

h3 {
    font-family: 'Onest', Arial, sans-serif;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.025em;
    margin: 18px 0;
}

.sub {
    color: var(--muted);
    line-height: 1.7
}

.switch {
    background: var(--ice);
    padding: 5px;
    border-radius: 50px;
    display: flex;
    flex-shrink: 0
}

.switch button {
    border: 0;
    background: none;
    padding: 12px 20px;
    border-radius: 50px;
    color: var(--muted)
}

.switch .selected {
    background: white;
    color: var(--blue);
    box-shadow: 0 3px 14px #103f4e0d
}

.prices {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px
}

.card {
    border: 1px solid #dceaf3;
    padding: 30px;
    border-radius: 22px;
    display: flex;
    flex-direction: column
}

.card.featured {
    background: var(--ice);
    border-color: var(--ice)
}

.label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--blue)
}

.price {
    font-family: 'Onest', Arial, sans-serif;
    font-size: 43px;
    font-weight: 500;
    letter-spacing: -0.045em;
    margin: 15px 0 4px;
}

.price small {
    font-size: 18px;
    letter-spacing: 0
}

.card p {
    font-size: 14px;
    line-height: 1.65;
    color: var(--muted)
}

.card .btn {
    margin-top: auto
}

.card .terms {
    font-size: 12px;
    margin-bottom: 25px;
    min-height: 60px
}

.note {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.7;
    margin-top: 20px
}

.office {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: var(--dark);
    color: white;
    border-radius: 30px;
    padding: 55px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.office .eyebrow {
    color: #8ecff3
}

.office .sub {
    color: #b9d0e0
}

.office ul {
    padding: 0;
    list-style: none
}

.office li {
    padding: 17px 0;
    border-bottom: 1px solid #ffffff24;
    font-size: 16px
}

.office li:before {
    content: '✓';
    color: #8ecff3;
    margin-right: 15px
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px
}

.stepnum {
    color: var(--blue);
    font-size: 13px;
    padding-bottom: 16px;
    border-bottom: 1px solid #dceaf3
}

.steps h3 {
    font-size: 21px
}

.steps p {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.7
}

.faq {
    max-width: 850px;
    margin: auto
}

details {
    border-bottom: 1px solid #dceaf3;
    padding: 22px 0
}

summary {
    font-size: 18px;
    cursor: pointer;
    line-height: 1.5
}

details p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--muted)
}

.cta {
    background: var(--ice);
    text-align: center;
    padding: 65px 25px;
    border-radius: 30px;
    margin-bottom: 65px
}

.cta p {
    color: var(--muted);
    line-height: 1.7
}

.cta .btn {
    margin-top: 10px
}

footer {
    border-top: 1px solid #dceaf3;
    padding: 35px 0
}

.foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    font-size: 13px;
    line-height: 1.8
}

.foot img {
    width: 100px
}

.sticky {
    display: none
}

@media(max-width:850px) {
    .links {
        display: none
    }

    .prices {
        gap: 12px
    }

    .card {
        padding: 22px
    }

    .price {
        font-size: 35px
    }

    .office {
        padding: 35px;
        gap: 30px
    }
}

@media(max-width:620px) {
    .wrap {
        padding: 0 22px
    }

    .nav {
        height: 75px
    }

    .logo {
        width: 105px
    }

    .navright {
        gap: 5px
    }

    .navright>.btn {
        display: none
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 42px 0;
        gap: 30px
    }

    h1 {
    font-size: 36px;
    line-height: 1.13;
    letter-spacing: -0.035em;
    }

    .lead {
        font-size: 16px
    }

    .facts {
        gap: 15px;
        grid-template-columns: 1fr
    }

    .fact b {
        min-width: 95px
    }

    .fact span {
        font-size: 14px
    }

    section {
        padding: 55px 0
    }

    .sectiontop {
        align-items: start;
        flex-direction: column;
        gap: 23px
    }

    .prices,
    .office,
    .steps {
        grid-template-columns: 1fr
    }

    .card {
        padding: 28px
    }

    .card .terms {
        min-height: 0
    }

    .office {
        padding: 28px 22px;
        gap: 20px;
        border-radius: 22px;
    }

    .steps {
        gap: 22px
    }

    .cta {
        padding: 43px 22px;
        margin-bottom: 35px
    }

    .foot {
        flex-wrap: wrap;
        padding-bottom: 85px
    }

    .sticky {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 10;
        background: #ffffffeb;
        backdrop-filter: blur(10px);
        display: flex;
        padding: 12px 22px max(12px, env(safe-area-inset-bottom));
        border-top: 1px solid #dceaf3
    }

    .sticky .btn {
        width: 100%;
        padding: 15px
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    .btn {
        transition: none
    }
}

/* AVIVA — одинаковый размер логотипов */
.foot img {
    width: 128px;
    height: auto;
}

@media (max-width: 620px) {
    .foot img {
        width: 105px;
    }
}

/* ========================================
   AVIVA — TYPOGRAPHY SYSTEM
   ======================================== */

/* Основной текст */
body {
    font-family: 'Onest', Arial, sans-serif;
    font-weight: 400;
}

/* Главные заголовки */
h1 {
    font-family: 'PT Serif', Georgia, serif;
}

/* Выделенная часть заголовка */
h1 em {
    font-family: 'PT Serif', Georgia, serif;
    font-style: italic;
    font-weight: 400;
}

/* Дополнительные заголовки и текст */
.fact b {
    font-family: 'Onest', Arial, sans-serif;
    font-weight: 600;
}

summary {
    font-family: 'Onest', Arial, sans-serif;
    font-weight: 500;
}

/* Адаптация для смартфонов */
@media (max-width: 620px) {
    h3 {
        font-size: 21px;
    }
}

/* AVIVA — корпоративный блок */
.office h2 {
    text-wrap: balance;
}

.office .sub {
    font-size: 15px;
    line-height: 1.8;
    max-width: 470px;
}

/* AVIVA — FAQ */
.faq details {
    border-bottom: 1px solid #dceaf3;
    padding: 0;
}

.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 0;
    list-style: none;
    cursor: pointer;
    font-family: 'Onest', Arial, sans-serif;
    font-size: 17px;
    font-weight: 500;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: '+';
    flex-shrink: 0;
    color: var(--blue);
    font-size: 26px;
    font-weight: 400;
    line-height: 1;
}

.faq details[open] summary::after {
    content: '−';
}

.faq details p {
    margin: 0;
    padding: 0 35px 24px 0;
    line-height: 1.8;
}

@media (max-width: 620px) {
    .faq summary {
        font-size: 16px;
        padding: 20px 0;
    }
}

/* AVIVA — мобильная адаптация корпоративного блока */
@media (max-width: 620px) {
    .office h2 {
        letter-spacing: -0.02em;
    }

    .office .sub {
        font-size: 14px;
        line-height: 1.75;
    }

    .office li {
        font-size: 14px;
        line-height: 1.6;
        padding: 14px 0;
    }

    .office .btn {
        font-size: 13px;
        padding: 14px 20px;
    }
}

@media (max-width: 620px) {
    body {
        padding-bottom: calc(60px + env(safe-area-inset-bottom));
    }

    .sticky {
        box-sizing: border-box;
        min-height: 70px;
    }
}

/* AVIVA — акцент корпоративного заголовка */
.office h2 em {
    display: inline;
    font-family: 'PT Serif', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    color: #8ecff3;
}

/* Главный экран — desktop */
@media (min-width: 851px) {
    .hero h1 {
        font-size: 52px;
        line-height: 1.17;
        letter-spacing: -0.035em;
    }

    .hero h1 em {
        letter-spacing: -0.025em;
    }
}

/* Корпоративный блок */
.office h2 {
    line-height: 1.17;
}

/* Этапы доставки */
.steps h3 {
    font-family: 'PT Serif', Georgia, serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

/* Мобильная версия */
@media (max-width: 620px) {
    .steps h3 {
        font-size: 21px;
    }
}
/* AVIVA — заголовки тарифных карточек */
.prices .card h3 {
    font-family: 'PT Serif', Georgia, serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.025em;
}
@media (max-width: 620px) {
    .prices .card h3 {
        font-size: 21px;
    }
}
@media (min-width: 851px) {
    .prices .card h3 {
        min-height: 60px;
    }
}
@media (max-width: 620px) {
    .office li {
        font-size: 15px;
        line-height: 1.5;
        padding: 14px 0;
    }

    .office li:before {
        margin-right: 10px;
    }
}

/* AVIVA — финальная настройка изображения Hero */
.hero-photo img {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    left: auto;
    bottom: auto;
    object-fit: contain;
    object-position: center;
    transform: scale(1.10);
    transform-origin: center;
}

/* Планшеты */
@media (min-width: 621px) and (max-width: 850px) {
    .hero-photo {
        height: 450px;
    }
}

/* Смартфоны */
@media (max-width: 620px) {
    .hero-photo {
        height: 310px;
        margin-bottom: 12px;
    }

    .hero-photo img {
        transform: scale(1.15);
    }

    .hero-photo .photo-tag {
        bottom: 14px;
        left: 12px;
        padding: 10px 14px;
        border-radius: 14px;
    }

    .hero-photo .photo-tag strong {
        font-size: 21px;
    }
}

@media (min-width: 621px) {
    .hero-photo {
        transform: translateX(-24px);
    }
}

.office::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 160px;
    background-image: url('/aviva/assets/mint-top.png');
    background-repeat: no-repeat;
    background-position: top right;
    background-size: contain;
    pointer-events: none;
    z-index: -1;
}

@media (max-width: 620px) {
    .office::before {
        width: 210px;
        height: 173px;
    }
}


/* AVIVA — декоративная мята в нижнем левом углу */
.office::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 230px;
    height: 180px;
    background-image: url('/aviva/assets/mint-bottom.png');
    background-repeat: no-repeat;
    background-position: bottom left;
    background-size: contain;
    pointer-events: none;
    z-index: -1;
}

/* AVIVA — контакты футера */
.footer-contacts {
    display: flex;
    align-items: center;
    gap: 28px;
}

.footer-contact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Onest', Arial, sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    color: #102f48;
    text-decoration: none;
    white-space: nowrap;
}

.footer-contact img {
    display: block;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

.footer-contact:hover {
    color: #197eba;
}

.footer-instagram {
    border-left: 1px solid #dceaf3;
    padding-left: 28px;
}

@media (max-width: 620px) {
    .footer-contacts {
        flex-wrap: wrap;
        gap: 16px;
    }

    .footer-contact {
        font-size: 14px;
    }

    .footer-contact img {
        width: 24px;
        height: 24px;
    }

    .footer-instagram {
        padding-left: 16px;
    }
}

@media (max-width: 360px) {
    .footer-contacts {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-instagram {
        border-left: 0;
        padding-left: 0;
    }
}
