:root {
    --navy: #0b2e4f;
    --blue: #1f6fd2;
    --green: #0f8f72;
    --light-green: #e8f5f1;
    --light-blue: #edf5ff;
    --cream: #fffaf3;
    --white: #ffffff;
    --text: #18212b;
    --muted: #617080;
    --border: #dfe6ec;
    --shadow: 0 18px 50px rgba(11, 46, 79, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background-color: var(--white);
    line-height: 1.6;
}

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

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

.container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

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

.brand-logo {
    width: 155px;
    height: auto;
    display: block;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-nav a {
    color: var(--navy);
    font-size: 15px;
    font-weight: 600;
}

.main-nav a:hover {
    color: var(--green);
}

.nav-link-disabled {
    pointer-events: none;
    opacity: 0.55;
}

.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--white);
    cursor: pointer;
}

.mobile-nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--navy);
}

.header-cta,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 12px;
    font-weight: 700;
    transition: 0.2s ease;
}

.header-cta,
.button-primary {
    color: var(--white);
    background-color: var(--green);
}

.header-cta:hover,
.button-primary:hover {
    transform: translateY(-2px);
    background-color: #0b7d64;
}

.button-secondary {
    color: var(--navy);
    background-color: var(--white);
    border: 1px solid var(--border);
}

.button-secondary:hover {
    transform: translateY(-2px);
    border-color: var(--green);
}

.hero {
    overflow: hidden;
    background:
        radial-gradient(circle at 80% 20%, rgba(31, 111, 210, 0.12), transparent 25%),
        radial-gradient(circle at 10% 80%, rgba(15, 143, 114, 0.12), transparent 25%),
        linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
}

.hero-grid {
    min-height: 720px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 70px;
    padding-block: 90px;
}

.eyebrow {
    margin-bottom: 14px;
    color: var(--green);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 760px;
    color: var(--navy);
    font-size: clamp(44px, 6vw, 76px);
    line-height: 1.04;
    letter-spacing: -2.5px;
}

.hero-description {
    max-width: 680px;
    margin-top: 24px;
    color: var(--muted);
    font-size: 20px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 28px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.hero-trust span::before {
    content: "✓";
    margin-right: 7px;
    color: var(--green);
}

.hero-visual {
    position: relative;
    min-height: 500px;
}

.hero-card {
    position: absolute;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-card-main {
    inset: 50px 40px 60px 20px;
    overflow: hidden;
    padding: 0;
    background: transparent;
    transform: none;
}

.hero-card-main img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: inherit;
}


.hero-card-main h2 {
    margin-top: 90px;
    font-size: 52px;
}

.hero-card-main p {
    max-width: 340px;
    margin-top: 16px;
    font-size: 18px;
}

.card-badge {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.16);
    font-size: 13px;
    font-weight: 700;
}

.hero-card-small {
    display: grid;
    place-items: center;
    width: 185px;
    height: 115px;
    padding: 20px;
    color: var(--navy);
    background-color: var(--white);
    font-weight: 800;
    text-align: center;
}

.card-one {
    right: 0;
    top: 20px;
    transform: rotate(6deg);
}

.card-two {
    left: 0;
    bottom: 10px;
    transform: rotate(4deg);
}

.categories,
.featured-resources,
.benefits,
.subscription,
.about-preview {
    padding-block: 100px;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 42px;
}

.section-heading h2,
.benefits h2,
.subscription h2,
.about-content h2 {
    color: var(--navy);
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.15;
    letter-spacing: -1px;
}

.section-heading-row {
    max-width: none;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
}

.text-link {
    color: var(--green);
    font-weight: 800;
}

.section-description {
    max-width: 680px;
    margin-top: 16px;
    color: var(--muted);
    font-size: 18px;
}

.featured-resources {
    background-color: #f7f9fb;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.resource-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--white);
    transition: 0.2s ease;
}

.resource-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.resource-image {
    min-height: 260px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    padding: 24px;
    background-size: cover;
    background-position: center;
}

.resource-image span {
    padding: 7px 11px;
    border-radius: 999px;
    color: var(--navy);
    background-color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 800;
}

.resource-format-badge {
    color: var(--white) !important;
    background-color: var(--green) !important;
}

.resource-image-one {
    background: linear-gradient(135deg, #dae9ff, #9ec4f7);
}

.resource-image-two {
    background-image: url("../images/resursi korica.png");
}

.resource-image-three {
    background-image: url("../images/resursi korica.png");
}
.resource-image-four {
    position: relative;

    background-image: url("../images/resursi korica.png");

    min-height: 220px;
}

.resource-image-four span {
    position: static;

    padding: 7px 12px;

    border-radius: 999px;

    background: rgba(255, 255, 255, 0.9);
    color: #173b31;

    font-size: 0.78rem;
    font-weight: 800;
}
.resource-content {
    padding: 26px;
}

.resource-type {
    color: var(--green);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.resource-content h3 {
    margin-top: 10px;
    color: var(--navy);
    font-size: 24px;
    line-height: 1.25;
}

.resource-description {
    margin-top: 12px;
    color: var(--muted);
}

.resource-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.resource-footer a {
    color: var(--green);
    font-weight: 800;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 80px;
}

.benefit-list {
    display: grid;
    gap: 20px;
}

.benefit-item {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 20px;
    padding: 24px;
    border-radius: 18px;
    background-color: var(--light-blue);
}

.benefit-item span {
    color: var(--blue);
    font-size: 22px;
    font-weight: 900;
}

.benefit-item h3 {
    color: var(--navy);
    font-size: 22px;
}

.benefit-item p {
    margin-top: 6px;
    color: var(--muted);
}

.subscription {
    background-color: var(--cream);
}

.subscription-box {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    align-items: center;
    gap: 70px;
    padding: 70px;
    border-radius: 30px;
    background-color: var(--navy);
    color: var(--white);
}

.subscription h2 {
    color: var(--white);
}

.subscription-box > div:first-child > p:last-child {
    max-width: 600px;
    margin-top: 20px;
    color: #cbd8e4;
    font-size: 18px;
}

.subscription-plan {
    padding: 34px;
    border-radius: 22px;
    background-color: var(--white);
    color: var(--text);
}

.coming-soon-badge {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background-color: var(--light-green);
    color: var(--green);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.plan-name {
    color: var(--green);
    font-weight: 800;
    text-transform: uppercase;
}

.plan-price {
    margin-top: 10px;
    color: var(--navy);
    font-size: 42px;
    font-weight: 900;
}

.plan-price span {
    font-size: 15px;
    font-weight: 600;
    color: var(--muted);
}

.subscription-plan ul {
    display: grid;
    gap: 12px;
    margin: 24px 0;
    padding-left: 20px;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 80px;
}

.about-image {
    min-height: 520px;
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(135deg, #dcecff, #ecf6ef);
}

.about-photo {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
    border-radius: 28px;
}

.about-content p:not(.eyebrow) {
    margin-top: 18px;
    color: var(--muted);
    font-size: 18px;
}

.about-content .text-link {
    display: inline-block;
    margin-top: 24px;
}

.site-footer {
    padding-top: 80px;
    color: #cbd8e4;
    background-color: #071f35;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 60px;
}

.site-footer .brand-footer {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.site-footer .brand-name {
    display: block;
    color: var(--white);
}

.site-footer .brand-tagline {
    display: block;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.78rem;
}

.footer-grid p {
    max-width: 420px;
    margin-top: 20px;
}

.footer-grid h3 {
    margin-bottom: 18px;
    color: var(--white);
}

.footer-grid > div:not(:first-child) {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.footer-grid a:hover {
    color: var(--white);
}

.footer-bottom {
    margin-top: 60px;
    padding-block: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

@media (max-width: 980px) {
    .mobile-nav-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 12px 20px 22px;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }

    .site-header.nav-open .main-nav {
        display: flex;
    }

    .main-nav a {
        padding: 12px 0;
        border-bottom: 1px solid var(--border);
    }

    .main-nav a:last-child {
        border-bottom: none;
    }

    .hero-grid,
    .benefits-grid,
    .subscription-box,
    .about-grid {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        min-height: auto;
    }

    .hero-visual {
        min-height: 470px;
    }

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

@media (max-width: 680px) {
    .container {
        width: min(100% - 28px, 1180px);
    }

    .hero-grid {
        padding-block: 70px;
    }

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

    .hero-description {
        font-size: 18px;
    }

    .hero-visual {
        min-height: 390px;
    }

    .hero-card-main {
        inset: 40px 10px;
        padding: 32px;
    }

    .hero-card-main h2 {
        margin-top: 70px;
        font-size: 40px;
    }

    .hero-card-small {
        width: 140px;
        height: 90px;
    }

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

    .section-heading-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .subscription-box {
        padding: 34px 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}
/* ========================================
   ОБРАЗОВАТЕЛНИ ЕТАПИ
======================================== */

.education-stages {
    padding: 100px 0;
    background: #f8faf8;
}

.stage-grid {
    margin-top: 45px;

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

.stage-card {
    position: relative;

    min-height: 440px;
    padding: 34px;

    display: flex;
    align-items: flex-end;

    overflow: hidden;

    border: 1px solid rgba(31, 69, 57, 0.12);
    border-radius: 28px;

    color: #173b31;
    text-decoration: none;

    box-shadow: 0 18px 45px rgba(27, 67, 53, 0.1);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.stage-card:hover {
    transform: translateY(-8px);

    border-color: rgba(20, 122, 87, 0.35);

    box-shadow: 0 28px 60px rgba(27, 67, 53, 0.16);
}


/* НАЧАЛЕН ЕТАП */

.stage-card-primary {
    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(255, 255, 255, 0.7),
            transparent 28%
        ),
        linear-gradient(
            145deg,
            #fff2ba,
            #f7d983
        );
}


/* ПРОГИМНАЗИАЛЕН ЕТАП */

.stage-card-lower {
    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(255, 255, 255, 0.68),
            transparent 28%
        ),
        linear-gradient(
            145deg,
            #ccefd9,
            #84cfa5
        );
}


/* ГИМНАЗИАЛЕН ЕТАП */

.stage-card-upper {
    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(255, 255, 255, 0.68),
            transparent 28%
        ),
        linear-gradient(
            145deg,
            #dcd3f4,
            #af9bdc
        );
}


/* ДЕКОРАТИВНИ ФОРМИ */

.stage-decoration {
    position: absolute;
    top: 26px;
    right: 28px;

    display: flex;
    gap: 10px;

    opacity: 0.35;

    font-size: 1.6rem;
    font-weight: 900;
}

.stage-decoration span {
    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    border: 2px solid currentColor;
    border-radius: 14px;
}


/* СЪДЪРЖАНИЕ НА КАРТАТА */

.stage-card-content {
    position: relative;
    z-index: 2;
}

.stage-grades {
    display: inline-block;

    margin-bottom: 24px;
    padding: 7px 12px;

    border-radius: 999px;

    background: rgba(255, 255, 255, 0.72);

    font-size: 0.78rem;
    font-weight: 800;
}

.stage-icon {
    margin-bottom: 18px;

    font-size: 2.6rem;
}

.stage-card h3 {
    margin: 0;

    font-size: 2rem;
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.stage-card p {
    margin: 15px 0 0;

    color: rgba(23, 59, 49, 0.78);

    font-size: 0.98rem;
    line-height: 1.65;
}

.stage-features {
    display: block;

    margin-top: 20px;

    color: rgba(23, 59, 49, 0.74);

    font-size: 0.8rem;
    font-weight: 700;
}

.stage-link {
    display: inline-block;

    margin-top: 30px;

    font-weight: 900;

    transition: transform 0.25s ease;
}

.stage-card:hover .stage-link {
    transform: translateX(6px);
}


/* ТАБЛЕТ */

@media (max-width: 1000px) {

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

    .stage-card {
        min-height: 360px;
    }

}


/* ТЕЛЕФОН */

@media (max-width: 650px) {

    .education-stages {
        padding: 70px 0;
    }

    .stage-card {
        min-height: 390px;
        padding: 26px;
    }

    .stage-card h3 {
        font-size: 1.7rem;
    }

    .stage-decoration {
        right: 20px;
    }

    .stage-decoration span {
        width: 40px;
        height: 40px;

        font-size: 1.15rem;
    }

}
