/* Только для страниц с hero (главная и подобные), когда шапка не прокручена */
body:not(.no-hero) .header:not(.scrolled) .logo {
    background-image: url("/assets/img/logo2.png");
}

/* ================= ЛОКАЛЬНЫЕ ШРИФТЫ ================= */
@font-face {
    font-family: 'Montserrat';
    src: url('/assets/fonts/Montserrat-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat';
    src: url('/assets/fonts/Montserrat-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat';
    src: url('/assets/fonts/Montserrat-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat';
    src: url('/assets/fonts/Montserrat-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat';
    src: url('/assets/fonts/Montserrat-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('/assets/fonts/PlayfairDisplay-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Playfair Display';
    src: url('/assets/fonts/PlayfairDisplay-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Playfair Display';
    src: url('/assets/fonts/PlayfairDisplay-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ================= ГЛОБАЛЬНЫЕ СТИЛИ ================= */
:root {
    --black: #111;
    --white: #ffffff;
    --gold: #c7a46a;
    --gold-light: #d4b87a;
    --gray: #777;
    --light: #f7f5f2;
    --dark: #1A1A1A;
    --transition: 0.4s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--black);
    background: white;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* ================= HEADER ================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 25px 0;
    transition: var(--transition);
    background: transparent;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    padding: 15px 0;
}

/* Для страниц без hero – исправленная специфичность */
body.no-hero .header {
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}
body.no-hero .header .menu a {
    color: var(--black);
}
body.no-hero .header .menu a:hover,
body.no-hero .header .menu a.active {
    color: var(--gold);
}
body.no-hero .header .lang-switch {
    color: var(--black);
    border-color: var(--black);
}
body.no-hero .header .lang-switch:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: white;
}
body.no-hero .header .menu-btn {
    color: var(--black);
}
body.no-hero .header .menu-label {
    color: var(--black);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Логотип (без белого фона, только красный контур) */
.logo {
    display: inline-block;
    height: 45px;
    width: 137px;
    background: url("/assets/img/logo.png") no-repeat center/contain;
    transition: opacity 0.4s;
}

.logo svg {
    display: none;
}

/* Десктопное меню */
.menu {
    display: flex;
    gap: 35px;
    list-style: none;
}

.menu a {
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 4px;
    color: var(--black);
}

.header:not(.scrolled) .menu a {
    color: white;
}

/* Цвет текста меняется на золотой при наведении */
.header .menu a:hover,
.header .menu a.active {
    color: var(--gold);
}

.menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s;
}

.menu a:hover::after,
.menu a.active::after {
    width: 100%;
}

/* Бургер-кнопка с подписью */
.menu-toggle-wrapper {
    display: none;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    z-index: 1001;
    height: 24px;
}

.menu-btn {
    background: none;
    border: none;
    width: 30px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
    gap: 5px;
    transition: gap 0.3s ease;
}

.menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: currentColor;
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s;
}

.menu-toggle-wrapper:hover .menu-btn {
    gap: 10px;
}

.menu-btn.open {
    gap: 5px;
}

.header:not(.scrolled) .menu-btn {
    color: white;
}
.header.scrolled .menu-btn {
    color: var(--black);
}

/* Надпись «Меню» */
.menu-label {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
}

.header:not(.scrolled) .menu-label {
    color: white;
}
.header.scrolled .menu-label {
    color: var(--black);
}

.menu-toggle-wrapper.open .menu-label {
    opacity: 0;
    visibility: hidden;
}

.menu-btn.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.menu-btn.open span:nth-child(2) {
    opacity: 0;
}
.menu-btn.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Мобильное меню со стеклянным эффектом */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 1002;
    transition: right 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 80px 20px 60px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu-close {
    position: absolute;
    top: 25px;
    right: 25px;
    background: none;
    border: none;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    color: var(--black);
    transition: color 0.3s;
    z-index: 10;
}

.mobile-menu-close:hover {
    color: var(--gold);
}

/* Ссылки внутри мобильного меню (только для подменю и обычных ссылок) */
.mobile-menu a {
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 15px 0;
    color: var(--black);
    transition: color 0.3s;
    position: relative;
    display: inline-block;
}

.mobile-menu a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s ease, left 0.3s ease;
}

.mobile-menu a:hover {
    color: var(--gold);
}
.mobile-menu a:hover::after {
    width: 100%;
    left: 0;
}

/* ========== МОБИЛЬНОЕ ПОДМЕНЮ (АККОРДЕОН) ========== */
.mobile-menu-item {
    width: 100%;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    position: relative;
}

/* Ссылка-заголовок больше не растягивается */
.mobile-menu-header a {
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--black);
    transition: color 0.3s;
    display: inline;
    position: relative;
}

.mobile-menu-header a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s ease, left 0.3s ease;
}

/* При наведении на всю строку (и на "+") подчёркивание появляется, цвет меняется */
.mobile-menu-header:hover a,
.mobile-menu-header a:hover {
    color: var(--gold);
}
.mobile-menu-header:hover a::after,
.mobile-menu-header a:hover::after {
    width: 100%;
    left: 0;
}

.mobile-submenu-toggle {
    background: none;
    border: none;
    font-size: 24px;
    font-weight: 300;
    color: var(--black);
    cursor: pointer;
    transition: transform 0.3s, color 0.3s;
    padding: 0 10px;
    line-height: 1;
    flex-shrink: 0;
}

.mobile-submenu-toggle:hover {
    color: var(--gold);
}

.mobile-submenu-toggle.open {
    transform: rotate(45deg);
}

.mobile-submenu {
    list-style: none;
    padding-left: 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.mobile-submenu.open {
    max-height: 500px;
}

.mobile-submenu li {
    margin: 8px 0;
}

.mobile-submenu a {
    font-size: 16px;
    text-transform: none;
    letter-spacing: 1px;
    color: #444;
    transition: color 0.3s;
    display: inline-block;
}

.mobile-submenu a:hover {
    color: var(--gold);
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ================= ПЕРЕКЛЮЧАТЕЛЬ ЯЗЫКА ================= */
.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-switch {
    background: none;
    border: 1px solid currentColor;
    color: inherit;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 4px 10px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    text-transform: uppercase;
}

.header:not(.scrolled) .lang-switch {
    color: white;
    border-color: white;
}
.header.scrolled .lang-switch {
    color: var(--black);
    border-color: var(--black);
}

.lang-switch:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: white;
}

/* ================= HERO ================= */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    background: #000;
}

.hero-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-slide video,
.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-slide .slide-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 90%;
    z-index: 15;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(40px, 6vw, 82px);
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-content h1 span {
    display: block;
    font-size: 0.5em;
    font-weight: 400;
    letter-spacing: 1px;
    margin-top: 5px;
}

.hero-content p {
    font-size: 20px;
    letter-spacing: 3px;
    margin-bottom: 45px;
    text-transform: lowercase;
}

.hero-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 18px 45px;
    border: 1px solid white;
    color: white;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 13px;
    transition: background 0.4s, color 0.4s;
    cursor: pointer;
}

.btn:hover {
    background: white;
    color: black;
}

.btn-dark {
    background: var(--black);
    border-color: var(--black);
    color: white;
}

.btn-dark:hover {
    background: var(--gold);
    border-color: var(--gold);
}

.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 15;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid white;
    cursor: pointer;
    transition: background 0.3s;
    background: transparent;
}

.dot.active {
    background: white;
}

.mute-btn {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 20;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
    backdrop-filter: blur(4px);
}

.mute-btn:hover {
    background: rgba(0,0,0,0.7);
}

.mute-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: white;
    stroke-width: 2;
}

/* ================= ОБЩИЕ СТИЛИ СЕКЦИЙ ================= */
.section {
    padding: 120px 0;
}

.section-title {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 70px;
}

.section-title span {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 5px;
    font-size: 13px;
}

.section-title h2 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 400;
    margin-top: 20px;
}

.subtitle {
    text-transform: uppercase;
    letter-spacing: 5px;
    font-size: 13px;
    color: var(--gold);
    margin-bottom: 25px;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ================= ABOUT ================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: 650px;
    object-fit: cover;
    object-position: center top;
    border-radius: 2px;
    transition: transform 0.4s, box-shadow 0.4s;
}

.about-image:hover img {
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.about-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 30px;
}

.about-text p {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

/* ================= КОНТАКТНАЯ ПАНЕЛЬ (перед футером) ================= */
.contacts-bar {
    background: var(--dark);
    color: white;
    padding: 2.5rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    text-align: center;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

/* Базовая иконка: размер и цвет через фон */
.contact-icon {
    display: inline-block;
    width: 1.8rem;
    height: 1.8rem;
    background-color: var(--gold);
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    margin-bottom: 0.2rem;
}

/* Телефон повёрнут */
.icon-phone {
    transform: rotate(90deg);
}

/* Маски для каждой иконки */
.icon-location {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 640'%3E%3Cpath d='M128 252.6C128 148.4 214 64 320 64C426 64 512 148.4 512 252.6C512 371.9 391.8 514.9 341.6 569.4C329.8 582.2 310.1 582.2 298.3 569.4C248.1 514.9 127.9 371.9 127.9 252.6zM320 320C355.3 320 384 291.3 384 256C384 220.7 355.3 192 320 192C284.7 192 256 220.7 256 256C256 291.3 284.7 320 320 320z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 640'%3E%3Cpath d='M128 252.6C128 148.4 214 64 320 64C426 64 512 148.4 512 252.6C512 371.9 391.8 514.9 341.6 569.4C329.8 582.2 310.1 582.2 298.3 569.4C248.1 514.9 127.9 371.9 127.9 252.6zM320 320C355.3 320 384 291.3 384 256C384 220.7 355.3 192 320 192C284.7 192 256 220.7 256 256C256 291.3 284.7 320 320 320z'/%3E%3C/svg%3E");
}

.icon-phone {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 640'%3E%3Cpath d='M415.8 89C423.6 70.2 444.2 60.1 463.9 65.5L469.4 67C534 84.6 589.2 147.2 573.1 223.4C536 398.4 398.3 536.1 223.3 573.2C147 589.4 84.5 534.1 66.9 469.5L65.4 464C60 444.3 70.1 423.7 88.9 415.9L186.2 375.4C202.7 368.5 221.8 373.3 233.2 387.2L271.8 434.4C342.1 399.5 398.6 341.1 431.1 269.5L387 233.4C373.1 222.1 368.4 203 375.2 186.4L415.8 89z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 640'%3E%3Cpath d='M415.8 89C423.6 70.2 444.2 60.1 463.9 65.5L469.4 67C534 84.6 589.2 147.2 573.1 223.4C536 398.4 398.3 536.1 223.3 573.2C147 589.4 84.5 534.1 66.9 469.5L65.4 464C60 444.3 70.1 423.7 88.9 415.9L186.2 375.4C202.7 368.5 221.8 373.3 233.2 387.2L271.8 434.4C342.1 399.5 398.6 341.1 431.1 269.5L387 233.4C373.1 222.1 368.4 203 375.2 186.4L415.8 89z'/%3E%3C/svg%3E");
}

.icon-email {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 640'%3E%3Cpath d='M112 128C85.5 128 64 149.5 64 176C64 191.1 71.1 205.3 83.2 214.4L291.2 370.4C308.3 383.2 331.7 383.2 348.8 370.4L556.8 214.4C568.9 205.3 576 191.1 576 176C576 149.5 554.5 128 528 128L112 128zM64 260L64 448C64 483.3 92.7 512 128 512L512 512C547.3 512 576 483.3 576 448L576 260L377.6 408.8C343.5 434.4 296.5 434.4 262.4 408.8L64 260z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 640'%3E%3Cpath d='M112 128C85.5 128 64 149.5 64 176C64 191.1 71.1 205.3 83.2 214.4L291.2 370.4C308.3 383.2 331.7 383.2 348.8 370.4L556.8 214.4C568.9 205.3 576 191.1 576 176C576 149.5 554.5 128 528 128L112 128zM64 260L64 448C64 483.3 92.7 512 128 512L512 512C547.3 512 576 483.3 576 448L576 260L377.6 408.8C343.5 434.4 296.5 434.4 262.4 408.8L64 260z'/%3E%3C/svg%3E");
}

.icon-instagram {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 640'%3E%3Cpath d='M320.3 205C256.8 204.8 205.2 256.2 205 319.7C204.8 383.2 256.2 434.8 319.7 435C383.2 435.2 434.8 383.8 435 320.3C435.2 256.8 383.8 205.2 320.3 205zM319.7 245.4C360.9 245.2 394.4 278.5 394.6 319.7C394.8 360.9 361.5 394.4 320.3 394.6C279.1 394.8 245.6 361.5 245.4 320.3C245.2 279.1 278.5 245.6 319.7 245.4zM413.1 200.3C413.1 185.5 425.1 173.5 439.9 173.5C454.7 173.5 466.7 185.5 466.7 200.3C466.7 215.1 454.7 227.1 439.9 227.1C425.1 227.1 413.1 215.1 413.1 200.3zM542.8 227.5C541.1 191.6 532.9 159.8 506.6 133.6C480.4 107.4 448.6 99.2 412.7 97.4C375.7 95.3 264.8 95.3 227.8 97.4C192 99.1 160.2 107.3 133.9 133.5C107.6 159.7 99.5 191.5 97.7 227.4C95.6 264.4 95.6 375.3 97.7 412.3C99.4 448.2 107.6 480 133.9 506.2C160.2 532.4 191.9 540.6 227.8 542.4C264.8 544.5 375.7 544.5 412.7 542.4C448.6 540.7 480.4 532.5 506.6 506.2C532.8 480 541 448.2 542.8 412.3C544.9 375.3 544.9 264.5 542.8 227.5zM495 452C487.2 471.6 472.1 486.7 452.4 494.6C422.9 506.3 352.9 503.6 320.3 503.6C287.7 503.6 217.6 506.2 188.2 494.6C168.6 486.8 153.5 471.7 145.6 452C133.9 422.5 136.6 352.5 136.6 319.9C136.6 287.3 134 217.2 145.6 187.8C153.4 168.2 168.5 153.1 188.2 145.2C217.7 133.5 287.7 136.2 320.3 136.2C352.9 136.2 423 133.6 452.4 145.2C472 153 487.1 168.1 495 187.8C506.7 217.3 504 287.3 504 319.9C504 352.5 506.7 422.6 495 452z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 640'%3E%3Cpath d='M320.3 205C256.8 204.8 205.2 256.2 205 319.7C204.8 383.2 256.2 434.8 319.7 435C383.2 435.2 434.8 383.8 435 320.3C435.2 256.8 383.8 205.2 320.3 205zM319.7 245.4C360.9 245.2 394.4 278.5 394.6 319.7C394.8 360.9 361.5 394.4 320.3 394.6C279.1 394.8 245.6 361.5 245.4 320.3C245.2 279.1 278.5 245.6 319.7 245.4zM413.1 200.3C413.1 185.5 425.1 173.5 439.9 173.5C454.7 173.5 466.7 185.5 466.7 200.3C466.7 215.1 454.7 227.1 439.9 227.1C425.1 227.1 413.1 215.1 413.1 200.3zM542.8 227.5C541.1 191.6 532.9 159.8 506.6 133.6C480.4 107.4 448.6 99.2 412.7 97.4C375.7 95.3 264.8 95.3 227.8 97.4C192 99.1 160.2 107.3 133.9 133.5C107.6 159.7 99.5 191.5 97.7 227.4C95.6 264.4 95.6 375.3 97.7 412.3C99.4 448.2 107.6 480 133.9 506.2C160.2 532.4 191.9 540.6 227.8 542.4C264.8 544.5 375.7 544.5 412.7 542.4C448.6 540.7 480.4 532.5 506.6 506.2C532.8 480 541 448.2 542.8 412.3C544.9 375.3 544.9 264.5 542.8 227.5zM495 452C487.2 471.6 472.1 486.7 452.4 494.6C422.9 506.3 352.9 503.6 320.3 503.6C287.7 503.6 217.6 506.2 188.2 494.6C168.6 486.8 153.5 471.7 145.6 452C133.9 422.5 136.6 352.5 136.6 319.9C136.6 287.3 134 217.2 145.6 187.8C153.4 168.2 168.5 153.1 188.2 145.2C217.7 133.5 287.7 136.2 320.3 136.2C352.9 136.2 423 133.6 452.4 145.2C472 153 487.1 168.1 495 187.8C506.7 217.3 504 287.3 504 319.9C504 352.5 506.7 422.6 495 452z'/%3E%3C/svg%3E");
}

.contact-item p {
    margin: 0;
    color: inherit;
}

.contact-item:hover {
    color: var(--gold);
}

/* ================= ФУТЕР ================= */
.footer {
    background: var(--black);
    color: white;
    padding: 60px 0 0;
    border-top: 0.5px solid var(--gold);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px 48px;
    box-sizing: border-box;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 5px !important;
}

.footer-logo img {
    height: 90px;
    width: auto;
}

/* ВОЗВРАЩАЕМ ИСХОДНЫЙ КОНТРАСТНЫЙ ЦВЕТ */
.footer p {
    color: #aaa;
    line-height: 1.8;
    max-width: 350px;
}

.footer-heading {
    margin-bottom: 25px;
    font-weight: 400;
    letter-spacing: 2px;
    color: white;
    text-transform: uppercase;
    font-size: 1.1rem;
}

.footer a {
    display: block;
    color: #aaa;
    margin-bottom: 15px;
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--gold);
}

.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 0;
    padding: 24px 32px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.copyright-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: #aaa;
}

.copyright-text {
    white-space: normal;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.3ch;
    color: #aaa;
}

.copyright-text a {
    color: #aaa;
    display: inline;
    margin-bottom: 0;
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
    transition: color 0.3s;
}

.copyright-text a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s;
}

.copyright-text a:hover {
    color: var(--gold);
}

.copyright-text a:hover::after {
    width: 100%;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 0;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.15s;
    display: inline;
    margin-bottom: 0;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-divider {
    color: #aaa;
    margin: 0 8px;
    user-select: none;
}

/* ================= МОДАЛЬНОЕ ОКНО ================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    box-sizing: border-box;
}
.modal-window {
    background: white;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 32px 24px;
    max-width: 440px;
    width: 100%;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
}
.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: var(--gray);
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    line-height: 1;
    transition: background 0.2s, color 0.2s;
}
.modal-close:hover {
    background: var(--light);
    color: var(--black);
}

.modal-title {
    color: var(--black);
    font-size: 1.6rem;
    margin: 0 0 8px 0;
    font-weight: 600;
}
.modal-subtitle {
    color: var(--gray);
    margin: 0 0 24px 0;
    font-size: 1rem;
}

.modal-notification {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.4;
    display: none;
}
.modal-notification--success {
    background-color: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border-left: 4px solid #22c55e;
}
.modal-notification--error {
    background-color: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border-left: 4px solid #ef4444;
}

.form-group {
    margin-bottom: 16px;
}
.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--black);
    font-size: 0.95rem;
}
.form-label--required::after {
    content: " *";
    color: #ef4444;
}
.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
    color: var(--black);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(198, 169, 110, 0.3);
}
.form-textarea {
    resize: vertical;
    min-height: 80px;
}
.form-error {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 4px;
    min-height: 20px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}
.btn-secondary {
    background: var(--light);
    color: var(--black);
    border: 1px solid #ddd;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    flex: 1;
    text-align: center;
}
.btn-secondary:hover {
    background: #e9e6e0;
}
.btn-secondary:active {
    transform: scale(0.98);
}
.modal-submit-btn {
    flex: 1;
    background: var(--gold);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}
.modal-submit-btn:hover {
    background: var(--gold-light);
}
.modal-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.modal-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 16px 0;
    width: 100%;
}
.modal-divider hr {
    flex: 1;
    border: none;
    border-top: 1px solid #ddd;
}
.modal-divider span {
    color: var(--gray);
    font-size: 0.9rem;
}

.modal-telegram-btn {
    justify-content: center;
    width: 100%;
    padding: 14px;
    font-weight: 600;
    background: var(--light);
    border: 1px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    color: var(--black);
    transition: background 0.2s, border-color 0.2s;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 10px;
}
.modal-telegram-btn:hover {
    background: white;
    border-color: var(--gold);
}

.modal-consent {
    font-size: 0.8rem;
    color: var(--gray);
    margin: 16px 0 0;
    text-align: center;
}

/* ================= МОДАЛЬНОЕ ОКНО: СТРОКИ ДЛЯ ПОЛЕЙ ================= */
.form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}
.form-row .form-group {
    margin-bottom: 0;
    flex: 1;
}

/* ================= КУРСЫ ================= */
.course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.course {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: 2px;
}
.course img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s;
}
.course:hover img {
    transform: scale(1.08);
}
.course-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    color: white;
    background: linear-gradient(transparent, rgba(0,0,0,.8));
    transition: transform 0.4s;
}
.course:hover .course-overlay {
    transform: translateY(-10px);
}
.course-overlay h3 {
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    font-weight: 400;
    margin-bottom: 10px;
}
.course-overlay p {
    margin-bottom: 15px;
    line-height: 1.6;
}
.course-link {
    color: var(--gold);
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 2px;
    font-weight: 600;
}

/* ================= ГАЛЕРЕЯ ================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}
.gallery-grid img {
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s;
    border-radius: 2px;
}
.gallery-grid img:hover {
    transform: scale(1.03);
}

/* ================= ОТЗЫВЫ ================= */
.testimonials {
    background: var(--light);
}
.testimonial-slider {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}
.testimonial-slide {
    display: none;
    animation: fadeTestimonial 0.5s;
}
.testimonial-slide.active {
    display: block;
}
@keyframes fadeTestimonial {
    from { opacity: 0.4; }
    to { opacity: 1; }
}
.testimonial-text {
    font-size: 1.3rem;
    font-style: italic;
    margin-bottom: 20px;
    color: #444;
}
.testimonial-author {
    font-weight: 600;
    color: var(--gold);
}
.slider-nav {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 15px;
}
.slider-nav button {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slider-nav button:hover {
    background: var(--gold);
    color: white;
}

/* ================= КАРТА ================= */
.map {
    height: 450px;
}
.map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ================= КОНТАКТЫ – ДВА СТОЛБЦА ================= */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info-block {
    padding-right: 20px;
}

.contact-intro {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 30px;
    color: var(--black);
}

.contact-description {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 40px;
}

.contact-detail {
    margin-bottom: 24px;
}

.contact-detail strong {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 8px;
    color: var(--gold);
}

.contact-detail a,
.contact-detail p {
    font-size: 20px;
    color: var(--black);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-detail a:hover {
    color: var(--gold);
}

.contact-form-block {
    background: var(--light);
    padding: 50px;
    border-radius: 2px;
}

.contact-form-block h3 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 30px;
}

/* ================= ПЛАВНОЕ ПОДЧЁРКИВАНИЕ ДЛЯ VIBER / TELEGRAM ================= */
.viber-link {
    position: relative;
    text-decoration: none;
    color: var(--black);
    padding-bottom: 2px;
}

.viber-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s;
}

.viber-link:hover {
    color: var(--gold);
}

.viber-link:hover::after {
    width: 100%;
}

/* ================= СИНЯЯ КНОПКА "ПОСТРОИТЬ МАРШРУТ" ================= */
.btn-route {
    background: #2563eb;
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    transition: background 0.3s;
}

.btn-route:hover {
    background: #1d4ed8;
}

/* ================= ПОЛЕ ВВОДА АДРЕСА ================= */
.address-input {
    flex: 2;
    min-width: 260px;
    padding: 12px 18px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: 'Montserrat', sans-serif;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.address-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(198, 169, 110, 0.3);
}

/* ================= АДАПТИВНОСТЬ ================= */
@media (max-width: 1024px) {
    .slider-dots {
        display: none;
    }
}

@media (max-width: 900px) {
    .menu {
        display: none;
    }
    .menu-toggle-wrapper {
        display: flex;
    }
    .header-controls {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .lang-switch {
        font-size: 12px;
        padding: 2px 8px;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-image {
        display: none;
    }
    .about-text h2,
    .section-title h2 {
        font-size: 34px;
    }
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .logo {
        height: 40px;
        width: 122px;
    }
    .course-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .course {
        height: 420px;
    }
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .contact-intro {
        font-size: 34px;
    }
    .contact-form-block {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .hero-content p {
        display: none;
    }
    .hero-content h1 {
        margin-bottom: 40px;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        flex-direction: column;
        gap: 16px;
    }
    .modal-overlay {
        padding: 0;
    }
    .modal-window {
        max-width: none;
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        padding: 24px 16px;
    }
}

@media (max-width: 500px) {
    .contact-grid {
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        width: 100%;
        gap: 0;
    }
    .contact-item {
        gap: 0;
    }
    .contact-item p {
        display: none;                  
    }
    .contact-item .contact-icon {
        margin-bottom: 0;
        width: 2rem;
        height: 2rem;
    }
}

/* ================= ОШИБКИ ПОЛЕЙ ФОРМ ================= */
.form-input.error,
.form-textarea.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.form-input.error:focus,
.form-textarea.error:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3);
}