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

:root {
    --red: #fd5752;
    --red-dark: #e04440;
    --red-light: #fff0ef;
    --blue: #1e96d3;
    --blue-dark: #1578b0;
    --blue-light: #eef7fc;
    --green: #00a900;
    --green-dark: #008a00;
    --green-light: #eefaee;
    --black: #1a1a1a;
    --gray-900: #333333;
    --gray-600: #666666;
    --gray-400: #999999;
    --gray-200: #e5e5e5;
    --gray-100: #f5f5f5;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --radius: 10px;
    --radius-sm: 6px;
    --transition: 0.25s ease;
}

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

body {
    font-family: 'Fira Sans', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-900);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

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

img {
    max-width: 100%;
    height: auto;
}

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

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

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

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

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

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

.btn--outline {
    background: transparent;
    color: var(--gray-900);
    border-color: var(--gray-200);
}

.btn--outline:hover {
    border-color: var(--red);
    color: var(--red);
}

.btn--lg {
    padding: 16px 36px;
    font-size: 16px;
}

.btn--full {
    width: 100%;
}

/* === Header === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    transition: box-shadow var(--transition);
}

.header--scrolled {
    box-shadow: var(--shadow-sm);
}

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

.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.header__link {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    transition: color var(--transition);
}

.header__link:hover {
    color: var(--red);
}

.header__link--active {
    color: var(--red);
    font-weight: 600;
}

.header__link--cta {
    background: var(--red);
    color: var(--white) !important;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--red);
}

.header__link--cta:hover {
    background: var(--white);
    color: var(--red) !important;
}

.header-no-cta .header__link--cta {
    display: none;
}

.header-no-cta .header__link[href="contacts.html"] {
    display: none;
}

.header__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.header__burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-900);
    border-radius: 2px;
    transition: all var(--transition);
}

/* === Hero === */
.hero {
    padding: 88px 0 40px;
    background: linear-gradient(170deg, var(--white) 60%, var(--red-light) 100%);
    display: flex;
    align-items: center;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero__badge {
    display: inline-block;
    background: var(--red-light);
    color: var(--red);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero__title {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--black);
    margin-bottom: 20px;
}

.hero__subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: var(--gray-600);
    margin-bottom: 24px;
    max-width: 480px;
}

.hero__actions {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.hero__partners {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero__partners-label {
    font-size: 13px;
    color: var(--gray-400);
    font-weight: 500;
}

.hero__partner-logos {
    display: flex;
    gap: 12px;
}

.partner-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-600);
    background: var(--white);
    padding: 6px 14px;
    border-radius: 50px;
    border: 1px solid var(--gray-200);
}

.hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__illustration {
    width: 100%;
    max-width: 420px;
}

.hero__svg {
    width: 100%;
    height: auto;
}

.float-anim {
    animation: floatY 3s ease-in-out infinite;
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* === Section Shared === */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray-600);
    max-width: 520px;
    margin: 0 auto;
}

/* === How it works (Block 2) === */
.how-it-works {
    padding: 80px 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 32px 24px;
    transition: all var(--transition);
}

.feature-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.feature-card--highlight {
    border-color: var(--blue);
    background: var(--blue-light);
}

.feature-card--highlight:hover {
    border-color: var(--blue);
}

.feature-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-card__icon--red {
    background: var(--red-light);
    color: var(--red);
}

.feature-card__icon--blue {
    background: var(--blue-light);
    color: var(--blue);
}

.feature-card__icon--green {
    background: var(--green-light);
    color: var(--green);
}

.feature-card__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--black);
}

.feature-card__text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-600);
}

.feature-card__badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--blue);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* === Mechanics (Block 3) === */
.mechanics {
    padding: 80px 0;
    background: var(--gray-100);
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
}

.tab {
    padding: 12px 32px;
    border-radius: 50px;
    border: 2px solid var(--gray-200);
    background: var(--white);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--transition);
}

.tab:hover {
    border-color: var(--red);
    color: var(--red);
}

.tab.active {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.flow {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
}

.flow__step {
    flex: 1;
    max-width: 280px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.flow__number {
    position: absolute;
    top: -14px;
    left: 24px;
    width: 28px;
    height: 28px;
    background: var(--red);
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flow__icon {
    margin-bottom: 16px;
}

.flow__title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--black);
}

.flow__text {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
}

.flow__arrow {
    display: flex;
    align-items: center;
    padding-top: 60px;
    flex-shrink: 0;
}

.benefits-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 32px;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-900);
}

/* Callout */
.callout {
    margin-top: 48px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--red-light);
    border: 1px solid var(--red);
    border-radius: var(--radius);
    padding: 24px 28px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray-900);
}

.callout__icon {
    flex-shrink: 0;
    padding-top: 2px;
}

/* === For Whom === */
.for-whom {
    padding: 80px 0;
    background: var(--white);
}

.audience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.audience-card {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.audience-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.audience-card__header {
    padding: 32px 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--white);
}

.audience-card__header h3 {
    font-size: 22px;
    font-weight: 700;
}

.audience-card__header--red {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
}

.audience-card__header--blue {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
}

.audience-card__list {
    list-style: none;
    padding: 28px 28px 16px;
}

.audience-card__list li {
    padding: 10px 0;
    padding-left: 28px;
    position: relative;
    font-size: 15px;
    color: var(--gray-900);
    border-bottom: 1px solid var(--gray-100);
}

.audience-card__list li:last-child {
    border-bottom: none;
}

.audience-card__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 8l3 3 5-5' stroke='%2300a900' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.audience-card .btn {
    margin: 8px 28px 28px;
    width: calc(100% - 56px);
}

/* === Contact (Block 4) === */
.contact {
    padding: 80px 0;
    background: linear-gradient(170deg, var(--gray-100) 0%, var(--red-light) 100%);
}

.contact__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact__title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--black);
    margin-bottom: 16px;
}

.contact__text {
    font-size: 16px;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 32px;
}

.contact__stats {
    display: flex;
    gap: 32px;
}

.stat {
    text-align: center;
}

.stat__number {
    font-size: 32px;
    font-weight: 700;
    color: var(--red);
    line-height: 1;
    margin-bottom: 4px;
}

.stat__label {
    font-size: 13px;
    color: var(--gray-600);
}

/* Form */
.contact__form-wrap {
    position: relative;
}

.form {
    background: var(--white);
    padding: 36px 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.form__group {
    margin-bottom: 20px;
}

.form__label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 6px;
}

.form__input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    color: var(--gray-900);
    transition: border-color var(--transition);
    background: var(--white);
    appearance: none;
    -webkit-appearance: none;
}

.form__input:focus {
    outline: none;
    border-color: var(--red);
}

.form__input::placeholder {
    color: var(--gray-400);
}

.form__textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
}

.form__select {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form__input.error {
    border-color: var(--red);
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.form .btn {
    margin-top: 8px;
}

.form__disclaimer {
    margin-top: 12px;
    font-size: 12px;
    color: var(--gray-400);
    text-align: center;
}

.form-success {
    position: absolute;
    inset: 0;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
}

.form-success h3 {
    margin-top: 20px;
    font-size: 24px;
    color: var(--black);
}

.form-success p {
    margin-top: 8px;
    color: var(--gray-600);
}

/* === Footer === */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 40px 0;
}

.footer__inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 32px;
}

.footer__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__list a {
    font-size: 14px;
    color: var(--gray-400);
    transition: color var(--transition);
}

.footer__list a:hover {
    color: var(--red);
}

.footer__contacts {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer__email {
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
    transition: color var(--transition);
}

.footer__email:hover {
    color: var(--red);
}

.footer__whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gray-400);
    transition: color var(--transition);
}

.footer__whatsapp:hover {
    color: #25D366;
}

.footer__feedback {
    align-self: flex-start;
    font-size: 13px;
    border-color: var(--gray-600);
    color: var(--gray-400);
}

.footer__feedback:hover {
    border-color: var(--red);
    color: var(--red);
}

.footer__copyright {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: right;
}

.footer__brand {
    font-size: 16px;
    font-weight: 700;
}

.footer__copy {
    font-size: 13px;
    color: var(--gray-400);
}

/* === Responsive === */
@media (max-width: 1024px) {
    .hero__title {
        font-size: 36px;
    }

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

    .flow {
        flex-direction: column;
        align-items: center;
    }

    .flow__step {
        max-width: 100%;
        width: 100%;
    }

    .flow__arrow {
        transform: rotate(90deg);
        padding-top: 0;
        margin: -4px 0;
    }
}

@media (max-width: 768px) {
    .header__nav {
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 24px 20px;
        gap: 16px;
        border-bottom: 1px solid var(--gray-200);
        box-shadow: var(--shadow-md);
        transform: translateY(-120%);
        transition: transform var(--transition);
        z-index: 99;
    }

    .header__nav.open {
        transform: translateY(0);
    }

    .header__burger {
        display: flex;
    }

    .header__burger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .header__burger.active span:nth-child(2) {
        opacity: 0;
    }

    .header__burger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        padding: 100px 0 40px;
        min-height: auto;
    }

    .hero__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero__title {
        font-size: 30px;
    }

    .hero__subtitle {
        font-size: 16px;
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        text-align: center;
    }

    .hero__visual {
        order: -1;
    }

    .hero__illustration {
        max-width: 300px;
    }

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

    .section-subtitle {
        font-size: 16px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .audience-grid {
        grid-template-columns: 1fr;
    }

    .contact__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact__stats {
        justify-content: space-between;
    }

    .stat__number {
        font-size: 26px;
    }

    .tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .tab {
        text-align: center;
    }

    .benefits-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .callout {
        flex-direction: column;
    }

    .footer__inner {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }

    .footer__copyright {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 26px;
    }

    .btn--lg {
        padding: 14px 24px;
        font-size: 15px;
    }

    .contact__stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .form {
        padding: 24px 20px;
    }

    .audience-card__header {
        padding: 24px 20px;
        flex-direction: column;
        text-align: center;
    }

    .audience-card__list {
        padding: 20px 20px 8px;
    }

    .audience-card .btn {
        margin: 8px 20px 20px;
        width: calc(100% - 40px);
    }

    .footer__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__contacts {
        align-items: center;
    }

    .footer__feedback {
        align-self: center;
    }

    .footer__copyright {
        text-align: center;
    }
}
