:root {
    color-scheme: light;
    --bg: #f5f6f8;
    --ink: #0f172a;
    --ink-soft: #475569;
    --primary: #271f52;
    --primary-dark: #1d173d;
    --accent: #4dae4f;
    --accent-soft: rgba(77, 174, 79, 0.18);
    --card: #ffffff;
    --line: rgba(15, 23, 42, 0.08);
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Plus Jakarta Sans", sans-serif;
    background: var(--bg);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.6;
}

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

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

button,
input,
textarea {
    font: inherit;
}

.bg-blur {
    display: none;
}

.container {
    width: min(1320px, 92%);
    margin: 0 auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
}

.topbar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 10;
    height: 108px;
    padding: 0 20px;
    color: #fff;
    background: transparent;
    border-bottom: 0.8px solid rgba(255, 255, 255, 0.19);
    transition: height 0.3s ease, background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.topbar-inner {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 28px;
    min-height: 108px;
    transition: min-height 0.3s ease;
}

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

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 256px;
    text-align: center;
    line-height: 1;
}

.brand-title {
    font-size: 40px;
    font-weight: 700;
    line-height: 40px;
    letter-spacing: 0.12em;
}

.brand-subtitle {
    font-size: 9px;
    font-weight: 400;
    line-height: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.8;
}

.brand-copy {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 220px;
}

.header-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    width: 100%;
    max-width: 1024px;
    margin-left: auto;
}

.nav {
    display: flex;
    gap: 5px;
    margin-right: 10px;
    padding-right: 25px;
    border-right: 0.8px solid rgba(255, 255, 255, 0.19);
    font-size: 14px;
    font-weight: 700;
    line-height: 21px;
    text-transform: uppercase;
    color: #fff;
}

.nav a {
    display: flex;
    align-items: center;
    height: 41px;
    padding: 10px;
    color: inherit;
    transition: color 0.3s ease;
}

.nav a:hover,
.nav a:focus-visible {
    color: var(--accent);
}

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

.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 0.2s ease, color 0.2s ease;
}

.header-phone:hover,
.header-phone:focus-visible {
    color: var(--accent);
    transform: translateY(-2px);
}

.header-phone-icon,
.header-phone-icon svg,
.footer-phone-icon svg,
.footer-whatsapp-icon svg {
    width: 14px;
    height: 14px;
}

.header-phone-icon {
    display: inline-flex;
}

.header-phone-icon svg {
    fill: currentColor;
}

.header-phone-text {
    display: inline-flex;
    align-items: center;
}

.header-cta {
    height: 47.2px;
    padding: 15px;
    border: 1.6px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.header-cta:hover,
.header-cta:focus-visible {
    color: var(--accent);
    background: #fff;
    border-color: #fff;
}

.menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    margin-left: auto;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 14px;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.topbar.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.topbar.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
}

.topbar.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.topbar.scrolled {
    height: 84px;
    color: var(--ink);
    background: rgba(245, 246, 248, 0.92);
    border-bottom: 1px solid var(--line);
}

.topbar.scrolled .topbar-inner {
    min-height: 84px;
}

.topbar.scrolled .nav,
.topbar.scrolled .nav a,
.topbar.scrolled .brand-copy,
.topbar.scrolled .header-phone {
    color: var(--ink);
}

.topbar.scrolled .brand-title {
    color: var(--accent);
}

.topbar.scrolled .nav {
    border-right-color: rgba(15, 23, 42, 0.1);
}

.topbar.scrolled .header-cta {
    color: var(--ink);
    border-color: var(--line);
    background: transparent;
}

.hero {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    min-height: 100vh;
    padding: 0 20px;
    background-color: var(--primary);
    background-image: url("images/hero-bg.png");
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero .container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.hero-simple {
    position: relative;
    max-width: min(100%, 1300px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 120px 0 96px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    row-gap: 30px;
    text-align: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    width: 62px;
    height: 62px;
    transform: translateX(-50%);
    display: block;
    z-index: 1;
    animation: scrollFloat 1.6s infinite ease-in-out;
}

.scroll-indicator svg {
    width: 62px;
    height: 62px;
    fill: rgba(255, 255, 255, 0.9);
    display: block;
}

@keyframes scrollFloat {
    0% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(12px);
    }

    100% {
        transform: translateX(-50%) translateY(0);
    }
}

.hero h1 {
    margin: 0;
    max-width: 1000px;
    color: #fff;
    font-size: 70px;
    font-weight: 700;
    line-height: 70px;
}

.hero-subtitle {
    margin: 0;
    max-width: 1200px;
    color: #fff;
    font-size: 50px;
    font-weight: 200;
    line-height: 60px;
}

.hero .lead {
    margin: 0;
    max-width: 800px;
    color: #fff;
    font-size: 20px;
    font-weight: 400;
    line-height: 35px;
}

.hero-micro {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    font-weight: 400;
}

.hero .actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 28px;
}

.hero .btn.primary,
.hero .btn.secondary {
    height: 55.2px;
    padding: 17px 25px 19px;
    border: 1.6px solid #fff;
    background: transparent;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    line-height: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero .btn.primary:hover,
.hero .btn.primary:focus-visible,
.hero .btn.secondary:hover,
.hero .btn.secondary:focus-visible {
    background: #fff;
    color: var(--accent);
    border-color: #fff;
}

.section {
    padding: 90px 0;
}

.section.dark {
    background: var(--primary);
    color: #fff;
}

.section-head {
    max-width: 900px;
    margin: 0 auto 36px;
    text-align: center;
}

.section-head h2 {
    margin: 10px 0 12px;
    font-size: clamp(2rem, 3.2vw, 3rem);
    font-family: "Plus Jakarta Sans", sans-serif;
}

.section-head p {
    color: var(--ink-soft);
    line-height: 1.7;
}

.section.dark .section-head p {
    color: rgba(255, 255, 255, 0.75);
}

.eyebrow {
    color: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.card-grid,
.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.card,
.step,
.module-card,
.faq-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.card,
.step,
.security-card {
    padding: 20px;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.module-card {
    padding: 18px;
    color: var(--ink);
}

.module-card h3,
.faq-item h3 {
    margin: 0 0 6px;
}

.module-card h3 {
    font-size: 17px;
    line-height: 1.2;
}

.module-card p {
    font-size: 15px;
    line-height: 1.3;
}

.steps,
.faq-grid {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.steps {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

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

.faq-item {
    padding: 14px 18px;
}

.faq-item p {
    margin: 0;
}

.cta {
    background: var(--bg);
}

.cta-card {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 24px;
    padding: 24px;
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.section.dark .card,
.section.dark .security-card,
.section.dark .step,
.section.dark .faq-item {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    box-shadow: none;
}

.section.dark .card p,
.section.dark .security-card p {
    color: rgba(255, 255, 255, 0.8);
}

.section.dark .microcopy {
    color: rgba(255, 255, 255, 0.8);
}

.section.dark .cta-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
}

.section.dark .cta-card p {
    color: rgba(255, 255, 255, 0.85);
}

.microcopy {
    margin-top: 18px;
    color: var(--ink-soft);
    font-size: 14px;
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 18px;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.contact-form label {
    display: grid;
    gap: 6px;
    color: var(--ink);
    font-size: 14px;
}

.contact-form label.full,
.contact-form .form-actions {
    grid-column: 1 / -1;
}

.contact-form input,
.contact-form textarea {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form .hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-note {
    color: var(--ink-soft);
    font-size: 12px;
}

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

.contact-form .form-actions .form-note {
    margin: 0;
    flex: 1;
}

.contact-form .form-actions button.btn.primary {
    order: 2;
    padding: 12px 30px;
    border: 1px solid var(--primary);
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 12px 28px rgba(39, 31, 82, 0.25);
}

.contact-form .form-actions button.btn.primary:hover,
.contact-form .form-actions button.btn.primary:focus-visible {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 16px 32px rgba(77, 174, 79, 0.28);
}

.section.dark .contact-form {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

.section.dark .contact-form label {
    color: #fff;
}

.section.dark .contact-form input,
.section.dark .contact-form textarea {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
}

.section.dark .contact-form input::placeholder,
.section.dark .contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.section.dark .contact-form .form-note {
    color: rgba(255, 255, 255, 0.75);
}

.section.dark .contact-form .form-actions button.btn.primary {
    border: 1.6px solid #fff;
    background: transparent;
    color: #fff;
    box-shadow: none;
}

.section.dark .contact-form .form-actions button.btn.primary:hover,
.section.dark .contact-form .form-actions button.btn.primary:focus-visible {
    background: #fff;
    color: var(--accent);
    border-color: #fff;
}

.footer {
    padding: 36px 0 48px;
    background: var(--primary);
    color: #fff;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.footer-inner h4 {
    margin: 0 0 8px;
    font-size: 16px;
}

.footer p {
    margin: 0 0 8px;
    color: rgba(255, 255, 255, 0.8);
}

.footer a {
    color: rgba(255, 255, 255, 0.9);
}

.footer-phone,
.footer-whatsapp {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-phone-icon svg,
.footer-whatsapp-icon svg {
    fill: #fff;
}

.footer-logo {
    display: inline-block;
    max-width: 180px;
    height: auto;
    margin: 12px 0 8px;
    padding: 8px 10px;
    background: #fff;
    border-radius: 10px;
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.legal-grid h3 {
    margin: 0 0 12px;
    font-size: 30px;
}

.legal-grid p {
    margin: 0 0 10px;
}

.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 20;
    padding: 12px 16px;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    font-weight: 600;
    box-shadow: var(--shadow);
}

body.modal-open {
    overflow: hidden;
}

.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 24px;
}

.contact-modal[hidden] {
    display: none;
}

.contact-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(23, 20, 47, 0.42);
}

.contact-modal__dialog {
    position: relative;
    width: min(100%, 460px);
    padding: 36px 34px 32px;
    border: 1px solid rgba(39, 31, 82, 0.08);
    border-radius: 28px;
    background: linear-gradient(180deg, #ffffff 0%, #f7f8fc 100%);
    color: #17142f;
    text-align: center;
    box-shadow: 0 28px 70px rgba(23, 20, 47, 0.24);
}

.contact-modal__dialog:focus {
    outline: none;
}

.contact-modal__icon {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    display: grid;
    place-items: center;
    border-radius: 24px;
}

.contact-modal__icon::before,
.contact-modal__icon::after {
    content: "";
    display: block;
}

.contact-modal__icon[data-state="ok"] {
    background: rgba(77, 174, 79, 0.12);
}

.contact-modal__icon[data-state="ok"]::before {
    width: 18px;
    height: 34px;
    border-right: 5px solid #2c8c3a;
    border-bottom: 5px solid #2c8c3a;
    border-radius: 3px;
    transform: rotate(40deg) translate(-2px, -2px);
}

.contact-modal__icon[data-state="error"] {
    background: rgba(213, 54, 76, 0.12);
}

.contact-modal__icon[data-state="error"]::before,
.contact-modal__icon[data-state="error"]::after {
    position: absolute;
    width: 34px;
    height: 5px;
    background: #b42318;
    border-radius: 999px;
}

.contact-modal__icon[data-state="error"]::before {
    transform: rotate(45deg);
}

.contact-modal__icon[data-state="error"]::after {
    transform: rotate(-45deg);
}

.contact-modal__dialog h3 {
    margin: 0 0 12px;
    font-size: 32px;
    line-height: 1.1;
}

.contact-modal__dialog p {
    margin: 0 0 28px;
    color: #4d5668;
    font-size: 16px;
    line-height: 1.7;
}

.contact-modal__dialog .btn.primary {
    min-width: 180px;
    padding: 12px 30px;
    border: 1px solid var(--primary);
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 12px 28px rgba(39, 31, 82, 0.25);
}

.contact-modal__dialog .btn.primary:hover,
.contact-modal__dialog .btn.primary:focus-visible {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 16px 32px rgba(77, 174, 79, 0.28);
}

@media (max-width: 1200px) {
    .module-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-inner,
    .legal-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .topbar {
        height: auto;
        padding: 14px 18px;
    }

    .topbar-inner {
        grid-template-columns: auto auto;
        gap: 16px;
        align-items: center;
        min-height: 0;
    }

    .brand-text {
        width: auto;
        align-items: flex-start;
        text-align: left;
    }

    .brand-title {
        font-size: 32px;
        line-height: 1;
    }

    .brand-subtitle {
        font-size: 8px;
        letter-spacing: 0.16em;
    }

    .menu-toggle {
        display: inline-block;
    }

    .header-menu {
        display: none;
        grid-column: 1 / -1;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 18px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 24px;
        background: rgba(18, 15, 38, 0.92);
        box-shadow: 0 24px 60px rgba(14, 11, 30, 0.24);
    }

    .topbar.scrolled .header-menu {
        border-color: rgba(15, 23, 42, 0.08);
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
    }

    .header-menu.is-open {
        display: grid;
        gap: 18px;
    }

    .nav {
        flex-direction: column;
        gap: 4px;
        margin: 0;
        padding: 0 0 18px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    }

    .topbar.scrolled .nav {
        border-bottom-color: rgba(15, 23, 42, 0.08);
    }

    .nav a {
        height: auto;
        padding: 8px 0;
    }

    .header-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .header-phone,
    .header-cta {
        justify-content: center;
    }

    .hero-simple {
        padding-top: 156px;
    }

    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 72px 0;
    }

    .section-head {
        text-align: left;
    }

    .hero h1 {
        font-size: 52px;
        line-height: 1.02;
    }

    .hero-subtitle {
        font-size: 34px;
        line-height: 1.15;
    }

    .hero .lead {
        font-size: 18px;
        line-height: 1.8;
    }
}

@media (max-width: 700px) {
    .contact-form {
        grid-template-columns: 1fr;
    }

    .contact-form .form-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-form .form-actions button.btn.primary {
        width: 100%;
    }

    .contact-modal {
        padding: 18px;
    }

    .contact-modal__dialog {
        padding: 30px 22px 24px;
        border-radius: 24px;
    }

    .contact-modal__dialog h3 {
        font-size: 28px;
    }

    .contact-modal__dialog .btn.primary {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .module-grid {
        grid-template-columns: 1fr;
    }

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

    .hero-simple {
        padding-top: 142px;
        padding-bottom: 80px;
        row-gap: 24px;
    }

    .hero h1 {
        font-size: 44px;
    }

    .hero-subtitle {
        font-size: 28px;
    }

    .hero .actions,
    .hero .btn.primary,
    .hero .btn.secondary {
        width: 100%;
    }

    .hero .btn.primary,
    .hero .btn.secondary {
        padding-inline: 20px;
    }

    .whatsapp-float {
        right: 14px;
        bottom: 14px;
    }
}
