/* --- НАЛАШТУВАННЯ ТЕМИ --- */
:root {
    --bg-base: #FDFBF9;
    --bg-dark: #23201E; /* Темно-шоколадний для контрасту */
    --bg-accent: #F2EBE5;
    --text-main: #2C2C2C;
    --text-light: #FDFBF9;
    --text-secondary: #6B5B54;
    --gold: #C5A084;
    --gold-light: #DDC5B3;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.9);
    --shadow: 0 15px 40px rgba(197, 160, 132, 0.15);
    --font-title: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
    --font-script: 'Pinyon Script', cursive;
}

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

/* ВИПРАВЛЕННЯ СВАЙПУ (ГОЛОВНЕ) */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* Забороняємо гориз. скрол */
    position: relative;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    color: var(--text-main);
    /* Легкий шум для текстури */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
}

/* Обрізаємо контент, що виходить за межі секцій (для анімацій AOS) */
section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* --- ДЕКОРАТИВНІ ПЛЯМИ --- */
.decor-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    z-index: -1;
    opacity: 0.4;
    animation: floatBlob 12s infinite alternate;
    /* Ховаємо, якщо вилазять за боді */
    max-width: 100vw;
}

.blob-1 {
    top: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: #E8D5D0;
}

.blob-2 {
    top: 40%;
    left: -200px;
    width: 500px;
    height: 500px;
    background: #EFE3D8;
}

@keyframes floatBlob {
    from {
        transform: translate(0, 0);
    }
    to {
        transform: translate(30px, 50px);
    }
}

/* --- ТИПОГРАФІКА --- */
h1, h2, h3, h4 {
    font-family: var(--font-title);
    font-weight: 500;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
    padding: 0 15px; /* Відступи, щоб текст не лип до країв */
}

.section-header .subtitle {
    font-family: var(--font-script);
    font-size: 3rem;
    color: var(--gold);
    display: block;
    margin-bottom: -20px;
    opacity: 0.9;
}

.section-header h2 {
    font-size: 3.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    display: inline-block;
    word-wrap: break-word; /* Перенос довгих слів */
}

/* --- КНОПКИ --- */
.btn {
    display: inline-block;
    padding: 18px 45px;
    border: 1px solid var(--text-main);
    background: transparent;
    color: var(--text-main);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    z-index: 1;
    text-align: center;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--text-main);
    transition: 0.4s;
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn:hover {
    color: #fff;
}

.btn-gold {
    border-color: var(--gold);
    color: var(--gold);
}

.btn-gold::before {
    background: var(--gold);
}

.btn-gold:hover {
    color: #fff;
}

/* --- HEADER --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    background: rgba(253, 251, 249, 0.95); /* Трохи щільніше фон */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    transition: 0.3s;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 25px;
    width: 100%;
}

.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    text-decoration: none;
    border: 1px solid var(--text-main);
    padding: 8px 20px;
    border-radius: 50px;
    white-space: nowrap;
}

.logo:hover {
    background: var(--text-main);
    color: #fff;
    transition: 0.3s;
}

nav ul {
    display: flex;
    gap: 35px;
    list-style: none;
}

nav a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: 0.3s;
    font-weight: 500;
}

nav a:hover {
    color: var(--gold);
}

/* --- HERO --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
    width: 100%;
    overflow: hidden;
}

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

.hero-text h1 {
    font-size: 4.8rem;
    line-height: 1.05;
    margin-bottom: 30px;
}

.hero-text h1 span {
    font-family: var(--font-script);
    color: var(--gold);
    font-weight: 400;
    display: block;
    font-size: 4.5rem;
    margin-top: 5px;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 45px;
    line-height: 1.8;
    max-width: 480px;
    border-left: 2px solid var(--gold);
    padding-left: 25px;
}

.hero-img-wrap {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-img-wrap::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--gold);
    z-index: -1;
    border-radius: 200px 200px 0 0;
}

.hero-img {
    width: 100%;
    border-radius: 200px 200px 0 0;
    box-shadow: var(--shadow);
    display: block;
    object-fit: cover;
    height: 600px;
}

/* --- MARQUEE --- */
.marquee-container {
    background: var(--text-main);
    color: #fff;
    padding: 18px 0;
    overflow: hidden;
    white-space: nowrap;
    margin-bottom: 80px;
    width: 100%;
}

.marquee {
    display: inline-block;
    animation: scroll 25s linear infinite;
}

.marquee span {
    margin: 0 50px;
    font-family: var(--font-title);
    font-style: italic;
    font-size: 1.4rem;
    letter-spacing: 1px;
    opacity: 0.8;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* --- ABOUT --- */
.about-wrap {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
    background: var(--glass);
    backdrop-filter: blur(10px);
    padding: 60px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    align-items: center;
}

.about-content h3 {
    font-size: 2.5rem;
    margin-bottom: 25px;
}

.about-content p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
}

.signature {
    font-family: var(--font-script);
    font-size: 3rem;
    color: var(--gold);
    margin-top: 40px;
    text-align: right;
}

/* --- BENEFITS --- */
.benefits-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.benefits-section .section-header .subtitle {
    color: var(--gold);
    opacity: 0.7;
}

.benefits-section h2 {
    color: #fff;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 30px;
    border-radius: 4px;
    text-align: center;
    transition: 0.4s;
}

.benefit-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--gold);
}

.benefit-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 25px;
    display: inline-block;
}

.benefit-card h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
    letter-spacing: 1px;
}

.benefit-card p {
    font-size: 0.95rem;
    color: #aaa;
    line-height: 1.6;
}


/* --- TIMELINE --- */
.timeline-section {
    background-color: var(--bg-accent);
}

.timeline-wrap {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-wrap::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--gold);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
    opacity: 0.4;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    top: 32px;
    background-color: var(--bg-base);
    border: 3px solid var(--gold);
    border-radius: 50%;
    z-index: 1;
}

.timeline-item.right::after {
    left: -8px;
}

.timeline-content {
    padding: 30px;
    background-color: #fff;
    position: relative;
    border-radius: 6px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.timeline-content:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow);
}

.timeline-num {
    font-family: var(--font-script);
    font-size: 2.5rem;
    color: var(--gold);
    position: absolute;
    top: -15px;
    opacity: 0.3;
}

.left .timeline-num {
    left: 20px;
}

.right .timeline-num {
    right: 20px;
}

.timeline-content h4 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    margin-top: 10px;
}

.timeline-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* --- COURSES GRID --- */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.course-card {
    background: #fff;
    padding: 40px;
    border-radius: 4px;
    transition: 0.4s;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: var(--gold);
}

.card-flagship {
    background: linear-gradient(135deg, #fff 0%, #FDFBF9 100%);
    border: 1px solid #EFE3D8;
}

.card-flagship::after {
    content: 'Хіт продажів';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 12px;
    border: 1px solid var(--gold);
    color: var(--gold);
    border-radius: 50px;
}

.icon-box {
    width: 70px;
    height: 70px;
    background: var(--bg-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--gold-dark);
    margin-bottom: 30px;
    transition: 0.5s;
}

.course-card:hover .icon-box {
    background: var(--gold);
    color: #fff;
    transform: rotateY(180deg);
}

.course-title {
    font-size: 1.7rem;
    margin-bottom: 15px;
    line-height: 1.2;
}

.course-details {
    list-style: none;
    margin-bottom: 30px;
    flex-grow: 1;
}

.course-details li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.course-details li::before {
    content: '•';
    color: var(--gold);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -5px;
}

.card-link {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-main);
    border-bottom: 2px solid var(--gold);
    padding-bottom: 5px;
    align-self: flex-start;
    cursor: pointer;
    transition: 0.3s;
}

.card-link:hover {
    color: var(--gold);
    border-color: transparent;
}

/* --- PORTFOLIO (NEW GRID) --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 колонки на ПК */
    gap: 25px;
}

.portfolio-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 400px; /* Фіксована висота для ПК - більше не буде "гігантських" */
    box-shadow: var(--shadow);
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Картинка заповнює блок, не сплющується */
    transition: transform 0.6s ease;
    display: block;
}

/* Ефект при наведенні */
.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(35, 32, 30, 0.4); /* Напівпрозорий темний фон */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-overlay i {
    color: #fff;
    font-size: 2rem;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1); /* Легкий зум картинки */
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1; /* Показати оверлей */
}

.portfolio-item:hover .portfolio-overlay i {
    transform: scale(1);
}

/* Адаптивність */
@media (max-width: 900px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки на планшеті */
        gap: 15px;
    }

    .portfolio-item {
        height: 300px; /* Трохи менша висота */
    }
}

@media (max-width: 600px) {
    /* На мобільному залишаємо 2 колонки, щоб було компактно */
    .portfolio-grid {
        gap: 10px;
    }

    .portfolio-item {
        height: 200px; /* Невелика висота для мобілок */
    }

    .portfolio-overlay i {
        font-size: 1.5rem;
    }
}

/* --- CONTACT --- */
.contact-box {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 70px;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 10;
    border-radius: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.input-group label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    color: #888;
}

.input-field {
    width: 100%;
    padding: 18px;
    border: 1px solid #E0E0E0;
    background: #FAFAFA;
    font-family: var(--font-body);
    transition: 0.3s;
    font-size: 1rem;
}

.input-field:focus {
    outline: none;
    border-color: var(--gold);
    background: #fff;
}

/* --- FOOTER --- */
footer {
    background: #1a1a1a;
    color: #888;
    padding: 70px 0 40px;
    text-align: center;
    border-top: 5px solid var(--gold);
}

.footer-logo {
    color: #fff;
    font-family: var(--font-title);
    font-size: 2.2rem;
    margin-bottom: 30px;
    display: inline-block;
    text-decoration: none;
    letter-spacing: 2px;
}

.socials a {
    color: #fff;
    width: 45px;
    height: 45px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
    transition: 0.3s;
    font-size: 1.2rem;
    text-decoration: none;
}

.socials a:hover {
    background: var(--gold);
    border-color: var(--gold);
}

/* Sticky Button */
.sticky-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: 0.3s;
    animation: pulse 2s infinite;
    text-decoration: none;
}

.sticky-btn:hover {
    transform: scale(1.1);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* --- MEDIA QUERIES --- */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-desc {
        margin: 25px auto;
        border: none;
        padding: 0;
    }

    .hero-img-wrap {
        width: 90%;
        margin: 0 auto;
        order: -1;
    }

    .hero-img {
        height: 450px;
    }

    .about-wrap {
        grid-template-columns: 1fr;
    }

    .portfolio-masonry {
        column-count: 2;
    }

    /* Timeline Mob */
    .timeline-wrap::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item.left, .timeline-item.right {
        text-align: left;
        left: 0;
    }

    .timeline-item::after {
        left: 21px;
    }

    .timeline-item.right::after {
        left: 21px;
    }

    .left .timeline-num, .right .timeline-num {
        left: -50px;
        top: 10px;
        opacity: 1;
        font-size: 1.5rem;
    }

    nav {
        display: none;
    }
}

@media (max-width: 600px) {
    /* Фікс для дуже вузьких екранів */
    html, body {
        overflow-x: hidden;
        position: relative;
    }

    .hero-text h1 {
        font-size: 3.2rem;
    }

    .hero-text h1 span {
        font-size: 3rem;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-box {
        padding: 30px;
    }

    .portfolio-masonry {
        column-count: 1;
    }

    .hero {
        padding-top: 120px;
    }

    /* Важливий фікс для форми, щоб не розпирала екран */
    .input-field {
        width: 100%;
        box-sizing: border-box;
    }
}

/* --- REVIEWS (ВІДГУКИ) --- */
.reviews-section {
    background-color: var(--bg-base);
    /* Додамо легкий градієнт для глибини */
    background: linear-gradient(to bottom, #FDFBF9 0%, #F2EBE5 100%);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #fff;
    padding: 40px 30px;
    border-radius: 4px;
    position: relative;
    box-shadow: 0 10px 30px rgba(197, 160, 132, 0.1);
    transition: 0.4s;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(197, 160, 132, 0.2);
    border-color: var(--gold);
}

/* Велика декоративна лапка */
.review-card::before {
    content: '\201C'; /* Символ лапок */
    position: absolute;
    top: 20px;
    left: 20px;
    font-family: var(--font-title);
    font-size: 5rem;
    color: var(--gold);
    opacity: 0.15;
    line-height: 1;
}

.review-text {
    font-family: var(--font-title);
    font-style: italic;
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
    color: #4a4a4a;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto;
    border-top: 1px solid rgba(197, 160, 132, 0.3);
    padding-top: 20px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 1.2rem;
}

.author-info h5 {
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3px;
}

.author-info span {
    font-size: 0.75rem;
    color: var(--gold);
    font-weight: 600;
}

/* Зірочки */
.stars {
    color: #FFC107;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

/* --- MULTI-FORM STYLES --- */
.form-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 35px;
    background: #F2EBE5;
    padding: 5px;
    border-radius: 50px;
    display: inline-flex;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

.tab-btn {
    padding: 12px 35px;
    border-radius: 50px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    transition: 0.3s;
    font-weight: 500;
}

.tab-btn.active {
    background: #fff;
    color: var(--text-main);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    font-weight: 600;
}

/* Приховати/показати поля */
.form-part {
    display: none;
    animation: fadeIn 0.5s;
}

.form-part.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Стиль для текстового поля питання */
textarea.input-field {
    resize: vertical;
    min-height: 120px;
}

/* --- MODAL (POPUP) STYLES --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(35, 32, 30, 0.9);
    z-index: 2000;
    display: none; /* Приховано за замовчуванням */
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.open {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #FDFBF9;
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto; /* Скрол всередині вікна */
    border-radius: 8px;
    position: relative;
    padding: 50px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: 0.3s;
    z-index: 10;
}

.close-modal:hover {
    color: var(--gold);
    transform: rotate(90deg);
}

/* Стилі програми всередині модалки */
.program-list {
    column-count: 2; /* Дві колонки для пунктів */
    column-gap: 40px;
    margin: 30px 0 50px;
    padding-left: 20px;
}

.program-list li {
    font-size: 0.9rem;
    margin-bottom: 10px;
    break-inside: avoid; /* Щоб пункти не розривались */
    line-height: 1.4;
    color: #444;
}

/* Стилі тарифів */
.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.price-card {
    border: 1px solid #e0e0e0;
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    transition: 0.3s;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.price-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.price-card.vip {
    background: #23201E;
    color: #fff;
    border: none;
}

.price-card h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.price-amount {
    font-family: var(--font-script);
    font-size: 2.5rem;
    color: var(--gold);
    margin: 15px 0;
    display: block;
}

.price-card.vip .price-amount {
    color: #DDC5B3;
}

.price-features {
    list-style: none;
    text-align: left;
    margin-bottom: 25px;
    flex-grow: 1;
}

.price-features li {
    font-size: 0.85rem;
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
    opacity: 0.8;
}

.price-features li::before {
    content: '✓';
    color: var(--gold);
    position: absolute;
    left: 0;
}

@media (max-width: 768px) {
    .program-list {
        column-count: 1;
    }

    .modal-content {
        padding: 30px 20px;
    }
}

/* --- СТИЛИ ДЛЯ СКИДОК --- */
.price-discount-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 15px 0;
}

.price-old {
    font-family: var(--font-body);
    text-decoration: line-through;
    color: #a0a0a0; /* Серый цвет для старой цены */
    font-size: 1.1rem;
    margin-bottom: -5px; /* Прижимаем к новой цене */
    font-weight: 500;
}

.price-new {
    font-family: var(--font-script);
    font-size: 3rem; /* Чуть крупнее обычной */
    color: var(--gold);
    line-height: 1.2;
}

/* Специфика для темной VIP карточки */
.price-card.vip .price-old {
    color: rgba(255, 255, 255, 0.4); /* Полупрозранчый белый */
}

.price-card.vip .price-new {
    color: #fff; /* Белый или светлое золото для контраста */
    text-shadow: 0 0 20px rgba(221, 197, 179, 0.4); /* Легкое свечение */
}

/* Бейдж для ограниченных мест */
.limit-badge {
    display: inline-block;
    font-size: 0.7rem;
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 107, 107, 0.3);
}
