/* ==========================================================================
   LRS Desktop — PDF reconstruction (mobile locked below 1024px)
   Breakpoints: 768 · 1024 · 1280 · 1440
   ========================================================================== */

/* ---------------------------------------------------------------------------
   MOBILE spacing lock (+15%) — unchanged baseline
   --------------------------------------------------------------------------- */
@media (max-width: 1023px) {
    .hero-slide .rating-mark {
        top: -10px;
        right: 22px;
    }

    .hero h1 { margin-top: 16px; }
    .hero .title-description { margin-top: 10px; margin-bottom: 8px; }
    .buttons { margin-top: 14px; }
    .students-block { margin-top: 12px; }
    .hero .guarantee { margin-top: 12px; margin-bottom: 0; }

    .about-title h2 { margin-top: 16px; }
    .about-text { margin-top: 8px; margin-bottom: 0; }
    .about-blocks { margin-top: 16px; }
    .about-skills, .about-career, .about-confidence { margin-bottom: 8px; }

    .projects-title h3 { margin-top: 16px; }
    .projects-courses { margin-top: 16px; gap: 8px; }

    .path h3, .path-title h3 { margin-top: 16px; }

    .worth-title h3 { margin: 0 0 16px; }

    .price-title h3 { margin: 0 0 16px; }
    .price-plans { gap: 8px; }

    .schedule-col { margin-top: 8px; }

    .term-dates-block { margin-top: 20px; }

    main > section.location {
        padding-top: var(--section-space-location);
    }

    .location-map {
        margin-top: 12px;
    }

    .reviews { margin-top: 12px; }
    .reviews-head { margin-bottom: 18px; }
    .reviews-google-link {
        width: 100%;
        margin-left: 0;
    }

    .gallery-title h3 { margin: 0 0 16px; }

    .cta-layout {
        padding-top: 20px;
        padding-bottom: 24px;
        gap: 16px;
    }

    .cta-tag {
        padding: 8px 16px;
        gap: 8px;
        line-height: 1;
    }

    .cta-tag::before {
        width: 7px;
        height: 7px;
        margin: 0;
        align-self: center;
    }
}

/* ---------------------------------------------------------------------------
   TABLET (>= 600px) — pre-desktop, mobile layout preserved
   --------------------------------------------------------------------------- */
@media (min-width: 600px) and (max-width: 1023px) {
    .hero h1 { font-size: 46px; }
    .buttons .btn { flex: 0 1 220px; }
    .about-blocks {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .about-blocks > div { margin-bottom: 0; }
    .worth-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .gallery-item {
        flex-basis: 62vw;
        max-width: 480px;
    }
    .projects-courses {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .cta-layout {
        max-width: 640px;
        margin-inline: auto;
    }
    .cta-title h3 { font-size: 44px; }
}

/* ---------------------------------------------------------------------------
   DESKTOP (>= 1024px) — PDF layout
   --------------------------------------------------------------------------- */
@media (min-width: 1024px) {
    :root {
        --container: 1180px;
        --section-space: 40px;
        --section-space-location: 40px;
    }

    .desktop-only { display: block !important; }
    .mobile-only { display: none !important; }

    .container {
        padding-inline: 24px;
    }

    main > section {
        padding-top: var(--section-space);
        padding-bottom: var(--section-space);
    }

    main > section.main {
        padding-top: 0;
    }

    main > section.cta {
        padding-top: 0;
        padding-bottom: 0;
    }

    /* ---- 1. Header ---- */
    .menu-button,
    .main-nav.mobile-only,
    .header .right-block {
        display: none !important;
    }

    .header-bar .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 32px;
        max-width: var(--container);
        height: 80px;
        position: relative;
    }

    .header-bar .logo {
        position: relative;
        z-index: 2;
    }

    .header-nav-desktop {
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 28px;
        margin: 0;
        pointer-events: none;
    }

    .header-nav-desktop a {
        pointer-events: auto;
        color: var(--third-color);
        font-size: 15px;
        font-weight: 600;
        text-decoration: none;
        white-space: nowrap;
        transition: color .2s ease;
    }

    .header-nav-desktop a:hover {
        color: var(--blue-accent);
    }

    .header-nav-wa {
        position: absolute;
        top: 50%;
        right: 168px;
        transform: translateY(-50%);
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 10px 16px;
        border-radius: 999px;
        background: var(--secondary-color);
        color: var(--primary-color) !important;
        font-weight: 700;
    }

    .header-nav-wa::before {
        content: "";
        width: 16px;
        height: 16px;
        background: url("../images/icon-wa.svg") no-repeat center / contain;
    }

    .header-nav-wa:hover {
        color: var(--primary-color) !important;
        filter: brightness(0.98);
    }

    .header-nav-cta {
        position: absolute;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
        padding: 11px 20px;
        border-radius: var(--radius-md);
        background-color: var(--third-color);
        background-image: linear-gradient(30deg, var(--third-color) 0%, var(--third-color) 42%, var(--blue-accent) 100%);
        background-size: 200% auto;
        color: #fff !important;
        font-weight: 700;
    }

    .header-nav-cta:hover {
        background-position: right center;
        color: #fff !important;
    }

    /* ---- 2. Hero ---- */
    main > section.main {
        padding-top: 20px;
    }

    .hero {
        display: grid;
        grid-template-columns: 0.92fr 1.08fr;
        column-gap: 40px;
        align-items: start;
        grid-template-areas:
            "title  media"
            "desc   media"
            "dtags  media"
            "btns   media"
            "trust  media";
    }

    .hero-tags-desktop {
        grid-area: dtags;
        margin-top: 2px;
    }

    .hero-tags-desktop .tags {
        margin: 0;
    }

    .hero h1 {
        grid-area: title;
        margin-top: 4px;
        font-size: 46px;
        line-height: 1.06;
        max-width: 16ch;
    }

    .hero .title-description {
        grid-area: desc;
        margin-top: 12px;
        font-size: 17px;
        line-height: 1.45;
        max-width: 40ch;
    }

    .hero-media {
        grid-area: media;
        margin-top: 0;
        overflow: visible;
        padding-top: 8px;
        padding-bottom: 16px;
    }

    .hero-media .tags {
        margin-top: 0;
        margin-bottom: 8px;
    }

    .hero-slide {
        position: relative;
        overflow: visible;
    }

    .hero-slide .rating-mark {
        top: -18px;
        right: 48px;
    }

    .hero-slide img,
    .hero-slide picture {
        border-radius: 28px;
    }

    .hero .buttons {
        grid-area: btns;
        margin-top: 16px;
        justify-content: flex-start;
        gap: 12px;
        max-width: 100%;
    }

    .hero .buttons .btn {
        flex: 0 1 auto;
        min-width: 170px;
        max-width: none;
        padding-left: 25px;
        padding-right: 25px;
    }

    .hero .buttons .btn.chat-wa {
        padding-left: 15px;
        padding-right: 15px;
    }

    .hero-trust-row {
        grid-area: trust;
        display: flex !important;
        align-items: center;
        margin-top: 10px;
    }

    .hero-trust-row .guarantee {
        margin: 0;
        justify-content: flex-start;
        font-size: 12px;
        font-weight: 700;
        text-align: left;
    }

    .hero-students-badge {
        position: absolute;
        left: 50%;
        bottom: 0;
        z-index: 3;
        transform: translate(-50%, 50%);
        width: max-content;
        max-width: calc(100% - 24px);
    }

    .hero-students-badge .students-text {
        margin-top: 0;
        padding: 13px 29px;
        border-radius: 16px;
        white-space: nowrap;
        box-shadow:
            0 14px 36px rgba(12, 30, 69, 0.18),
            0 4px 12px rgba(12, 30, 69, 0.1);
    }

    /* ---- 3. About (camp) ---- */
    .about-camp {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        align-items: center;
    }

    .about-camp-media {
        width: 100%;
    }

    .about-camp-title {
        font-size: 34px;
        max-width: 16ch;
    }

    .about-camp-text {
        max-width: 38ch;
    }

    .about-camp-cta {
        margin-top: 20px;
    }

    /* ---- 4. Projects ---- */
    .projects-head {
        margin-bottom: 28px;
    }

    .projects-title h3 {
        margin-top: 0;
        font-size: clamp(36px, 2.6vw, 42px);
        line-height: 1.06;
    }

    .projects .projects-cta.btn-primary {
        margin-top: 0;
        padding: 12px 22px;
        font-size: 15px;
    }

    .projects-courses {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-top: 0;
    }

    .projects-course:nth-child(1) { order: 1; }
    .projects-course:nth-child(2) { order: 3; }
    .projects-course:nth-child(3) { order: 4; }
    .projects-course:nth-child(4) { order: 2; }

    .projects-course {
        display: flex;
        flex-direction: column;
        height: 100%;
        padding-bottom: 16px;
    }

    .projects-course-media {
        aspect-ratio: 16 / 10;
        overflow: hidden;
        border-radius: 16px;
    }

    .projects-course img {
        width: 100%;
        height: 100%;
        min-height: 0;
        object-fit: cover;
        aspect-ratio: 16 / 10;
    }

    .projects-course-name {
        flex: 1;
        min-height: 36px;
    }

    /* ---- 5. Path ---- */
    .path-title h3 {
        margin-top: 0;
        margin-bottom: 32px;
        font-size: 38px;
    }

    .path ol {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        column-gap: 20px;
    }

    .path ol::before { display: none; }

    .path ol li {
        min-height: 150px;
        padding: 88px 12px 0;
        margin-bottom: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .path ol li::before {
        left: 50%;
        top: 0;
        transform: translateX(-50%);
        width: 56px;
        height: 56px;
        border-radius: 18px;
        font-size: 26px;
        z-index: 1;
    }

    .path ol li:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 28px;
        left: 50%;
        width: 100%;
        height: 2px;
        background: color-mix(in srgb, var(--primary-color) 18%, transparent);
        z-index: 0;
    }

    .path-num-title {
        font-size: 17px;
        min-height: 40px;
        width: 100%;
    }

    .path-num-text {
        width: 100%;
    }

    /* ---- 6. Expert teaching ---- */
    .worth-title h3 {
        margin: 0 0 18px;
        font-size: 38px;
    }

    .worth-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        align-items: stretch;
    }

    .worth-grid--outcomes {
        grid-template-columns: repeat(3, 1fr);
    }

    .worth-card {
        height: 100%;
        min-height: 160px;
    }

    /* ---- 7. Photo strip / marquee ---- */
    .gallery {
        padding-top: 32px;
        padding-bottom: 32px;
        overflow: hidden;
    }

    .gallery-bleed {
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(50% - 50vw);
        overflow: hidden;
    }

    .photo-strip {
        display: block !important;
        height: 220px;
        overflow: hidden;
        width: 100%;
        border-radius: 0;
    }

    .photo-strip-track {
        height: 100%;
        align-items: stretch;
    }

    .photo-strip-item {
        height: 100%;
    }

    .photo-strip-item .gallery-open {
        height: 100%;
    }

    .photo-strip-item img {
        height: 100%;
        width: auto;
        min-width: 320px;
        max-width: none;
        object-fit: cover;
        border-radius: 0;
    }

    .photo-strip.is-static {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .photo-strip.is-static::-webkit-scrollbar {
        display: none;
    }

    /* ---- 8. Pricing ---- */
    .price-title h3 {
        margin: 0 0 28px;
        font-size: 38px;
    }

    .price-plans {
        display: grid;
        grid-template-columns: 1fr 1.18fr 1fr 1fr;
        gap: 16px;
        align-items: stretch;
    }

    .price-card-shell {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .price-card-shell:not(.price-card-shell--featured) {
        margin-block: 20px;
        align-self: stretch;
        height: auto;
    }

    .price-card-shell--featured {
        padding: 8px;
        margin-block: 0;
        align-self: stretch;
    }

    .price-card-shell--featured .price-card-badge {
        top: 8px;
    }

    .price-card {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 290px;
        padding: 28px 24px 24px;
    }

    .price-card-title {
        min-height: auto;
    }

    .price-card-description {
        flex: 1 1 auto;
        margin-bottom: 0;
    }

    .price-card .btn {
        margin-top: auto;
        flex-shrink: 0;
        height: auto;
        min-height: 48px;
        align-self: stretch;
    }

    .price-guarantee {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-top: 20px;
        padding: 14px 20px;
        border-radius: var(--radius-md);
        background: var(--secondary-color);
        color: var(--primary-color);
        font-size: 14px;
        font-weight: 700;
    }

    .price-guarantee img {
        width: 18px;
        height: 18px;
    }

    /* ---- 9. Location + schedule (unified) ---- */
    main > section.location {
        padding-top: var(--section-space-location);
    }

    .location-layout {
        display: grid;
        grid-template-columns: 0.95fr 1.05fr;
        gap: 32px;
        align-items: start;
    }

    .location-layout--camp {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        align-items: stretch;
        width: 100%;
        margin: 0;
    }

    .location-camp-map {
        height: 100%;
    }

    .location-layout--camp .location-map--camp,
    .location-layout--camp .location-map--camp .location-map-canvas {
        width: 100%;
        height: 100%;
        min-height: 320px;
        max-height: none;
        aspect-ratio: auto;
    }

    .location-layout--camp .camp-facts {
        grid-template-columns: 1fr;
        gap: 10px;
        max-width: none;
    }

    .location-camp-details .location-title h3 {
        margin-top: 0;
        font-size: 38px;
    }

    .location-camp-details .location-cta-row {
        justify-content: flex-start;
        margin-top: 18px;
    }

    .about-cta-row {
        justify-content: center;
        margin-top: 18px;
    }

    .location-map-col .location-title h3,
    .schedule-heading {
        margin-top: 0;
        font-size: 38px;
    }

    .location-map-col .location-map:not(.location-map--camp),
    .location-map-col .location-map:not(.location-map--camp) .location-map-canvas,
    .location-map-col .location-map:not(.location-map--camp) .location-map-static {
        width: 100%;
        min-height: 0;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .location-map-col .location-map-canvas {
        height: 100%;
    }

    .location-map-col .location-map-static {
        height: 100%;
        object-fit: cover;
    }

    .location-map-col .location-map iframe {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }

    .schedule-panel {
        padding: 20px 20px 22px;
        border-radius: 28px;
    }

    .schedule-tabs {
        padding: 5px;
    }

    .schedule-tab {
        padding: 13px 20px;
        font-size: 16px;
    }

    .schedule-slots {
        gap: 16px;
    }

    .schedule-slot {
        gap: 16px;
        padding-bottom: 16px;
    }

    .schedule-slot-time {
        flex-basis: 58px;
    }

    .schedule-slot-start {
        font-size: 16px;
    }

    .schedule-slot-end {
        font-size: 15px;
    }

    .schedule-course-chip {
        min-height: 48px;
        padding: 7px 16px 7px 7px;
        font-size: 14px;
    }

    .schedule-chip-age {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .term-dates-block {
        margin-top: 36px;
    }

    .term-dates-title {
        font-size: 38px;
    }

    /* ---- 11. Reviews ---- */
    .rating .container {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "title head"
            "slider slider"
            "controls controls";
        column-gap: 40px;
        align-items: end;
    }

    .rating .title {
        grid-area: title;
    }

    .rating .title h3 {
        margin: 0;
        font-size: 38px;
    }

    .rating .reviews {
        display: contents;
    }

    .rating .reviews-head {
        grid-area: head;
        margin: 0;
        gap: 20px;
    }

    .reviews-google-badge {
        padding: 10px 14px;
        font-size: 14px;
    }

    .reviews-rating {
        font-size: 48px;
    }

    .rating .reviews-track {
        grid-area: slider;
        margin-top: 20px;
        margin-inline: 0;
    }

    .reviews-slider {
        padding-inline: 0;
        gap: 16px;
    }

    .reviews-controls {
        grid-area: controls;
        display: flex !important;
        justify-content: center;
        gap: 12px;
        margin-top: 20px;
    }

    .reviews-nav-btn {
        width: 44px;
        height: 44px;
        border: none;
        border-radius: 50%;
        background: #fff;
        color: var(--third-color);
        font-size: 24px;
        line-height: 1;
        cursor: pointer;
        box-shadow: 0 4px 16px rgba(12, 30, 69, 0.1);
    }

    .review-card {
        flex: 0 0 min(320px, 30%);
        min-height: 240px;
    }

    .review-card-text {
        flex: 1;
    }

    /* ---- 12. CTA ---- */
    .cta-layout {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 28px;
        align-items: center;
        padding-block: 32px;
    }

    .cta-copy {
        max-width: 480px;
    }

    .cta-tag--pdf {
        display: inline-flex !important;
        width: fit-content;
        align-items: center;
        gap: 8px;
        padding: 8px 14px;
        line-height: 1;
        letter-spacing: .06em;
        text-transform: uppercase;
    }

    .cta-tag--pdf::before {
        content: "";
        display: block;
        width: 7px;
        height: 7px;
        flex-shrink: 0;
        align-self: center;
        margin: 0;
        border-radius: 50%;
        background: var(--third-color);
    }

    .cta-title h3 {
        font-size: 44px;
        max-width: 11ch;
        margin-bottom: 16px;
    }

    .cta-desc {
        margin-bottom: 0;
        max-width: 38ch;
    }

    .cta-panel {
        max-width: 460px;
        justify-self: end;
        width: 100%;
    }

    .cta-wa {
        justify-content: flex-start;
    }

    /* ---- 13. Footer ---- */
    .footer .container {
        max-width: var(--container);
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
        column-gap: 40px;
        padding: 44px 24px 76px;
    }

    .footer-logo {
        margin-bottom: 0;
    }

    .footer-contacts {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 10px 28px;
    }

    .footer-divider {
        grid-column: 1 / -1;
        width: 100%;
        margin: 28px 0 24px;
    }

    .footer-bottom {
        grid-column: 1 / -1;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .footer-menu {
        margin-bottom: 0;
        gap: 28px;
    }
}

/* ---------------------------------------------------------------------------
   WIDE (>= 1280px)
   --------------------------------------------------------------------------- */
@media (min-width: 1280px) {
    :root {
        --container: 1200px;
        --section-space: 44px;
        --section-space-location: 44px;
    }

    .hero {
        column-gap: 48px;
        grid-template-columns: 0.9fr 1.1fr;
    }

    .hero h1 {
        font-size: 52px;
        max-width: 18ch;
    }

    .about-title h2,
    .projects-title h3,
    .path-title h3,
    .worth-title h3,
    .price-title h3,
    .location-map-col .location-title h3,
    .schedule-heading,
    .term-dates-title,
    .rating .title h3 {
        font-size: 40px;
    }

    .photo-strip { height: 240px; }

    .photo-strip-item img { min-width: 360px; }

    .cta-layout {
        gap: 32px;
        padding-block: 36px;
    }

    .cta-title h3 { font-size: 48px; }

    .header-nav-desktop { gap: 32px; }

    .header-nav-wa {
        right: 176px;
    }

    .review-card {
        flex: 0 0 min(340px, 30%);
        min-height: 250px;
    }
}

/* ---------------------------------------------------------------------------
   DESKTOP XL (>= 1440px) — primary PDF reference
   --------------------------------------------------------------------------- */
@media (min-width: 1440px) {
    :root {
        --container: 1240px;
        --section-space: 48px;
        --section-space-location: 48px;
    }

    .hero {
        column-gap: 56px;
    }

    .hero h1 {
        font-size: 56px;
        max-width: 18ch;
    }

    .about-camp {
        gap: 48px;
    }

    .about-camp-title {
        font-size: 38px;
    }

    .photo-strip { height: 260px; }

    .photo-strip-item img { min-width: 400px; }

    .cta-layout {
        gap: 36px;
        padding-block: 40px;
    }

    .cta-title h3 { font-size: 50px; }

    .path ol { column-gap: 24px; }

    .price-plans { gap: 20px; }

    .price-card {
        min-height: 310px;
        padding: 32px 28px 28px;
    }

    .location-layout { gap: 40px; }

    .footer .container { padding: 48px 24px 80px; }
}

@media (min-width: 1600px) {
    :root {
        --container: 1240px;
    }
}
