
:root {
    --primary-blue: #1e314e;
    --secondary-blue: #5a677c;
    --accent-red: #dc161a;
    --secondary-red: #df5457;
    --gray: #9ca4b0;
    --light-gray: #f4f6f9;
    --border-gray: #dbdbdb;
    --black: #151515;
    --white: #ffffff;
    --green: #34C759;
    ---white-opacity: RGBA(255,255,255, 0.7);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}



@font-face {
    font-family: 'Century Gothic';
    src: url('../fonts/CenturyGothic.woff2') format('woff2'),
    url('../fonts/CenturyGothic.woff') format('woff'),
    url('../fonts/CenturyGothic.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}


@font-face {
    font-family: 'Century Gothic';
    src: url('../fonts/CenturyGothic-Italic.woff2') format('woff2'),
    url('../fonts/CenturyGothic-Italic.woff') format('woff'),
    url('../fonts/CenturyGothic-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}


@font-face {
    font-family: 'Century Gothic';
    src: url('../fonts/CenturyGothic-Bold.woff2') format('woff2'),
    url('../fonts/CenturyGothic-Bold.woff') format('woff'),
    url('../fonts/CenturyGothic-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


@font-face {
    font-family: 'Century Gothic';
    src: url('../fonts/CenturyGothic-BoldItalic.woff2') format('woff2'),
    url('../fonts/CenturyGothic-BoldItalic.woff') format('woff'),
    url('../fonts/CenturyGothic-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

html {
    -webkit-text-size-adjust: 100%;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

img,
picture,
svg,
video,
canvas {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

ul,
ol {
    margin: 0;
    padding: 0;
}


body {
    font-family: 'Century Gothic', sans-serif;
}

.btn {
    padding: 0.875rem 1.5rem;
    border-radius: 6.25rem;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    justify-content: center;
}

.btn-primary, .btn-primary:visited {
    background: var(--primary-blue);
    color: var(--white);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.btn-accent, .btn-accent:visited {
    background: var(--accent-red);
    color: var(--white);
    transition: all 0.3s ease;
}

@media (hover: hover) {
    .btn:hover {
        opacity: .7;
    }

    .btn-accent:hover {
        background: var(--secondary-red);
        opacity: 1;
        color: #fff;
    }
}


.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 6px;
    border-radius: 4px;
    background: var(--light-gray);
    color: var(--gray);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 16px;
    width: max-content;
}


.faq-section {
    background: var(--white);
    padding: 48px 0;
}

.faq-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.faq-layout {
    display: flex;
    flex-direction: column;
}

.faq-aside {
    display: flex;
    flex-direction: column;
}

.faq-title {
    margin: 0 0 24px;
    color: var(--primary-blue);
    font-size: 28px;
    line-height: 1.15;
    font-weight: 700;
}

.faq-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.faq-item {
    border-bottom: 1px solid var(--border-gray);
}

.faq-item:first-of-type {
    border-top: 1px solid var(--border-gray);
}

.faq-question {
    width: 100%;
    min-height: 72px;
    padding: 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 0;
    background: transparent;
    text-align: left;
    color: var(--primary-blue);
    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.faq-question span:first-child {
    display: block;
    flex: 1;
    min-width: 0;
}

.faq-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border: 1px solid var(--border-gray);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    background: var(--black);
    transform: translate(-50%, -50%);
    transition: opacity 0.2s ease, background-color 0.25s ease;
}

.faq-icon::before {
    width: 14px;
    height: 2px;
}

.faq-icon::after {
    width: 2px;
    height: 14px;
}

.faq-answer {
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: height 0.32s ease, opacity 0.22s ease;
}

.faq-answer-inner {
    padding: 0 56px 0 0;
    color: var(--secondary-blue);
    font-size: 16px;
    line-height: 1.65;
    transform: translateY(-8px);
    transition: transform 0.28s ease;
}

.faq-answer-inner ul li {
    padding-inline-start: 9px;
    list-style: inside;
}

.faq-item.is-open .faq-answer {
    opacity: 1;
}

.faq-item.is-open .faq-answer .faq-answer-inner {
    padding: 0 56px 20px 0;
    transform: translateY(0);
}

.faq-item.is-open .faq-icon {
    transform: rotate(180deg);
}

.faq-item.is-open .faq-icon::after {
    opacity: 0;
}

.faq-contact {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-top: 8px;
}

.faq-contact-text {
    margin: 0;
    color: var(--secondary-blue);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 700;
}

.faq-contact--desktop {
    display: none;
}

.faq-contact--mobile {
    display: flex;
}

.faq-aside-decoration {
    display: none;
}

.faq-aside-decoration img {
    display: block;
    height: auto;
}


@media (hover: hover) and (pointer: fine) {
    .faq-item:hover .faq-icon {
        background: var(--primary-blue);
        border-color: var(--primary-blue);
    }

    .faq-item:hover .faq-icon::before,
    .faq-item:hover .faq-icon::after {
        background: var(--white);
    }
}

@media (min-width: 768px) {
    .faq-section {
        padding: 56px 0;
    }

    .faq-container {
        padding: 0 26px;
    }

    .faq-title {
        font-size: 32px;
        max-width: 520px;
    }

    .faq-question {
        min-height: 80px;
        font-size: 20px;
        padding: 22px 0;
    }

    .faq-contact {
        padding-top: 0;
    }

    .faq-contact-text {
        font-size: 16px;
    }

    .faq-contact-btn {
        max-width: fit-content;
    }
}

@media (min-width: 1200px) {

    .faq-section {
        padding: 72px 0;
    }

    .faq-layout {
        display: grid;
        grid-template-columns: 1fr 2fr;
        gap: 24px;
        align-items: start;
    }

    .faq-aside {
        position: relative;
        min-height: 100%;
    }

    .faq-title {
        font-size: 36px;
        max-width: 260px;
        margin-bottom: 32px;
    }

    .faq-contact-text {
        max-width: 190px;
    }

    .faq-contact--desktop {
        display: flex;
    }

    .faq-contact--mobile {
        display: none;
    }

    .faq-aside-decoration {
        display: block;
        margin-top: 36px;
    }

    .faq-main {
        gap: 0;
    }

    .faq-question {
        min-height: 86px;
        font-size: 22px;
    }

    .faq-answer-inner {
        padding: 0 72px 24px 0;
    }

    .faq-item:first-of-type {
        border-top: 0;
    }

}