/* --- 1. Глобальные переменные и сброс --- */
:root {
    --bg-color: #fcfaf7;
    --accent-color: #2c2c2c;
    --text-muted: #8d8d8d;
    --beige-light: #f4f1ee;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --brand-green: #566b58;
    --brand-green-dark: #435445;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

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

body {
    background-color: var(--bg-color);
    font-family: 'Montserrat', sans-serif;
    color: var(--accent-color);
    line-height: 1.6;
}

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

h1, h2, h3, .logo {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
}

/* --- 2. Шапка и Hero --- */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-decoration: none;
    color: var(--accent-color);
}

.logo span {
    font-weight: 300;
    color: var(--text-muted);
}

#main-nav {
    display: flex;
    gap: 30px;
}

#main-nav a {
    text-decoration: none;
    color: var(--accent-color);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

#main-nav a:hover {
    color: var(--text-muted);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 25px;
}

.icon-btn {
    text-decoration: none;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: 0.3s;
    position: relative;
}

.icon-btn i {
    font-size: 1.1rem;
}

.icon-btn:hover {
    opacity: 0.7;
}

.cart-icon {
    position: relative;
}

.cart-count {
    background: var(--accent-color);
    color: #fff;
    font-size: 0.65rem;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: absolute;
    top: -8px;
    right: -10px;
    font-family: 'Montserrat', sans-serif;
}

.menu-toggle {
    display: none;
    font-size: 1.2rem;
    cursor: pointer;
}

/* --- Hero Banner & Slider --- */
.hero-banner {
    position: relative;
    width: 100%;
    height: 80vh;
    background: url('../images/startbanner2-3.jpg') center/cover fixed;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-bottom: 80px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden;
    background-color: #000;
    margin-bottom: 80px;
}

.slider-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    display: flex;
    align-items: center;
    z-index: 1;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.slide.active {
    opacity: 1;
    z-index: 10;
}

.hero-content {
    position: relative;
    z-index: 20;
    color: #fff;
    max-width: 650px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out 0.5s;
}

.slide.active .hero-content {
    opacity: 1;
    transform: translateY(0);
}

.hero-subtitle {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.8);
    font-family: 'Montserrat', sans-serif;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: rgba(255,255,255,0.9);
}

.btn-primary {
    display: inline-block;
    padding: 15px 35px;
    border: 1px solid #fff;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    transition: 0.3s;
}

.btn-primary:hover {
    background-color: #fff;
    color: #000;
}

.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 100;
}

.dot {
    width: 10px; height: 10px;
    border: 1px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background-color: #fff;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

/* --- 3. Карусель Галереи --- */
.carousel-viewport {
    overflow: hidden;
    width: 100%;
    margin-top: 50px;
}

.art-grid {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease-in-out;
    padding: 40px 0;
    cursor: grab;
    user-select: none;
    will-change: transform;
}

.art-grid.active {
    cursor: grabbing;
}

.art-card {
    min-width: calc(33.333% - 20px);
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #f0f0f0;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

.art-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.03); 
}

.art-image {
    width: 100%;
    height: 400px;
    background-color: var(--beige-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.art-card img {
    pointer-events: auto; 
    cursor: zoom-in;
    max-width: 90%; 
    max-height: 90%; 
    object-fit: contain;
}

/* ИКОНКИ СБОКУ В ГАЛЕЕРЕЕ */
.card-overlay {
    position: absolute;
    top: 20px;
    right: -60px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
}

.art-card:hover .card-overlay {
    right: 20px;
    opacity: 1;
}

.like-btn, .add-to-cart-btn {
    background: #fff;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    color: var(--accent-color);
}

.like-btn:hover { color: #e74c3c; transform: scale(1.15); }
.add-to-cart-btn:hover { background: var(--accent-color); color: #fff; transform: scale(1.15); }

.art-info { padding: 20px; }

.art-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--accent-color);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s;
}

.spacer { flex-grow: 1; }

.action-btn:hover { color: #000; transform: scale(1.1); }
.like-btn:hover i { color: #e74c3c; font-weight: 900; }

.art-details h3 { font-size: 1.3rem; margin-bottom: 4px; }
.category { font-size: 0.75rem; text-transform: uppercase; color: var(--text-muted); letter-spacing: 1px; }
.price { font-weight: 500; margin-top: 10px; }

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

.nav-btn {
    background: white;
    border: 1px solid #e0e0e0;
    color: var(--accent-color);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s ease;
    font-size: 1rem;
}

.nav-btn:hover:not(:disabled) {
    border-color: var(--accent-color);
    background: var(--accent-color);
    color: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.nav-btn i { transition: transform 0.3s ease; }
.nav-btn.prev:hover i { transform: translateX(-3px); }
.nav-btn.next:hover i { transform: translateX(3px); }

/* --- Lightbox --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2500;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.lightbox.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    max-width: 85%;
    max-height: 80%;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

/* --- 4. Секция О нас --- */
.about-section {
    display: block;
    clear: both;
    margin-top: 80px;
    padding: 100px 20px;
    position: relative;
    z-index: 10;
    background-color: var(--bg-color);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 2px;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.stat strong {
    display: block;
    font-size: 1.5rem;
    font-family: 'Cormorant Garamond', serif;
}

.stat span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- 5. СТИЛИ ПРОМО-БЛОКОВ (Классы / Изделия) --- */
.master-classes {
    padding: 100px 0;
    background-color: #fff;
    overflow: hidden;
}

.second-promo {
    background-color: var(--bg-color);
    padding-top: 0;
}

.promo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.promo-grid-reverse .promo-content { order: 2; }
.promo-grid-reverse .promo-image { order: 1; }
.promo-grid-reverse .promo-content { padding-right: 0; padding-left: 20px; }

.promo-content { padding-right: 20px; }

.promo-content .promo-subtitle,
.promo-content .promo-subtitle1,
.promo-content .promo-subtitle2 {
    display: block;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.2rem;
    line-height: 1.2;
    color: var(--accent-color);
    margin-top: 25px;
    margin-bottom: 8px;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
}

.promo-content .promo-subtitle:first-of-type {
    margin-top: 0;
}

.promo-content h2 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-top: 5px;
    margin-bottom: 20px;
    font-family: 'Cormorant Garamond', serif;
}

.promo-content p:not([class]) {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 0;
}

.btn-primary-dark {
    display: inline-block;
    margin-top: 50px;
    padding: 18px 40px;
    background-color: var(--accent-color);
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    transition: var(--transition);
    border: 1px solid var(--accent-color);
}

.btn-primary-dark:hover {
    background-color: transparent;
    color: var(--accent-color);
}

.promo-image { position: relative; }
.promo-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 2px;
    display: block;
}

/* --- 6. СТИЛИ БЛОКА УСЛУГ (МАСТЕР-КЛАССЫ) --- */
.services-section {
    padding: 100px 0;
    background-color: var(--bg-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
    padding: 20px 0;
}

.service-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.service-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 25px;
    justify-content: space-between;
}

.service-price {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    opacity: 0.8;
}

.service-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-family: 'Cormorant Garamond', serif;
}

.service-info p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
    flex-grow: 1;
}

.book-btn {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    letter-spacing: 1px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.book-btn:hover {
    background: var(--accent-color);
    color: #fff;
}

/* --- 7. Инфо-секция (Без кнопок) --- */
.info-section {
    padding: 100px 0;
    background-color: #fff;
}

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

.info-card {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.info-image {
    width: 100%;
    height: 350px;
    margin-bottom: 25px;
    overflow: hidden;
    border-radius: 2px;
}

.info-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.5s ease;
}

.info-card:hover .info-image img {
    filter: brightness(1.05);
}

.info-content h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    color: var(--accent-color);
}

.info-content p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
}

/* --- 8. Подписка и Модальные окна --- */
.newsletter {
    background-color: var(--beige-light);
    padding: 80px 0;
    margin-top: 50px;
}

.newsletter-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.newsletter-text h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    font-family: 'Cormorant Garamond', serif;
}

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

.newsletter-form {
    display: flex;
    width: 100%;
    max-width: 500px;
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 5px;
}

.newsletter-form input {
    flex-grow: 1;
    background: transparent;
    border: none;
    padding: 12px 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    outline: none;
    color: var(--accent-color);
}

.newsletter-form button {
    background: transparent;
    border: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0 20px;
    transition: 0.3s;
}

.newsletter-form button:hover { opacity: 0.6; }

.modal-overlay {
    display: none; 
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    max-width: 400px;
    width: 90%;
    position: relative;
    text-align: center;
}

.modal-content input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.close-modal {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 30px;
    cursor: pointer;
}

/* --- Корзина Drawer --- */
.cart-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2900;
    display: none;
    backdrop-filter: blur(4px);
}

.cart-drawer {
    position: fixed;
    top: 0; right: -450px;
    width: 400px; height: 100%;
    background: #fff;
    z-index: 3000;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    padding: 40px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.05);
}

.cart-drawer.open { right: 0; }
.cart-overlay.open { display: block; }
.cart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.cart-items-container { flex-grow: 1; overflow-y: auto; }

.cart-item {
    display: flex; gap: 15px; margin-bottom: 25px; align-items: center;
    border-bottom: 1px solid #f5f5f5; padding-bottom: 15px;
}
.cart-item img { width: 70px; height: 70px; object-fit: cover; }
.cart-item-info h4 { font-size: 0.9rem; margin-bottom: 5px; }
.cart-item-info p { font-size: 0.85rem; color: var(--text-muted); }
.remove-item { background: none; border: none; cursor: pointer; color: #ff4d4d; font-size: 0.8rem; }
.cart-footer { border-top: 1px solid #eee; padding-top: 20px; }
.cart-total {
    display: flex; justify-content: space-between; font-size: 1.2rem; margin-bottom: 20px;
    font-family: 'Cormorant Garamond', serif;
}
.checkout-btn {
    width: 100%; background: var(--accent-color); color: #fff;
    border: none; padding: 15px; cursor: pointer; text-transform: uppercase; letter-spacing: 2px;
}

/* Попап услуг */
.service-popup { max-width: 850px; width: 95%; padding: 0; overflow: hidden; border-radius: 12px; }
.service-popup-container { display: flex; flex-direction: row; }
.service-popup-image { flex: 1; max-width: 45%; background: #f0f0f0; }
.service-popup-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.service-popup-info { flex: 1; padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.service-popup-price { font-size: 1.5rem; color: #b5835a; margin: 10px 0 20px; font-weight: 600; }
.service-popup-desc { line-height: 1.6; color: #555; margin-bottom: 20px; }
.service-details-list { margin-bottom: 30px; font-size: 0.95rem; border-top: 1px solid #eee; padding-top: 20px; }
.service-details-list p { margin-bottom: 10px; }

/* --- 9. Контакты и Футер --- */
.contact-section {
    margin-top: 100px;
    padding: 100px 20px;
    text-align: center;
    background: var(--beige-light);
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0; left: 50%; transform: translateX(-50%);
    width: 100px; height: 1px;
    background-color: var(--accent-color); opacity: 0.2;
}

.contact-section h2 {
    font-size: 2.2rem; margin-bottom: 20px;
    font-family: 'Cormorant Garamond', serif;
}

.contact-section p { max-width: 600px; margin: 0 auto 40px; color: var(--text-muted); }
.contact-links { display: flex; justify-content: center; gap: 30px; margin-top: 20px; }

.contact-links a {
    text-decoration: none; color: var(--accent-color); font-size: 1rem;
    display: flex; align-items: center; gap: 10px; transition: var(--transition);
    padding: 10px 20px; font-weight: 500; border: 1px solid rgba(0,0,0,0.1);
}

.contact-links a:hover { background-color: var(--accent-color); color: #fff; }
.copy-email { cursor: copy; position: relative; }
.copy-email:hover::after {
    content: 'Нажмите, чтобы скопировать'; position: absolute; bottom: -30px;
    left: 50%; transform: translateX(-50%); font-size: 0.7rem; background: #333;
    color: #fff; padding: 4px 8px; white-space: nowrap; border-radius: 2px;
}

.floating-contacts {
    position: fixed; top: 50%; right: 20px; transform: translateY(-50%);
    display: flex; flex-direction: column; gap: 15px; z-index: 9999;
}

.contact-bubble {
    display: flex; align-items: center; justify-content: center;
    width: 50px; height: 50px; border-radius: 50%; background-color: #fff;
    color: #333; font-size: 1.4rem; box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: all 0.3s ease; text-decoration: none; border: none !important;
    outline: none !important; padding: 0; cursor: pointer; appearance: none;
}

.contact-bubble:hover { transform: scale(1.1); box-shadow: 0 6px 15px rgba(0,0,0,0.25); }
.contact-bubble.phone:hover { background-color: #333 !important; color: #fff !important; }
.contact-bubble.telegram:hover { background-color: #0088cc !important; color: #fff !important; }
.contact-bubble.whatsapp:hover { background-color: #25d366 !important; color: #fff !important; }
.contact-bubble.vk:hover { background-color: #0077ff !important; color: #fff !important; }
.floating-contacts .contact-bubble.tiktok { background-color: #ffffff; color: #111111; border: 1px solid #e0e0e0; }
.floating-contacts .contact-bubble.tiktok:hover { background-color: #010101; color: #ffffff; border-color: #010101; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); }

.desktop-only { display: flex; }
.mobile-only { display: none; }

.main-footer { background-color: #fff; padding: 80px 0 30px; border-top: 1px solid #eee; color: var(--accent-color); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.footer-column h4 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 25px; }
.footer-about { font-size: 0.9rem; color: var(--text-muted); max-width: 300px; margin: 20px 0; }
.footer-links, .footer-info { list-style: none; }
.footer-links li, .footer-info li { margin-bottom: 12px; font-size: 0.9rem; display: flex; align-items: center; gap: 10px; }
.footer-links a { text-decoration: none; color: var(--text-muted); transition: 0.3s; }
.footer-links a:hover { color: var(--accent-color); padding-left: 5px; }
.footer-info i { color: var(--text-muted); width: 18px; }
.footer-social { display: flex; gap: 15px; }
.footer-social a {
    width: 35px; height: 35px; border: 1px solid #eee; display: flex;
    align-items: center; justify-content: center; border-radius: 50%;
    color: var(--accent-color); text-decoration: none; transition: 0.3s;
}
.footer-social a:hover { background: var(--accent-color); color: #fff; border-color: var(--accent-color); }
.footer-bottom { padding-top: 30px; border-top: 1px solid #f9f9f9; font-size: 0.75rem; color: var(--text-muted); }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; }

/* --- 10. Тизеры и Дополнительные страницы --- */
.catalog-section { padding: 0; margin-bottom: 100px; display: block; clear: both; }
.free-lesson-banner { background: var(--beige-light); padding: 60px 20px; text-align: center; border-radius: 15px; margin: 50px auto; }
.accessories-teaser { padding: 100px 0; background-color: #fbf9f6; border-top: 1px solid #f0edeb; }
.teaser-container { display: flex; align-items: center; gap: 50px; }
.teaser-content { flex: 1; }
.teaser-content h2 { font-size: 36px; text-transform: uppercase; margin-bottom: 20px; color: #222; }
.teaser-content p { font-size: 16px; color: #666; line-height: 1.6; margin-bottom: 30px; }
.btn-teaser { display: inline-block; padding: 15px 35px; background-color: var(--brand-green); color: #fff; text-decoration: none; border-radius: 4px; font-weight: 600; transition: background 0.3s; }
.btn-teaser:hover { background-color: var(--brand-green-dark); }
.teaser-image-collage { flex: 1; }
.teaser-image-collage img { width: 100%; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); object-fit: cover; height: 400px; }

.catalog-page { padding: 60px 0 100px; background-color: #fff; }
.catalog-header { text-align: center; margin-bottom: 60px; }
.back-link { display: inline-block; margin-bottom: 20px; color: #888; text-decoration: none; font-size: 14px; }
.back-link:hover { color: var(--brand-green); }
.catalog-header h1 { font-size: 40px; margin-bottom: 15px; }
.catalog-shop-links { display: flex; gap: 15px; justify-content: center; margin-top: 30px; }
.btn-shop { display: inline-flex; align-items: center; gap: 10px; padding: 12px 25px; border-radius: 30px; text-decoration: none; font-weight: 600; font-size: 14px; color: #fff; transition: transform 0.2s; }
.btn-shop:hover { transform: translateY(-2px); }
.btn-wb { background-color: #cb11ab; }
.btn-tg { background-color: #24a1de; }
.btn-icon { width: 20px; height: 20px; }

.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 40px; }
.product-card { background: #fff; border: 1px solid #eee; border-radius: 8px; overflow: hidden; position: relative; transition: box-shadow 0.3s; }
.product-card:hover { box-shadow: 0 15px 35px rgba(0,0,0,0.07); }
.product-badge { position: absolute; top: 15px; left: 15px; background: var(--brand-green); color: #fff; padding: 5px 10px; font-size: 11px; text-transform: uppercase; font-weight: 700; border-radius: 3px; z-index: 2; }
.product-img { height: 320px; background: #f7f7f7; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-details { padding: 25px; }
.product-details h3 { font-size: 20px; margin-bottom: 10px; }
.product-price { font-size: 22px; font-weight: 700; color: #222; margin-bottom: 15px; }
.product-desc { font-size: 14px; color: #666; line-height: 1.5; margin-bottom: 20px; }
.card-btn-tg { display: block; text-align: center; background: #f5f5f5; color: #333; padding: 10px; border-radius: 4px; text-decoration: none; font-weight: 600; font-size: 14px; transition: all 0.2s; }
.card-btn-tg:hover { background: #24a1de; color: #fff; }

/* Страница классов (classes.html) */
.classes-catalog-page { padding: 80px 0 100px; background-color: #ffffff; }
.classes-catalog-page .promo-grid { display: flex; align-items: center; gap: 50px; margin-bottom: 60px; }
.classes-catalog-page .promo-grid-reverse { flex-direction: row-reverse; }
.classes-catalog-page .promo-content, .classes-catalog-page .promo-image { flex: 1; width: 50%; }
.classes-catalog-page .promo-image img { width: 100%; max-height: 450px; object-fit: cover; border-radius: 8px; box-shadow: 0 8px 25px rgba(0,0,0,0.05); }
.classes-catalog-page .promo-subtitle { font-size: 24px; font-weight: 600; color: #333; margin-bottom: 15px; }
.classes-catalog-page .promo-content p { font-size: 16px; line-height: 1.6; color: #555; }
.classes-catalog-page .services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.classes-catalog-page .service-card { background: #ffffff; border: 1px solid #eaeaea; border-radius: 8px; overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.classes-catalog-page .service-card:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(0,0,0,0.08); }
.classes-catalog-page .service-image { height: 260px; width: 100%; overflow: hidden; }
.classes-catalog-page .service-image img { width: 100%; height: 100%; object-fit: cover; }
.classes-catalog-page .service-info { padding: 25px; }
.classes-catalog-page .service-price { font-size: 18px; font-weight: 700; color: var(--brand-green); margin-bottom: 10px; }
.classes-catalog-page .service-info h3 { font-size: 20px; color: #222; margin-bottom: 10px; }
.classes-catalog-page .service-info p { font-size: 14px; color: #666; line-height: 1.5; margin-bottom: 20px; }
.classes-catalog-page .book-btn { display: block; width: 100%; padding: 12px; background-color: var(--brand-green); color: #ffffff; border: none; border-radius: 4px; font-weight: 600; cursor: pointer; transition: background 0.2s; text-align: center; }
.classes-catalog-page .book-btn:hover { background-color: var(--brand-green-dark); }

/* --- ИСПРАВЛЕННЫЕ ДЕСКТОПНЫЕ МЕДИА-ЗАПРОСЫ (ДО 992px) --- */
@media (max-width: 992px) {
    .newsletter-wrap { flex-direction: column; text-align: center; }
    .newsletter-form { margin: 0 auto; }
    .promo-grid { grid-template-columns: 1fr; gap: 50px; text-align: center; }
    .promo-content { padding-right: 0; order: 2; }
    .promo-image { order: 1; }
    .promo-image img { height: 400px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .info-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .teaser-container { flex-direction: column; gap: 30px; text-align: center; }
    .teaser-image-collage img { height: 300px; }
    .classes-catalog-page .promo-grid, .classes-catalog-page .promo-grid-reverse { flex-direction: column; gap: 30px; }
    .classes-catalog-page .promo-content, .classes-catalog-page .promo-image { width: 100%; }
    .classes-catalog-page .promo-image img { max-height: 300px; }
}

/* --- ГАРАНТИРОВАННЫЙ МОБИЛЬНЫЙ ФИКС ДЛЯ КЛАССОВ, ИЗДЕЛИЙ И АКСЕССУАРОВ (ДО 768px) --- */
@media (max-width: 768px) {
    /* Базовые элементы */
    .about-grid { grid-template-columns: 1fr; }
    #main-nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: rgba(255, 255, 255, 0.98); padding: 20px; border-bottom: 1px solid #eee; z-index: 999; box-shadow: 0 10px 15px rgba(0,0,0,0.05); }
    #main-nav.active { display: flex; }
    #main-nav a { padding: 15px 0; border-bottom: 1px solid #f9f9f9; width: 100%; text-align: center; }
    .menu-toggle { display: block; font-size: 1.5rem; cursor: pointer; padding: 5px; }
    .user-login span { display: none; }
    .art-card { min-width: 100%; }
    .hero-banner { height: 60vh; }
    .hero-banner h1 { font-size: 2.2rem; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content { text-align: center; padding: 0 20px; }

    /* ========================================================
       1. БЛОКИ МАСТЕР-КЛАССОВ (Классы и Изделия в карточках)
       ======================================================== */
    .services-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        padding: 0 10px;
    }

    .service-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto;
        height: auto !important;
        display: flex !important;
        flex-direction: column !important; 
        box-shadow: none !important;
        border-radius: 0 !important;
        background: transparent !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.15) !important; 
        padding-bottom: 40px !important;
        margin-bottom: 40px !important;
    }
    .service-card:last-child {
        border-bottom: none !important;
        margin-bottom: 0 !important;
    }

    .service-info {
        display: contents !important; 
    }

    .service-info h3 {
        order: 1 !important;        
        margin-top: 10px !important;
        margin-bottom: 15px !important;
        text-align: left;
    }

    .service-image {
        order: 2 !important;        
        height: 240px !important;
        width: 100% !important;
        border-radius: 8px !important;
        overflow: hidden;
        margin-bottom: 15px !important;
    }
    .service-image img { width: 100%; height: 100%; object-fit: cover; }

    .service-price, 
    .service-info p {
        order: 3 !important;        
        margin-bottom: 10px !important;
        text-align: left;
    }

    .service-info .book-btn {
        order: 4 !important;        
        margin-top: 15px !important;
    }

    /* ========================================================
       2. БЛОК АКСЕССУАРОВ (Тизер)
       ======================================================== */
    .accessories-teaser {
        padding: 50px 20px !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.15) !important; 
    }

    .teaser-container {
        display: flex !important;
        flex-direction: column !important; 
        gap: 0 !important;
    }

    .teaser-content {
        display: contents !important;
    }

    .teaser-content h2 {
        order: 1 !important;        
        margin-bottom: 15px !important;
        text-align: left !important;
    }

    .teaser-image-collage {
        order: 2 !important;        
        width: 100% !important;
        margin-bottom: 15px !important;
    }
    .teaser-image-collage img {
        height: 250px !important;
        width: 100% !important;
        object-fit: cover !important;
        border-radius: 8px !important;
    }

    .teaser-content p {
        order: 3 !important;        
        margin-bottom: 20px !important;
        text-align: left !important;
    }

    .btn-teaser {
        order: 4 !important;        
        margin-top: 0 !important;
    }

    /* ========================================================
       3. БОЛЬШИЕ ПРОМО-БЛОКИ («Для кого занятия» / «Изделия»)
       ======================================================== */
    .promo-grid, .promo-grid-reverse {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
    }

    .promo-content {
        display: contents !important; 
    }

    .promo-content h2 { margin-bottom: 20px !important; }
    .promo-content .promo-subtitle,
    .promo-content .promo-subtitle1,
    .promo-content .promo-subtitle2 { font-size: 1.1rem !important; margin-top: 10px !important; margin-bottom: 5px !important; }

    .promo-image {
        order: 2 !important;        
        width: 100% !important;
        margin-bottom: 20px !important;
    }
    .promo-image img { width: 100%; height: auto; max-height: 300px; object-fit: cover; border-radius: 8px; }

    .promo-content p:not([class]) {
        order: 3 !important;        
        margin-bottom: 20px !important;
        text-align: left;
    }

    .btn-primary-dark {
        order: 4 !important;        
        margin-top: 0 !important;
    }

    /* Тонкие линии между контентными секциями экрана */
    .master-classes, .second-promo, .promo-section, .services-section {
        border-bottom: 1px solid rgba(0, 0, 0, 0.15) !important;
        padding: 50px 20px !important;
        margin-bottom: 0 !important;
        margin-top: 0 !important;
    }

    /* ========================================================
       4. ЕДИНЫЙ СТИЛЬ КНОПОК И ШРИФТОВ ДЛЯ ВСЕХ БЛОКОВ
       ======================================================== */
    .book-btn, .btn-teaser, .btn-primary-dark {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 16px 20px !important;
        background-color: var(--accent-color) !important; 
        color: #ffffff !important;
        border: 1px solid var(--accent-color) !important;
        border-radius: 4px !important; 
        font-family: 'Montserrat', sans-serif !important;
        font-size: 0.85rem !important;
        font-weight: 600 !important;
        letter-spacing: 2px !important;
        text-transform: uppercase !important;
        text-align: center !important;
        text-decoration: none !important;
        transition: opacity 0.3s ease !important;
    }
    .book-btn:active, .btn-teaser:active, .btn-primary-dark:active {
        opacity: 0.8 !important;
    }

    /* Унифицируем весь текст описаний на мобильных */
    .service-info p, .teaser-content p, .promo-content p:not([class]), .service-price {
        font-family: 'Montserrat', sans-serif !important;
        font-size: 0.95rem !important; 
        color: #444444 !important; 
        line-height: 1.6 !important;
    }
    .service-price {
        font-weight: 700 !important;
        color: var(--accent-color) !important;
    }

    /* ========================================================
       Прочие мобильные фиксы окон, контактов и футера
       ======================================================== */
    .service-popup-container { flex-direction: column; }
    .service-popup-image { max-width: 100%; height: 250px; }
    .service-popup-info { padding: 25px; }
    
    .contact-section .contact-links { display: flex !important; flex-direction: column !important; align-items: center !important; gap: 15px !important; width: 100%; }
    .contact-section .contact-links a { width: 100%; max-width: 320px; justify-content: center; text-align: center; padding: 15px; }
    .contact-section .contact-links a .email-text { word-break: break-all; font-size: 0.9rem; }
    .contact-section { padding: 60px 20px !important; margin-top: 50px !important; border-bottom: 1px solid rgba(0, 0, 0, 0.15) !important; }

    .floating-contacts { bottom: 20px; right: 10px; gap: 10px; top: auto; transform: none; }
    .contact-bubble { opacity: 0.8; width: 40px; height: 40px; font-size: 1.2rem; }

    .desktop-only { display: none; }
    .mobile-only { display: flex; }

    .footer-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .footer-about { margin: 20px auto; }
    .footer-social { justify-content: center; }
    .footer-bottom .container { flex-direction: column; gap: 10px; }
}

/* Дополнительные мелкие сетки */
@media (max-width: 650px) {
    .info-grid { grid-template-columns: 1fr; }
    .info-image { height: 400px; }
}
@media (max-width: 600px) {
    .services-grid { grid-template-columns: 1fr; }
}
@media (max-width: 576px) {
    .catalog-shop-links { flex-direction: column; }
}

/* ========================================================
   ГЛОБАЛЬНЫЕ ИСПРАВЛЕНИЯ ДЛЯ ДЕСКТОПА И МОБИЛКИ
   ======================================================== */

/* 1. Единый стиль кнопок (Мастер-классы и Аксессуары на ПК) */
.book-btn, .btn-teaser {
    display: inline-flex !important; 
    justify-content: center;
    align-items: center;
    padding: 16px 40px !important; 
    box-sizing: border-box !important;
    background-color: var(--accent-color) !important;
    color: #ffffff !important;
    border: 1px solid var(--accent-color) !important;
    border-radius: 4px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color 0.3s ease, opacity 0.3s ease !important;
}

@media (min-width: 769px) {
    .book-btn:hover, .btn-teaser:hover {
        background-color: transparent !important; 
        color: var(--accent-color) !important;      
    }
}

/* 2. Единое скругление фотографий на главной странице */
.about-image img,
.promo-image img,
.teaser-image-collage img,
.info-image img {
    border-radius: 12px !important;
}

/* Скругляем только upper углы у карточек мастер-классов */
.service-image img,
.classes-catalog-page .service-image img {
    border-radius: 12px 12px 0 0 !important; 
}

/* ========================================================
   ГЛОБАЛЬНОЕ УНИФИЦИРОВАНИЕ ЗАГОЛОВКОВ НА ВСЕМ САЙТЕ
   ======================================================== */

/* 1. Настройки для компьютеров и больших экранов (Десктоп) */
.about-grid h2,
.services-section h2,
.services-section h1,
.service-info h3,
.accessories-teaser h2,
.teaser-content h2,
.promo-content h2,
.promo-content .promo-subtitle,
.promo-content .promo-subtitle1,
.promo-content .promo-subtitle2 { 
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 3rem !important;          
    font-weight: 500 !important;
    color: var(--accent-color) !important; 
    line-height: 1.2 !important;
    letter-spacing: 0.5px !important;
    margin-top: 0 !important;
    margin-bottom: 25px !important;      
    text-transform: none !important; 
}

/* 2. Точечная корректировка строго для мобильной версии (до 768px) */
@media (max-width: 768px) {
    .about-grid h2,
    .services-section h2,
    .services-section h1,
    .service-info h3,
    .accessories-teaser h2,
    .teaser-content h2,
    .promo-content h2,
    .promo-content .promo-subtitle,
    .promo-content .promo-subtitle1,
    .promo-content .promo-subtitle2 { 
        font-size: 2.2rem !important; /* Гарантированный крупный размер для мобильных */
        line-height: 1.3 !important;     
        margin-bottom: 15px !important;  
        text-transform: none !important; 
        word-wrap: break-word !important;
    }

    /* Отключаем принудительный перенос строки на телефонах */
    .promo-subtitle .desktop-br {
        display: none !important;
    }
}

/* ========================================================
   4. ШАХМАТНЫЙ ПОРЯДОК ДЛЯ БЛОКОВ НА ДЕСКТОПЕ (ПК)
   ======================================================== */
@media (min-width: 769px) {
    /* Безопасное изменение порядка контента через order для Grid/Flexbox */
    .master-classes-teaser .promo-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
    }

    /* Текст уходит направо */
    .master-classes-teaser .promo-content {
        order: 2 !important;
        padding-right: 0 !important;
        padding-left: 40px !important; 
    }
    
    /* Фотография уходит налево */
    .master-classes-teaser .promo-image {
        order: 1 !important;
    }
}

/* ==========================================
   СЕКЦИЯ SHORTS (ВЕРТИКАЛЬНЫЙ ФОРМАТ 9:16)
   ========================================== */
.video-section {
  padding-top: 60px;
  padding-bottom: 80px;
}

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

.section-title {
  font-family: var(--font-heading, serif);
  font-size: 2.2rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #222;
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 0.95rem;
  color: #666;
  font-weight: 300;
}

/* Карусель */
.video-carousel-wrapper {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
}

/* Разрешаем горизонтальный скролл и скрываем полосу прокрутки */
.video-track {
  display: flex;
  gap: 20px;
  overflow-x: auto; /* Включает возможность прокрутки для JS и свайпов */
  scroll-behavior: smooth;
  scrollbar-width: none; /* Скрывает скроллбар в Firefox */
  -ms-overflow-style: none; /* Скрывает скроллбар в IE/Edge */
  -webkit-overflow-scrolling: touch; /* Плавный скролл на iOS */
}

/* Скрывает скроллбар в Chrome, Safari и Opera */
.video-track::-webkit-scrollbar {
  display: none;
}

/* На десктопе показываем 4 карточки в ряд */
.video-card {
  flex: 0 0 calc(25% - 15px);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.video-thumb-container {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16; /* Изменено на вертикальное соотношение 9:16 */
  overflow: hidden;
  border-radius: 6px;
  background-color: #f0f0f0;
}

.video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-card:hover .video-thumb {
  transform: scale(1.04);
}

/* Метка Shorts */
.shorts-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  z-index: 2;
}

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

.video-card:hover .play-btn-overlay {
  background: rgba(0, 0, 0, 0.3);
}

.play-icon {
  width: 48px;
  height: 48px;
  transition: transform 0.3s ease;
}

.video-card:hover .play-icon {
  transform: scale(1.1);
}

.video-meta {
  padding-top: 12px;
  text-align: left;
}

.video-card-title {
  font-family: var(--font-heading, serif);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.4;
  color: #222;
  margin-bottom: 4px;
}

.yt-direct-link {
  font-size: 0.8rem;
  color: #888;
  transition: color 0.2s;
}

.video-card:hover .yt-direct-link {
  color: #111;
  text-decoration: underline;
}

/* Кнопки прокрутки */
.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.carousel-btn {
  background: transparent;
  border: 1px solid #ccc;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s ease;
}

.carousel-btn:hover {
  background: #222;
  color: #fff;
  border-color: #222;
}

/* CTA Блок подписки */
.yt-cta-block {
  margin-top: 60px;
  background-color: #fcfcfc;
  border: 1px solid #eaeaea;
  padding: 40px 20px;
  border-radius: 6px;
  text-align: center;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}

.yt-cta-title {
  font-family: var(--font-heading, serif);
  font-size: 1.3rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: #222;
  margin-bottom: 12px;
}

.yt-cta-text {
  font-size: 0.95rem;
  color: #555;
  max-width: 600px;
  margin: 0 auto 24px auto;
  line-height: 1.6;
}

.yt-subscribe-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  background-color: #222;
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  border-radius: 4px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.yt-subscribe-btn:hover {
  background-color: #cc0000;
  transform: translateY(-2px);
}

.yt-logo-icon {
  width: 18px;
  height: 18px;
}

/* Модальное окно для вертикального видео */
.yt-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
}

.yt-modal-container {
  width: 90%;
  max-width: 420px; /* Ограничиваем ширину, чтобы видео открывалось как вертикальный экран телефона */
  aspect-ratio: 9 / 16;
  max-height: 85vh;
}

.yt-modal-container iframe {
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.yt-modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
}

/* Адаптивность */
@media (max-width: 900px) {
  .video-card {
    flex: 0 0 calc(33.333% - 14px); /* 3 карточки на планшете */
  }
}

@media (max-width: 600px) {
  .video-card {
    flex: 0 0 calc(50% - 10px); /* 2 карточки на моб. устройствах */
  }

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