/* ==========================================================================
   Fonts
   ========================================================================== */
@font-face {
    font-family: 'AlbertSans';
    src: url('../fonts/AlbertSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'AlbertSans';
    src: url('../fonts/AlbertSans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'AlbertSans';
    src: url('../fonts/AlbertSans-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rawline';
    src: url('../fonts/rawline-600.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rawline';
    src: url('../fonts/rawline-900.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   Base
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'AlbertSans', sans-serif;
    color: var(--color-dark);
    background-color: var(--color-bg);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3,
p,
a {
    overflow-wrap: break-word;
}

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

button {
    border: 0;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
}

svg {
    display: block;
}

.text-accent {
    color: var(--color-red);
}

:root {
    --color-red: #d3181a;
    --color-red-dark: #bc0000;
    --color-dark: #333333;
    --color-muted: #5f5f5f;
    --color-bg: #eaeaea;
    --color-panel: #dedede;
    --color-border: #cbcbcb;
    --color-white: #ffffff;
    --color-footer-red: #ff0000;
    --container: 1200px;
    --font-display: 'Rawline', 'AlbertSans', sans-serif;
    --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    text-align: center;
    white-space: nowrap;
    transition: opacity 0.2s ease, transform 0.28s var(--ease-soft), box-shadow 0.28s var(--ease-soft);
}

.btn:hover {
    opacity: 0.88;
}

.btn--red {
    background-color: var(--color-red);
    color: var(--color-white);
}

.btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
    background-color: var(--color-red);
    padding: 20px 0;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.container.header__inner {
    padding: 0 24px;
}

.header__logo img {
    height: 34px;
    width: auto;
}

.header__cta {
    background-color: var(--color-white);
    color: var(--color-red);
    padding: 13px 28px;
    font-size: 0.82rem;
    pointer-events: none;
    cursor: default;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    position: relative;
    background-color: var(--color-bg);
    overflow: hidden;
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: stretch;
    min-height: clamp(420px, 42vw, 620px);
}

.hero__text {
    flex: 0 0 auto;
    width: 48%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    padding: 40px 32px 40px max(24px, calc((100% - var(--container)) / 2 + 24px));
}

.hero__text h1 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--color-red);
    font-size: clamp(1.7rem, 2.7vw, 2.35rem);
    line-height: 1.22;
    letter-spacing: -0.01em;
}

.hero__text h1 strong {
    display: block;
    margin-top: 6px;
    font-weight: 900;
}

.hero__cta {
    align-self: flex-start;
}

.hero__visual {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 24px 24px;
}

.hero__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0 0 28px 28px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   Program (full red section)
   ========================================================================== */
.program {
    background-color: var(--color-red);
    padding: 64px 0 0;
    text-align: center;
}

.program h2 {
    max-width: 980px;
    margin: 0 auto 36px;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--color-white);
    font-size: clamp(1.5rem, 2.4vw, 2.05rem);
    line-height: 1.35;
    letter-spacing: -0.005em;
}

.program h2 strong {
    font-weight: 900;
}

.program__card {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 32px;
    max-width: 1080px;
    margin: 0 auto 48px;
    background-color: var(--color-red-dark);
    border-radius: 24px;
    padding: 32px 40px;
    text-align: left;
}

.program__card-icons {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    color: var(--color-white);
}

.program__card-icons img {
    height: 44px;
    width: auto;
}

.program__card p {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.98rem;
    line-height: 1.5;
}

.program__photo img {
    width: 100%;
    max-width: 1200px;
    display: block;
    margin: 0 auto;
}

/* ==========================================================================
   Benefits
   ========================================================================== */
.benefits {
    background-color: var(--color-bg);
    padding: 64px 0;
}

.benefits h2 {
    max-width: 720px;
    margin: 0 auto 36px;
    font-family: var(--font-display);
    font-weight: 900;
    color: var(--color-red);
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    line-height: 1.3;
    text-align: center;
}

.benefits__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    width: 100%;
}

.benefit-card {
    background-color: var(--color-panel);
    border-radius: 28px;
    padding: 32px 28px 40px;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.benefit-card img {
    width: 76px;
    height: 76px;
    object-fit: contain;
}

.benefit-card p {
    color: var(--color-red);
    font-weight: 800;
    font-size: 1.35rem;
    line-height: 1.35;
}

/* ==========================================================================
   Signup
   ========================================================================== */
.signup {
    background-color: var(--color-bg);
    padding: 0 0 64px;
}

.signup__card {
    display: grid;
    grid-template-columns: 0.85fr 1fr;
    align-items: stretch;
    background-color: var(--color-panel);
    border-radius: 28px;
    overflow: hidden;
    height: clamp(420px, 34vw, 620px);
}

.signup__image {
    position: relative;
}

.signup__image img {
    position: absolute;
    left: 32px;
    top: -44px;
    width: calc(100% - 32px);
    height: calc(100% + 44px);
    object-fit: cover;
    object-position: top;
    display: block;
}

.signup__content {
    position: relative;
    overflow: hidden;
    padding: 40px 48px 48px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.signup__content > * {
    position: relative;
    z-index: 1;
}

.signup__icon {
    width: 40px;
    height: 40px;
    margin-bottom: 20px;
    color: var(--color-red);
}

.signup__content h2 {
    font-family: var(--font-display);
    font-weight: 900;
    color: var(--color-red);
    font-size: clamp(1.5rem, 2.3vw, 1.85rem);
    line-height: 1.25;
    margin-bottom: 18px;
}

.signup__content p {
    color: var(--color-muted);
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 32px;
}

.signup__content p a {
    color: var(--color-red);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq {
    background-color: var(--color-bg);
    padding: 0 0 72px;
}

.faq__title {
    margin-bottom: 24px;
    font-family: var(--font-display);
    font-weight: 900;
    color: var(--color-red);
    font-size: clamp(1.5rem, 2.6vw, 2.05rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.faq__list {
    border-top: 1px solid var(--color-border);
}

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

.faq-item__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 4px;
    color: var(--color-red);
    font-size: 1rem;
    font-weight: 800;
    text-align: left;
}

.faq-item__icon {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    color: var(--color-red);
    transition: transform 0.25s ease;
}

.faq-item__icon::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 7l6 6 6-6' stroke='%23000' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 7l6 6 6-6' stroke='%23000' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

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

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item__answer p {
    max-width: 900px;
    padding: 0 4px 22px;
    color: var(--color-muted);
    font-size: 0.95rem;
    line-height: 1.45;
}

.faq-item__answer a {
    color: var(--color-red);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.faq-item__answer ul {
    max-width: 900px;
    margin: 0 0 22px;
    padding: 0 4px 0 22px;
    color: var(--color-muted);
    font-size: 0.95rem;
    line-height: 1.45;
}

.faq-item__answer ul li {
    margin-bottom: 6px;
}

.faq-item.is-open .faq-item__answer {
    max-height: 480px;
}

.faq__cta {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

/* ==========================================================================
   Distributor
   ========================================================================== */
.distributor {
    background-color: var(--color-bg);
    padding: 0 0 32px;
}

.distributor__card {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    align-items: center;
    gap: 32px;
    background-color: var(--color-panel);
    border-radius: 28px;
    padding: 48px 56px;
    overflow: hidden;
}

.distributor__text h2 {
    max-width: 420px;
    margin-bottom: 18px;
    font-family: var(--font-display);
    font-weight: 900;
    color: var(--color-red);
    font-size: clamp(1.5rem, 2.5vw, 1.95rem);
    line-height: 1.2;
}

.distributor__text p {
    max-width: 420px;
    margin-bottom: 26px;
    color: var(--color-muted);
    font-size: 1rem;
    line-height: 1.35;
}

.distributor__image {
    display: flex;
    justify-content: center;
}

.distributor__image img {
    width: min(100%, 300px);
}

/* ==========================================================================
   Final CTA
   ========================================================================== */
.final-cta {
    background-color: var(--color-bg);
    padding: 0 0 40px;
}

.final-cta__card {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    aspect-ratio: 2120 / 666;
    background-color: var(--color-panel);
    background-image: url('../images/final-cta-family.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 28px;
    padding: 0 56px;
}

.final-cta__text {
    position: relative;
    z-index: 1;
}

.final-cta__text h2 {
    max-width: 420px;
    margin-bottom: 26px;
    font-family: var(--font-display);
    font-weight: 900;
    color: var(--color-red);
    font-size: clamp(1.5rem, 2.5vw, 1.95rem);
    line-height: 1.2;
}

/* ==========================================================================
   Institutional and Footer
   ========================================================================== */
.institutional {
    background-color: var(--color-bg);
    padding: 32px 0 40px;
}

.institutional__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 24px 32px;
}

.institutional__logo {
    color: var(--color-dark);
    font-weight: 500;
    font-size: 0.72rem;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.institutional__logo--ministry {
    text-align: right;
}

.institutional__logo strong {
    display: inline-block;
    margin-top: 2px;
    font-size: 0.85rem;
    font-weight: 900;
}

.institutional__logo--gaspovo {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.3rem;
    line-height: 1.05;
    text-transform: uppercase;
}

.institutional__flag {
    width: 107px;
    height: auto;
    border-radius: 4px;
}

.footer {
    background-color: var(--color-footer-red);
    color: var(--color-white);
    padding: 40px 0 24px;
}

.footer__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    padding-bottom: 28px;
}

.footer__logo img {
    height: 30px;
    width: auto;
}

.footer__links {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(2, auto);
    justify-content: center;
    gap: 8px 40px;
}

.footer__links a {
    position: relative;
    display: inline-flex;
    align-items: baseline;
    font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', monospace;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--color-white);
    opacity: 0.88;
    transition: opacity 0.24s var(--ease-soft);
    text-align: center;
}

.footer__links a:hover {
    opacity: 1;
}

.footer__social {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.footer__social-label {
    font-size: 0.92rem;
}

.footer__social-icons {
    display: flex;
    gap: 12px;
}

.footer__social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer__social-icons img {
    position: relative;
    z-index: 1;
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
}

.footer__copyright {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 20px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
    .hero__inner {
        flex-direction: column;
        min-height: 0;
    }

    .hero__text {
        width: 100%;
        padding: 40px 24px;
    }

    .hero__visual {
        padding: 0 24px 24px;
    }

    .hero__visual img {
        height: 320px;
        border-radius: 20px;
    }

    .program__card {
        flex-direction: column;
        text-align: center;
        padding: 32px 28px;
    }

    .program__photo {
        display: none;
    }

    .program__card-icons {
        justify-content: center;
    }

    .benefits__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefit-card {
        min-height: 220px;
    }

    .signup__card {
        grid-template-columns: 1fr;
        height: auto;
    }

    .signup__image {
        height: 320px;
    }

    .signup__image img {
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .signup__content {
        padding: 32px 32px 40px;
    }

    .distributor__card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 32px;
    }

    .final-cta__card {
        aspect-ratio: auto;
        min-height: 320px;
        justify-content: center;
        text-align: center;
        padding: 40px 32px;
        position: relative;
    }

    .final-cta__card::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to right, rgba(222, 222, 222, 0.92), rgba(222, 222, 222, 0.55));
        border-radius: inherit;
    }

    .final-cta__text {
        position: relative;
        z-index: 1;
    }

    .distributor__text h2,
    .distributor__text p,
    .final-cta__text h2 {
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    .footer__social {
        align-items: center;
    }
}

@media (max-width: 720px) {
    .footer__inner {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 20px;
    }

    .footer__social {
        align-items: center;
    }
}

@media (max-width: 620px) {
    .container {
        padding: 0 17px;
    }

    main,
    section,
    .header,
    .footer,
    .container {
        max-width: 100vw;
        overflow-x: hidden;
    }

    .btn {
        width: 100%;
        max-width: 330px;
        padding: 13px 18px;
        white-space: normal;
    }

    .header__inner {
        gap: 12px;
        padding: 0 17px;
    }

    .header__logo img {
        height: 26px;
    }

    .header__cta {
        padding: 10px 16px;
        font-size: 0.68rem;
    }

    .hero__text {
        padding: 32px 17px;
        gap: 22px;
    }

    .benefit-card {
        gap: 16px;
    }

    .benefit-card img {
        width: 48px;
        height: 48px;
    }

    .benefit-card p {
        font-size: 1rem;
    }

    .hero__visual {
        display: none;
    }

    .program {
        padding: 48px 0 0;
    }

    .program__card {
        border-radius: 20px;
        margin-bottom: 36px;
    }

    .benefits {
        padding: 48px 0;
    }

    .benefits__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .benefit-card {
        min-height: 0;
        padding: 24px 20px;
    }

    .signup {
        padding-bottom: 48px;
    }

    .signup__card {
        border-radius: 20px;
    }

    .faq {
        padding-bottom: 48px;
    }

    .distributor,
    .final-cta {
        padding-bottom: 24px;
    }

    .distributor__card,
    .final-cta__card {
        border-radius: 20px;
        padding: 32px 22px;
    }

    .distributor__image img {
        max-width: 220px;
        margin: 0 auto;
    }

    .institutional {
        padding: 28px 0 32px;
    }

    .institutional__inner {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 18px;
    }

    .institutional__logo--ministry {
        text-align: center;
    }

    .footer__links {
        grid-auto-flow: row;
        grid-template-columns: 1fr;
        grid-template-rows: none;
        justify-content: center;
        justify-items: center;
        gap: 10px;
    }
}
