/* ========================================
   DIROYA Landing Page Styles
   ======================================== */

/* CSS Variables */
:root {
    --color-bg: #121312;
    --color-bg-card: #252525;
    --color-bg-card-light: #373737;
    --color-white: #ffffff;
    --color-black: #2d2c2c;
    --color-green: #0f7339;
    --color-yellow: #c4d20c;
    --color-gray: #979797;
    
    --font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --shadow-green: 0px 10px 40px rgba(15, 115, 57, 0.5);
    --shadow-green-sm: 0px 4px 20px rgba(15, 115, 57, 0.5);
    --shadow-yellow: 0px 20px 140px rgba(196, 210, 12, 0.2);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-bg);
    color: var(--color-white);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    /* padding: 0 20px; */
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

/* Highlight Text */
.highlight {
    color: var(--color-yellow);
}

.highlight-green {
    color: var(--color-green);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--color-green);
    color: var(--color-white);
    box-shadow: var(--shadow-green-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-green);
}

.btn-large {
    padding: 22px 83px;
    font-size: 24px;
    border-radius: 20px;
}

.btn-white {
    background-color: var(--color-white);
    color: var(--color-black);
    padding: 10px 34px
}

.btn-white:hover {
    background-color: #f0f0f0;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--color-bg);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom, transparent, var(--color-bg));
    z-index: 3;
    pointer-events: none;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    mix-blend-mode: overlay;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, var(--color-bg) 100%);
    z-index: 1;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    z-index: 0;
}

.hero-glow-1 {
    width: 600px;
    height: 400px;
    background: var(--color-green);
    top: -100px;
    left: -200px;
    transform: rotate(-20deg);
}

.hero-glow-2 {
    width: 500px;
    height: 350px;
    background: var(--color-yellow);
    top: 100px;
    right: -100px;
    transform: rotate(20deg);
}

.logo {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-green);
    padding: 24px 24px 16px;
    border-radius: 0 0 16px 16px;
    z-index: 10;
}

.logo img {
    display: block;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1000px;
}

.hero h1 {
    font-size: 40px;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: -0.8px;
    line-height: 48px;
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 40px;
    letter-spacing: -0.36px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 24px;
    max-width: 792px;
    margin: 0 auto 40px;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--color-bg-card);
    padding: 16px;
    border-radius: 16px;
    text-align: left;
}

.feature-card span {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: -0.32px;
    line-height: 24px;
}

.check-icon {
    flex-shrink: 0;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about {
    padding: 40px 0 60px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2,
.about h2,
.for-whom h2,
.program h2,
.how-it-works h2,
.paths h2,
.why-us h2,
.pricing h2,
.faq h2 {
    font-size: 40px;
    text-transform: uppercase;
    letter-spacing: -0.8px;
    line-height: 48px;
    margin-bottom: 8px;
}

.section-header p {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.36px;
    max-width: 792px;
    margin: 0 auto;
}

.video-wrapper {
    max-width: 996px;
    margin: 0 auto;
}

.video-placeholder {
    position: relative;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 5px solid var(--color-green);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-yellow);
    animation: videoShadowPulse 4s ease-in-out infinite;
    overflow: hidden;
}

@keyframes videoShadowPulse {
    0%, 100% {
        box-shadow: 0px 20px 140px rgba(196, 210, 12, 0.3);
    }
    50% {
        box-shadow: 0px 20px 140px rgba(196, 210, 12, 0.6);
    }
}

.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    width: 96px;
    height: 96px;
    background: rgba(15, 115, 57, 0.85);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-green-sm);
    z-index: 1;
}

.play-button:hover {
    transform: scale(1.1);
    background: var(--color-green);
}

.play-button svg {
    margin-left: 6px;
}

/* ========================================
   FOR WHOM SECTION
   ======================================== */
.for-whom {
    padding: 60px 0;
}

.for-whom h2 {
    text-align: center;
    margin-bottom: 40px;
}

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

.info-card {
    background-color: var(--color-bg-card);
    padding: 24px;
    border-radius: 16px;
}

.card-icon {
    width: 44px;
    height: 44px;
    background-color: var(--color-green);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.info-card h3 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: -0.48px;
}

.info-card p {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: -0.32px;
    line-height: 24px;
}

/* ========================================
   PROGRAM SECTION
   ======================================== */
.program {
    padding: 60px 0;
    position: relative;
}

.program .section-header {
    margin-bottom: 40px;
}

.program-duration {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.36px;
    line-height: 24px;
    margin: 8px 0 16px 0;
    text-align: center;
}

.program-info {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.36px;
    line-height: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 16px;
    text-align: center;
}

.program-info p {
 
}

.tabs {
    margin-bottom: 40px;
}

.tabs-header {
    display: flex;
    justify-content: center;
    background: var(--color-white);
    padding: 4px;
    border-radius: 16px;
    width: fit-content;
    margin: 0 auto 24px;
}

.tab-btn {
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: var(--color-black);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.36px;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background-color: var(--color-green);
    color: var(--color-yellow);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.semesters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    overflow-y: hidden;
}

.semester-card {
    background-color: var(--color-white);
    padding: 24px;
    border-radius: 24px;
    color: var(--color-black);
}

.semester-card h4 {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-yellow);
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 16px;
    letter-spacing: -0.48px;
}

.semester-card ul {
    list-style: disc;
    padding-left: 24px;
}

.semester-card li {
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.32px;
    margin-bottom: 8px;
}

.semester-card strong {
    font-weight: 500;
}

.program .btn-large {
    display: block;
    width: 280px;
    margin: 0 auto;
    text-align: center;
}

/* Year 2 Styles */
.year2-grid {
    position: relative;
    height: 354px;
    width: 100%;
}

.year2-main-card {
    position: absolute;
    left: 0;
    top: 0;
    width: 282px;
    height: 354px;
    background: var(--color-bg-card);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.year2-number {
    display: flex;
    flex-direction: column;
    color: var(--color-yellow);
    font-weight: 700;
    text-transform: uppercase;
}

.year2-big-number {
    font-size: 40px;
    line-height: 48px;
    letter-spacing: -0.8px;
}

.year2-label {
    font-size: 28px;
    line-height: 36px;
    letter-spacing: -0.56px;
}

.year2-main-card > p {
    font-size: 18px;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: -0.36px;
    color: var(--color-white);
}

.year2-faculties {
    position: absolute;
    left: 306px;
    top: 0;
    display: grid;
    grid-template-columns: repeat(3, 282px);
    grid-template-rows: repeat(2, 169px);
    gap: 24px;
}

.year2-faculty-card {
    background: var(--color-bg-card);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.year2-faculty-card ol {
    list-style: decimal;
    margin: 0;
    padding-left: 36px;
    font-size: 24px;
    font-weight: 600;
    line-height: 36px;
    letter-spacing: -0.48px;
    color: var(--color-white);
}

.year2-semester-card {
    background: var(--color-green);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: flex-end;
    color: var(--color-white);
}

.year2-semester-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
    letter-spacing: -0.36px;
    margin: 0;
}

.year2-semester-list {
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: -0.32px;
}

.year2-semester-list p {
    margin: 0;
}

/* Year 3 Styles */
.year3-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.year3-card {
    background: var(--color-white);
    border-radius: 24px;
    padding: 24px;
    width: 588px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: var(--color-black);
}

.year3-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.year3-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
    letter-spacing: -0.36px;
    margin: 0;
}

.year3-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.year3-list li {
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: -0.32px;
    padding-left: 24px;
    position: relative;
}

.year3-list li::before {
    content: "•";
    position: absolute;
    left: 0;
}

.year3-semester-badge {
    background: #e6ede9;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.year3-semester-badge p {
    font-size: 18px;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: -0.36px;
    color: var(--color-green);
    margin: 0;
}

/* ========================================
   HOW IT WORKS SECTION
   ======================================== */
.how-it-works {
    padding: 60px 0;
}

.how-it-works h2 {
    text-align: center;
    margin-bottom: 40px;
}

.how-grid {
    display: flex;
    gap: 24px;
    max-width: 996px;
    margin: 0 auto;
}

.how-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 282px;
    flex-shrink: 0;
}

.how-btn {
    padding: 12px 16px;
    border: none;
    background: var(--color-bg-card);
    color: var(--color-white);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.36px;
    text-align: left;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    height: 100%
}

.how-btn.active {
    background-color: var(--color-green);
    color: var(--color-yellow);
}

.how-btn:hover:not(.active) {
    background: var(--color-bg-card-light);
}

.how-content {
    flex: 1;
    background: var(--color-bg-card);
    padding: 24px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    min-height: 360px;
}


@keyframes howContentPulse {
    0%, 100% {
        opacity: 0.2;
    }
    50% {
        opacity: 0.5;
    }
}

.how-info {
    display: none;
}

.how-info.active {
    display: block;
}

.how-info p {
    font-size: 24px;
    font-weight: 400;
    line-height: 36px;
    letter-spacing: -0.48px;
    margin-bottom: 12px;
}

.how-info ul {
    list-style: disc;
    padding-left: 36px;
    font-size: 24px;
    font-weight: 400;
    line-height: 36px;
    letter-spacing: -0.48px;
    margin-bottom: 12px;
}

.how-info li {
    margin-bottom: 0;
}

.how-info .text-yellow {
    color: var(--color-yellow);
}

/* ========================================
   PATHS SECTION
   ======================================== */
.paths {
    padding: 100px 0 60px;
    position: relative;
}

.paths > .container {
    position: relative;
}

.paths h2 {
    text-align: center;
    margin-bottom: 8px;
}

.paths .section-header p {
    text-align: center;
    margin-bottom: 55px;
}

.paths-list {
    display: flex;
    flex-direction: column;
    gap: 50px;
    max-width: 996px;
    margin: 0 auto 80px;
}

.path-item {
    position: relative;
}

.path-badge {
    position: absolute;
    top: -30px;
    left: -20px;
    background: var(--color-green);
    color: var(--color-white);
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.36px;
    transform: rotate(-4deg);
    z-index: 1;
}

.path-card {
    background: var(--color-white);
    color: var(--color-black);
    padding: 24px;
    border-radius: 24px;
}

.path-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.48px;
}

.path-card > p {
    font-size: 18px;
    letter-spacing: -0.36px;
    line-height: 24px;
}

.path-card ul {
    margin: 8px 0;
}

.path-card li {
    font-size: 18px;
    letter-spacing: -0.36px;
    line-height: 24px;
}

.path-note {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.36px;
    margin-top: 12px;
}

.path-highlight {
    background: var(--color-green);
    color: var(--color-white);
    padding: 16px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.36px;
    margin-top: 12px;
}

.reality-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.reality-section h3 {
    font-size: 40px;
    text-transform: uppercase;
    letter-spacing: -0.8px;
    margin-bottom: 57px;
}

.reality-content {
    display: flex;
    flex-direction: column;
    gap: 33px;
    margin-bottom: 84px;
}

.reality-content p {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.36px;
    max-width: 384px;
}

.reality-content p:first-child {
    align-self: flex-start;
    text-align: left;
}

.reality-content p:last-child {
    align-self: flex-end;
    text-align: right;
}

.reality-cta {
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -0.48px;
    line-height: 36px;
    width: 584px;
    margin: 0 auto;
}

.paths-arrows {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.arrow {
    position: absolute;
    width: 73px;
    height: 90px;
}

/* Стрелка от левого текста вверх к вариантам */
/* По Figma: стрелка указывает от левого текста вверх к вариантам */
 .arrow-1 {
    bottom: -100px;
    left: 48%;

    transform: translate(-50%, 0) rotate(83.378deg);
}

/* Стрелка от правого текста вверх к вариантам */
/* По Figma: стрелка указывает от правого текста вверх к вариантам */
.arrow-2 {
    top: 120px;
    right: 0px;
    transform: translate(-50%, 0) rotate(83.378deg);
}

/* Стрелка от нижнего текста вверх к текстам выше */
/* По Figma: стрелка указывает от reality-cta вверх к текстам выше */
.arrow-3 {
    bottom: -90px;
    left: 85%;
    transform: translate(-50%, 0) rotate(75.894deg) scaleY(-1);
}
.position-relative {
    position: relative !important;
}
/* ========================================
   WHY US SECTION
   ======================================== */
.why-us {
    padding: 100px 0 60px;
}

.why-us h2 {
    text-align: center;
    margin-bottom: 40px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 24px;
    margin-bottom: 40px;
}

.benefit-card {
    background: var(--color-bg-card);
    padding: 32px;
    border-radius: 16px;
}

.benefit-icon {
    height: 88px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-end;
}

.benefit-icon img {
    max-width: 100%;
    height: auto;
}

.benefit-card p {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.36px;
    line-height: 24px;
}

.contribution-text {
    text-align: center;
    max-width: 996px;
    margin: 0 auto;
}

.contribution-text p {
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -0.48px;
    line-height: 36px;
    margin-bottom: 12px;
}

/* ========================================
   PRICING SECTION
   ======================================== */
.pricing {
    padding: 60px 0 80px;
}

.pricing h2 {
    text-align: center;
    margin-bottom: 60px;
}

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

.pricing-card {
    background: var(--color-bg-card);
    padding: 36px 24px 24px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    min-height: 736px;
}

.pricing-card.featured {
    background: var(--color-white);
    color: var(--color-black);
}

.pricing-icon {
    position: absolute;
    top: -22px;
    background: var(--color-green);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.pricing-icon img {
    width: 24px;
    height: 24px;
}

.pricing-card h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-yellow);
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: -0.48px;
}

.pricing-subtitle {
    display: block;
    background: var(--color-bg-card-light);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 24px;
    letter-spacing: -0.28px;
}

.pricing-card.featured .pricing-subtitle {
    background: #e6ede9;
    color: var(--color-green);
}

.pricing-card ul {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: auto;
    width: 100%;
}

.pricing-card li {
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.32px;
    margin-bottom: 8px;
}

.pricing-card li.list-title {
    list-style: none;
    margin-left: -24px;
    font-weight: 600;
    margin-top: 8px;
}

.pricing-price {
    font-size: 40px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.8px;
    margin: 24px 0;
}

.pricing-card .btn {
    width: 100%;
    max-width: 340px;
    height: 68px;
    font-size: 24px;
    border-radius: 20px;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact {
    padding: 0;
}

.contact-card {
    background: var(--color-bg-card);
    border-radius: 24px;
    padding: 24px;
    max-width: 792px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.contact-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    pointer-events: none;
}

.contact-content {
    max-width: 430px;
    z-index: 1;
}

.contact-card h3 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 4px;
    letter-spacing: -0.48px;
}

.contact-sub {
    font-size: 16px;
    letter-spacing: -0.32px;
    margin-bottom: 16px;
}

.contact-text {
    font-size: 18px;
    font-weight: 500;
    color: var(--color-gray);
    letter-spacing: -0.36px;
    margin-bottom: 16px;

line-height: 24px; /* 133.333% */
}

.telegram-icon {
    position: absolute;
    right: -30px;
    bottom: -45px;
    width: 200px;
    height: 200px;
}

.telegram-icon img {
    width: 100%;
    height: 100%;
}

/* ========================================
   FAQ SECTION
   ======================================== */
.faq {
    padding: 80px 0;
}

.faq h2 {
    text-align: center;
    margin-bottom: 40px;
}

.faq-list {
    max-width: 996px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    background: var(--color-bg-card);
    border-radius: 16px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 16px 24px;
    background: transparent;
    border: none;
    color: var(--color-white);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.36px;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
}

.faq-toggle {
    width: 24px;
    height: 24px;
    background: var(--color-white);
    border-radius: 20px;
    position: relative;
    flex-shrink: 0;
}

.faq-toggle::before,
.faq-toggle::after {
    content: '';
    position: absolute;
    background: var(--color-green);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.faq-toggle::before {
    width: 14px;
    height: 2px;
}

.faq-toggle::after {
    width: 2px;
    height: 14px;
}

.faq-item.active .faq-toggle::after {
    height: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 24px 16px;
    font-size: 16px;
    letter-spacing: -0.32px;
    line-height: 24px;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--color-bg-card);
}

.footer p {
    font-size: 14px;
    color: var(--color-gray);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1200px) {
    .semesters-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    /* Year 2 Tablet Layout */
    .year2-grid {
        display: flex;
        flex-direction: column;
        gap: 24px;
        height: auto;
        position: relative;
    }
    
    .year2-main-card {
        position: relative;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        height: auto;
        min-height: auto;
        left: auto;
        top: auto;
    }
    
    .year2-faculties {
        position: relative;
        left: auto;
        top: auto;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        gap: 16px;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .year2-faculty-card:nth-child(3) {
        grid-column: 1 / -1;
    }
    
    .year2-semester-card {
        grid-column: 1 / -1;
    }
    
    .year3-card {
        width: 100%;
        max-width: 500px;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .pricing-card {
        min-height: auto;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 32px;
        line-height: 40px;
    }
    
    .section-header h2,
    .about h2,
    .for-whom h2,
    .program h2,
    .how-it-works h2,
    .paths h2,
    .why-us h2,
    .pricing h2,
    .faq h2 {
        font-size: 32px;
        line-height: 40px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .how-grid {
        flex-direction: column;
    }
    
    .how-menu {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .how-btn {
        flex: 1 1 auto;
        text-align: center;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 160px;
        min-height: auto;
        padding-bottom: 60px;
    }
    
    .hero h1 {
        font-size: 20px;
        line-height: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
        line-height: 24px;
    }
    
    .btn-large {
        padding: 16px 32px;
        font-size: 18px;
    }
    
    .section-header h2,
    .about h2,
    .for-whom h2,
    .program h2,
    .how-it-works h2,
    .paths h2,
    .why-us h2,
    .pricing h2,
    .faq h2 {
        font-size: 20px;
        line-height: 28px;
    }
    
    /* Horizontal slider for semesters - mobile */
    .semesters-grid {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 16px;
        max-width: 100%;
        margin: 0 -16px;
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .semesters-grid::-webkit-scrollbar {
        display: none;
    }
    
    .semester-card {
        flex: 0 0 auto;
        width: 324px;
        min-width: 324px;
        scroll-snap-align: start;
        border-radius: 24px;
        padding: 16px;
    }
    
    .semester-card h4 {
        font-size: 24px;
        line-height: 28px;
        text-align: center;
        color: var(--color-yellow);
    }
    
    .semester-card ul {
        font-size: 16px;
        line-height: 24px;
    }
    
    /* Horizontal scroll for how-it-works buttons */
    .how-menu {
        display: flex;
        flex-direction: row;
        gap: 4px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
        width: 100%;
        flex-wrap: nowrap;
    }
    
    .how-menu::-webkit-scrollbar {
        display: none;
    }
    
    .how-btn {
        flex: 0 0 auto;
        scroll-snap-align: start;
        white-space: nowrap;
        padding: 12px 16px;
        border-radius: 8px;
        text-align: left;
    }
    
    .how-grid {
        flex-direction: column;
    }
    
    .how-content {
        min-height: auto;
        padding: 16px;
    }
    
    .how-info p {
        font-size: 18px;
        line-height: 24px;
    }
    
    .how-info ul {
        font-size: 18px;
        line-height: 24px;
        padding-left: 24px;
    }
    
    /* Tabs inline - mobile */
    .tabs-header {
        display: flex;
        flex-direction: row;
        background: var(--color-white);
        border-radius: 12px;
        padding: 4px;
        width: fit-content;
        margin: 0 auto 24px;
    }
    
    .tab-btn {
        width: auto;
        padding: 8px 12px;
        font-size: 14px;
        font-weight: 500;
        line-height: 18px;
        letter-spacing: -0.28px;
        border-radius: 8px;
        border: none;
        background: transparent;
        color: var(--color-black);
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .tab-btn.active {
        background: var(--color-green);
        color: var(--color-yellow);
    }
    
    /* Year 2 Mobile Layout */
    .year2-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
        height: auto;
        position: relative;
    }
    
    .year2-main-card {
        position: relative;
        width: 100%;
        height: auto;
        min-height: auto;
        padding: 16px;
        left: auto;
        top: auto;
        margin: 0;
        max-width: 100%;
    }
    
    .year2-big-number {
        font-size: 32px;
        line-height: 40px;
    }
    
    .year2-label {
        font-size: 20px;
        line-height: 28px;
    }
    
    .year2-main-card > p {
        font-size: 16px;
        line-height: 24px;
    }
    
    .year2-faculties {
        position: relative;
        left: auto;
        top: auto;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        gap: 8px;
        max-width: 100%;
        margin: 0;
    }
    
    .year2-faculty-card {
        width: 100%;
        max-width: 100%;
        padding: 12px;
    }
    
    .year2-faculty-card:nth-child(3) {
        grid-column: 1 / -1;
    }
    
    .year2-faculty-card ol {
        font-size: 18px;
        line-height: 24px;
        padding-left: 24px;
    }
    
    .year2-semester-card {
        grid-column: 1 / -1;
        width: 100%;
        max-width: 100%;
        padding: 16px;
    }
    
    .year2-semester-title {
        font-size: 16px;
    }
    
    .year2-semester-list {
        font-size: 14px;
        line-height: 18px;
    }
    
    /* Year 3 Mobile Layout */
    .year3-card {
        width: 100%;
        max-width: 100%;
        padding: 16px;
    }
    
    .year3-title {
        font-size: 16px;
        line-height: 24px;
    }
    
    .year3-list li {
        font-size: 14px;
        line-height: 18px;
    }
    
    .year3-semester-badge {
        padding: 12px;
    }
    
    .year3-semester-badge p {
        font-size: 16px;
    }
    
    /* For-whom cards */
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    /* Features grid */
    .features-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .feature-item {
        padding: 12px 16px;
        gap: 12px;
    }
    
    .feature-item p {
        font-size: 14px;
        line-height: 18px;
    }
    
    /* Path cards */
    .path-card {
        padding: 16px;
    }
    
    .path-badge {
        position: absolute;
        top: -23px;
        left: -8px;
        background: var(--color-green);
        color: var(--color-white);
        padding: 4px 8px;
    }
    
    .path-number {
        font-size: 16px;
        padding: 4px 8px;
    }
    
    /* Pricing cards */
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    
    .pricing-card {
        padding: 16px;
        padding-top: 24px;
    }
    
    .pricing-title {
        font-size: 24px;
    }
    
    .pricing-price {
        font-size: 40px;
        line-height: 48px;
    }
    
    /* FAQ */
    .faq-item {
        border-radius: 16px;
    }
    
    .faq-question {
        font-size: 16px;
        padding: 16px;
    }
    
    .faq-answer p {
        padding: 0 16px 16px;
        font-size: 14px;
        line-height: 18px;
    }
    
    /* Benefits cards */
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .benefit-card {
        padding: 16px;
        gap: 16px;
    }
    
    .benefit-icon {
        width: 48px;
        height: 48px;
    }
    
    .benefit-card p {
        font-size: 16px;
        line-height: 24px;
    }
    
    .contribution-text {
        text-align: left;
    }
    
    .contribution-text p {
        font-size: 18px;
        line-height: 24px;
        letter-spacing: -0.36px;
        margin-bottom: 24px;
    }
    
    .contribution-text p:first-child {
        text-align: center;
    }
    
    .contribution-text p:last-child {
        text-align: center;
    }
    
    .reality-section h3 {
        font-size: 20px;
        line-height: 28px;
        letter-spacing: -0.4px;
    }
    
    .reality-content {
        gap: 24px;
        margin-bottom: 40px;
    }
    
    .reality-content p {
        font-size: 16px;
        font-weight: 500;
        line-height: 24px;
        letter-spacing: -0.32px;
        max-width: 328px;
        width: 100%;
        text-align: center;
        align-self: center;
    }
    
    .reality-content p:first-child {
        align-self: center;
        text-align: center;
    }
    
    .reality-content p:last-child {
        align-self: center;
        text-align: center;
    }
    
    .reality-cta {
        font-size: 18px;
        font-weight: 500;
        line-height: 24px;
        letter-spacing: -0.36px;
        width: 100%;
        max-width: 328px;
        text-align: center;
        margin: 0 auto;
    }
    
    /* Скрываем стрелки на мобилке */
    .reality-section .arrow {
        position: absolute;
        width: 32px;
        height: 42px;
    }

    .arrow-1 {
        bottom: -40px;
        left: 76%;
    }

    .arrow-2 {
        bottom: 125px;
        left: 75%;
    }

    .arrow-3 {
        bottom: -24px;
        left: 12%;
        transform: translate(-50%, 0) rotate(100.894deg) scaleY(-1);
    }
    .contact-card {
        flex-direction: column;
        text-align: left;
        padding: 16px;
    }
    
    .contact-content {
        max-width: 100%;
    }
    
    .telegram-icon {
        width: 100px;
        height: 100px;
        position: absolute;
        right: -40px;
        bottom: -40px;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.play-button:hover {
    animation: pulse 1s ease-in-out infinite;
}

/* Smooth scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    z-index: 2;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 3px;
    animation: scrollIndicator 2s ease-in-out infinite;
}

@keyframes scrollIndicator {
    0%, 100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 0.5;
        transform: translateX(-50%) translateY(10px);
    }
}


.decor1 {
    position: absolute;
    top: -450px;
    left: 0;
    z-index: 1;
    pointer-events: none;
    animation: decorPulse 4s ease-in-out infinite;
}

.decor2 {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    pointer-events: none;
    animation: decorPulse 5s ease-in-out infinite;
    animation-delay: 1s;
}

@keyframes decorPulse {
    0%, 100% {
        opacity: 0.15;
    }
    50% {
        opacity: 1;
    }
}
.decor3 {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
    animation: decorPulse 5s ease-in-out infinite;
    animation-delay: 1s;
}
.decor4 {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    pointer-events: none;
    animation: decorPulse 4.5s ease-in-out infinite;
    animation-delay: 0.5s;
}

.decor-5 {
    position: absolute;
    top: 60px;
    left: 0;
    z-index: 1;
    pointer-events: none;
    animation: decorPulse 4.5s ease-in-out infinite;
    animation-delay: 0.5s;
}

.decor-6 {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 1;
    pointer-events: none;
    animation: decorPulse 4s ease-in-out infinite;
    animation-delay: 0.5s;
}

.decor-7 {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    pointer-events: none;
    animation: decorPulse 4s ease-in-out infinite;
    animation-delay: 0.5s;
}
/* ========================================
   PAY MODAL (YooKassa)
   ======================================== */
.pay-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pay-modal.is-open {
    display: flex;
}

.pay-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: pmFade 0.2s ease;
}

.pay-modal-card {
    position: relative;
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 36px 32px 32px;
    width: 100%;
    max-width: 440px;
    color: var(--color-white);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: pmPop 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.pay-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--color-gray);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s ease, color 0.2s ease;
}

.pay-modal-close:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-white);
}

.pay-modal-card h3 {
    font-size: 22px;
    margin-bottom: 14px;
}

.pay-modal-sub {
    color: var(--color-gray);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 22px;
}

.pay-modal-tariff {
    color: var(--color-white);
    font-weight: 600;
}

.pay-modal-price {
    color: var(--color-yellow);
    font-weight: 700;
}

.pay-modal-label {
    display: block;
    font-size: 13px;
    color: var(--color-gray);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

#payEmail {
    width: 100%;
    padding: 14px 16px;
    background: var(--color-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--color-white);
    font-family: var(--font-family);
    font-size: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#payEmail:focus {
    outline: none;
    border-color: var(--color-green);
    box-shadow: 0 0 0 3px rgba(15, 115, 57, 0.25);
}

#payEmail::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.pay-modal-hint {
    color: var(--color-gray);
    font-size: 13px;
    line-height: 1.5;
    margin-top: 10px;
}

.pay-modal-error {
    color: #ff6b6b;
    font-size: 14px;
    margin-top: 12px;
    padding: 10px 12px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 8px;
}

.pay-modal-submit {
    width: 100%;
    margin-top: 22px;
    justify-content: center;
    cursor: pointer;
}

.pay-modal-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@keyframes pmFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes pmPop {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 500px) {
    .pay-modal-card {
        padding: 32px 22px 26px;
        border-radius: 16px;
    }
    .pay-modal-card h3 {
        font-size: 20px;
    }
}
