:root {
    --ink: #161b2a;
    --muted: #637086;
    --line: #e1e7f0;
    --soft: #f4f7fb;
    --white: #ffffff;
    --blue: #2354d1;
    --cyan: #4ad7d1;
    --red: #cf1f2f;
    --gold: #f4b545;
    --dark: #101829;
    --shadow: 0 24px 70px rgba(16, 24, 41, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: Outfit, Arial, sans-serif;
}

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

.top-strip {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 9px clamp(18px, 5vw, 72px);
    color: rgba(255, 255, 255, 0.92);
    background: #557da9;
    font-size: 0.9rem;
    font-weight: 900;
}

.top-strip div {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 24px clamp(18px, 5vw, 72px);
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--blue);
    font-weight: 900;
}

.brand-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: var(--white);
    background: var(--blue);
    border-radius: 8px;
}

nav,
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 18px;
    font-weight: 900;
}

.button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    color: var(--ink);
    background: var(--white);
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
}

.button.primary {
    color: var(--white);
    background: var(--red);
    box-shadow: 0 14px 34px rgba(207, 31, 47, 0.22);
}

.button.dark {
    color: var(--white);
    background: var(--dark);
}

.button.light {
    background: var(--cyan);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
    gap: clamp(24px, 5vw, 70px);
    align-items: center;
    min-height: 72vh;
    padding: clamp(44px, 8vw, 112px) clamp(18px, 5vw, 72px);
    color: var(--white);
    background:
        radial-gradient(circle at top right, rgba(74, 215, 209, 0.24), transparent 30%),
        linear-gradient(135deg, #101829, #2354d1 58%, #cf1f2f);
}

.eyebrow {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 16px;
    padding: 8px 10px;
    color: var(--gold);
    background: rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 900;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: "Space Grotesk", Outfit, sans-serif;
    letter-spacing: 0;
}

h1 {
    max-width: 860px;
    font-size: clamp(2.8rem, 7vw, 6.4rem);
    line-height: 0.96;
}

.hero p,
.section-head p,
.lesson-card p,
.package-card p,
.request-copy p,
.contact p {
    color: var(--muted);
    font-weight: 700;
    line-height: 1.65;
}

.hero p {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.16rem;
}

.hero-panel {
    display: grid;
    gap: 12px;
    padding: 28px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.94);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.hero-panel strong {
    font-size: 1.55rem;
}

.hero-panel span {
    padding: 12px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-weight: 900;
}

.category-section {
    width: min(1520px, calc(100% - 36px));
    margin: 34px auto 0;
    padding: 24px;
    background: #f2f3f5;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.city-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 18px;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    font-weight: 900;
}

.city-row span {
    color: var(--muted);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.category-card {
    display: grid;
    min-height: 126px;
    align-content: center;
    justify-items: center;
    gap: 10px;
    padding: 16px;
    color: #557da9;
    background: linear-gradient(180deg, #ffffff, #f5f6f8);
    border: 1px solid var(--line);
    border-radius: 8px;
    text-align: center;
    font-weight: 900;
}

.category-card span {
    font-size: 2.4rem;
    filter: grayscale(1);
}

.request-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 24px;
    padding: 20px;
    color: #557da9;
    background: rgba(255, 255, 255, 0.72);
    border-top: 1px solid var(--line);
    font-size: clamp(1.3rem, 3vw, 2.2rem);
    font-weight: 900;
    text-align: center;
}

.request-banner a {
    color: var(--red);
}

.section {
    padding: 76px clamp(18px, 5vw, 72px);
}

.section.soft {
    background: var(--soft);
}

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

.section-head h2,
.request-copy h2,
.contact h2 {
    font-size: clamp(2rem, 4.6vw, 4.2rem);
    line-height: 1.04;
}

.lesson-grid,
.package-grid,
.request-section,
.contact {
    display: grid;
    width: min(1240px, 100%);
    margin: 0 auto;
    gap: 16px;
}

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

.package-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.teacher-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    width: min(1240px, 100%);
    margin: 0 auto;
}

.teacher-card {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: 22px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 16px 38px rgba(16, 24, 41, 0.08);
}

.teacher-photo {
    display: grid;
    width: 82px;
    height: 100px;
    place-items: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    border-radius: 8px;
    font-size: 2rem;
    font-weight: 900;
}

.teacher-card h3,
.teacher-card p {
    margin: 0;
}

.teacher-card strong,
.teacher-card span,
.teacher-card small {
    display: block;
    margin-top: 8px;
    font-weight: 900;
}

.teacher-card strong {
    color: var(--ink);
}

.teacher-card span {
    color: var(--gold);
}

.teacher-card small {
    color: var(--muted);
}

.teacher-card .button {
    grid-column: 1 / -1;
}

.lesson-card,
.package-card,
.request-form {
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 16px 38px rgba(16, 24, 41, 0.08);
}

.lesson-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.lesson-tags span,
.package-card span {
    display: inline-flex;
    padding: 8px 10px;
    color: var(--blue);
    background: rgba(35, 84, 209, 0.09);
    border-radius: 8px;
    font-size: 0.86rem;
    font-weight: 900;
}

.package-card {
    display: grid;
    align-content: start;
    gap: 14px;
}

.request-section {
    grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
    align-items: start;
}

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

label {
    display: grid;
    gap: 8px;
    font-weight: 900;
}

input,
select,
textarea {
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
    font-weight: 800;
}

textarea {
    resize: vertical;
}

.wide {
    grid-column: 1 / -1;
}

.contact {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: clamp(28px, 5vw, 48px);
    background: var(--soft);
    border-radius: 8px;
}

.site-footer {
    display: flex;
    min-height: 116px;
    align-items: center;
    justify-content: center;
    padding: 24px clamp(18px, 5vw, 72px);
    color: var(--white);
    background: var(--dark);
    text-align: center;
}

.handwritten-footer {
    min-height: 58px;
    margin: 0;
    color: var(--gold);
    font-family: "Brush Script MT", "Segoe Script", cursive;
    font-size: clamp(2.1rem, 4.2vw, 3.8rem);
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 8px 24px rgba(244, 181, 69, 0.2);
}

.handwritten-footer::after {
    display: inline-block;
    width: 2px;
    height: 0.9em;
    margin-left: 5px;
    content: "";
    background: currentColor;
    border-radius: 2px;
    transform: translateY(4px);
    animation: cursorBlink 0.8s steps(2, start) infinite;
}

.trust-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 18px;
    align-items: stretch;
    width: min(1240px, 100%);
    margin: 0 auto;
}

.trust-copy,
.subscription-card {
    padding: 26px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 16px 38px rgba(16, 24, 41, 0.08);
}

.trust-copy h2 {
    font-size: clamp(2rem, 4.4vw, 3.8rem);
    line-height: 1.04;
}

.trust-copy p,
.subscription-card p {
    color: var(--muted);
    font-weight: 800;
    line-height: 1.65;
}

.trust-copy ul {
    display: grid;
    gap: 10px;
    margin: 20px 0 0;
    padding-left: 20px;
    font-weight: 900;
}

.subscription-card {
    display: grid;
    align-content: center;
    gap: 12px;
    color: var(--white);
    background: linear-gradient(135deg, var(--dark), var(--blue));
}

.subscription-card span,
.subscription-card small {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 900;
}

.subscription-card strong {
    color: var(--gold);
    font-family: "Space Grotesk", Outfit, sans-serif;
    font-size: clamp(3rem, 7vw, 5.8rem);
    line-height: 0.9;
}

.subscription-card p {
    color: rgba(255, 255, 255, 0.82);
}

.float-whatsapp {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 20;
    display: grid;
    width: 66px;
    height: 66px;
    place-items: center;
    color: var(--white);
    background: #39c65a;
    border-radius: 50%;
    box-shadow: 0 14px 34px rgba(57, 198, 90, 0.34);
    font-size: 2rem;
    font-weight: 900;
}

@keyframes cursorBlink {
    50% {
        opacity: 0;
    }
}

@media (max-width: 920px) {
    .site-header,
    .hero,
    .request-section,
    .contact,
    .trust-section {
        grid-template-columns: 1fr;
    }

    nav {
        justify-content: flex-start;
    }

    .lesson-grid,
    .package-grid,
    .teacher-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 560px) {
    .hero-actions,
    nav {
        align-items: stretch;
        flex-direction: column;
    }

    .button,
    .request-form {
        width: 100%;
    }

    .request-form {
        grid-template-columns: 1fr;
    }

    .top-strip {
        flex-direction: column;
    }

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