@font-face {
    font-family: 'LainyDay';
    src: url('/fonts/LainyDay.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TT Norms Pro Mono';
    src: url('/fonts/TTNormsProMono-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --green: #2e5d49;
    --dark-text: #242424ad;
    --white: #FFFFFF;
    --light-purple: #e2d2f3;
    --light-green: #ccd3b7;
    --olive: #96a56d;
    --purple: #7527f1;
    --radius-sm: 10px;
    --radius-lg: 22px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

[tabindex="-1"]:focus {
    outline: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', system-ui, -apple-system, sans-serif;
    color: var(--dark-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.text-olive {
    color: var(--olive) !important;
}

.nav-container {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1100;
    padding: 16px 20px;
    pointer-events: none;
}

.hamburger-btn {
    pointer-events: auto;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transition: var(--transition);
    position: relative;
    z-index: 1101;
}

.hamburger-btn:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    transform: scale(1.04);
}

.hamburger-btn:active {
    transform: scale(0.96);
}

.hamburger-btn .bar {
    width: 22px;
    height: 2.5px;
    background: #24222A;
    border-radius: 3px;
    transition: var(--transition);
    transform-origin: center;
}

.hamburger-btn.active .bar:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
    background: var(--olive);
}

.hamburger-btn.active .bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger-btn.active .bar:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
    background: var(--olive);
}

.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1080;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-backdrop.active {
    opacity: 1;
    pointer-events: all;
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: var(--olive);
    z-index: 1090;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    width: 300px;
    left: auto;
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.nav-overlay .nav-links {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.nav-overlay .nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: var(--transition);
    padding: 6px 20px;
    border-radius: var(--radius-sm);
}

.nav-overlay .nav-links a:hover {
    text-decoration: underline;
    text-decoration-color: var(--purple);
    text-underline-offset: 0.4em;
    transition: none;
}

@media (max-width: 768px) {
    .nav-overlay {
        width: 100%;
        left: 0;
    }

    .nav-overlay .nav-links a {
        font-size: 1.5rem;
    }

    .nav-overlay .nav-links {
        gap: 18px;
    }
}

.main {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: stretch;
    background: url(header_white.jpg);
    background-size: cover;
    background-position: center;
    overflow: hidden;
    padding: 80px 30px;
    border-bottom: 1px solid var(--light-green);
}

.main-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    width: 100%;
    max-width: 1100px;
}

.forum-header {
    max-width: 1008px;
    width: 100%;
    margin-bottom: 20px;
    margin-top: 40px;
}

.main-badge {
    display: inline-flex;
    color: var(--olive);
    font-weight: 600;
    text-transform: uppercase;
    align-items: center;
    gap: 10px;
    font-family: 'TT Norms Pro Mono', monospace;
    font-size: clamp(.9rem, 3.5vw, 2.2rem);
    text-align: center;
    line-height: 1.4;
}

.main-bottom {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 65px;
}

.main-cta {
    display: inline-block;
    background: none;
    color: var(--purple);
    padding: 6px 32px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.75rem;
    text-decoration: none;
    transition: var(--transition);
    font-family: 'TT Norms Pro Mono', monospace;
    border: 1px solid var(--purple);
}

.main-cta:hover {
    background: var(--purple);
    color: #fff;
}

.main-cta:hover img {
    filter: brightness(0) invert(1);
}

.chat {
    font-size: 1.5rem;
    display: inline-block;
}

.chat img {
    vertical-align: text-top;
}

@media (max-width: 1100px) {
    .main-bottom {
        gap: 40px;
    }
}

@media (max-width: 820px) {
    .main {
        min-height: 80vh;
    }
}

@media (max-width: 768px) {
    .main-cta {
        font-size: 1.25rem;
        padding: 6px 24px;
    }

    .chat {
        font-size: 1rem;
    }

    .chat img {
        width: 20px;
        height: 20px;
    }

    .main-bottom {
        gap: 25px;
    }
}

@media (max-width: 480px) {
    .main {
        min-height: 50vh;
    }

    .main-cta {
        font-size: 1rem;
    }

    .chat {
        font-size: .85rem;
    }

    .chat img {
        width: 16px;
        height: 16px;
    }
}

.section {
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .section {
        padding: 80px 40px;
    }
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 30px;
    letter-spacing: -0.02em;
    text-align: center;
}

.cursive-header {
    font-family: 'LainyDay';
    font-size: 4rem;
}

.section-light-purple {
    background-color: var(--light-purple);
}

.section-light-green {
    background-color: var(--light-green);
}

.section-olive {
    background-color: var(--olive);
}

.bg-white {
    background: #ffffff;
}

.slider-container {
    position: relative;
    display: flex;
    align-items: center;
}

.slider-wrapper {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 8px 0;
    flex: 1;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.slider-wrapper::-webkit-scrollbar {
    display: none;
}

.slider-arrow {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--purple);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s, color 0.3s;
    z-index: 2;
    color: var(--purple);
    user-select: none;
    margin: 0 6px;
}

.slider-arrow-icon {
    width: 24px;
    height: 24px;
    display: block;
    pointer-events: none;
}

.slider-arrow:hover {
    background: var(--purple);
    color: #fff;
}

.slider-arrow.disabled {
    opacity: 0.4;
    pointer-events: none;
    cursor: default;
    background: #fff;
    color: var(--purple);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}


.navigator {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
    gap: 30px;
    margin: 0 auto;
}

.nav-card {
    width: 275px;
    height: 200px;
    display: flex;
    flex-direction: column;
    padding: 10px;
    box-sizing: border-box;
}

.nav-title-wrap {
    height: 40px;
    display: flex;
    align-items: flex-end;
}

.nav-title {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
    word-break: break-word;
    color: var(--purple);
    padding-bottom: 6px;
    font-family: 'TT Norms Pro Mono', monospace;
}

.nav-line {
    width: 100%;
    border: none;
    border-top: 1px solid var(--purple);
    margin: 0 0 5px 0;
}

.nav-date {
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--purple);
    font-family: 'TT Norms Pro Mono', monospace;
}

.nav-details {
    font-size: .8rem;
    line-height: 1.3;
    font-family: 'TT Norms Pro Mono', monospace;
    color: var(--olive);
    font-weight: 600;
}

.program-cards-section {
    margin-top: 0;
}

.day-section-header {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin: 48px 0 28px;
    font-family: 'TT Norms Pro Mono', sans-serif;
    letter-spacing: 0.04em;
    position: relative;
    font-family: 'LainyDay';
}

.day-section-header:first-child {
    margin-top: 0;
}

.day-section-header::after {
    content: '';
    display: block;
    width: 60px;
    height: 1.5px;
    background: var(--purple);
    margin: 12px auto 0;
    border-radius: 2px;
    opacity: 0.8;
}

.tour-header {
    text-align: center;
    margin-bottom: 40px;
    margin-top: 20px;
}

.tour-intro-label {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 500;
    color: var(--dark-text);
    margin-bottom: 10px;
}

.tour-intro-title {
    font-size: clamp(1.3rem, 3.5vw, 2rem);
    font-weight: 500;
    line-height: 1.3;
    margin: 0;
}

.three-col-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 30px;
}

.two-col-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 30px;
}

@media (max-width: 1024px) {
    .three-col-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .three-col-grid,
    .two-col-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.left-stack {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.right-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    border: 1px solid var(--purple);
    transition: var(--transition);
    height: 100%;
}

.program-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    border: 1px solid var(--purple);
    transition: var(--transition);
}

.program-card,
.right-card,
.full-width-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    border: 1px solid var(--purple);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-type {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    color: var(--purple);
    display: inline-block;
    padding: 0 0 6px 0;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--purple);
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-text);
    line-height: 1.3;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* justify-content: space-between; */
}

.route-title {
    gap: 15px;
    font-size: .75rem;
}

.route-title p {
    margin-bottom: 4px;
}

.route-title .route-p {
    margin-bottom: 8px;
}

.route-title .culture-p {
    color: var(--green);
    margin-bottom: 4px;
}

.card-info-wrapper {
    border-top: 1px solid var(--olive);
    padding-top: 18px;
    margin-top: auto;
}

.green-border {
    border-color: var(--green);
}

.purple-border {
    border-color: var(--purple-opacity-65);
}

.card-location {
    font-size: 0.85rem;
    color: var(--green);
    font-weight: 500;
    margin-bottom: 12px;
}

.card-datetime {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #5C5668;
}

@media (max-width: 480px) {
    .card-datetime {
        align-items: flex-start;
        gap: 6px;
    }
}

.topics-list {
    list-style: none;
    margin-top: 16px;
}

.topics-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 14px;
    font-size: 1rem;
    line-height: 1.45;
    color: var(--dark-text);
}

.topics-list li::before {
    content: "\2726";
    color: var(--green);
    font-weight: bold;
    font-size: 1.2rem;
    position: absolute;
    left: 5px;
    top: -3px;
}

.thematic-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 50px;
}

.full-width-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    border: 1px solid var(--purple);
    transition: var(--transition);
    margin-bottom: 30px;
}

@media (max-width: 1024px) {
    .thematic-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .two-columns {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .thematic-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .right-card,
    .program-card,
    .full-width-card {
        padding: 20px;
    }

    .cursive-header {
        font-size: 3.5rem;
    }
}


.registration-blocks {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.reg-block {
    width: 100%;
}

.reg-form-block {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
}

.reg-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.reg-note {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    margin-top: 6px;
    line-height: 1.5;
}

.reg-note-icon {
    color: #e74c3c;
    font-size: 1.5em;
    flex-shrink: 0;
    line-height: 1;
}

.reg-note span:last-child {
    color: var(--dark-text);
    font-size: 1rem;
    font-weight: 500;
}

.reg-form-link {
    padding: 6px 28px;
    border-radius: 15px;
    background: none;
    color: var(--purple);
    font-weight: 700;
    font-size: 1.15rem;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    border: 1px solid var(--purple);
}

.reg-form-link:hover {
    background: var(--purple);
    color: #fff;
}

.hotel-card {
    flex: 0 0 calc(50% - 10px);
    scroll-snap-align: start;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
    display: flex;
    flex-direction: row;
    gap: 14px;
    min-width: 310px;
}

.hotel-card:hover {
    transform: translateY(-2px);
}

.hotel-card-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    float: left;
    margin-right: 10px;
}

.hotel-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(107, 90, 138, 0.15);
}

.hotel-card-image img {
    width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hotel-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hotel-card-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hotel-card-section strong {
    font-size: 14px;
    margin-top: 6px;
}

.hotel-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.hotel-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-text);
    text-decoration: none;
}

.hotel-name:hover {
    color: var(--purple);
}

.hotel-stars {
    color: var(--purple);
    font-size: 0.85rem;
}

.hotel-address {
    font-size: 0.8rem;
    color: #6E687D;
}

.hotel-desc {
    font-size: 0.85rem;
    color: #5C5668;
    line-height: 1.4;
    text-align: justify;
}

.hotel-rates {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.rate-tag {
    border-radius: var(--radius-sm);
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--purple);
}

.rate-tag .price {
    font-weight: 800;
    color: var(--green);
}

@media (max-width: 768px) {
    .hotel-card {
        flex: 0 0 98%;
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .hotel-card {
        flex-direction: column;
        flex: 0 0 95%;
    }

    .hotel-card-image {
        width: 100%;
        height: 200px;
    }
}

.about-text {
    font-size: 1rem;
}

.about-blocks {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.about-icon-link {
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    color: var(--dark-text);
    transition: var(--transition);
    gap: 4px;
}

.about-icon-link svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: var(--purple);
    stroke-width: 1.2;
    transition: var(--transition);
}

.about-icon-link:hover span {
    color: var(--purple);
    text-decoration: underline;
}

.about-icon-link:hover svg {
    stroke: var(--purple);
}

.about-icon-caption {
    font-weight: 600;
    font-size: 1rem;
    color: var(--dark-text);
    letter-spacing: 0.02em;
}

.geo-text {
    font-size: 1rem;
}

.contact-header {
    font-weight: 700;
    margin-bottom: 4px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-link {
    color: var(--purple);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.contact-link:hover {
    text-decoration: underline;
}

footer {
    padding: 30px 0;
    margin-top: 40px;
    width: 100%;
    margin: 0 auto;
    background: url(bg_contacts.png) center no-repeat;
    background-size: cover;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    color: #fff;
    padding-top: 60px;
}

.footer-content .section-title {
    color: var(--white);
}

.footer-content .info {
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-bottom: 15px;
}

.footer-content .contact-header {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.footer-content .contact-line {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.contact-item svg {
    flex-shrink: 0;
}

.logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px 75px;
    flex-wrap: wrap;
    padding-top: 10px;
}

.logos img {
    min-height: 55px;
    max-height: 85px;
    max-width: 210px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: opacity 0.2s;
}

.footer-content a {
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
}

.footer-content a:hover {
    text-decoration: underline;
}

.footer-image-link {
    display: inline-flex;
    margin-right: 2px;
}

.footer-image-link:hover {
    text-decoration: none;

    img {
        filter: brightness(.9);
    }
}

@media (max-width:640px) {
    .footer-content .contact-line {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-content .info {
        align-items: flex-start;
    }
}

@media (max-width: 921px) {
    .slider-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .slider-wrapper {
        order: 2;
        width: 100%;
        flex: 0 0 auto;
    }

    .slider-arrow {
        order: 1;
        margin: 0 4px 8px;
        width: 48px;
        height: 48px;
    }
}

.certificate-page {
    display: flex;
    height: 100vh;
    gap: 2rem;
    box-sizing: border-box;
    background-color: var(--light-green);
}

.left-panel {
    flex: 1;
    min-width: 260px;
    max-width: 420px;
    background: #ffffff;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-control {
    border: 1px solid #7d7d7d;
    border-radius: 8px;
    padding: 0.8rem 0.75rem;
    font-size: 1rem;
    transition: border-color 0.2s;
    width: 100%;
    margin-bottom: 1.25rem;
}

.form-control:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 0.2rem var(--light-purple);
    outline: none;
}

.btn-primary {
    background: none;
    border: 1px solid var(--purple);
    color: var(--purple);
    font-family: 'TT Norms Pro Mono';
    border-radius: 8px;
    padding: 0.8rem 1.5rem;
    font-weight: 700;
    font-size: 1rem;
    transition: background-color 0.2s;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--purple);
    color: white;
}

.right-panel {
    flex: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.certificate-preview {
    aspect-ratio: 210 / 297;
    max-height: calc(100vh - 6rem);
    width: auto;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    border: 1px solid #e0e0e0;
    position: relative;
    height: 100%;
    transform: scale(1);
    background-image: url('bg_cert.jpg');
}

.preview-text {
    white-space: nowrap;
    transform: translate(-50%, -50%);
    position: absolute;
    left: 50%;
    color: #7d7d7d;
    font-size: 24px;
    line-height: 24px;
    text-transform: uppercase;
}

.org-text {
    transform: translate(-50%, -50%);
    position: absolute;
    left: 50%;
    color: #7d7d7d;
    font-size: 14px;
    line-height: 16px;
    text-align: center;
    width: 400px;
}

@media (max-width: 767px) {
    .certificate-page {
        flex-direction: column;
        /* height: auto; */
        /* min-height: 100dvh; */
        gap: 1rem;
    }

    .left-panel {
        max-width: 100%;
        flex: none;
        padding: 1.5rem;
    }

    .right-panel {
        flex: 1;
        min-height: 60vh;
        width: 100%;
    }
}

/* Ряд для иконки и названия */
.card-title-row {
    display: flex;
    align-items: stretch;
}

/* Кнопка-флаг (плюс/минус) */
.toggle-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 1px solid var(--green);
    border-radius: 4px;
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
    margin-right: 8px;
    font-size: 16px;
    line-height: 1;
    transition: background 0.2s;
    color: var(--green);
}

.toggle-flag:hover {
    background: var(--green);
    color: #fff;
}

/* Раскрывающаяся текстовая область */
.card-details-content {
    display: none;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--light-purple);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--dark-text);
    line-height: 1.5;
}

.card-details-content.show {
    display: block;
}

.card-details-content p {
    margin-bottom: 8px;
}

.card-details-content p b {
    font-weight: 500;
}

.card-details-content p.green-text {
    color: var(--green);
    font-weight: 600;
}

.card-details-content p.green-text-title {
    font-weight: 500;
    color: var(--green);
}

.card-details-content .block-title {
    margin: 12px 0;
}

.card-details-content span.green-bold-span {
    color: var(--green);
    font-weight: 500;
}

.card-details-list {
    list-style: none;
    margin-top: 16px;
}

.card-details-list li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 8px;
    color: var(--dark-text);
}

.card-details-list li::before {
    content: "\2726";
    color: var(--green);
    font-weight: bold;
    font-size: .85rem;
    position: absolute;
    left: 0;
    top: -1.5px;
}

/* ===== Итоги (results) ===== */
.results-content {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.results-description {
    font-size: 1rem;
    color: var(--dark-text);
}

/* Галерея-слайдер */
.results-gallery, .results-materials, .results-reviews {
    margin-top: 58px;
    padding-top: 14px;
}

.results-gallery .slider-wrapper {
    gap: 0;
    padding: 8px 0;
    scroll-snap-type: x mandatory;
    position: relative;
}

.results-gallery-item {
    flex: 0 0 100%;                 /* ровно одна карточка в видимой области */
    scroll-snap-align: start;
    /* border: 1px solid var(--purple); */
    border-radius: 0;
    overflow: hidden;
}

.results-gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    /* aspect-ratio: 16 / 9; */
}

/* Видео */
.results-videos {
    margin-top: 8px;
}

.results-videos-title {
    font-family: 'LainyDay', cursive;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 32px;
    color: var(--dark-text);
}

.results-videos-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.video-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 16px;
    border: 1px solid var(--light-purple);
    transition: var(--transition);
}

/* .video-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
} */

.video-thumb {
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #f0f0f0;
}

.video-thumb iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.video-caption {
    margin-top: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-text);
    text-align: center;
}

/* Оверлей лайтбокса */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: #242424cc;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

/* Изображение в лайтбоксе */
.lightbox-overlay img {
    max-width: 85vw;
    max-height: 90vh;
    object-fit: contain;
    cursor: default;
    /* background: white;
    padding: 1rem; */
}

/* Кнопка закрытия */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    z-index: 10000;
    line-height: 1;
}
.lightbox-close:hover {
    filter: brightness(.9);
}

/* Стрелки навигации */
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10000;
    transition: background 0.3s;
}
.lightbox-prev:hover,
.lightbox-next:hover {
    /* background: var(--purple); */
    filter: brightness(.9);
}

.lightbox-prev svg,
.lightbox-next svg {
    width: 24px;
    height: 24px;
    stroke: #fff;
    stroke-width: 2;
    fill: none;
}
.lightbox-prev {
    left: 20px;
}
.lightbox-next {
    right: 20px;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .lightbox-close {
        top: 12px;
        right: 16px;
        font-size: 2.5rem;
    }
    .lightbox-prev {
        left: 8px;
    }
    .lightbox-next {
        right: 8px;
    }
}

/* ===== Программные материалы (обновлённый дизайн) ===== */

.materials-section {
    margin-bottom: 48px;
}

.materials-subtitle {
    font-family: 'TT Norms Pro Mono', monospace;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
    line-height: 1.3;
}

.materials-subtitle-secondary {
    font-family: 'TT Norms Pro Mono', monospace;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 32px;
    text-align: center;
    line-height: 1.3;
}

/* Сетка карточек */
.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* Карточка-ссылка */
.material-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    border-radius: var(--radius-lg);   /* 22px */
    padding: 18px 20px;               /* чуть компактнее */
    border: 1.5px solid var(--purple); /* рамка потемнее */
    text-decoration: none;
    color: var(--dark-text);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.material-card:hover {
    transform: translateY(-3px);
    /* box-shadow: 0 8px 24px rgba(117, 39, 241, 0.2); */
    border-color: #5a1dc7;            /* более насыщенный фиолетовый при наведении */
}

/* Иконка PDF/файла */
.material-icon {
    flex-shrink: 0;
    width: 36px;                     /* немного меньше */
    height: 36px;
    color: var(--purple);
    display: flex;
    align-items: center;
    justify-content: center;
}

.material-icon svg {
    width: 100%;
    height: 100%;
}

/* Текстовая часть */
.material-info {
    flex: 1;
    min-width: 0;
}

/* Название доклада – теперь фиолетовое */
.material-title {
    font-size: 0.9rem;                /* уменьшено с 1rem */
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 6px 0;
    color: var(--green);             /* главный акцент темы */
    word-wrap: break-word;
}

/* Автор – шрифт меньше, ФИО выделено зелёным */
.material-author {
    font-size: 0.8rem;                /* уменьшено с 0.85rem */
    margin: 0;
    color: #5C5668;
    line-height: 1.5;
}

.material-author span {
    font-weight: 600;
}

/* Адаптивность */
@media (max-width: 640px) {
    .materials-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .material-card {
        padding: 14px 16px;
        gap: 10px;
    }

    .material-title {
        font-size: 0.85rem;
    }

    .material-author {
        font-size: 0.75rem;
    }

    .materials-subtitle {
        font-size: 1.3rem;
    }

    .materials-subtitle-secondary {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
}
.reviews-region-title {
    font-family: 'TT Norms Pro Mono', monospace;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--purple);
    letter-spacing: 0.04em;
    margin-bottom: 24px;
    line-height: 1.3;
    /* max-width: 1092px;
    margin: 0 auto 24px; */
}

.with-subtitle {
    margin-bottom: 0;
}

.reviews-region-subtitle
{
    font-family: 'TT Norms Pro Mono', monospace;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--purple);
    letter-spacing: 0.04em;
    margin-bottom: 24px;
    line-height: 1.3;
    /* max-width: 1092px;
    margin: 0 auto 24px; */
}
/* ===== Отзывы участников ===== */

.reviews-region {
    margin-bottom: 48px;
}

/* Обёртка слайдера для отзывов — использует стандартный slider-wrapper */
.reviews-slider-wrapper {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 8px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.reviews-slider-wrapper::-webkit-scrollbar {
    display: none;
}

/* Карточка одного отзыва */
.review-card {
    flex: 0 0 calc(50% - 10px);           /* фиксированная ширина для слайдера */
    scroll-snap-align: start;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 28px 24px 24px;
    border: 1px solid var(--purple);
    font-size: 0.95rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--dark-text);
    position: relative;
    transition: transform 0.2s;
}

/* Если карточка одна (не в слайдере) — растягивается на всю ширину */
.reviews-region > .review-card {
    flex: 0 0 auto;
    width: 100%;
    /* max-width: 1092px;
    margin: 0 auto; */
}

.review-author {
    text-align: right;
    font-weight: 600;
    margin-top: 14px;
    color: var(--green);
}

/* Адаптив */
@media (max-width: 640px) {
    .reviews-region-title {
        font-size: 1.25rem;
        text-align: center;
    }

    .reviews-region-subtitle {
        font-size: 1rem;
        text-align: center;
    }

    .review-card {
        flex: 0 0 100%;
        padding: 20px 18px;
        font-size: 0.9rem;
    }
    .reviews-region > .review-card {
        max-width: 100%;
    }
    .review-card::before {
        font-size: 3rem;
        top: 4px;
        left: 10px;
    }
}