/*
Theme Name: Timokhova Nails Theme
Theme URI: https://timokhova-nails.pl
Author: Broston.net
Author URI: https://broston.net
Description: Premium manicure salon and nail styling academy theme for WordPress. Professional, elegant design with full support for services, courses, and portfolio.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: timokhova-nails.pl
Tags: business, beauty, salon, modern, responsive, premium, academy
*/
div#wpadminbar {
    display: none;
}

/* --- CSS VARIABLES & RESET --- */
:root {
    --bg-color: #0f0f0f;
    --card-bg: #161616;
    --bg-darker: #0a0a0a;
    --text-color: #f2f2f2;
    --text-muted: #999;
    --gold-solid: #d4af37;
    --gold-hover: #f3e5ab;
    --font-main: 'Montserrat', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --spacing-section: 100px;
    --container-width: 1400px;
    --nav-height: 90px;
    --gold-gradient: linear-gradient(135deg, #d4af37 0%, #f7ef8a 50%, #d4af37 100%);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    zoom: 1.1;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- UTILS --- */
.gold-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--gold-solid);
    display: inline-block;
}

/* Подзаголовок секции */
.section-subtitle {
    color: #aaa;
    font-size: 1.1rem;
    line-height: 1.5;
    margin-top: 15px;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Центрированный заголовок секции */
.section-header-centered {
    text-align: center;
    margin-bottom: 80px;
}

/* Карточка курса премиум */
.course-card-premium {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 60px;
    margin-bottom: 120px;
}

/* Карточка курса с обратным порядком */
.course-card-premium.reversed {
    flex-wrap: wrap-reverse;
    margin-bottom: 0;
}

/* Визуальная часть карточки курса */
.course-visuals {
    flex: 1;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: space-between;
}

/* Изображение курса */
.course-visual-img {
    width: 100%;
    height: 32%;
    object-fit: cover;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

/* Информационная часть курса */
.course-info {
    flex: 1.2;
    min-width: 350px;
    display: flex;
    flex-direction: column;
}

/* Бейдж курса */
.course-tag-badge {
    display: inline-block;
    padding: 5px 15px;
    border: 1px solid var(--gold-solid);
    color: var(--gold-solid);
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 25px;
    align-self: flex-start;
    letter-spacing: 1px;
}

/* Заголовок курса */
.course-title-large {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 30px;
}

/* Текст курса */
.course-text {
    color: #aaa;
    line-height: 1.8;
    margin-bottom: 40px;
}

/* Сетка статистики курса */
.course-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

/* Бокс статистики */
.stat-box {
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-left: 2px solid var(--gold-solid);
}

/* Лейбл статистики */
.stat-label {
    color: #666;
    text-transform: uppercase;
    font-size: 0.65rem;
}

/* Значение статистики */
.stat-value {
    margin: 5px 0 0;
    font-weight: 500;
    color: #fff;
}

/* Кнопка выравненная по началу */
.btn-start {
    align-self: flex-start;
}

/* Кнопка большая */
.btn-large {
    padding: 15px 45px;
}

/* SVG иконка в кнопке */
.btn-icon {
    vertical-align: middle;
    margin-right: 8px;
}

/* Секция Academy */
.academy-section {
    padding: 120px 0;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

/* Футер академии */
.academy-footer {
    text-align: center;
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Текст футера академии */
.academy-footer-text {
    color: #555;
    font-size: 0.85rem;
    line-height: 1.6;
}

/* Portfolio Home Section */
.portfolio-home-section {
    position: relative;
    padding: 120px 0;
    background: #0a0a0a;
    color: #fff;
    overflow: hidden;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

/* Portfolio background overlay */
.portfolio-home-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: center/cover no-repeat fixed;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 1;
}

.portfolio-home-bg.bg-loaded {
    opacity: 0.15;
}

/* Container с z-index */
.container-relative {
    position: relative;
    z-index: 2;
}

/* Section header portfolio */
.section-header-portfolio {
    text-align: center;
    margin-bottom: 60px;
}

/* Обёртка текста с макс. шириной */
.text-wrapper-narrow {
    max-width: 850px;
    margin: 0 auto;
}

/* Описание портфолио */
.portfolio-desc {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 20px;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 300;
    line-height: 1.6;
}

/* SEO текст портфолио */
.portfolio-seo-text {
    color: #aaa;
    line-height: 1.8;
    font-size: 0.95rem;
    margin-top: 30px;
}

/* Footer текст портфолио */
.portfolio-footer-wrapper {
    margin-top: 60px;
    text-align: center;
}

/* Footer текст */
.portfolio-footer-text {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 25px;
    font-style: italic;
}

/* --- ERROR 404 PAGE --- */
.error-404-wrapper {
    text-align: center;
    padding: 100px 20px;
}

.error-404-title {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    margin-bottom: 30px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.error-404-subtitle {
    color: #fff;
    margin-bottom: 20px;
    font-size: 2rem;
}

.error-404-text {
    color: #aaa;
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
}

.error-404-links {
    margin-top: 50px;
}

/* Кнопка с отступом справа */
.btn-mr {
    margin-right: 20px;
}

/* ============================================
   LUXURY DIVIDERS
   ============================================ */
.luxury-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 80px 0;
    opacity: 0.9;
    background: transparent;
    position: relative;
    z-index: 10;
}

/* Модификатор для прозрачного фона между секциями */
.luxury-divider.transparent-bg {
    background: transparent !important;
    margin: 0;
    padding: 40px 0;
}

.divider-sparkle {
    gap: 20px;
}

.divider-sparkle::before,
.divider-sparkle::after {
    content: '';
    display: block;
    height: 1px;
    width: 150px;
    background: linear-gradient(90deg, transparent 0%, var(--gold-solid) 100%);
}

.divider-sparkle::after {
    background: linear-gradient(90deg, var(--gold-solid) 0%, transparent 100%);
}

.divider-sparkle .icon {
    font-family: 'Playfair Display', serif;
    color: var(--gold-solid);
    font-size: 1.8rem;
    line-height: 1;
    position: relative;
    top: -2px;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {

    0%,
    100% {
        opacity: 0.7;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Модификатор для прозрачного фона */
.luxury-divider.transparent-bg {
    background: transparent !important;
    margin: 40px 0;
    padding: 20px 0;
}

/* ============================================
   ПОДЗАГОЛОВКИ СЕКЦИЙ
   ============================================ */
.section-desc {
    color: #888;
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Delay variations */
.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

.delay-5 {
    transition-delay: 0.5s;
}

.delay-6 {
    transition-delay: 0.6s;
}

/* ============================================
   ENHANCED HOVER EFFECTS
   ============================================ */

/* Glow effect on hover */
.glow-on-hover {
    transition: all 0.4s ease;
}

.glow-on-hover:hover {
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3),
        0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Shimmer effect */
.shimmer-effect {
    position: relative;
    overflow: hidden;
}

.shimmer-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(212, 175, 55, 0.1),
            transparent);
    transition: left 0.6s ease;
}

.shimmer-effect:hover::after {
    left: 100%;
}

/* Floating animation */
.float-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Pulse border animation */
.pulse-border {
    position: relative;
}

.pulse-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    border: 1px solid var(--gold-solid);
    opacity: 0;
    animation: pulseBorder 2s ease-in-out infinite;
}

@keyframes pulseBorder {

    0%,
    100% {
        opacity: 0;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.02);
    }
}


/* ============================================
   TRUST BADGES SECTION
   ============================================ */
.trust-section {
    background: linear-gradient(180deg, #0a0a0a 0%, #111 100%);
    padding: 80px 0;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.trust-item {
    padding: 30px 20px;
    position: relative;
}

.trust-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 60px;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(212, 175, 55, 0.3), transparent);
}

.trust-item:last-child::after {
    display: none;
}

.trust-number {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 15px;
}

.trust-label {
    color: #aaa;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials-section {
    background: #0a0a0a;
    padding: 120px 0;
    overflow: hidden;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.testimonial-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 20px;
    padding: 40px 30px 30px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    min-height: 320px;
    background-clip: padding-box;
    /* Fix border blending */
    backface-visibility: hidden;
    /* Fix rendering artifacts */
    transform: translateZ(0);
    /* Force GPU */
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.15), 0 0 0 1px rgba(212, 175, 55, 0.1);
    /* Smoother glow + fake border glow */
}

.testimonial-quote {
    font-size: 3rem;
    color: var(--gold-solid);
    opacity: 0.4;
    font-family: Georgia, serif;
    line-height: 1;
    margin-bottom: 10px;
}

.testimonial-text {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 25px;
    font-style: italic;
    flex: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto;
}

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

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-info {
    flex: 1;
}

.testimonial-name {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 3px;
}

.testimonial-role {
    color: var(--gold-solid);
    font-size: 0.85rem;
}

.testimonial-rating {
    display: flex;
    gap: 3px;
    margin-top: 5px;
}

.testimonial-rating svg {
    width: 14px;
    height: 14px;
    fill: var(--gold-solid);
}

/* ============================================
   TESTIMONIALS CAROUSEL
   ============================================ */
.testimonials-carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 60px;
    position: relative;
}

.testimonials-carousel {
    flex: 1;
    overflow: hidden;
    padding: 50px 40px;
    margin: -50px -40px;
}

.testimonials-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease;
}

.testimonials-track .testimonial-card {
    flex: 0 0 calc((100% - 60px) / 3);
    min-width: calc((100% - 60px) / 3);
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(212, 175, 55, 0.3);
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

.carousel-btn:hover {
    border-color: var(--gold-solid);
    background: rgba(212, 175, 55, 0.1);
    transform: scale(1.1);
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
    fill: var(--gold-solid);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot:hover,
.carousel-dot.active {
    background: var(--gold-solid);
    transform: scale(1.2);
}

/* Адаптивность карусели */
@media (max-width: 1024px) {
    .testimonials-carousel-wrapper {
        overflow: hidden !important;
        padding: 0 !important;
        clip-path: inset(0) !important;
    }

    .testimonials-carousel {
        overflow: hidden !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .testimonials-track {
        gap: 0 !important;
    }

    .testimonials-track .testimonial-card {
        flex: 0 0 100% !important;
        min-width: 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
}




/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
    background: #111;
    padding: 120px 0;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(212, 175, 55, 0.4);
}

.faq-item.active {
    border-color: var(--gold-solid);
}

.faq-question {
    padding: 25px 30px;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.04);
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
    margin: 0;
    flex: 1;
    padding-right: 20px;
}

.faq-icon {
    width: 24px;
    height: 24px;
    position: relative;
    flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background: var(--gold-solid);
    transition: transform 0.3s ease;
}

.faq-icon::before {
    width: 100%;
    height: 2px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.faq-icon::after {
    width: 2px;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

.faq-item.active .faq-icon::after {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

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

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

.faq-answer-content {
    padding: 0 30px 25px;
    color: #aaa;
    line-height: 1.8;
    font-size: 1rem;
}

/* ============================================
   WHY US SECTION
   ============================================ */
.why-us-section {
    padding: 120px 0;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.why-us-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.02), transparent);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.why-us-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold-gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.why-us-card:hover::before {
    transform: scaleX(1);
}

.why-us-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 175, 55, 0.2);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.why-us-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: all 0.4s ease;
}

.why-us-card:hover .why-us-icon {
    background: var(--gold-gradient);
    transform: scale(1.1);
}

.why-us-card:hover .why-us-icon svg {
    fill: #000;
}

.why-us-icon svg {
    width: 32px;
    height: 32px;
    fill: var(--gold-solid);
    transition: fill 0.4s ease;
}

.why-us-title {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.why-us-text {
    color: #888;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
    position: relative;
    padding: 100px 0;
}

.faq-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    align-items: start;
}

.trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.trust-item::after {
    display: none;
}

.trust-item:nth-child(2n)::after {
    display: none;
}

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

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

@media (max-width: 768px) {
    .faq-container {
        grid-template-columns: 1fr;
    }

    .trust-section {
        padding: 60px 0;
    }

    .faq-container {
        grid-template-columns: 1fr;
    }

    .trust-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .trust-number {
        font-size: 2.5rem;
    }

    .trust-label {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .testimonial-card {
        padding: 30px 25px;
    }

    .why-us-grid {
        grid-template-columns: 1fr;
    }

    .faq-question {
        padding: 20px;
    }

    .faq-question h3 {
        font-size: 1rem;
    }

    .faq-answer-content {
        padding: 0 20px 20px;
    }
}

@media (max-width: 480px) {
    .trust-grid {
        grid-template-columns: 1fr;
    }

    .trust-item {
        padding: 20px;
        border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    }

    .trust-item:last-child {
        border-bottom: none;
    }
}


/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #000;
    position: relative;
    margin-top: 0;
    overflow: hidden;
}

/* Видео (Подняли Z-index на 1, чтобы не пропадало) */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Затемнение (Z-index 2) */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(15, 15, 15, 1));
    z-index: 2;
    /* Было 1, стало 2 */
}

/* Контент (Z-index 3 - самый верхний) */
.hero-content {
    position: relative;
    z-index: 3;
    padding: 0 20px;
    /* Чтобы текст не прилипал к краям на мобиле */
    width: 100%;
    max-width: 1000px;
}

.hero-subtitle {
    display: block;
    color: var(--gold-solid);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 25px;
    line-height: 1.15;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #e0e0e0;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 16px 45px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    border: 1px solid var(--gold-solid);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-decoration: none;
}

.btn-primary {
    background: var(--gold-gradient, #d4af37);
    color: #000;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--gold-solid, #fff);
    border: 1px solid var(--gold-solid);
}

.btn-outline:hover {
    background: var(--gold-gradient, #d4af37);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

/* --- МОБИЛЬНАЯ АДАПТАЦИЯ (Добавь в конец CSS) --- */
@media (max-width: 600px) {
    .hero-buttons {
        flex-direction: column;
        /* Кнопки друг под другом */
        gap: 15px;
        width: 100%;
        max-width: 350px;
        /* Ограничиваем ширину кнопок */
        margin: 0 auto;
    }

    .btn {
        width: 100%;
        /* Кнопка во всю ширину */
        text-align: center;
        box-sizing: border-box;
        /* Чтобы padding не ломал ширину */
    }
}

.bg-darker {
    background-color: var(--bg-darker);
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-5 {
    margin-top: 3rem;
}

.w-100 {
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- HEADER --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    transition: 0.4s ease;
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

header.scrolled {
    background: rgba(10, 10, 10, 0.95);
    height: 70px;
    /* Shrink on scroll */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    z-index: 1001;
    white-space: nowrap;
}

.nav-links ul {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    color: #e0e0e0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold-solid);
    transition: 0.3s;
}

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

.nav-links a:hover::after {
    width: 100%;
}

.mobile-cta-li {
    display: none;
}

/* Hide mobile CTA inside menu on desktop */
.desktop-cta {
    display: inline-block;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

.mobile-menu-btn span {
    width: 30px;
    height: 2px;
    background: var(--gold-solid);
    transition: 0.3s;
}

/* --- SECTIONS --- */
.section {
    padding: var(--spacing-section) 0;
}

/* Stats / Trust */
.stats-section {
    padding: 60px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.advantages {
    display: flex;
    justify-content: space-around;
    text-align: center;
    flex-wrap: wrap;
    gap: 40px;
}

.advantage-item h4 {
    font-size: 3rem;
    font-family: var(--font-serif);
    margin-bottom: 5px;
}

.advantage-item p {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Services Cards */
.services-grid {
    display: grid;
    /* ИЗМЕНЕНО: Строго 2 колонки. Делает ровный квадрат 2x2 */
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Адаптивность: на планшетах и телефонах (меньше 900px) делаем 1 колонку */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: var(--card-bg);
    padding: 50px 40px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: 0.4s;
    position: relative;
    overflow: hidden;
    /* ВАЖНО для кнопки внизу: */
    display: flex;
    flex-direction: column;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gold-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: 0.4s;
}

.service-card:hover {
    transform: translateY(-10px);
    background: #1c1c1c;
    border-color: transparent;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.service-card:hover .card-glow {
    transform: scaleX(1);
}

.service-icon {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--gold-solid);
}

.service-card h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 30px;
    color: #fff;
}

.service-list {
    margin-bottom: 20px;
    /* Отступ от списка до кнопки */
}

.service-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
    font-size: 0.95rem;
}

.service-item:last-child {
    border-bottom: none;
}

.price {
    font-weight: 600;
    color: var(--gold-solid);
    font-family: var(--font-serif);
    white-space: nowrap;
    flex-shrink: 0;
    text-align: right;
}

/* Стили для кнопки "Подробнее" */
.card-action {
    margin-top: auto;
    /* Прижимает кнопку к самому низу */
    padding-top: 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    text-align: center;
    width: 100%;
}

.btn-link {
    display: inline-block;
    color: var(--gold-solid);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    text-decoration: none;
    padding-top: 5px;
}

.btn-link:hover {
    color: #fff;
    letter-spacing: 3px;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}

/* Courses */
.course-card {
    display: flex;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: 0.3s;
}

.course-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
}

/* ============================================
   MANICURE / COURSE FULL ITEM LAYOUT
   ============================================ */
.course-full-item {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 120px;
    position: relative;
    z-index: 1;
}

.course-image-side {
    flex: 1;
    min-width: 420px;
    position: relative;
    display: flex;
    justify-content: center;
    padding: 20px;
}

.course-text-side {
    flex: 1;
    position: relative;
}

/* 
   PHOTO WRAPPER 
   - Fixed size for desktop "premium" look 
*/
.photo-wrapper {
    position: relative;
    width: 400px;
    height: 600px;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    background: #000;
    transition: transform 0.4s ease;
}

.photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(50%) brightness(0.7);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.photo-wrapper:hover img {
    transform: scale(1.05);
    filter: grayscale(0%) brightness(1);
}

/* DECORATIVE FRAME */
.photo-frame-decor {
    position: absolute;
    width: 400px;
    height: 600px;
    border: 1px solid var(--gold-solid);
    opacity: 0.3;
    z-index: 1;
    pointer-events: none;
    transition: all 0.5s ease;
}

.decor-left {
    transform: translate(-50px, -20px);
}

.decor-right {
    transform: translate(50px, 60px);
}

/* Shifts */
.wrapper-shift-right {
    margin-left: 0;
}

.wrapper-shift-left {
    margin-right: 0;
}

/* Overlay */
.photo-gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, #050505 0%, transparent 100%);
    pointer-events: none;
    z-index: 3;
}

/* Benefits List inside Manicure */
.mani-benefits-list {
    margin-top: 25px;
    padding-left: 0;
}

.mani-benefits-list li {
    margin-bottom: 12px;
    align-items: baseline;
    color: #ccc;
}

.mani-benefits-list .bullet {
    color: var(--gold-solid);
    margin-right: 12px;
    font-size: 1.2em;
}

/* ============================================
   PREMIUM PRICE BOX (CTA)
   ============================================ */
.premium-price-box {
    position: relative;
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 60px;
    text-align: center;
    max-width: 900px;
    margin: 80px auto 0;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.8) 0%, rgba(10, 10, 10, 0.9) 100%);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.corner-decor {
    position: absolute;
    width: 30px;
    height: 30px;
    border-color: var(--gold-solid);
    border-style: solid;
    transition: 0.3s;
}

.c-top-left {
    top: -1px;
    left: -1px;
    border-width: 2px 0 0 2px;
}

.c-bottom-right {
    bottom: -1px;
    right: -1px;
    border-width: 0 2px 2px 0;
}

.premium-price-box:hover .corner-decor {
    width: 100%;
    height: 100%;
}

.price-box-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.price-box-subtitle {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 40px;
}

.price-info-row {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 0;
}

.price-info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
}

.info-value {
    font-size: 1.5rem;
    color: var(--gold-solid);
    font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .mani-section {
        overflow-x: hidden;
    }

    .course-full-item {
        flex-direction: column;
        gap: 40px;
        margin-bottom: 80px;
        text-align: center;
    }

    .course-full-item.reverse-mobile {
        flex-direction: column-reverse;
    }

    .course-image-side {
        min-width: auto;
        width: 100%;
        padding: 0;
    }

    .photo-wrapper,
    .photo-frame-decor {
        width: 100%;
        max-width: 400px;
        height: auto;
        aspect-ratio: 400/600;
        margin: 0 auto;
        transform: none;
    }

    .photo-wrapper {
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    }

    /* Small offsets for mobile */
    .decor-left {
        transform: translate(-10px, -10px);
    }

    .decor-right {
        transform: translate(10px, 10px);
    }

    .course-text-side {
        padding: 0 10px;
    }

    .mani-benefits-list {
        text-align: left;
        display: inline-block;
    }

    /* PREMIUM PRICE BOX MOBILE (Restored) */
    .premium-price-box {
        padding: 30px 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .premium-price-box .btn {
        width: 100% !important;
        max-width: 100% !important;
        white-space: normal !important;
        height: auto !important;
        padding: 15px 10px !important;
        font-size: 0.9rem !important;
        display: block !important;
        text-align: center !important;
        line-height: 1.4 !important;
    }

    .price-info-row {
        flex-direction: column !important;
        gap: 20px !important;
        display: flex !important;
    }
}

.course-card.reverse {
    flex-direction: row-reverse;
}

.course-image-wrapper {
    width: 45%;
    overflow: hidden;
    position: relative;
}

.course-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.8s ease;
}

.course-card:hover .course-image-wrapper img {
    transform: scale(1.05);
}

.course-content {
    padding: 70px;
    width: 55%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.course-tag {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 3px;
    color: var(--gold-solid);
    margin-bottom: 20px;
    font-weight: 600;
}

.course-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-bottom: 25px;
    line-height: 1.2;
}

.course-features {
    display: flex;
    gap: 30px;
    margin: 30px 0 40px;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 0;
}

/* Contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    background: #121212;
    padding: 60px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.contact-info h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 20px;
}

.info-row {
    margin-bottom: 25px;
}

.info-label {
    color: var(--gold-solid);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
    display: block;
}

/* Form Styles */
.form-group {
    position: relative;
    margin-bottom: 35px;
}

.contact-form-wrapper input,
.contact-form-wrapper select {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #333;
    padding: 12px 0;
    color: #fff;
    font-family: var(--font-main);
    font-size: 1.1rem;
    transition: 0.3s;
    border-radius: 0;
    /* Remove default IOS radius */
}

.contact-form-wrapper input:focus,
.contact-form-wrapper select:focus {
    outline: none;
    border-bottom-color: var(--gold-solid);
}

.contact-form-wrapper label {
    position: absolute;
    top: 12px;
    left: 0;
    color: #666;
    transition: 0.3s;
    pointer-events: none;
    font-size: 1rem;
}

.contact-form-wrapper input:focus~label,
.contact-form-wrapper input:not(:placeholder-shown)~label {
    top: -20px;
    font-size: 0.75rem;
    color: var(--gold-solid);
    letter-spacing: 1px;
}

/* Footer */
footer {
    background: #050505;
    border-top: 1px solid #1a1a1a;
    padding: 80px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 25px;
    font-family: var(--font-serif);
    font-size: 1.2rem;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-muted);
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: var(--gold-solid);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #1a1a1a;
    font-size: 0.8rem;
    color: #444;
}

/* --- RESPONSIVE FIX (THE LOGO OVERLAP SOLUTION) --- */
/* Переключаемся на мобильное меню на 1400px (планшеты и маленькие ноутбуки) */
@media (max-width: 1400px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 100%;
        /* Полная ширина для лучшего стиля */
        background: #0f0f0f;
        /* Не прозрачный, сплошной цвет */
        flex-direction: column;
        justify-content: center;
        transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1000;
        display: flex;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links ul {
        flex-direction: column;
        gap: 30px;
    }

    .nav-links a {
        font-size: 1.5rem;
        /* Крупный шрифт для мобильного меню */
        font-family: var(--font-serif);
    }

    /* Показываем гамбургер */
    .mobile-menu-btn {
        display: flex;
    }

    /* Скрываем кнопку десктопную, показываем мобильную */
    .desktop-cta {
        display: none;
    }

    .mobile-cta-li {
        display: block;
        margin-top: 20px;
    }

    /* Layout Adjustments */
    .course-card,
    .course-card.reverse {
        flex-direction: column;
    }

    .course-image-wrapper,
    .course-content {
        width: 100%;
    }

    .course-image-wrapper {
        height: 300px;
    }

    .course-content {
        padding: 40px;
    }

    .contact-container {
        grid-template-columns: 1fr;
        padding: 40px;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 600px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .nav-container {
        padding: 0 15px;
    }

    .contact-container {
        padding: 20px;
        border: none;
        background: transparent;
    }
}

/* 1. Добавьте эти 2 строчки в существующий класс .service-card,
   чтобы кнопка всегда прижималась к низу, даже если список услуг короткий */
.service-card {
    /* ... ваши старые стили (background, padding и т.д.) оставьте ... */
    display: flex;
    /* Добавить */
    flex-direction: column;
    /* Добавить */
}

/* 2. Добавьте новые стили для контейнера кнопки и самой ссылки */
.card-action {
    margin-top: auto;
    /* Магия: толкает кнопку в самый низ карточки */
    padding-top: 20px;
    /* Отступ от списка услуг */
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    /* Тонкая золотая линия-разделитель */
    text-align: center;
    width: 100%;
}

.btn-link {
    display: inline-block;
    color: var(--gold-solid);
    /* Золотой цвет */
    font-size: 0.7rem;
    /* Маленький аккуратный шрифт */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    /* Расстояние между буквами для стиля */
    transition: all 0.3s ease;
    text-decoration: none;
    padding-top: 5px;
}

.btn-link:hover {
    color: #fff;
    /* Белый при наведении */
    letter-spacing: 3px;
    /* Эффект "растягивания" при наведении */
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
    /* Легкое свечение */
}

/* --- DROPDOWN MENU STYLES --- */
/* Контейнер для пункта меню */
.dropdown {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    /* Увеличиваем зону наведения */
    margin-bottom: -10px;
}

/* Скрытый блок с ссылками */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #1a1a1a;
    /* Темный фон */
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.5);
    z-index: 1002;
    top: 100%;
    left: 0;
    border-top: 2px solid var(--gold-solid);
    border-radius: 0 0 4px 4px;
    padding: 10px 0;
}

/* Ссылки внутри выпадающего списка */
.dropdown-content a {
    color: #e0e0e0;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Убираем стандартное подчеркивание меню для выпадающих ссылок */
.dropdown-content a::after {
    display: none;
}

/* Эффект при наведении на пункт списка */
.dropdown-content a:hover {
    background-color: #252525;
    color: var(--gold-solid);
    padding-left: 25px;
    /* Сдвиг вправо */
}

/* Показываем меню при наведении на родителя */
.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- МОБИЛЬНАЯ АДАПТАЦИЯ ДЛЯ ВЫПАДАЮЩЕГО СПИСКА --- */
@media (max-width: 1400px) {
    .dropdown {
        width: 100%;
        text-align: center;
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .dropdown-content {
        position: static;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        background: transparent;
        box-shadow: none;
        border-top: none;
        border-left: 2px solid var(--gold-solid);
        margin: 0 auto;
        width: 80%;
        transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
            opacity 0.4s ease,
            margin 0.4s ease,
            padding 0.4s ease;
        padding: 0;
    }

    /* На мобильных открываем ТОЛЬКО по клику (через JS класс .open) */
    .dropdown.open .dropdown-content {
        max-height: 500px !important;
        opacity: 1 !important;
        margin: 15px auto !important;
        padding: 10px 0 !important;
    }

    .dropdown-content a {
        font-size: 1rem;
        padding: 12px 15px;
        color: #999;
        transition: color 0.3s ease;
        border-bottom: none;
    }

    .dropdown-content a:hover {
        color: var(--gold-solid);
        padding-left: 15px;
    }

    /* Убираем анимацию fadeIn на мобильных */
    .dropdown .dropdown-content {
        animation: none;
    }
}

/* --- Вспомогательные классы для новых страниц --- */
/* Чтобы текст в шапке был поверх затемнения */
.relative {
    position: relative;
}

.z-10 {
    z-index: 10;
}

/* Адаптация заголовков на мобильных (перебиваем inline-стили) */
@media (max-width: 768px) {

    /* Уменьшаем огромные отступы в шапках новых страниц на телефоне */
    .page-header .container {
        padding-top: 100px !important;
        padding-bottom: 60px !important;
    }

    /* Уменьшаем шрифт заголовка */
    .page-header h1 {
        font-size: 2.5rem !important;
    }
}

/* --- PORTFOLIO GALLERY --- см. секцию PORTFOLIO PAGE STYLES (~строка 2800) --- */

/* --- LIGHTBOX (МОДАЛЬНОЕ ОКНО) --- см. секцию "Стили Лайтбокса" (~строка 1680) --- */
/* --- MODERN CONTACT FORM & SELECT --- */
/* Контейнер формы */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.contact-form-wrapper {
    background: #161616;
    padding: 50px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    position: relative;
}

/* Обертка для Select */
.custom-select-wrapper {
    position: relative;
    margin-bottom: 30px;
}

/* Базовый стиль Select */
select {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 0;
    color: #fff;
    font-family: var(--font-main);
    font-size: 1rem;
    appearance: none;
    /* Убирает стандартную стрелку Windows/Safari */
    -webkit-appearance: none;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 0;
}

select:focus {
    outline: none;
    border-bottom-color: var(--gold-solid);
}

/* Кастомная золотая стрелочка */
.select-icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold-solid);
    pointer-events: none;
    /* Чтобы клик проходил сквозь иконку в select */
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Стили для выпадающих пунктов (Options) */
select option {
    background: #1a1a1a;
    /* Темный фон списка */
    color: #fff;
    padding: 15px;
}

/* Статус отправки сообщения */
.form-status {
    margin-top: 20px;
    font-size: 0.9rem;
    text-align: center;
    min-height: 1.2em;
}

.form-status.success {
    color: #4CAF50;
}

.form-status.error {
    color: #f44336;
}

/* Адаптивность для формы */
@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form-wrapper {
        padding: 30px 20px;
    }
}

/* Стили select см. ниже в секции "СТИЛИ ДЛЯ ВЫПАДАЮЩЕГО СПИСКА" */

/* --- СЕТКА ПОРТФОЛИО НА ГЛАВНОЙ --- */
.portfolio-grid-home {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 колонки на десктопе */
    gap: 30px;
    /* Увеличенный отступ для исключения наслоения */
    margin-top: 40px;
    width: 100%;
    box-sizing: border-box;
}

.gallery-item-home {
    position: relative;
    aspect-ratio: 1 / 1;
    /* Идеальный квадрат */
    overflow: hidden;
    /* Острые углы для премиального стиля */
    border-radius: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #1a1a1a;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-sizing: border-box;
}

.gallery-item-home img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Эффект при наведении на фото */
.gallery-item-home:hover {
    border-color: var(--gold-solid);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.gallery-item-home:hover img {
    transform: scale(1.1);
}

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

/* Адаптивность для мобильных */
@media (max-width: 576px) {
    .portfolio-grid-home {
        grid-template-columns: repeat(2, 1fr);
        /* Оставляем 2 в ряд для компактности */
        gap: 15px;
        /* Умеренный отступ на мобильных */
    }
}

/* Адаптивность для совсем маленьких экранов */
@media (max-width: 400px) {
    .portfolio-grid-home {
        gap: 10px;
    }
}

/* --- СТИЛИ ДЛЯ ВЫПАДАЮЩЕГО СПИСКА (SELECT) --- */
/* Цвет текста становится золотым, когда выбран валидный вариант */
select:not(:invalid) {
    color: var(--gold-solid) !important;
}

/* Цвет стрелочки и текста при фокусе */
select:focus {
    border-bottom-color: var(--gold-solid);
}

/* Стилизация выпадающих пунктов */
select option {
    background: #1a1a1a;
    /* Темный фон списка */
    color: #fff;
    padding: 15px;
}

/* Убираем стандартное выделение синим в некоторых браузерах */
select option:checked {
    background-color: var(--gold-solid) !important;
    color: #000 !important;
}

/* Цвет для текста-заглушки (placeholder) */
select:invalid {
    color: #999;
}

/* --- СТИЛИ ДЛЯ АКАДЕМИИ: КЛАССИЧЕСКАЯ ГАЛЕРЕЯ (CLEAN LOOK) --- */
.education-section .course-card {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    background: transparent;
    margin-bottom: 120px;
    gap: 0;
    position: relative;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    /* Delikatna linia na górze bloku */
    padding-top: 50px;
    /* Miejsce na nagłówek z liniami */
}

/* NAGŁÓWEK KARTY: Złote linie na całą szerokość */
.education-section .course-tag {
    flex: 0 0 100%;
    /* Rozciąga się na 100% szerokości karty */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    /* Odstęp od zdjęć i tekstu */
    color: var(--gold-solid);
    font-family: var(--font-main);
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 0.8rem;
    background: transparent !important;
    /* Usuwamy tło, jeśli było wcześniej */
    padding: 0 !important;
}

/* Tworzenie linii po bokach napisu */
.education-section .course-tag::before,
.education-section .course-tag::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold-solid), transparent);
    opacity: 0.6;
}

/* Kontener dla kolumny zdjęć */
.education-section .course-image-wrapper {
    flex: 0 0 40%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 20px;
    z-index: 1;
}

.education-section .course-card.reverse {
    flex-direction: row-reverse;
}

.education-section .course-image-wrapper img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 4px;
    filter: brightness(0.9);
    transition: all 0.5s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Interakcje */
.education-section .course-card:hover .course-image-wrapper img {
    filter: brightness(1);
}

.education-section .course-image-wrapper img:hover {
    transform: scale(1.02);
    border-color: var(--gold-solid);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
    z-index: 10;
}

/* Blok tekstowy obok zdjęć */
.education-section .course-content {
    flex: 1;
    padding: 0 60px;
    position: sticky;
    top: 120px;
    /* Tekst "przykleja się" przy przewijaniu zdjęć */
}

.education-section .course-title {
    font-size: 2.8rem;
    line-height: 1.1;
    margin-bottom: 25px;
    font-family: var(--font-serif);
}

/* Responsywność dla tabletów i telefonów */
@media (max-width: 1100px) {
    .education-section .course-content {
        padding: 0 40px;
    }

    .education-section .course-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 991px) {
    .education-section .course-card {
        flex-direction: column !important;
        margin-bottom: 80px;
        padding-top: 30px;
    }

    .education-section .course-tag {
        margin-bottom: 30px;
        gap: 15px;
    }

    .education-section .course-image-wrapper {
        flex: none;
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        padding: 0 15px 20px;
        gap: 15px;
    }

    .education-section .course-image-wrapper img {
        flex: 0 0 260px;
        height: 200px !important;
    }

    .education-section .course-content {
        padding: 30px 20px;
        position: static;
        text-align: center;
    }
}

/* Контейнер для галочки */
.premium-checkmark {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid var(--gold-solid);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    position: relative;
    flex-shrink: 0;
    transition: var(--transition);
    background: rgba(212, 175, 55, 0.05);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
}

/* Сама галочка (рисуем через границы) */
.premium-checkmark::after {
    content: '';
    width: 8px;
    height: 4px;
    border-left: 2px solid var(--gold-solid);
    border-bottom: 2px solid var(--gold-solid);
    transform: rotate(-45deg);
    margin-top: -2px;
    transition: var(--transition);
}

/* Стили для пунктов списка */
.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: #eee;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: default;
}

/* Эффекты при наведении */
.feature-item:hover {
    color: #fff;
    transform: translateX(8px);
}

.feature-item:hover .premium-checkmark {
    background: var(--gold-gradient);
    border-color: transparent;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.feature-item:hover .premium-checkmark::after {
    border-color: #000;
    /* Галочка становится черной на золотом фоне */
    transform: rotate(-45deg) scale(1.1);
}

/* --- СТИЛИ СТРАНИЦЫ ПОРТФОЛИО --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
    width: 100%;
}

.gallery-item {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 0;
    /* Острые углы */
    border: 1px solid rgba(212, 175, 55, 0.3);
    background-color: #111;
    transition: all 0.4s ease;
    display: none;
    /* Скрыты по умолчанию для работы JS-фильтра */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.gallery-item:hover {
    border-color: var(--gold-solid);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
    z-index: 2;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay p {
    color: var(--gold-solid);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.8rem;
}

/* --- ФИЛЬТРЫ --- */
.filter-btn {
    background: transparent;
    color: #888;
    border: 1px solid #333;
    padding: 10px 25px;
    margin: 5px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    transition: 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    border-color: var(--gold-solid);
    color: var(--gold-solid);
}

/* --- КНОПКА ПОКАЗАТЬ БОЛЬШЕ --- */
.load-more-container {
    margin-top: 60px;
    text-align: center;
}

#load-more-btn {
    cursor: pointer;
    background: transparent;
    color: var(--gold-solid);
    border: 1px solid var(--gold-solid);
    padding: 15px 45px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    transition: 0.3s;
}

#load-more-btn:hover {
    background: var(--gold-solid);
    color: #000;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

/* АДАПТИВНОСТЬ */
@media (max-width: 992px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}

@media (max-width: 480px) {
    .portfolio-grid {
        gap: 15px !important;
    }

    h1 {
        font-size: 2.2rem !important;
    }
}

/* Оптимизированные стили для секции Fundamenty — убираем "квадраты" и делаем стиль чище */
.value-card {
    padding: 50px 30px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.value-card:hover {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-5px);
}

/* Золотой акцентный элемент вместо номера */
.value-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-gradient);
    transition: var(--transition);
}

.value-card:hover::after {
    width: 100%;
}

.value-icon {
    color: var(--gold-solid);
    font-size: 2rem;
    margin-bottom: 25px;
    transition: var(--transition);
}

.value-card:hover .value-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.4));
}

.value-card h3 {
    color: #fff;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
}

.value-card p {
    color: #999;
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0;
}

/* Стили для сертификатов */
.cert-item {
    height: 320px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    overflow: hidden;
    position: relative;
    background: #111;
    transition: var(--transition);
    cursor: pointer;
}

.cert-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.cert-item:hover {
    border-color: var(--gold-solid);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.cert-item:hover img {
    transform: scale(1.05);
}

/* Стили Лайтбокса с навигацией */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.92);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 85%;
    max-height: 80%;
    border: 1px solid rgba(212, 175, 55, 0.5);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    transition: transform 0.3s ease;
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    /* Можно чуть крупнее для удобства */
    cursor: pointer;
    transition: 0.3s;
    /* САМОЕ ГЛАВНОЕ: поднимаем выше стрелок (у стрелок 10002) */
    z-index: 10020;
    /* Увеличим зону клика, чтобы легче попадать */
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
}

.close-lightbox:hover {
    color: var(--gold-solid);
    transform: rotate(90deg);
    /* Небольшой эффект при наведении */
}

/* === КНОПКИ ЛАЙТБОКСА (PURE CSS) === */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    /* Размеры зоны клика */
    width: 80px;
    height: 100%;
    /* Можно сделать меньше, например 100px */
    /* Сбрасываем стандартные стили кнопок */
    background: transparent;
    border: none;
    cursor: pointer;
    outline: none;
    z-index: 10002;
    /* Важно для центровки стрелки внутри кнопки */
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

/* Эффект легкой подсветки зоны при наведении */
.lightbox-nav:hover {
    background: radial-gradient(circle, rgba(0, 0, 0, 0.3) 0%, transparent 70%);
}

/* === РИСУЕМ САМУ СТРЕЛКУ === */
.lightbox-nav::after {
    content: '';
    display: block;
    width: 25px;
    /* Размер стрелки */
    height: 25px;
    /* Размер стрелки */
    /* Делаем линии тонкими и белыми */
    border-top: 2px solid rgba(255, 255, 255, 0.7);
    border-right: 2px solid rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

/* === НАПРАВЛЕНИЯ И АНИМАЦИЯ === */
/* Кнопка НАЗАД (Лево) */
.lightbox-prev {
    left: 0;
}

.lightbox-prev::after {
    /* Поворачиваем квадрат, чтобы угол смотрел влево */
    transform: rotate(-135deg);
    margin-left: 20px;
    /* Сдвиг, чтобы визуально было красиво */
}

/* Ховер для левой: стрелка становится золотой и едет влево */
.lightbox-prev:hover::after {
    border-color: var(--gold-solid);
    transform: rotate(-135deg) translate(5px, 5px);
    /* translate работает по осям поворота */
}

/* Кнопка ВПЕРЕД (Право) */
.lightbox-next {
    right: 0;
}

.lightbox-next::after {
    /* Поворачиваем квадрат, чтобы угол смотрел вправо */
    transform: rotate(45deg);
    margin-right: 20px;
}

/* Ховер для правой: стрелка становится золотой и едет вправо */
.lightbox-next:hover::after {
    border-color: var(--gold-solid);
    transform: rotate(45deg) translate(5px, -5px);
}

/* Адаптив для телефонов */
@media (max-width: 768px) {
    .lightbox-nav {
        width: 60px;
    }

    .lightbox-nav::after {
        width: 18px;
        height: 18px;
        border-width: 3px;
        /* На телефоне лучше чуть жирнее, чтобы видно было */
    }
}

/* =========================================
   СТРАНИЦА КОНТАКТОВ (Contact Page) — UPDATED
   ========================================= */
/* Основная сетка */
.contact-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 100px;
}

/* Стилизация Фото */
/* Контейнер для фото */
.photo-wrapper {
    position: relative;
    height: 600px;
    /* Фиксированная высота как в дизайне */
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #000;
    /* Фон для глубины теней */
}

/* Эффект для самого изображения */
.photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(50%) brightness(0.7);
    /* Полностью ч/б и чуть темнее */
    opacity: 1;
    /* Делаем фото тусклым */
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    /* Плавный переход */
}

/* Эффект при наведении на блок */
.photo-wrapper:hover img {
    filter: grayscale(0%) brightness(1);
    /* Возвращаем цвета и яркость */
    opacity: 1;
    /* Делаем фото полностью видимым */
    transform: scale(1.05);
    /* Легкое приближение для динамики */
}

/* Золотая рамка внутри фото */
.photo-decor {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    pointer-events: none;
    /* Чтобы рамка не мешала наведению на фото */
    z-index: 2;
    transition: 0.5s ease;
}

.photo-wrapper:hover .photo-decor {
    border-color: rgba(212, 175, 55, 0.8);
    /* Рамка становится ярче */
}

/* Правая колонка с инфо */
.contact-content-side {
    text-align: left;
}

.contact-main-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin: 20px 0 40px;
}

.detail-item .label {
    display: block;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.75rem;
    color: var(--gold-solid);
    margin-bottom: 15px;
    font-weight: 600;
}

/* Сетки ссылок и графика */
.social-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.contact-link {
    color: #ccc;
    text-decoration: none;
    font-weight: 300;
    font-size: 1rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.contact-link:hover {
    color: #fff;
    border-color: var(--gold-solid);
}

/* График работы */
.work-schedule {
    background: rgba(255, 255, 255, 0.02);
    padding: 25px;
    border-left: 1px solid var(--gold-solid);
}

.schedule-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #aaa;
    font-weight: 300;
}

.schedule-row strong {
    color: #fff;
}

/* Адаптив */
@media (max-width: 992px) {
    .contact-main-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .photo-wrapper {
        height: 400px;
    }

    .contact-main-title {
        font-size: 2.8rem;
    }
}

/* Фикс для карты, чтобы она была большой и не сплющенной */
.contact-map-area {
    margin-top: 60px;
    width: 100%;
}

.map-frame-minimal {
    position: relative;
    width: 100%;
    height: 500px;
    /* Фиксированная высота для десктопа */
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #111;
}

.dark-map-iframe {
    width: 100%;
    height: 100% !important;
    /* Принудительно на всю высоту фрейма */
    border: 0;
    filter: grayscale(0.4) invert(100%) contrast(85%);
}

/* Уголки на карте (теперь они будут видны) */
.map-corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid var(--gold-solid);
    z-index: 10;
    pointer-events: none;
}

.top-left {
    top: -5px;
    left: -5px;
    border-right: none;
    border-bottom: none;
}

.bottom-right {
    bottom: -5px;
    right: -5px;
    border-left: none;
    border-top: none;
}

/* Адаптив для карты на мобилках */
@media (max-width: 768px) {
    .map-frame-minimal {
        height: 350px;
        /* Уменьшаем на телефонах, чтобы не скроллить вечно */
    }
}

/* SEO заголовок над картой */
.map-seo-header {
    text-align: center;
    margin-bottom: 30px;
}

.map-seo-header h3 {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.map-seo-header p {
    color: #666;
    font-size: 0.95rem;
    font-weight: 300;
}

/* Контейнер карты */
.map-frame-minimal {
    position: relative;
    width: 100%;
    height: 500px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* Фикс текста про парковку */
.parking-info-fixed {
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Центрируем под картой */
    gap: 15px;
    background: rgba(255, 255, 255, 0.02);
    padding: 15px 30px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.p-symbol {
    width: 24px;
    height: 24px;
    border: 1px solid var(--gold-solid);
    color: var(--gold-solid);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
}

.parking-info-fixed p {
    color: #888;
    font-size: 0.95rem;
    margin: 0;
}

/* Адаптив */
@media (max-width: 768px) {
    .map-frame-minimal {
        height: 350px;
    }

    .parking-info-fixed {
        flex-direction: column;
        text-align: center;
    }
}

/* =========================================
   НОВЫЕ СТИЛИ ДЛЯ КУРСОВ (TIMOKHOVA ACADEMY)
   ========================================= */
/* Контейнер для зоны с фото */
.course-image-side {
    flex: 1;
    min-width: 350px;
    position: relative;
    padding: 20px;
}

/* Декоративная золотая рамка на фоне */
.photo-frame-decor {
    position: absolute;
    width: 90%;
    height: 90%;
    border: 1px solid var(--gold-solid);
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
    /* Чтобы сквозь нее можно было кликать, если что */
}

/* Обертка самого фото (передний план) */
.photo-wrapper {
    position: relative;
    height: 600px;
    z-index: 1;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s ease;
    /* Плавное движение */
}

/* Сдвиги для эффекта объема */
.wrapper-shift-right {
    margin-top: 30px;
    margin-left: 30px;
}

.wrapper-shift-left {
    margin-bottom: 30px;
    margin-right: 30px;
}

/* Само изображение */
.photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    filter: brightness(0.85) contrast(1.1);
    /* Легкое затемнение */
    transition: 0.8s ease;
}

/* Ховер эффект (при наведении) */
.course-image-side:hover .photo-wrapper img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.02);
    /* Легкий зум внутри рамки */
}

/* Градиент внизу фото для слияния с фоном */
.photo-gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, #050505 0%, transparent 100%);
    border-radius: 0 0 4px 4px;
    pointer-events: none;
}

/* --- АДАПТИВНОСТЬ (Для мобильных) --- */
@media (max-width: 768px) {
    .course-image-side {
        padding: 0;
        margin-top: 30px;
    }

    .photo-wrapper {
        height: 400px;
        /* Уменьшаем высоту на телефонах */
        margin: 0 !important;
        /* Убираем сдвиги, чтобы фото было по центру */
    }

    .photo-frame-decor {
        display: none;
        /* На маленьких экранах рамку можно скрыть для чистоты */
    }
}

/* =========================================
   LUXURY DIVIDERS (РАЗДЕЛИТЕЛИ)
   ========================================= */
/* Общий контейнер для всех разделителей */
.luxury-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 100px 0;
    /* Большой отступ сверху и снизу */
    opacity: 0.8;
}

/* --- ВАРИАНТ 1: "ROYAL SPARKLE" (Золотая Искра) ---
   Элегантные угасающие линии с искрой по центру. Самый популярный для Beauty. */
.divider-sparkle {
    gap: 20px;
}

.divider-sparkle::before,
.divider-sparkle::after {
    content: '';
    display: block;
    height: 1px;
    width: 150px;
    /* Длина линии */
    background: linear-gradient(90deg, transparent 0%, var(--gold-solid) 100%);
}

.divider-sparkle::after {
    background: linear-gradient(90deg, var(--gold-solid) 0%, transparent 100%);
}

.divider-sparkle .icon {
    font-family: 'Playfair Display', serif;
    /* Или обычный шрифт */
    color: var(--gold-solid);
    font-size: 1.8rem;
    line-height: 1;
    position: relative;
    top: -2px;
}

/* Блок-контейнер для одного курса (картинка + текст) */
.course-full-item {
    display: flex;
    gap: 80px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 150px;
    max-width: 1150px;
    margin-left: auto;
    margin-right: auto;
}

/* На мобильных уменьшаем отступы */
@media (max-width: 1200px) {
    .course-full-item {
        max-width: 950px;
        gap: 50px;
    }
}

@media (max-width: 992px) {
    .course-full-item {
        flex-direction: column;
        /* Элементы друг под другом */
        text-align: center;
        gap: 40px;
    }

    /* На мобильных меняем порядок для второго блока, чтобы картинка была сверху */
    .course-full-item:nth-of-type(even) {
        flex-direction: column-reverse;
    }
}

/* =========================================
   PRO COURSE SPECIFIC STYLES
   ========================================= */
.pro-program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.pro-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(212, 175, 55, 0.1);
    padding: 40px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

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

.pro-card .number {
    font-family: 'Playfair Display', serif;
    color: var(--gold-solid);
    font-size: 1.8rem;
    opacity: 0.4;
    margin-bottom: 15px;
    display: block;
}

.pro-price-container {
    background: #0a0a0a;
    border: 1px solid var(--gold-solid);
    padding: 60px;
    text-align: center;
    position: relative;
    margin-top: 100px;
}

.pro-price-container .corner-element {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid var(--gold-solid);
}

/* Выравнивание фонового изображения строго по центру */
.page-header {
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-position: center center !important;
    background-size: cover !important;
    text-align: center;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .page-header {
        min-height: 400px;
        padding: 100px 0 !important;
    }
}

.luxury-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(212, 175, 55, 0.15);
    padding: 35px;
    text-align: left;
    /* Wyrównanie tekstu wewnątrz karty do lewej, jak na obrazku */
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: 0.3s;
}

.luxury-card h4 {
    color: var(--gold-solid);
    font-family: 'Playfair Display', serif;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

/* RWD: Na telefonach wracamy do jednej kolumny */
@media (max-width: 992px) {
    .program-container div {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .luxury-card {
        width: 100% !important;
    }
}

a.btn.btn-outline {
    padding: 15px 40px;
}

.contact-form-wrapper input.wpcf7-submit.btn-link-styled {
    border: none !important;
    /* Убираем рамку */
    box-shadow: none !important;
    /* Убираем тень */
    padding: 0 0 10px 0 !important;
    /* Отступ снизу от текста до линии */
    margin: 30px auto 0 !important;
    /* Отступ сверху и центрирование */
    /* Стили текста */
    color: #ffffff !important;
    /* Белый цвет текста */
    text-transform: uppercase;
    /* ЗАГЛАВНЫЕ БУКВЫ */
    font-weight: 600;
    /* Жирность */
    font-size: 14px;
    /* Размер шрифта */
    letter-spacing: 2px;
    /* Разрядка букв */
    cursor: pointer;
    /* Курсор-рука */
    /* Линия подчеркивания */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    /* Тонкая полупрозрачная линия */
    display: inline-block !important;
    /* Кнопка занимает ширину текста, а не всю строку */
    width: auto !important;
    /* Сброс ширины */
    transition: all 0.3s ease;
    /* Плавная анимация */
}

/* Эффект при наведении */
.contact-form-wrapper input.wpcf7-submit.btn-link-styled:hover {
    color: #d4af37 !important;
    /* Текст становится золотым */
    border-bottom-color: #d4af37 !important;
    /* Линия становится золотой */
}

/* Центрирование кнопки в форме */
/* Contact Form 7 часто оборачивает кнопку в тег <p>, центрируем его */
.contact-form-wrapper form p:last-of-type {
    text-align: center;
}

input.wpcf7-form-control.wpcf7-submit.has-spinner.btn.btn-primary.w-100.button-form {
    background: var(--gold-gradient);
    color: #000;
}

/* Общие стили для меток и текста (на всякий случай, если их нет) */
.info-label {
    color: #d4af37;
    /* Ваш золотой цвет */
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-info p,
.contact-info a {
    color: #ffffff;
    text-decoration: none;
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: #d4af37;
}

/* --- ГЛАВНАЯ ЧАСТЬ: АДАПТИВНЫЕ КОЛОНКИ --- */
/* Контейнер для двух колонок */
.info-row-2-cols {
    display: flex;
    /* Включаем флексбокс */
    gap: 30px;
    /* Расстояние между колонками */
    margin-bottom: 25px;
    /* Отступ снизу от ряда */
}

/* Сами колонки */
.info-col {
    flex: 1;
    /* Колонки занимают равную ширину */
    min-width: 0;
    /* Предотвращает переполнение текстом */
}

/* Старый класс info-row оставляем для адреса */
.info-row {
    margin-bottom: 25px;
    margin-top: 25px;
}

/* --- МОБИЛЬНАЯ ВЕРСИЯ --- */
/* Если экран меньше 768px (планшеты и телефоны) */
@media (max-width: 600px) {
    .info-row-2-cols {
        flex-direction: column;
        /* Элементы встают друг под другом */
        gap: 20px;
        /* Отступ между элементами по вертикали */
    }
}

.social-icons-row {
    display: flex;
    gap: 20px;
    /* Расстояние между иконками */
    margin-top: 15px;
    align-items: center;
}

.social-icon-link svg {
    width: 24px;
    /* Размер иконок */
    height: 24px;
    fill: #ffffff;
    /* Изначальный цвет - белый */
    transition: all 0.3s ease;
}

/* Эффект при наведении - золото */
.social-icon-link:hover svg {
    fill: var(--gold-solid);
    transform: scale(1.1);
    /* Легкое увеличение */
}

/* ============================================
   ФОРМА КОНТАКТОВ - С ЗАЩИТОЙ ОТ FOUC
   ============================================ */
/* Скрываем настоящий селект Contact Form 7 */
select.real-select {
    display: none !important;
}

/* --- ОБЩИЕ ОТСТУПЫ --- */
.contact-form-wrapper .form-group {
    position: relative;
    margin-bottom: 30px;
}

/* --- ПОЛЯ ВВОДА (Input) --- */
.contact-form-wrapper input.js-input {
    width: 100%;
    background: transparent !important;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    padding: 15px 0 5px 0;
    font-size: 16px;
    outline: none;
    border-radius: 0;
    transition: border-color 0.3s;
}

.contact-form-wrapper input.js-input:focus {
    border-bottom-color: #d4af37;
}

/* --- ПЛАВАЮЩИЙ ЗАГОЛОВОК (Label) --- */
.floating-label {
    position: absolute;
    top: 12px;
    left: 0;
    color: #aaa;
    font-size: 16px;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1;
    white-space: nowrap;
}

/* КРИТИЧЕСКИ ВАЖНО: Поднятие лейбла для текстовых полей */
.input-wrapper.active .floating-label,
.input-wrapper.filled .floating-label {
    top: -10px;
    font-size: 12px;
    color: #d4af37;
}

/* КРИТИЧЕСКИ ВАЖНО: Поднятие лейбла для СЕЛЕКТА */
.custom-select-wrapper.active .floating-label,
.custom-select-wrapper.filled .floating-label {
    top: -10px !important;
    font-size: 12px !important;
    color: #d4af37 !important;
}

/* ⚠️ ЗАЩИТА ОТ FOUC: Если есть выбранный текст - лейбл всегда наверху */
.custom-select-wrapper .selected-text:not(:empty)~.floating-label {
    top: -10px !important;
    font-size: 12px !important;
    color: #d4af37 !important;
}

/* --- СТИЛИ ДЛЯ КАСТОМНОГО СЕЛЕКТА --- */
.custom-select-wrapper {
    position: relative;
}

/* Поле выбора (Триггер) */
.custom-dropdown-trigger {
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    padding: 15px 0 5px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 45px;
    transition: border-color 0.3s;
}

/* Золотая линия при открытии или фокусе */
.custom-select-wrapper.active .custom-dropdown-trigger,
.custom-select-wrapper.open .custom-dropdown-trigger {
    border-bottom-color: #d4af37;
}

/* ВАЖНО: Когда заполнено, линия остается серой */
.custom-select-wrapper.filled .custom-dropdown-trigger {
    border-bottom-color: rgba(255, 255, 255, 0.4);
}

/* Текст внутри триггера */
.selected-text {
    color: #fff;
    font-size: 16px;
    flex: 1;
}

/* Placeholder когда ничего не выбрано */
.selected-text:empty::before {
    content: '\00a0';
    opacity: 0;
}

/* Стрелочка */
.arrow {
    color: #d4af37;
    font-size: 10px;
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 10px;
}

.custom-select-wrapper.open .arrow {
    transform: rotate(180deg);
}

/* Выпадающее меню */
.custom-dropdown-options {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #333;
    z-index: 999;
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    overflow: hidden;
}

.custom-select-wrapper.open .custom-dropdown-options {
    display: block;
}

.custom-dropdown-options li {
    padding: 15px;
    color: #ccc;
    cursor: pointer;
    border-bottom: 1px solid #222;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.custom-dropdown-options li:last-child {
    border-bottom: none;
}

.custom-dropdown-options li:hover {
    background: #252525;
    color: #fff;
}

.custom-dropdown-options li .dot {
    width: 6px;
    height: 6px;
    background: #555;
    border-radius: 50%;
    transition: 0.3s;
    flex-shrink: 0;
}

.custom-dropdown-options li:hover .dot {
    background: #d4af37;
    box-shadow: 0 0 8px #d4af37;
}

/* --- КНОПКА ОТПРАВКИ --- */
.contact-form-wrapper .btn {
    margin-top: 20px;
}

/* --- Переключатель языков --- */
.lang-switcher {
    margin: 0 20px;
    /* Отступы от меню и кнопки */
    display: flex;
    align-items: center;
}

.lang-switcher ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 10px;
}

.lang-switcher li {
    display: inline-block;
}

.lang-switcher li a {
    color: #ffffff;
    /* Белый цвет текста */
    text-decoration: none;
    /* Убираем подчеркивание */
    text-transform: uppercase;
    /* ЗАГЛАВНЫЕ БУКВЫ (PL, UA) */
    font-size: 14px;
    /* Размер шрифта */
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Цвет при наведении */
.lang-switcher li a:hover {
    color: #d4af37;
    /* Золотой */
}

/* Цвет активного языка (на котором мы сейчас) */
.lang-switcher li.current-lang a {
    color: #d4af37;
    /* Золотой */
    font-weight: bold;
    cursor: default;
}

.contact-header {
    background: var(--header-bg) center/cover no-repeat;
    position: relative;
    /* Адаптивный отступ: на десктопе 180px, на моб меньше */
    padding: clamp(120px, 15vh, 180px) 0 clamp(80px, 10vh, 120px);
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.95) 100%);
}

.hero-subtitle {
    letter-spacing: 6px;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    display: block;
    margin-bottom: 20px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    color: #fff;
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 30px;
}

.hero-description {
    color: #e0e0e0;
    max-width: 750px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.8;
    font-weight: 300;
}

.hero-divider {
    width: 60px;
    height: 1px;
    background: var(--gold-solid, #d4af37);
    margin: 40px auto 0;
    opacity: 0.6;
}

address.contact-details-list {
    font-style: normal;
    display: block;
}

/* =========================================
   PORTFOLIO PAGE STYLES
   ========================================= */
/* --- Hero Section (Reuse classes form Contact) --- */
.portfolio-hero {
    background: var(--hero-bg) center/cover no-repeat;
    position: relative;
    padding: clamp(120px, 15vh, 180px) 0 clamp(80px, 10vh, 120px);
}

/* Остальные классы (.hero-title, .hero-subtitle и т.д.) уже есть в CSS из задачи про Контакты */
/* --- Main Section --- */
.portfolio-section {
    background: #050505;
    padding: 80px 0;
}

/* --- Filters --- */
.portfolio-filters {
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #aaa;
    padding: 10px 25px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--gold-solid, #d4af37);
    color: var(--gold-solid, #d4af37);
    background: rgba(212, 175, 55, 0.05);
}

/* --- Grid --- */
.portfolio-grid {
    display: grid;
    /* Адаптивная сетка: от 1 до 3 колонок */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 1 / 1;
    /* Квадратные фото */
    cursor: pointer;
    background: #111;
    /* Цвет заглушки пока грузится фото */
}

/* Анимация появления при фильтрации */
.gallery-item.hide {
    display: none;
}

.gallery-item.show {
    animation: fadeInScale 0.5s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Overlay on Hover */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay p {
    color: var(--gold-solid, #d4af37);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid var(--gold-solid, #d4af37);
    padding: 10px 20px;
}

/* --- Load More Button --- */
.load-more-container {
    text-align: center;
    margin-bottom: 60px;
}

.btn-load-more {
    background: transparent;
    color: #fff;
    border: none;
    font-size: 1rem;
    border-bottom: 1px solid var(--gold-solid, #d4af37);
    padding-bottom: 5px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.btn-load-more:hover {
    opacity: 0.7;
}

/* --- Instagram Block --- */
.portfolio-insta-block {
    text-align: center;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.insta-text {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 25px;
    font-style: italic;
}

/* --- Lightbox Styles --- см. секцию "Стили Лайтбокса с навигацией" (~строка 1651) --- */

/* Mobile Adaptive */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        /* Мельче на телефоне */
        gap: 10px;
    }

    .filter-btn {
        padding: 8px 15px;
        font-size: 0.75rem;
    }

    .hero-title {
        font-size: 2.5rem;
        /* Из Contact Styles clamp сделает это авто, но на всякий случай */
    }
}

/* =========================================
   ABOUT PAGE STYLES
   ========================================= */
/* --- Hero --- */
.about-hero {
    background: var(--hero-bg) center/cover no-repeat;
    position: relative;
    padding: clamp(120px, 15vh, 180px) 0 clamp(80px, 10vh, 120px);
}

.about-section {
    background: #050505;
    padding: 100px 0;
}

/* --- Founder Block --- */
.founder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 80px;
    margin-bottom: 120px;
}

/* Фото с рамками */
.founder-image-wrapper {
    position: relative;
}

.border-decor {
    position: absolute;
    width: 120px;
    height: 120px;
    border-color: var(--gold-solid, #d4af37);
    border-style: solid;
    border-width: 0;
    z-index: 0;
}

.border-decor.top-left {
    top: -20px;
    left: -20px;
    border-top-width: 2px;
    border-left-width: 2px;
}

.border-decor.bottom-right {
    bottom: -20px;
    right: -20px;
    border-bottom-width: 2px;
    border-right-width: 2px;
}

.founder-img {
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    filter: grayscale(20%);
    display: block;
}

/* Текст о фаундере */
.section-subtitle {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 3px;
    font-weight: 600;
    display: block;
    margin-bottom: 15px;
}

.section-title-sm {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin: 0 0 30px;
    color: #fff;
}

.text-gray {
    color: #aaa;
    line-height: 1.9;
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.founder-quote-block {
    margin-top: 40px;
    border-left: 2px solid var(--gold-solid, #d4af37);
    padding-left: 25px;
}

.quote-text {
    font-style: italic;
    color: #fff;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

.quote-author {
    margin-top: 15px;
    font-weight: 600;
    color: var(--gold-solid, #d4af37);
    letter-spacing: 1px;
}

/* --- Values Block --- */
.values-block {
    margin-bottom: 120px;
}

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

.text-muted {
    color: #666;
    margin-top: 10px;
}

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

.value-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    position: relative;
    transition: transform 0.3s, border-color 0.3s;
}

.value-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold-solid, #d4af37);
}

.value-card::before {
    content: attr(data-number);
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.03);
    font-family: 'Playfair Display', serif;
}

.value-icon {
    font-size: 2rem;
    color: var(--gold-solid, #d4af37);
    margin-bottom: 20px;
}

.value-card h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.value-card p {
    color: #888;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* --- Certs & CTA --- */
.certs-block {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.about-cta-wrapper {
    margin-top: 100px;
    text-align: center;
}

.btn-lg {
    padding: 18px 50px;
    font-weight: 600;
    letter-spacing: 2px;
}

/* Mobile Fix */
@media (max-width: 768px) {
    .founder-grid {
        gap: 40px;
    }

    .section-title-sm {
        font-size: 2rem;
    }
}

/* СЕТКА СЕРТИФИКАТОВ */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.cert-item {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    /* Если вдруг картинка не грузится, будет темно-серый фон */
    background: #111;
}

/* Принудительно показываем картинки */
.cert-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    opacity: 1 !important;
    /* На случай, если что-то пытается их скрыть */
    visibility: visible !important;
}

/* Оверлей */
.cert-item .gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
}

.cert-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay p {
    color: #d4af37;
    border: 1px solid #d4af37;
    padding: 8px 15px;
    text-transform: uppercase;
    font-weight: 600;
}

/* ПРИНУДИТЕЛЬНОЕ ОТОБРАЖЕНИЕ */
.certs-grid img {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    height: 350px !important;
    background-color: #333;
    /* Временный фон, чтобы видеть границы */
}

.cert-item {
    overflow: visible !important;
    /* На случай если контейнер скрывает содержимое */
    z-index: 10;
}

/* ========================
   NEW CERTIFICATES STYLES
   ======================== */
/* Контейнер-сетка */
.certs-container {
    display: grid;
    /* Центруем всю сетку */
    justify-content: center;
    /* Адаптивные колонки */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    /* Если карточек мало, не растягиваем их на километр, но держим макс. ширину */
    max-width: 1200px;
    margin: 40px auto 0;
    /* auto по бокам тоже центрует блок */
    gap: 20px;
    position: relative;
    z-index: 5;
}

.my-cert-card {
    position: relative;
    height: 350px;
    border-radius: 4px;
    overflow: hidden;
    background: #222;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    /* Показываем руку при наведении */
}

/* Картинка */
.my-cert-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Принудительно показываем */
    opacity: 1 !important;
    visibility: visible !important;
    transition: transform 0.5s ease;
}

/* Эффект увеличения */
.my-cert-card:hover img {
    transform: scale(1.05);
}

/* Оверлей */
.my-cert-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
    z-index: 2;
}

.my-cert-card:hover .my-cert-overlay {
    opacity: 1;
}

.my-cert-overlay p {
    color: #d4af37;
    border: 1px solid #d4af37;
    padding: 8px 15px;
    text-transform: uppercase;
    font-weight: 600;
}

.dev-credit a:hover {
    color: #fff !important;
}

.dev-credit a:hover .dev-name {
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* --- STYLES FOR ACADEMY MAIN PAGE --- */
/* Hero Section */
.academy-hero {
    background: url('./assets/images/academy-bg.jpg') center center/cover no-repeat;
    position: relative;
    padding: 180px 0 120px;
}

/* Если хотите сдвинуть фокус выше, поменяйте 'center center' на 'center 20%' */
/* Intro Text */
.academy-intro {
    text-align: center;
    margin-bottom: 100px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.academy-desc-text {
    color: #aaa;
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.academy-sub-desc {
    color: #888;
    line-height: 1.6;
    font-size: 1rem;
}

/* Course Lists (Bullet points with icons) */
.academy-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.academy-list-item {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #ccc;
    font-weight: 300;
}

.academy-list-icon {
    color: var(--gold-solid);
    flex-shrink: 0;
    /* Чтобы иконка nie сплющивалась */
}

/* Feature Boxes (Praktyka / Dokumentacja) */
.academy-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.academy-feat-box {
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-left: 2px solid var(--gold-solid);
}

.feat-label {
    display: block;
    color: #666;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feat-value {
    color: #fff;
    font-weight: 500;
}

/* CTA Box at the bottom */
.academy-cta-box {
    margin-top: 120px;
    padding: 80px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(0, 0, 0, 0) 100%);
    border: 1px solid rgba(212, 175, 55, 0.1);
    text-align: center;
}

.academy-cta-title {
    font-family: 'Playfair Display', serif;
    color: #fff;
    font-size: 2rem;
    margin-bottom: 20px;
}

/* Responsive Fixes */
@media (max-width: 768px) {
    .academy-features-grid {
        grid-template-columns: 1fr;
        /* Одна колонка на телефоне */
    }

    .academy-cta-box {
        padding: 40px 20px;
    }
}

.hero-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.9) 100%);
}

/* Hero Section */
.pedi-hero {
    background: url('./assets/images/pedi-hero.jpg') center/cover no-repeat !important;
    /* Путь может зависеть от структуры папок */
    position: relative;
    padding: 180px 0 120px;
}

.gold-subtitle {
    color: var(--gold-solid);
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
    margin-bottom: 20px;
}

/* PEDI */
.pedi-section {
    background: #050505;
    padding: 100px 0;
}

.flex-align-center {
    display: flex;
    gap: 80px;
    align-items: center;
    margin-bottom: 120px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.reverse-mobile {
    flex-wrap: wrap-reverse;
}

.course-text-side {
    flex: 1.2;
    min-width: 350px;
}

.text-main {
    color: #ccc;
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.text-secondary {
    color: #aaa;
    line-height: 1.7;
    margin-bottom: 20px;
}

.feature-tags {
    color: var(--gold-solid);
    font-weight: 500;
}

/* List Styles */
.pedi-benefits-list {
    list-style: none;
    padding: 0;
    color: #aaa;
    line-height: 2;
}

.pedi-benefits-list .bullet {
    color: var(--gold-solid);
}

/* Price Box Section */
.premium-price-box {
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
    padding: 70px;
    border: 1px solid var(--gold-solid);
    position: relative;
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.9) 0%, rgba(5, 5, 5, 1) 100%);
}

.price-box-title {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.price-box-subtitle {
    color: #888;
    margin-bottom: 45px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
}

.price-info-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.price-info-item {
    text-align: left;
    border-left: 2px solid var(--gold-solid);
    padding-left: 20px;
}

/* Price Box Specifics */
.price-box-gradient {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 70px;
    border: 1px solid var(--gold-solid);
    position: relative;
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.9) 0%, rgba(5, 5, 5, 1) 100%);
}

.price-big-text {
    font-size: 4rem;
    color: var(--gold-solid);
    font-family: 'Playfair Display', serif;
    margin-bottom: 40px;
    line-height: 1;
}

.price-footer-info {
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.info-value {
    color: #fff;
    font-weight: 500;
    font-size: 1.1rem;
}

.btn-large {
    padding: 20px 60px;
    font-size: 1.2rem;
    min-width: 100%;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .flex-align-center {
        gap: 40px;
    }

    .course-image-side {
        min-width: 100%;
    }

    .premium-price-box {
        padding: 40px 20px;
    }
}

/* Hero Section Manicure */
.mani-hero {
    /* БЫЛО: center center */
    /* СТАЛО: center 20% (где 0% - это самый верх фото, а 50% - середина) */
    background: url('./assets/images/service-hero.jpg') center 65%/cover no-repeat !important;
    position: relative;
    padding: 180px 0 120px;
}

/* Section Common Styles */
.mani-section {
    background: #050505;
    padding: 100px 0;
}

/* List Styles */
.mani-benefits-list {
    list-style: none;
    padding: 0;
    color: #aaa;
    line-height: 2;
}

.mani-benefits-list .bullet {
    color: var(--gold-solid);
}

/* --- Специфично для Hero Краков --- */
.hero-krakow {
    position: relative;
    padding: 180px 0 120px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Затемнение чуть сильнее для контраста */
    box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.6);
}

.hero-katowice {
    position: relative;
    padding: 180px 0 120px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Глубокий градиент для контраста с золотым текстом */
    box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.65);
}

/* --- Специфично для Hero Явожно --- */
.hero-jaworzno {
    position: relative;
    padding: 180px 0 120px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Теплый, уютный градиент (соседский вайб) */
    box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.6);
}

/* --- Специфично для Hero Тшебиня --- */
.hero-trzebinia {
    position: relative;
    padding: 180px 0 120px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Легкий, светлый градиент, символизирующий открытость и близость */
    box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.55);
}

/* --- FAQ Секция --- */
.faq-container {
    margin: 0 auto 80px;
}

.faq-item {
    margin-bottom: 0;
    padding-bottom: 0;
    /* height: 100%; REMOVED to prevent neighbor stretch */
    display: flex;
    flex-direction: column;
    /* Unified Card Style */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active {
    border-color: rgba(212, 175, 55, 0.5);
}

.faq-question {
    color: #d4af37;
    margin-bottom: 0;
    font-weight: 500;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 25px;
    background: transparent;
    border: none;
    transition: all 0.3s ease;
    min-height: 90px;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-item.active .faq-question {
    background: var(--gold-gradient);
    color: #000 !important;
    font-weight: 600;
}

.faq-item.active .faq-question h3 {
    color: #000 !important;
}

.faq-question h3 {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    flex: 1;
    padding-right: 15px;
}

.faq-answer {
    color: #ccc;
    margin: 0;
    line-height: 1.6;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.05);

    /* Smooth Opening Styles */
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: all 0.5s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    /* Arbitrary large height */
    opacity: 1;
    padding: 20px 25px;
}

/* Icon Color Change */
.faq-item.active .faq-icon::before,
.faq-item.active .faq-icon::after {
    background-color: #000;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Ссылки и контакты --- */
.contact-link-sub {
    color: #888;
    text-decoration: underline;
    margin-top: 15px;
    display: inline-block;
    transition: color 0.3s;
}

.contact-link-sub:hover {
    color: #d4af37;
}

/* --- SEO Блок с текстом --- */
.seo-text-block {
    background: rgba(255, 255, 255, 0.03);
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 60px;
    border-left: 3px solid #d4af37;
}

.seo-title-h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.feature-box-desc {
    color: #ccc;
    margin-bottom: 15px;
    line-height: 1.6;
}

.feature-list {
    color: #888;
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

/* Добавляем галочку через CSS */
.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #d4af37;
}

/* --- Карточки курсов (Box) --- */
.course-feature-box {
    padding: 25px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    /* Золотая рамка прозрачная */
    border-radius: 8px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
}

.course-feature-box:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.6);
}

.feature-box-title {
    color: #fff;
    margin-bottom: 15px;
    border-bottom: 1px solid #d4af37;
    display: inline-block;
    padding-bottom: 5px;
    font-size: 1.25rem;
}

.extension-hero {
    background: url('./assets/images/extension-hero.jpg') center 20%/cover no-repeat !important;
    position: relative;
    padding: 180px 0 120px;
}

/* Общие стили для контента (идентичны manicure/pedicure) */
.extension-section {
    background: #050505;
    padding: 100px 0;
}

.extension-benefits-list {
    list-style: none;
    padding: 0;
    color: #aaa;
    line-height: 2;
}

.extension-benefits-list .bullet {
    color: var(--gold-solid);
    margin-right: 10px;
}

/* --- Стили для страницы Брови и Ресницы (Brows) --- */
/* --- Стили для страницы Брови (Brows) --- */
.brows-hero {
    /* Укажите правильный путь к картинке */
    background-image: url('./assets/images/hero-brows.jpg');
    /* Растягиваем на весь блок */
    background-size: cover;
    background-repeat: no-repeat;
    /* Самое важное для центровки лица: */
    /* 20% от верха — показывает глаза и брови. */
    /* Если все равно низко — поставьте 10% или top */
    background-position: center 40% !important;
    position: relative;
    /* Высота блока берется из класса page-header (обычно min-height: 500px) */
}

/* Опционально: Затемнение фото, чтобы белый текст читался лучше */
.brows-hero .hero-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9));
}

/* --- STYLES FOR BASIC COURSE PAGE (Mistrz od Zera) --- */
/* Hero Section */
.basic-hero {
    /* БЫЛО: center/cover (центр) */
    /* СТАЛО: center 20%/cover (чуть выше, чтобы видеть руки/детали) */
    background: url('./assets/images/pro1.webp') center 60%/cover no-repeat !important;
    position: relative;
    padding: 180px 0 120px;
}

/* Typography specifics for Hero */
.hero-sup-title {
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
    margin-bottom: 15px;
}

.hero-title-large {
    font-family: 'Playfair Display', serif;
    color: #fff;
    font-size: 3.5rem;
    line-height: 1.2;
    margin: 0 0 20px;
}

.hero-desc-large {
    color: #e0e0e0;
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.8;
    font-weight: 300;
}

.hero-divider-line {
    width: 60px;
    height: 1px;
    background: var(--gold-solid);
    margin: 40px auto 0;
    opacity: 0.6;
}

/* Main Content Section */
.course-section-dark {
    background: #050505;
    padding: 50px 0;
}

/* Split Layout (Image + Text) */
.course-split-layout {
    display: flex;
    gap: 80px;
    align-items: center;
    margin-bottom: 120px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.course-col-img {
    flex: 1;
    min-width: 380px;
}

.course-col-text {
    flex: 1.2;
    min-width: 350px;
}

/* SEO Grid Benefits */
.seo-benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.benefit-item-border {
    border-left: 2px solid var(--gold-solid);
    padding-left: 20px;
}

.benefit-title {
    color: #fff;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.benefit-desc {
    color: #888;
    font-size: 0.9rem;
    margin: 0;
}

/* Program Timeline & Lists */
.program-container {
    max-width: 1000px;
    margin: 0 auto 120px;
}

.program-card {
    margin-bottom: 30px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 4px;
}

.program-day-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    display: block;
    margin-bottom: 15px;
}

.program-grid-list {
    color: #ccc;
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .basic-hero {
        padding: 120px 0 80px;
    }

    .hero-title-large {
        font-size: 2.5rem;
    }

    .course-split-layout {
        gap: 40px;
    }

    .program-grid-list {
        grid-template-columns: 1fr;
    }

    /* Список в 1 колонку на телефоне */
    .course-col-img,
    .course-col-text {
        min-width: 100%;
    }

    .price-footer-info {
        flex-direction: column;
        gap: 20px;
    }
}

/* Hero Section */
.pro-hero {
    /* Фоновое изображение */
    background: url('./assets/images/basic2.webp') center center/cover no-repeat;
    position: relative;
    padding: 180px 0 120px;
}

/* Если на фото обрезается голова, поменяйте center center на center 20% */
/* Text Content Specifics */
.text-highlight-quote {
    color: #888;
    font-style: italic;
    border-left: 2px solid var(--gold-solid);
    padding-left: 20px;
    margin-top: 30px;
}

/* Program Grid Layout */
.program-section-intro {
    max-width: 1200px;
    margin: 0 auto 100px;
    text-align: center;
}

.program-grid-container {
    max-width: 1200px;
    margin: 0 auto 150px;
}

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

.program-flex-bottom {
    display: flex;
    justify-content: center;
    gap: 40px;
}

/* Ширина карточек в нижнем ряду, чтобы совпадала z верхним (1/3 ширины) */
.program-card-width {
    width: calc(33.333% - 27px);
}

.program-subtitle-pro {
    text-align: center;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 60px;
}

/* Price Box Variations for Pro */
.price-box-pro {
    text-align: center;
    max-width: 850px;
    margin: 100px auto 0;
    padding: 70px;
    border: 1px solid var(--gold-solid);
    position: relative;
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.9) 0%, rgba(5, 5, 5, 1) 100%);
}

.price-huge-text {
    font-size: 4.5rem;
    /* Чуть крупнее, чем в Basic */
    color: var(--gold-solid);
    font-family: 'Playfair Display', serif;
    margin-bottom: 40px;
    line-height: 1;
}

.price-footer-pro {
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 40px;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

/* Responsive Fixes */
@media (max-width: 992px) {
    .program-grid-top {
        grid-template-columns: repeat(2, 1fr);
    }

    .program-flex-bottom {
        flex-wrap: wrap;
    }

    .program-card-width {
        width: 100%;
        /* На планшетах растягиваем */
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .program-grid-top {
        grid-template-columns: 1fr;
    }

    .price-huge-text {
        font-size: 3.5rem;
    }
}

/* --- STYLES FOR MODELS PAGE (Unified Template) --- */
/* Hero Section */
.models-hero {
    /* Мы добавляем слой черного цвета (rgba) поверх картинки */
    background:
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        /* 0.5 = 50% затемнения */
        url('./assets/images/hero-models.jpg') center 60% / cover no-repeat !important;
    position: relative;
    padding: 180px 0 120px;
}

/* Чтобы поднять фокус (если руки обрезаются), замените center/cover на center 20%/cover */
/* Intro Text */
.models-intro {
    text-align: center;
    margin-bottom: 80px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Grid Layout for Cards */
.models-grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 100px;
}

/* Specific styling for lists inside luxury cards */
.models-card-list {
    list-style: none;
    padding: 0;
    color: #999;
    line-height: 1.8;
}

.models-card-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.models-icon {
    font-size: 1.2rem;
    /* Размер эмодзи или иконки */
    flex-shrink: 0;
}

/* CTA Box (Join Group) - стиль как у Price Box */
.models-cta-box {
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
    padding: 70px;
    border: 1px solid var(--gold-solid);
    position: relative;
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.9) 0%, rgba(5, 5, 5, 1) 100%);
}

.models-cta-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 20px;
}

.models-cta-desc {
    color: #888;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .models-hero {
        padding: 120px 0 80px;
    }

    .models-grid-cards {
        grid-template-columns: 1fr;
    }

    .models-cta-box {
        padding: 40px 20px;
    }

    .models-cta-title {
        font-size: 2rem;
    }
}

/* --- PREMIUM CHECKMARK (GALOCHKA) --- */
.premium-checkmark {
    /* Контейнер (кружок) */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    min-width: 24px;
    /* Чтобы не сжимался на мобильных */
    border: 1px solid var(--gold-solid);
    /* Золотая обводка */
    border-radius: 50%;
    /* Делаем круг */
    background: rgba(212, 175, 55, 0.1);
    /* Полупрозрачный золотой фон внутри */
    margin-top: 3px;
    /* Выравнивание относительно первой строки текста */
}

/* Рисуем саму галочку внутри */
.premium-checkmark::after {
    content: '';
    display: block;
    width: 5px;
    height: 9px;
    /* Цвет галочки */
    border: solid var(--gold-solid);
    border-width: 0 1.5px 1.5px 0;
    /* Толщина линий */
    transform: rotate(45deg);
    /* Поворачиваем L, чтобы получилась галочка */
    margin-bottom: 2px;
    /* Оптическая поправка по центру */
}

/* --- STYLES FOR PRICES PAGE (CENNIK) --- */
/* Hero Section */
.prices-hero {
    /* Градиент (затемнение) + Картинка + Позиция */
    background:
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        /* 0.4 = Легкое затемнение */
        url('./assets/images/hero-prices.jpg') center 20% / cover no-repeat !important;
    position: relative;
    padding: 180px 0 120px;
}

/* Grid Layout for Price Categories */
.prices-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Две колонки на десктопе */
    gap: 30px;
    margin-bottom: 80px;
}

/* Карточка категории (используем базу luxury-card, но добавляем специфику) */
.price-category-card {
    padding: 40px 30px;
    height: 100%;
    /* Чтобы карточки были одинаковой высоты в ряду */
}

.category-title {
    font-family: 'Playfair Display', serif;
    color: var(--gold-solid);
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 15px;
}

/* Строка прайса (Название ........ Цена) */
.price-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    /* Выравнивание по нижней линии шрифта */
    margin-bottom: 8px;
}

.price-name {
    color: #e0e0e0;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding-right: 10px;
    background: #161616;
    /* Чтобы перекрыть точки фоном, если текст длинный */
    z-index: 1;
}

/* Точки между названием и ценой */
.price-dots {
    flex-grow: 1;
    border-bottom: 1px dotted #555;
    margin-bottom: 6px;
    /* Чуть поднять от низа */
    opacity: 0.5;
    margin-left: 5px;
    margin-right: 5px;
}

.price-cost {
    color: var(--gold-solid);
    font-weight: 600;
    font-size: 1.1rem;
    padding-left: 10px;
    white-space: nowrap;
    /* Цена не переносится */
    z-index: 1;
}

/* Описание услуги (мелкий текст под названием) */
.price-desc {
    color: #888;
    font-size: 0.8rem;
    margin-bottom: 20px;
    /* Отступ до следующей услуги */
    line-height: 1.4;
    padding-right: 40px;
}

/* Responsive */
@media (max-width: 1100px) {
    .prices-grid {
        grid-template-columns: 1fr;
        /* Одна колонка на планшетах/телефонах */
        gap: 40px;
    }

    .price-category-card {
        padding: 30px 20px;
    }
}

/* --- Секция Hero для города (Освенцим) --- */
.hero-oswiecim {
    position: relative;
    padding: 180px 0 120px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.6);
}

/* --- Сетка с офферами (Grid) --- */
.courses-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

/* ============================================
   КОМПЛЕКСНАЯ АДАПТИВНОСТЬ ХЕДЕРА И ФУТЕРА
   Плавные переходы без "прыжков" на любой ширине
   ============================================ */
/* --- БАЗОВЫЕ УЛУЧШЕНИЯ ХЕДЕРА --- */
/* Плавное масштабирование логотипа */
.logo {
    font-size: clamp(1.2rem, 2vw + 0.5rem, 1.6rem);
    transition: font-size 0.3s ease;
    flex-shrink: 0;
}

/* Плавный gap в навигации */
.nav-links ul {
    gap: clamp(15px, 3vw, 40px);
}

/* Пункты меню не должны переноситься */
.nav-links a {
    white-space: nowrap;
}

/* Адаптивные отступы контейнера */
.nav-container {
    padding: 0 clamp(15px, 3vw, 24px);
}

/* Кнопка CTA — адаптивный размер */
.desktop-cta {
    padding: clamp(10px, 1.5vw, 16px) clamp(20px, 3vw, 45px);
    font-size: clamp(0.7rem, 1vw, 0.85rem);
    white-space: nowrap;
    flex-shrink: 0;
}

/* --- ПЕРЕКЛЮЧАТЕЛЬ ЯЗЫКОВ --- */
/* Language Switcher - Dropdown on Desktop */
.lang-switcher {
    position: relative;
    margin-left: clamp(5px, 1vw, 10px);
    margin-right: clamp(5px, 1vw, 10px);
    z-index: 1005;
}

.lang-current-label {
    color: #888;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 10px;
    transition: color 0.3s;
    display: block;
}

.lang-switcher:hover .lang-current-label {
    color: var(--gold-solid);
}

.lang-switcher ul {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #0a0a0a;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 4px;
    padding: 10px;
    display: none;
    flex-direction: column;
    gap: 5px;
    min-width: 80px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.lang-switcher:hover ul {
    display: flex;
}

.lang-switcher ul li {
    display: block;
    width: 100%;
}

.lang-switcher ul li a {
    display: block;
    padding: 5px 0;
    font-size: 0.75rem;
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.lang-switcher ul li a:hover,
.lang-switcher ul li.current-lang a {
    color: var(--gold-solid);
}

/* --- CSS КЛАССЫ ДЛЯ ФУТЕРА (замена inline-стилей) --- */
.site-footer {
    position: relative;
    background: #0a0a0a;
    color: #fff;
    padding: clamp(60px, 8vw, 100px) 0 clamp(20px, 4vw, 40px);
    overflow: hidden;
    border-top: 2px solid var(--gold-solid);
}

.footer-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.12;
    z-index: 1;
}

.footer-container {
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: clamp(30px, 5vw, 50px);
    margin-bottom: clamp(50px, 7vw, 80px);
}

.footer-logo-link {
    text-decoration: none;
    display: block;
    margin-bottom: 25px;
}

.footer-logo-text {
    font-family: 'Playfair Display', serif;
    color: var(--gold-solid);
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    margin: 0;
}

.footer-logo-text .white {
    color: #fff;
}

.footer-desc {
    color: #888;
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: clamp(0.85rem, 1.2vw, 0.95rem);
}

.footer-ris-badge {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 10px 15px;
    border-radius: 5px;
    display: inline-block;
}

.footer-ris-badge p {
    font-size: 0.75rem;
    color: var(--gold-solid);
    margin: 0;
    letter-spacing: 1px;
}

.footer-col-title {
    color: #fff;
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    margin-bottom: clamp(20px, 3vw, 30px);
    border-left: 2px solid var(--gold-solid);
    padding-left: 15px;
}

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

.footer-nav-list li {
    margin-bottom: 12px;
}

.footer-nav-list li a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
    font-size: clamp(0.85rem, 1.1vw, 0.95rem);
}

.footer-nav-list li a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-contact-info {
    color: #aaa;
    font-size: clamp(0.85rem, 1.1vw, 0.95rem);
    line-height: 1.8;
}

.footer-contact-info p {
    margin: 0 0 10px 0;
}

.footer-contact-info a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-info a:hover {
    color: var(--gold-solid);
}

.footer-contact-info i {
    color: var(--gold-solid);
    width: 20px;
    display: inline-block;
}

/* Иконки соцсетей в футере */
.social-icons-row {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.social-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icon-link svg {
    width: 18px;
    height: 18px;
    fill: #888;
    transition: fill 0.3s ease;
}

.social-icon-link:hover {
    border-color: var(--gold-solid);
    background: rgba(212, 175, 55, 0.1);
}

.social-icon-link:hover svg {
    fill: var(--gold-solid);
}

.footer-booksy-btn {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 25px;
    font-size: 0.8rem;
    border: 1px solid var(--gold-solid);
    color: var(--gold-solid);
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.footer-booksy-btn:hover {
    background: var(--gold-solid);
    color: #000;
}

/* Нижняя полоса футера */
.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: clamp(20px, 3vw, 30px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copy {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.footer-copy p {
    color: #666;
    font-size: clamp(0.75rem, 1vw, 0.85rem);
    margin: 0;
}

.footer-copy a {
    color: #666;
    font-size: clamp(0.75rem, 1vw, 0.85rem);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-copy a:hover {
    color: var(--gold-solid);
}

.dev-credit {
    font-size: 0.8rem;
}

.dev-credit a {
    text-decoration: none;
    color: #444;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.4s ease;
}

.dev-credit a:hover {
    color: #666;
}

.dev-credit .dev-name {
    color: var(--gold-solid);
    font-weight: bold;
}

/* --- ПРОМЕЖУТОЧНЫЕ БРЕЙКПОИНТЫ --- */
/* 1280px — Большие ноутбуки */
@media (max-width: 1280px) {
    .nav-links ul {
        gap: clamp(12px, 2.5vw, 30px);
    }

    .desktop-cta {
        padding: 12px 30px;
    }

    .lang-switcher {
        margin-left: 15px;
        margin-right: 15px;
    }
}

/* 1100px — Переходный между десктопом и планшетом */
@media (max-width: 1100px) {
    .nav-links a {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }

    .desktop-cta {
        padding: 10px 25px;
        font-size: 0.75rem;
    }

    .lang-switcher ul li a,
    .lang-switcher ul li span {
        padding: 5px 8px;
        font-size: 0.7rem;
    }
}

/* 1400px — Планшеты - дополнительные стили */
@media (max-width: 1400px) {

    /* Футер: 2 колонки на планшете */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 900px — Маленькие планшеты */
@media (max-width: 900px) {
    .logo {
        font-size: 1.3rem;
    }

    header {
        height: 80px;
    }

    header.scrolled {
        height: 65px;
    }
}

/* 768px — Большие телефоны / маленькие планшеты */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-col {
        text-align: center;
    }

    .footer-col-title {
        border-left: none;
        padding-left: 0;
        border-bottom: 2px solid var(--gold-solid);
        padding-bottom: 10px;
    }

    .footer-ris-badge {
        margin: 0 auto;
    }

    .social-icons-row {
        justify-content: center;
    }

    .footer-bottom-bar {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-copy {
        flex-direction: column;
        gap: 10px;
    }
}

/* 600px — Телефоны (расширение существующих стилей) */
@media (max-width: 600px) {
    .logo {
        font-size: 1.2rem;
    }

    header {
        height: 70px;
    }

    header.scrolled {
        height: 60px;
    }

    .mobile-menu-btn {
        padding: 8px;
    }

    .mobile-menu-btn span {
        width: 25px;
    }

    /* Переключатель языков */
    .lang-switcher ul {
        padding: 8px 15px;
    }

    .lang-switcher ul li a,
    .lang-switcher ul li span {
        padding: 5px 8px;
        font-size: 0.7rem;
    }

    .price-info-row {
        display: inline-grid;
    }

    .seo-benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* 480px — Маленькие телефоны */
@media (max-width: 480px) {
    .logo {
        font-size: 1.1rem;
    }

    .nav-container {
        padding: 0 12px;
    }

    .mobile-menu-btn {
        padding: 6px;
    }

    .mobile-menu-btn span {
        width: 22px;
        height: 1.5px;
    }

    .nav-links a {
        font-size: 1.3rem;
    }

    .nav-links ul {
        gap: 25px;
    }

    .mobile-cta {
        padding: 14px 35px;
        font-size: 0.75rem;
    }

    /* Футер */
    .site-footer {
        padding: 50px 0 20px;
    }

    .footer-grid {
        gap: 35px;
    }

    .footer-booksy-btn {
        padding: 10px 20px;
        font-size: 0.75rem;
    }
}

/* 360px — Очень маленькие устройства */
@media (max-width: 360px) {
    .logo {
        font-size: 1rem;
    }

    .nav-container {
        padding: 0 10px;
    }

    header {
        height: 65px;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .nav-links ul {
        gap: 20px;
    }

    .mobile-cta {
        padding: 12px 30px;
        font-size: 0.7rem;
    }

    .lang-switcher ul li a,
    .lang-switcher ul li span {
        padding: 4px 6px;
        font-size: 0.65rem;
    }

    .footer-logo-text {
        font-size: 1.3rem;
    }

    .footer-col-title {
        font-size: 0.95rem;
    }
}

/* --- ПЛАВНЫЕ АНИМАЦИИ ГАМБУРГЕРА --- */
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Фикс: убираем горизонтальный скролл */
html,
body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Контейнер не должен выходить за пределы */
.container {
    max-width: min(var(--container-width), 100% - 30px);
}

/* ============================================
   ФИНАЛЬНЫЕ ИСПРАВЛЕНИЯ ХЕДЕРА И МОБИЛЬНОГО МЕНЮ
   ============================================ */
/* 1. Отступ между логотипом и меню */
.logo-wrapper {
    margin-right: 40px;
    flex-shrink: 0;
}

.logo {
    margin-right: 0;
}

/* 2. Кнопка CTA на десктопе — отступ справа */
.desktop-cta {
    margin-right: 20px;
}

/* Адаптивный размер CTA на промежуточных разрешениях */
/* Адаптивный размер CTA и меню на промежуточных разрешениях */
@media (max-width: 1550px) {

    /* Compact Header Layout for Narrow Desktop */
    .nav-links ul {
        gap: 20px;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    .logo-wrapper {
        margin-right: 20px;
    }

    .desktop-cta {
        padding: 12px 20px;
        font-size: 0.75rem;
        margin-right: 10px;
    }

    .lang-switcher {
        margin-left: 5px;
        margin-right: 5px;
    }

    .lang-current-label {
        font-size: 0.7rem;
        padding: 6px 4px;
        white-space: nowrap;
    }
}

/* 3. Мобильное меню - исправления */
@media (max-width: 1400px) {

    /* Языки слева, выровнены по вертикали с крестиком */
    /* Языки слева, выровнены по вертикали с крестиком */
    .lang-switcher {
        position: fixed !important;
        top: 50% !important;
        left: 25px !important;
        right: auto !important;
        bottom: auto !important;
        transform: translateY(-50%) !important;
        z-index: 1003 !important;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        margin: 0 !important;
        /* Reset desktop margin */
    }

    /* Hide the dropdown toggle on mobile */
    .lang-current-label {
        display: none !important;
    }

    header:has(.nav-links.active) .lang-switcher {
        opacity: 1;
        visibility: visible;
        padding-top: 10px;
    }

    /* Языки со стилем рамки - Reset Dropdown Styles */
    .lang-switcher ul {
        display: flex !important;
        /* Force visible */
        position: static !important;
        transform: none !important;
        background: rgba(20, 20, 20, 0.95) !important;
        padding: 10px 20px !important;
        border-radius: 30px !important;
        border: 1px solid rgba(212, 175, 55, 0.3) !important;
        gap: 5px !important;
        flex-direction: row !important;
        min-width: auto !important;
        box-shadow: none !important;
    }

    .lang-switcher ul li {
        width: auto !important;
    }

    .lang-switcher ul li a {
        padding: 4px 8px !important;
        color: #aaa !important;
    }

    .lang-switcher ul li.current-lang a {
        color: var(--gold-solid) !important;
    }

    .lang-switcher ul li a,
    .lang-switcher ul li span {
        padding: 8px 12px;
        font-size: 0.8rem;
        color: #aaa;
    }

    .lang-switcher ul li.current-lang a,
    .lang-switcher ul li.current-lang span {
        color: var(--gold-solid);
    }

    /* 4. Кнопка CTA - как в hero (золотой градиент + правильный hover) */
    .mobile-cta,
    .nav-links .mobile-cta-li .btn,
    .nav-links .mobile-cta-li .btn-primary,
    .nav-links .mobile-cta-li a {
        background: var(--gold-gradient, linear-gradient(135deg, #d4af37 0%, #f4e4bc 50%, #d4af37 100%)) !important;
        border: none !important;
        color: #000 !important;
        padding: 16px 45px !important;
        font-size: 0.85rem !important;
        font-weight: 600 !important;
        letter-spacing: 2px !important;
        text-transform: uppercase !important;
        text-shadow: none !important;
        text-decoration: none !important;
        transition: all 0.4s ease !important;
        position: relative !important;
        overflow: hidden !important;
    }

    /* Hover эффект ТОЧНО как btn-primary в hero */
    .mobile-cta:hover,
    .nav-links .mobile-cta-li .btn:hover,
    .nav-links .mobile-cta-li a:hover {
        transform: translateY(-3px) !important;
        box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3) !important;
    }

    /* Меню по центру с правильными отступами */
    .nav-links ul {
        padding-top: 50px;
    }

    /* Крестик выровнен по вертикали (адаптивно к высоте хедера) */
    .mobile-menu-btn {
        position: absolute !important;
        top: 50% !important;
        right: 25px !important;
        transform: translateY(-50%) !important;
        z-index: 1003 !important;
    }

    /* КРИТИЧНО: Полностью отключаем hover для dropdown */
    .dropdown:hover .dropdown-content {
        display: none !important;
    }

    /* Открываем ТОЛЬКО через класс .open */
    .dropdown.open .dropdown-content {
        display: block !important;
        max-height: 500px !important;
        opacity: 1 !important;
    }
}

/* Дополнительные стили для dropdown в мобильном меню */
@media (max-width: 1400px) {

    /* Убираем дублирующуюся стрелку */
    .dropdown .dropbtn::after {
        display: none !important;
    }

    /* Стрелка dropdown через span в HTML */
    .dropdown .dropbtn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        cursor: pointer;
        position: relative;
    }
}

/* ============================================
   TABS & TRAINING SECTION (CENNIK PAGE)
   ============================================ */

/* --- Tabs Navigation --- */
.tabs-nav-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
    border-bottom: none;
    /* Removed line */
    position: relative;
    padding-bottom: 0;
}

.tabs-nav {
    display: inline-flex;
    gap: 10px;
    /* Smaller gap for pills */
    position: relative;
    z-index: 2;
    background: rgba(20, 20, 20, 0.8);
    padding: 8px;
    border-radius: 50px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.tab-btn {
    background: transparent;
    border: 1px solid transparent;
    color: #888;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 12px 35px;
    cursor: pointer;
    position: relative;
    transition: all 0.4s ease;
    font-family: 'Playfair Display', serif;
    border-radius: 40px;
    /* Pill shape */
    overflow: hidden;
}

/* Remove underline effect */
.tab-btn::after {
    display: none;
}

.tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    background: var(--gold-solid);
    color: #000;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
    font-weight: 600;
}

/* --- Tab Content --- */
.tab-content {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* --- Training Section Headers --- */
.training-header {
    text-align: center;
    margin-bottom: 60px;
}

.training-title {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

.training-title span {
    color: var(--gold-solid);
}

.training-subtitle {
    font-size: 1.1rem;
    color: #aaa;
    max-width: 600px;
    margin: 0 auto;
    font-style: italic;
}

/* --- Training Grid --- */
.training-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 Columns fixed */
    gap: 30px;
    margin-bottom: 80px;
    max-width: 1400px;
    /* Increased width */
    margin-left: auto;
    margin-right: auto;
}

@media screen and (max-width: 1100px) {
    .training-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}


/* --- Premium Course Card --- */
.course-card {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 8px;
    padding: 25px 25px 15px 25px;
    /* Reduced bottom padding */
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.08), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.course-card:hover {
    transform: translateY(-5px);
    /* Subtle lift */
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.course-card:hover::before {
    opacity: 1;
}

/* Card Decor */
.card-icon {
    font-size: 1.6rem;
    color: var(--gold-solid);
    margin-bottom: 10px;
    /* Reduced */
    opacity: 0.8;
}


.course-title {
    font-size: 1.4rem;
    /* Smaller title */
    color: #fff;
    font-family: 'Playfair Display', serif;
    margin-bottom: 5px;
    /* Reduced */
    position: relative;
    padding-bottom: 5px;
    /* Reduced */
}

.course-title::after {
    content: '✦';
    display: block;
    font-size: 0.8rem;
    color: var(--gold-solid);
    margin-top: 5px;
    opacity: 0.5;
}

.course-audience {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 30px;
    /* Increased margin */
    font-style: italic;
    line-height: 1.4;
}

/* Course Details Grid (Replaces List) */
.course-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 35px;
    /* Increased spacer to footer */
    width: 100%;
}

.detail-item {
    text-align: left;
    border-left: 2px solid oklch(0.77 0.14 91.04 / 0.3);
    /* Thicker accent */
    background: rgba(255, 255, 255, 0.01);
    /* Gray background */
    padding: 15px 20px;
    /* Padding for box look */
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 0 4px 4px 0;
    /* Slight rounding on right */
    transition: background 0.3s ease;
}

.detail-item:hover {
    background: rgba(255, 255, 255, 0.03);
    /* Black on hover */
}

.detail-label {
    font-size: 0.7rem;
    /* Increased from 0.6rem */
    color: #888;
    /* Slightly lighter gray */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    line-height: 1;
    font-weight: 500;
}

.detail-value {
    color: #fff;
    font-size: 1rem;
    /* Increased from 0.9rem */
    font-weight: 600;
    /* Bolder */
    line-height: 1.3;
    font-family: 'Playfair Display', serif;
    /* Optional: adds premium feel, or keep sans */
}

/* Fix mobile for details */
@media (max-width: 480px) {
    .course-details-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* --- Course Card Footer (Price + Button) --- */
.course-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 15px;
    /* Slightly tighter top padding */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.course-price-box {
    margin: 0;
    padding: 0;
    border: none;
    text-align: left;
}

.course-price-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 2px;
}

.course-price-value {
    display: block;
    font-size: 1.8rem;
    /* Larger */
    font-weight: 700;
    color: var(--gold-solid);
    font-family: 'Playfair Display', serif;
    line-height: 1;
}

/* Course Button */
.course-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    background: var(--gold-solid);
    border: none;
    color: #000;
    /* Contrast */
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.course-btn:hover {
    background: #fff;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .tabs-nav {
        gap: 20px;
    }

    .tab-btn {
        font-size: 0.9rem;
        padding: 12px 5px;
    }

    .training-title {
        font-size: 1.8rem;
    }

    /* Keep single column on mobile */
    .training-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 100%;
    }

    .course-card {
        padding: 30px 20px;
    }
}

/* Closing media query */

/* --- UNIQUE FAQ STYLES (Cities Page Only) --- */
.city-faq-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    padding-top: 20px;
}

.city-faq-item {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.city-faq-item:last-child {
    border-bottom: none;
    margin-bottom: 60px;
}

.city-faq-question {
    color: var(--gold-solid);
    font-size: 1.25rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 15px;
    font-weight: 500;
    line-height: 1.4;
}

.city-faq-answer {
    color: #ccc;
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 300;
    max-width: 95%;
}

/* FIX PROGRAM GRID */

/* FIX PROGRAM GRID (Consolidated) */
.program-grid-list {
    display: block !important;
    columns: 2 auto !important;
    column-gap: 40px;
    width: 100%;
}

.program-grid-list li {
    break-inside: avoid;
    margin-bottom: 20px;
    width: 100%;
    display: inline-block;
}

.program-grid-container {
    grid-template-columns: 1fr !important;
}

/* RESPONSIVE PROGRAM GRID */
@media (max-width: 768px) {
    .program-grid-list {
        columns: 1 auto !important;
    }
}

/* COURSE CTA BTN RESPONSIVE & PREMIUM STYLE */
.course-cta-btn,
.wpcf7-submit {
    min-width: 300px;
    background: linear-gradient(135deg, #d4af37 0%, #f7ef8a 50%, #d4af37 100%);
    color: #000 !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 50px;
    /* Pill shape */
    padding: 18px 30px;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    transition: all 0.4s ease;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

/* Hover Effect */
.course-cta-btn::before,
.wpcf7-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f7ef8a 0%, #d4af37 100%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.course-cta-btn:hover,
.wpcf7-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.5);
}

.course-cta-btn:hover::before,
.wpcf7-submit:hover::before {
    opacity: 1;
}

@media (max-width: 768px) {

    .course-cta-btn,
    .wpcf7-submit {
        min-width: unset !important;
        width: 100%;
        max-width: 100%;
        font-size: 0.8rem;
        padding: 16px 15px;
        white-space: normal;
        line-height: 1.2;
    }
}

/* ABOUT PAGE FOUNDER IMAGE FIX */
.founder-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
}

.founder-image-wrapper {
    flex: 1;
    min-width: 300px;
    position: relative;
    padding: 20px;
}

.founder-img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.founder-content {
    flex: 1.2;
    min-width: 300px;
}

/* RESPONSIVE FOUNDER */
@media (max-width: 768px) {
    .founder-grid {
        flex-direction: column;
        gap: 30px;
    }

    .founder-image-wrapper {
        padding: 0;
        width: 100%;
    }

    .founder-img {
        max-width: 100%;
    }
}

/* MOBILE MENU FIXES (Appended & Revised) */
@media (max-width: 1400px) {

    /* Fix jumping menu: Align to top with dynamic spacing */
    .nav-links {
        justify-content: flex-start !important;
        padding-top: 15vh !important;
        /* Dynamic centering: starts at 15% of height */
        padding-bottom: 50px;
        overflow-y: auto !important;
    }

    .nav-links ul {
        gap: 35px;
        /* Adjust spacing */
        padding-bottom: 50px;
        /* Space at bottom for scrolling */
    }

    .nav-links a {
        font-size: 1.5rem !important;
        font-family: var(--font-serif);
        letter-spacing: 2px;
        text-transform: uppercase;
    }

}

/* PORTFOLIO TABS FIX (Final Premium Design) */
.tabs-nav-wrapper {
    width: 100%;
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
}

/* The Container Pill */
.tabs-nav {
    display: inline-flex;
    justify-content: center;
    gap: 0;
    /* No gap, continuous pill */
    background: #111;
    border: 0;
    border-radius: 0;
    padding: 5px;
    /* Inner spacing */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 100%;
    overflow-x: auto;
    /* Scroll internally if needed */
    scrollbar-width: none;
}

.tabs-nav::-webkit-scrollbar {
    display: none;
}

.filter-btn,
.tab-btn {
    background: transparent !important;
    border: none !important;
    /* No individual borders */
    color: #888;
    padding: 12px 35px;
    border-radius: 0;
    cursor: pointer;
    font-family: var(--font-serif);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Active State - Solid Gold */
.filter-btn:hover,
.filter-btn.active,
.tab-btn:hover,
.tab-btn.active {
    background: linear-gradient(135deg, #d4af37 0%, #f7ef8a 50%, #d4af37 100%) !important;
    color: #000 !important;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
    font-weight: 600;
}

@media (max-width: 768px) {

    /* Portfolio Tabs - Multi-row layout on mobile */
    .portfolio-section .tabs-nav-wrapper {
        display: flex;
        justify-content: center;
        margin: 0;
        width: 100%;
        padding: 0 15px;
        overflow: visible;
        /* No scroll, wrap instead */
    }

    .portfolio-section .tabs-nav {
        display: flex;
        flex-wrap: wrap;
        /* Allow wrapping to multiple rows */
        justify-content: center;
        gap: 10px;
        background: transparent;
        border: none;
        padding: 0;
        box-shadow: none;
        border-radius: 0;
        max-width: 100%;
    }

    .portfolio-section .tab-btn {
        padding: 10px 18px;
        font-size: 0.7rem;
        background: #111 !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        border-radius: 0;
        flex-shrink: 0;
        white-space: nowrap;
    }

    .portfolio-section .tab-btn.active {
        background: linear-gradient(135deg, #d4af37 0%, #f7ef8a 50%, #d4af37 100%) !important;
        border-color: #d4af37 !important;
        color: #000 !important;
    }
}

/* MODELS PAGE GRID */
.models-grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

@media (min-width: 992px) {
    .models-grid-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .models-grid-cards:has(> :nth-child(3)) {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

.luxury-card .models-card-list {
    flex-grow: 1;
}


/* Mobile Optimization for Stats Section */
@media (max-width: 768px) {
    .advantages {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        justify-content: center;
    }

    .advantage-item {
        margin-bottom: 0;
        /* Remove default margins if any */
    }

    .advantage-item h4 {
        font-size: 2rem;
        /* Smaller font for 2-col layout */
    }

    .advantage-item p {
        font-size: 0.70rem;
        /* Slightly smaller label */
    }
}


/* Fix Homepage Course Card Mobile Overlap */
@media (max-width: 1100px) {
    .course-card-premium {
        display: flex;
        flex-direction: column !important;
        height: auto !important;
        margin-bottom: 60px;
    }

    .course-visuals,
    .course-info {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }

    .course-visuals {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 20px !important;
    }

    .course-info {
        min-width: 100%;
        padding: 30px 20px !important;
    }

    .course-visual-img {
        width: 100% !important;
        flex-shrink: 0;
        object-fit: cover;
    }

    .course-stats-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        margin-top: 20px;
    }

    .stat-box {
        padding: 15px;
        text-align: center;
        background: rgba(255, 255, 255, 0.02);
        border-left: 2px solid var(--gold-solid);
    }

    a.btn.btn-primary.btn-start {
        margin: auto;
    }

    .course-text {
        margin-bottom: 0px;
    }

    .course-card-premium.reversed .course-visuals {
        order: 1 !important;
    }

    .course-card-premium.reversed .course-info {
        order: 2 !important;
    }
}


/* Fix: Ensure Course Stats Grid is full width and symmetrical */
@media (max-width: 1100px) {
    .course-stats-grid {
        width: 100% !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        /* Safe resizing */
        gap: 10px !important;
        /* Tighter gap */
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    .course-card-premium {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}


/* ============================================
   COMPREHENSIVE HOMEPAGE MOBILE OPTIMIZATION
   ============================================ */

/* --- GLOBAL MOBILE SECTION SPACING --- */
@media (max-width: 768px) {
    .section {
        padding: 60px 0 !important;
    }

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

    .section-title {
        font-size: 1.8rem !important;
        line-height: 1.3 !important;
    }

    .section-subtitle,
    .section-desc {
        font-size: 0.9rem !important;
    }
}

/* --- SERVICES SECTION MOBILE --- */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .service-card {
        padding: 30px 20px !important;
    }

    .service-card h3 {
        font-size: 1.3rem !important;
    }

    .service-list {
        font-size: 0.9rem !important;
    }

    .service-item {
        padding: 8px 0 !important;
    }

    .service-item .price {
        font-size: 0.9rem !important;
    }

    .card-action {
        padding-top: 15px !important;
    }

    .btn-link {
        font-size: 0.75rem !important;
        padding: 10px 0 !important;
    }
}

/* --- ACADEMY COURSES MOBILE (Enhanced) --- */
@media (max-width: 768px) {
    .course-card-premium {
        margin-bottom: 40px !important;
    }

    .course-tag-badge {
        font-size: 0.7rem !important;
        padding: 6px 15px !important;
    }

    .course-title-large {
        font-size: 1.6rem !important;
        line-height: 1.3 !important;
    }

    .course-title-large span {
        font-size: 1rem !important;
    }

    .course-text {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
    }

    .course-stats-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    .stat-box {
        padding: 12px 10px !important;
    }

    .stat-label {
        font-size: 0.65rem !important;
    }

    .stat-value {
        font-size: 0.85rem !important;
    }

    .btn-start {
        width: 100% !important;
        text-align: center !important;
        padding: 14px 20px !important;
    }

    .luxury-divider {
        margin: 40px 0 !important;
    }
}

/* --- PORTFOLIO SECTION MOBILE --- */
@media (max-width: 768px) {
    .portfolio-home-section {
        padding: 60px 0 !important;
    }

    .portfolio-grid-home {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .gallery-item-home {
        border-width: 1px !important;
    }

    .portfolio-desc {
        font-size: 0.9rem !important;
    }

    .portfolio-seo-text {
        font-size: 0.85rem !important;
        line-height: 1.6 !important;
    }

    .portfolio-footer-wrapper {
        margin-top: 30px !important;
    }

    .portfolio-footer-text {
        font-size: 0.85rem !important;
    }

    .btn-large {
        padding: 14px 30px !important;
        font-size: 0.8rem !important;
    }
}

/* --- TESTIMONIALS CAROUSEL MOBILE --- */
@media (max-width: 768px) {
    .testimonials-section {
        padding: 60px 0 !important;
    }

    .testimonials-carousel-wrapper {
        padding: 0 10px !important;
    }

    .testimonial-card {
        padding: 25px 20px !important;
        min-width: 280px !important;
    }

    .testimonial-quote {
        font-size: 3rem !important;
    }

    .testimonial-text {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
    }

    .testimonial-avatar {
        width: 40px !important;
        height: 40px !important;
        font-size: 1rem !important;
    }

    .testimonial-name {
        font-size: 0.9rem !important;
    }

    .testimonial-role {
        font-size: 0.75rem !important;
    }

    .testimonial-rating svg {
        width: 14px !important;
        height: 14px !important;
    }

    .carousel-btn {
        width: 35px !important;
        height: 35px !important;
    }

    .carousel-btn svg {
        width: 18px !important;
        height: 18px !important;
    }

    .carousel-dots {
        margin-top: 20px !important;
    }
}

/* --- WHY US SECTION MOBILE --- */
@media (max-width: 768px) {
    .why-us-section {
        padding: 60px 0 !important;
    }

    .why-us-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .why-us-card {
        padding: 25px 20px !important;
        text-align: center !important;
    }

    .why-us-icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.5rem !important;
        margin: 0 auto 20px !important;
    }

    .why-us-title {
        font-size: 1.1rem !important;
    }

    .why-us-text {
        font-size: 0.85rem !important;
    }
}

/* --- FAQ SECTION MOBILE --- */
@media (max-width: 768px) {
    .faq-section {
        padding: 60px 0 !important;
    }

    .faq-container {
        gap: 15px !important;
    }

    .faq-question {
        padding: 15px !important;
    }

    .faq-question h3 {
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
    }

    .faq-answer-content {
        padding: 0 15px 15px !important;
        font-size: 0.9rem !important;
    }

    .faq-icon {
        width: 20px !important;
        height: 20px !important;
    }
}

/* --- ACADEMY FOOTER TEXT MOBILE --- */
@media (max-width: 768px) {
    .academy-footer {
        margin-top: 40px !important;
    }

    .academy-footer-text {
        font-size: 0.9rem !important;
        padding: 20px !important;
    }
}


/* ============================================
   HOMEPAGE COURSE CARDS - REFINED MOBILE FIX
   Based on user feedback screenshots
   ============================================ */

@media (max-width: 768px) {

    /* --- FIX 1 & 2: Images and Text Full Container Width --- */
    .course-card-premium {
        padding: 0 !important;
        margin: 0 0 50px 0 !important;
    }

    .course-visuals {
        width: 100% !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        overflow: visible !important;
    }

    .course-visual-img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16/10 !important;
        object-fit: cover !important;
        flex-shrink: 0 !important;
    }

    .course-info {
        width: 100% !important;
        padding: 25px 0 !important;
    }

    /* --- FIX 3: Stats Grid - 1 Column with Gold Border --- */
    .course-stats-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        width: 100% !important;
        margin: 25px 0 !important;
    }

    .stat-box {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        padding: 15px 20px !important;
        border: none !important;
        border-left: 3px solid var(--gold-solid) !important;
        background: rgba(255, 255, 255, 0.02) !important;
        margin-bottom: 10px !important;
        text-align: left !important;
    }

    .stat-label {
        font-size: 0.7rem !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
        color: #888 !important;
        margin-bottom: 5px !important;
    }

    .stat-value {
        font-size: 1rem !important;
        font-weight: 600 !important;
        color: #fff !important;
    }

    /* --- FIX 3: Centered Button --- */
    .btn-start {
        display: block !important;
        width: 100% !important;
        max-width: 350px !important;
        text-align: center !important;
    }

    /* --- FIX 4: Second Course - Images Before Text (Mobile Only) --- */
    .course-card-premium.reversed {
        display: flex !important;
        flex-direction: column !important;
    }

    .course-card-premium.reversed .course-info {
        order: 2 !important;
    }

    .course-card-premium.reversed .course-visuals {
        order: 1 !important;
    }

    /* --- FIX 5: Testimonials - No Overflow --- */
    .testimonials-carousel-wrapper {
        overflow: hidden !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .testimonials-carousel {
        overflow: hidden !important;
        width: 100% !important;
    }

    .testimonials-track {
        display: flex !important;
        gap: 0 !important;
    }

    .testimonial-card {
        min-width: 100% !important;
        width: 100% !important;
        flex-shrink: 0 !important;
        box-sizing: border-box !important;
        padding: 30px 20px !important;
        margin: 0 !important;
    }

    .testimonial-text {
        font-size: 0.95rem !important;
        line-height: 1.7 !important;
    }

    /* Hide carousel navigation buttons on mobile, rely on swipe/dots */
    .carousel-btn {
        display: none !important;
    }

    .carousel-dots {
        display: flex !important;
        justify-content: center !important;
        gap: 8px !important;
        margin-top: 25px !important;
    }
}


/* ============================================
   CRITICAL FIX: Course Cards & Testimonials Overflow
   ============================================ */

@media (max-width: 768px) {

    /* --- COURSE CARDS: Force Container Bounds --- */
    .academy-section .container {
        overflow: hidden !important;
    }

    .course-card-premium,
    .course-card-premium.reversed {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .course-visuals,
    .course-info {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .course-visual-img {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }

    /* --- TESTIMONIALS: Single Card + Gap --- */
    .testimonials-section {
        overflow: hidden !important;
    }

    .testimonials-section .container {
        overflow: hidden !important;
    }

    .testimonials-carousel-wrapper {
        overflow: hidden !important;
        width: 100% !important;
        padding: 0 !important;
    }

    .testimonials-carousel {
        overflow: hidden !important;
        width: 100% !important;
    }

    .testimonials-track {
        display: flex !important;
        gap: 0 !important;
        /* Gap between cards */
        transition: transform 0.4s ease !important;
    }

    .testimonial-card {
        min-width: 100% !important;
        /* Account for gap */
        width: 100% !important;
        flex-shrink: 0 !important;
        margin: 0 !important;
        /* Half of gap on each side */
        box-sizing: border-box !important;
    }
}

/* Testimonial Card - Full Container Width on Mobile */
@media (max-width: 768px) {
    .testimonial-card {
        min-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 30px 25px !important;
        border-radius: 12px !important;
    }

    .testimonials-track {
        gap: 0 !important;
    }

    .testimonials-carousel-wrapper {
        padding: 0 !important;
    }
}



/* ============================================
   TESTIMONIALS MOBILE - FINAL FIX
   Single card, full width, with dots visible
   ============================================ */
@media (max-width: 768px) {
    .testimonials-section {
        padding-bottom: 80px !important;
        /* Space for dots */
        overflow: visible !important;
    }

    .testimonials-section .container {
        overflow: visible !important;
    }

    .testimonials-carousel-wrapper {
        overflow: hidden !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        position: relative !important;
        clip-path: inset(0) !important;
    }

    .testimonials-carousel {
        overflow: hidden !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
    }

    .testimonials-track {
        display: flex !important;
        gap: 0 !important;
    }

    .testimonials-track .testimonial-card {
        flex: 0 0 100% !important;
        min-width: 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        padding: 30px 20px !important;
    }

    .carousel-btn {
        display: none !important;
    }

    .carousel-dots {
        display: flex !important;
        justify-content: center !important;
        gap: 10px !important;
        margin-top: 30px !important;
        padding-bottom: 20px !important;
    }
}



/* FINAL TESTIMONIALS FIX - Single Card Full Width */
@media (max-width: 1024px) {
    .testimonials-track {
        gap: 0 !important;
    }

    .testimonials-carousel {
        overflow: hidden !important;
    }
}


/* ============================================
   FOOTER MOBILE OPTIMIZATION
   - Left aligned titles
   - 2 columns for navigation/lists
   - Left aligned contact info
   ============================================ */
@media (max-width: 768px) {
    .footer-col {
        text-align: left !important;
        align-items: flex-start !important;
        margin-bottom: 40px !important;
        display: block !important;
        /* Ensure block layout */
    }

    .footer-col-title {
        text-align: left !important;
        width: auto !important;
        /* Allow width to fit text only */
        margin-bottom: 20px !important;
        position: relative;
        /* Critical for underline to match text width */
    }

    .footer-col-title::after {
        left: 0 !important;
        transform: none !important;
        margin-left: 0 !important;
        right: auto !important;
        width: 100% !important;
        /* Matches the inline-block width (text width) */
        max-width: 60px !important;
        /* Cap it if user wants short line, or remove max-width if wants full text width */
    }

    /* 2 Columns for Nav Lists (Nawigacja, Cities) */
    .footer-nav-list {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px 20px !important;
        text-align: left !important;
        padding-left: 0 !important;
        margin-left: 0 !important;
        clear: both !important;
        /* Ensure it clears floating title if any */
    }

    .footer-nav-list li {
        width: auto !important;
        margin-bottom: 5px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }

    .footer-nav-list li a {
        justify-content: flex-start !important;
        text-align: left !important;
        display: block !important;
    }

    /* Contact Block - Grid Layout for Address / Phone+Socials */
    .footer-contact-info {
        text-align: left !important;
        display: grid !important;
        grid-template-columns: auto 1fr !important;
        /* Start slightly compact, or 1fr 1fr */
        grid-template-rows: auto auto !important;
        gap: 15px !important;
        align-items: center !important;
        justify-items: start !important;
    }

    /* Address Row - Span 2 columns */
    /* Targeting by order or content since explicit classes aren't consistent */
    .footer-contact-info p:first-of-type {
        grid-column: 1 / -1 !important;
        /* Full width row 1 */
        width: 100% !important;
        margin-bottom: 0 !important;
        display: flex !important;
        align-items: center !important;
    }

    /* Phone - Col 1, Row 2 */
    .footer-contact-info p:nth-of-type(2) {
        grid-row: 2 !important;
        grid-column: 1 !important;
        margin-bottom: 0 !important;
        justify-content: flex-start !important;
        margin-right: 15px !important;
        /* Spacing between phone and icons */
    }

    /* Social Icons - Col 2, Row 2 */
    .social-icons-row {
        grid-row: 2 !important;
        grid-column: 2 !important;
        justify-content: flex-start !important;
        margin-left: 0 !important;
        margin-top: 0 !important;
        padding-top: 5px !important;
        /* Visual alignment with text */
    }

    /* Booksy Button - Centered below everything */
    .footer-booksy-btn {
        margin: 30px auto 0 !important;
        display: flex !important;
        width: 100% !important;
        max-width: 280px !important;
        justify-content: center !important;
        text-align: center !important;
    }

    /* Ensure footer grid allows stacking */
    .footer-grid {
        display: block !important;
        grid-template-columns: 1fr !important;
    }
}








/* ============================================
   EXTENSION PAGE SPECIFIC (Przedłużanie)
   Reuse Manicure Mobile Logic
   ============================================ */
@media (max-width: 992px) {
    .extension-section {
        padding: 40px 0;
        overflow-x: hidden;
    }

    .extension-section .container {
        width: 100%;
        max-width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
    }
}


/* ============================================
   CENNIK PAGE MOBILE OPTIMIZATION
   Fixes Price & Button Alignment on Cards
   ============================================ */
@media (max-width: 600px) {

    /* Training Grid Reset */
    .training-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .course-card {
        width: 100% !important;
        margin: 0 0 30px 0 !important;
        padding: 30px 20px !important;
        box-sizing: border-box !important;
    }

    /* Footer: Stack Price and Button */
    .course-card-footer {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px !important;
        margin-top: 30px !important;
    }

    .course-price-box {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        /* Keep aligned to left or center? Image showed left/center mix. Let's try center for stacked. */
        width: 100% !important;
        margin-bottom: 0 !important;
        text-align: left !important;
    }

    .course-price-label {
        font-size: 0.75rem !important;
        color: #888 !important;
        margin-bottom: 5px !important;
    }

    .course-price-value {
        font-size: 1.8rem !important;
        color: var(--gold-solid, #D4AF37) !important;
        line-height: 1.1 !important;
    }

    /* Button full width */
    .course-btn {
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        text-align: center !important;
        padding: 15px 20px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    /* Price Row in Services Tab */
    .price-row {
        display: flex !important;
        align-items: flex-end !important;
        justify-content: space-between !important;
        width: 100% !important;
    }

    .price-name {
        max-width: 60% !important;
        text-align: left !important;
    }

    .price-cost {
        white-space: nowrap !important;
    }
}


/* ============================================
   LIGHTBOX STYLES (Robust & Mobile Optimized)
   ============================================ */
/* Base Styles (Desktop & Mobile) */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    /* JS toggles flex */
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
}

.lightbox-content {
    max-width: 80vw;
    max-height: 80vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--gold-solid, #D4AF37);
    object-fit: contain;
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    line-height: 0.5;
    z-index: 10001;
    padding: 10px;
    transition: color 0.3s;
}

.close-lightbox:hover {
    color: var(--gold-solid, #D4AF37);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    z-index: 10001;
    padding: 20px;
    transition: color 0.3s, opacity 0.3s;
    opacity: 0.7;
}

.lightbox-nav:hover {
    color: var(--gold-solid, #D4AF37);
    opacity: 1;
}

.lightbox-nav::after {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    border-top: 4px solid currentColor;
    border-right: 4px solid currentColor;
}

/* Custom Arrows */
.lightbox-prev {
    left: 50px;
}

.lightbox-prev::after {
    transform: rotate(-135deg);
}

.lightbox-next {
    right: 50px;
}

.lightbox-next::after {
    transform: rotate(45deg);
}

#caption {
    margin-top: 15px;
    color: #ccc;
    font-size: 1.1rem;
    text-align: center;
}

/* Mobile Overrides */
@media (max-width: 768px) {
    #lightbox {
        padding: 0;
    }

    .lightbox-content {
        max-width: 95%;
        /* Wider on mobile */
        max-height: 70vh;
        /* Space for caption/controls */
        border-width: 1px;
    }

    /* Better Touch Targets for Close */
    .close-lightbox {
        top: 15px;
        right: 15px;
        font-size: 2.5rem;
        background: rgba(0, 0, 0, 0.5);
        /* Background for visibility */
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        border-radius: 50%;
        line-height: 1;
        padding-bottom: 5px;
        /* Visual center fix */
    }

    /* Better Touch Targets for Nav */
    .lightbox-nav {
        padding: 15px;
        background: rgba(0, 0, 0, 0.3);
        /* Subtle background */
        border-radius: 50%;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .lightbox-nav::after {
        width: 12px;
        height: 12px;
        border-width: 3px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-prev::after {
        margin-left: 4px;
    }

    /* Optical centering */

    .lightbox-next {
        right: 10px;
    }

    .lightbox-next::after {
        margin-right: 4px;
    }

    #caption {
        position: absolute;
        bottom: 30px;
        width: 90%;
        margin: 0;
        font-size: 0.9rem;
    }
}


/* ============================================
   GLOBAL SCROLL ANIMATIONS
   ============================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays if needed */
.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

section.contact-page-section {
    padding-top: 20px;
}

/* ============================================
   FORCE FIX: MANICURE & LAYOUT
   Verified Safe Version
   ============================================ */
/* FORCE FIX: DESKTOP */
.course-full-item {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 60px !important;
    margin-bottom: 120px !important;
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.course-image-side {
    flex: 1 !important;
    min-width: 420px !important;
    display: flex !important;
    justify-content: center !important;
    padding: 20px !important;
    position: relative !important;
}

.course-text-side {
    flex: 1 !important;
    text-align: left !important;
}

.photo-wrapper {
    position: relative !important;
    width: 400px !important;
    height: 600px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6) !important;
    background: #000 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    margin: 0 auto !important;
    transform: none !important;
    left: auto !important;
    right: auto !important;
    z-index: 2 !important;
}

.photo-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Base Frame: Same Size, Starts Centered */
.photo-frame-decor {
    width: 400px !important;
    height: 600px !important;
    border: 1px solid var(--gold-solid) !important;
    position: absolute !important;
    border-radius: 0 !important;
    left: 50% !important;
    top: 50% !important;
    z-index: 0 !important;
    margin: 0 !important;
    /* Default anchor (will be overridden by decor-left/right) */
    transform: translate(-50%, -50%) !important;
}

/* Left Image -> Shift Left-Top */
.decor-left {
    transform: translate(-50%, -50%) translate(-30px, -30px) !important;
}

/* Right Image -> Shift Right-Top */
.decor-right {
    transform: translate(-50%, -50%) translate(30px, -30px) !important;
}

/* PREMIUM PRICE BOX */
.premium-price-box {
    position: relative !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    padding: 60px !important;
    text-align: center !important;
    max-width: 900px !important;
    margin: 80px auto 0 !important;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.8) 0%, rgba(10, 10, 10, 0.9) 100%) !important;
    display: block !important;
}

/* MOBILE FIX (992px) */
@media (max-width: 992px) {

    /* 1. CONTAINER */
    .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    /* 2. ITEM STACKING */
    .course-full-item {
        flex-direction: column !important;
        gap: 40px !important;
        margin-bottom: 80px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        align-items: center !important;
    }

    .course-full-item.reverse-mobile {
        flex-direction: column-reverse !important;
    }

    /* 3. IMAGE SIDE */
    .course-image-side {
        width: 100% !important;
        min-width: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
        justify-content: center !important;
        flex: 0 0 auto !important;
        position: relative !important;
    }

    /* 4. IMAGE WRAPPER */
    .photo-wrapper {
        width: 90% !important;
        max-width: 360px !important;
        height: auto !important;
        aspect-ratio: 400/600 !important;
        margin: 0 auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        z-index: 2 !important;
    }

    .photo-wrapper img {
        width: 100% !important;
        height: 100% !important;
    }

    /* 5. DECOR FRAME - VISIBLE ON MOBILE */
    .photo-frame-decor {
        width: calc(100% + 30px) !important;
        /* Visible Border */
        max-width: 390px !important;
        height: calc(100% + 30px) !important;
        aspect-ratio: 400/600 !important;
        /* Strictly Center */
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
        z-index: 0 !important;
    }

    /* Reset Zig-Zag Specifics for Mobile -> Force Center */
    .decor-left,
    .decor-right {
        transform: translate(-50%, -50%) !important;
    }

    /* Reset Zig-Zag Shifting Wrapper */
    .wrapper-shift-right,
    .wrapper-shift-left {
        margin: 0 !important;
    }

    /* 6. TEXT SIDE */
    .course-text-side {
        width: 100% !important;
        padding: 0 10px !important;
        text-align: center !important;
        margin-top: 20px !important;
    }

    .mani-benefits-list {
        display: inline-block !important;
        text-align: left !important;
        padding-left: 0 !important;
    }

    /* 7. CTA BOX */
    .premium-price-box {
        width: 100% !important;
        max-width: 100% !important;
        margin: 40px 0 0 !important;
        padding: 40px 20px !important;
        box-sizing: border-box !important;
    }
}