/*ПОДКЛЮЧЕНИЕ ШРИФТОВ*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

/*ОСНОВНЫЕ СТИЛИ*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    background-color: #FAF5EF;
    color: #6B5B52;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/*СТИЛИ ДЛЯ КЛАВИАТУРНОЙ НАВИГАЦИИ (ДОСТУПНОСТЬ)*/
a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 3px solid #B75F3B;
    outline-offset: 2px;
}

/*ШАПКА САЙТА*/
header {
    background: linear-gradient(135deg, #3a2a22 0%, #2a1a14 100%);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 100;
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    flex-wrap: wrap;
}

.logo h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    letter-spacing: 2px;
    color: #F5EDE0;
    margin-bottom: 5px;
    transition: text-shadow 0.3s;
}

.logo h1:hover {
    text-shadow: 0 0 10px rgba(217, 191, 119, 0.5);
}

.logo p {
    font-size: 0.8rem;
    color: #D9BF77;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #F5EDE0;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #D9BF77;
    transition: width 0.3s;
}

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

.nav-links a:hover {
    color: #D9BF77;
}

/*КНОПКА НАВЕРХ (ВСЕГДА ВИДНА, БЕЗ JAVASCRIPT)*/
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #B75F3B;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
}

.scroll-top:hover {
    background-color: #9E4A2A;
    transform: scale(1.05);
}

/*ГЛАВНЫЙ БАННЕР*/
.hero {
    background: linear-gradient(135deg, #E7DCD0 0%, #FAF5EF 100%);
    padding: 80px 0;
    text-align: center;
    border-bottom: 1px solid #D9BF77;
    animation: fadeInUp 0.8s ease-out;
}

.hero h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: #4A3B32;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.hero h2::before {
    content: '✨';
    position: absolute;
    left: -40px;
    top: 10px;
    opacity: 0;
    animation: sparkle 2s infinite;
}

.hero h2::after {
    content: '✨';
    position: absolute;
    right: -40px;
    top: 10px;
    opacity: 0;
    animation: sparkle 2s infinite 0.5s;
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1); }
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
    color: #6B5B52;
}

/* КНОПКИ*/
.btn {
    display: inline-block;
    background-color: #B75F3B;
    color: white;
    padding: 12px 35px;
    border-radius: 40px;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

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

.btn:hover {
    background-color: #9E4A2A;
    transform: scale(1.05);
}

/*ЗАГОЛОВКИ РАЗДЕЛОВ*/
.section-title {
    font-family: 'Playfair Display', serif;
    text-align: center;
    font-size: 2rem;
    margin: 60px 0 40px;
    color: #4A3B32;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 3px;
    background: #D9BF77;
    margin: 15px auto 0;
    animation: expandWidth 0.6s ease-out;
}

@keyframes expandWidth {
    from { width: 0; }
    to { width: 70px; }
}

/* КАРТОЧКИ НАПРАВЛЕНИЙ (FLEXBOX) */
.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-bottom: 60px;
}

.card {
    flex: 1 1 280px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    animation: fadeInUp 0.6s ease-out backwards;
    animation-delay: calc(var(--order, 0) * 0.1s);
}

.card:nth-child(1) { --order: 1; }
.card:nth-child(2) { --order: 2; }
.card:nth-child(3) { --order: 3; }

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s;
}

.card:hover img {
    transform: scale(1.05);
}

.card h3 {
    padding: 20px 20px 10px;
    color: #4A3B32;
}

.card p {
    padding: 0 20px 20px;
    color: #6B5B52;
}

/*ГАЛЕРЕЯ (GRID)*/
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 40px 0 60px;
}

.gallery-grid img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 20px;
    transition: all 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    animation: fadeInUp 0.6s ease-out backwards;
}

.gallery-grid img:nth-child(1) { animation-delay: 0.1s; }
.gallery-grid img:nth-child(2) { animation-delay: 0.2s; }
.gallery-grid img:nth-child(3) { animation-delay: 0.3s; }
.gallery-grid img:nth-child(4) { animation-delay: 0.4s; }
.gallery-grid img:nth-child(5) { animation-delay: 0.5s; }
.gallery-grid img:nth-child(6) { animation-delay: 0.6s; }

.gallery-grid img:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 20px 30px rgba(0,0,0,0.15);
}

/*ФОРМА ЗАПИСИ*/
.form-section {
    background: #E7DCD0;
    border-radius: 30px;
    padding: 40px;
    margin: 60px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    animation: fadeInUp 0.6s ease-out;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #4A3B32;
    font-weight: 500;
    transition: color 0.3s;
}

.form-group:focus-within label {
    color: #B75F3B;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #D9BF77;
    border-radius: 12px;
    background: white;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #B75F3B;
    box-shadow: 0 0 0 3px rgba(183, 95, 59, 0.1);
    transform: scale(1.01);
}

.required {
    color: #B75F3B;
    margin-left: 3px;
}

.submit-btn {
    background: #B75F3B;
    color: white;
    border: none;
    padding: 14px 35px;
    border-radius: 40px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    background: #9E4A2A;
    transform: scale(1.02);
}

/* БЛОК "ПОЧЕМУ ВЫБИРАЮТ НАС"*/
.why-us-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.why-us-list li {
    background: white;
    padding: 15px 25px;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    animation: fadeInUp 0.5s ease-out backwards;
}

.why-us-list li:nth-child(1) { animation-delay: 0.1s; }
.why-us-list li:nth-child(2) { animation-delay: 0.2s; }
.why-us-list li:nth-child(3) { animation-delay: 0.3s; }
.why-us-list li:nth-child(4) { animation-delay: 0.4s; }
.why-us-list li:nth-child(5) { animation-delay: 0.5s; }

.why-us-list li:hover {
    background: #B75F3B;
    color: white;
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* ПОДВАЛ САЙТА*/
footer {
    background: #4A3B32;
    color: #E7DCD0;
    text-align: center;
    padding: 40px 0;
    margin-top: 60px;
    animation: fadeInUp 0.6s ease-out;
}

footer .social {
    margin-bottom: 20px;
}

footer .social a {
    color: #D9BF77;
    margin: 0 10px;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

footer .social a:hover {
    color: #B75F3B;
    transform: translateY(-3px);
}

/* ============================================ */
/* СТИЛИ ДЛЯ СТРАНИЦЫ "О НАС" */
/* ============================================ */

/* Блок с историей и изображением */
.about-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin: 40px 0;
    align-items: stretch;
}

.about-image {
    flex: 0 0 400px;
    min-width: 280px;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    min-height: 300px;
}

.about-text {
    flex: 2;
    min-width: 280px;
}

.about-text h3 {
    color: #B75F3B;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.7;
}

.schedule-note {
    margin-top: 25px;
    font-size: 1.1rem;
    background: #FAF5EF;
    padding: 15px;
    border-radius: 15px;
}

.phone {
    margin-top: 15px;
    font-size: 1.1rem;
}

/* Видео блок */
.video-section {
    margin: 60px 0;
}

.video-title {
    color: #B75F3B;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.video-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-caption {
    text-align: center;
    margin-top: 20px;
    color: #6B5B52;
    font-size: 0.95rem;
}

/* Блок "Почему выбирают нас" */
.why-us {
    background: #E7DCD0;
    border-radius: 25px;
    padding: 30px;
    margin: 40px 0;
}

.why-us h3 {
    color: #4A3B32;
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.8rem;
}

/* ============================================ */
/* ВЕРТИКАЛЬНОЕ ВИДЕО (УМЕНЬШЕННЫЙ МАСШТАБ) */
/* ============================================ */

.video-vertical-container {
    position: relative;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    background: #1a1a1a;
}

.video-vertical-container video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 30px;
}

/* ============================================ */
/* АДАПТИВНОСТЬ (4 БРЕЙКПОИНТА) */
/* ============================================ */

/* Планшеты (горизонтальная ориентация) - до 1024px */
@media (max-width: 1024px) {
    .hero h2 {
        font-size: 2.4rem;
    }
    
    .cards {
        gap: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 20px;
    }
    
    .gallery-grid img {
        height: 220px;
    }
}

/* Планшеты (вертикальная ориентация) - до 768px */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-inner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .logo {
        text-align: center;
    }
    
    .nav-links {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links li a {
        font-size: 0.9rem;
    }
    
    .hero {
        padding: 50px 0;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero h2::before,
    .hero h2::after {
        display: none;
    }
    
    .hero p {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin: 40px 0 25px;
    }
    
    .cards {
        gap: 20px;
    }
    
    .card {
        flex: 1 1 calc(50% - 20px);
        min-width: 200px;
    }
    
    .form-section {
        padding: 25px;
        margin: 40px 0;
    }
    
    .gallery-grid {
        gap: 16px;
    }
    
    .gallery-grid img {
        height: 220px;
    }
    
    .why-us-list li {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .video-vertical-container {
        max-width: 280px;
        border-radius: 25px;
    }
    
    /* Адаптация страницы "О нас" для планшетов */
    .about-flex {
        flex-direction: column;
        gap: 25px;
    }
    
    .about-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
    }
    
    .about-image img {
        min-height: 250px;
        max-height: 300px;
    }
    
    .about-text h3 {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }
    
    .about-text p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .schedule-note {
        font-size: 1rem;
        padding: 12px;
    }
    
    .phone {
        font-size: 1rem;
    }
    
    .video-title {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }
    
    .why-us {
        padding: 25px;
        margin: 30px 0;
    }
    
    .why-us h3 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
}

/* Мобильные телефоны - до 480px */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 0.9rem;
        padding: 0 10px;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.4rem;
        margin: 30px 0 20px;
    }
    
    .section-title::after {
        width: 50px;
    }
    
    .nav-links {
        gap: 12px;
    }
    
    .nav-links li a {
        font-size: 0.8rem;
    }
    
    .logo h1 {
        font-size: 1.4rem;
    }
    
    .logo p {
        font-size: 0.7rem;
    }
    
    .cards {
        flex-direction: column;
        gap: 20px;
    }
    
    .card {
        flex: 1 1 100%;
        max-width: 100%;
    }
    
    .card img {
        height: 180px;
    }
    
    .card h3 {
        font-size: 1.2rem;
    }
    
    .card p {
        font-size: 0.9rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .gallery-grid img {
        height: 200px;
    }
    
    .form-section {
        padding: 20px;
        border-radius: 20px;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .submit-btn {
        width: 100%;
        padding: 12px;
        font-size: 0.95rem;
    }
    
    .scroll-top {
        bottom: 15px;
        right: 15px;
        padding: 8px 16px;
        font-size: 0.75rem;
    }
    
    .why-us-list {
        flex-direction: column;
        align-items: stretch;
    }
    
    .why-us-list li {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    footer {
        padding: 30px 0;
        margin-top: 40px;
    }
    
    footer .social a {
        font-size: 0.85rem;
        margin: 0 8px;
    }
    
    footer p {
        font-size: 0.75rem;
    }
    
    .video-vertical-container {
        max-width: 250px;
        border-radius: 20px;
    }
    
    /* Адаптация страницы "О нас" для телефонов */
    .about-flex {
        gap: 20px;
        margin: 25px 0;
    }
    
    .about-image img {
        min-height: 200px;
        border-radius: 15px;
    }
    
    .about-text h3 {
        font-size: 1.3rem;
    }
    
    .about-text p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .schedule-note {
        font-size: 0.9rem;
        padding: 10px;
        border-radius: 12px;
    }
    
    .phone {
        font-size: 0.9rem;
    }
    
    .video-section {
        margin: 40px 0;
    }
    
    .video-title {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    .video-caption {
        font-size: 0.85rem;
        margin-top: 15px;
    }
    
    .why-us {
        padding: 20px;
        border-radius: 20px;
    }
    
    .why-us h3 {
        font-size: 1.3rem;
    }
}

/* Очень маленькие телефоны - до 360px */
@media (max-width: 360px) {
    .hero h2 {
        font-size: 1.3rem;
    }
    
    .btn {
        padding: 8px 20px;
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .nav-links {
        gap: 8px;
    }
    
    .nav-links li a {
        font-size: 0.7rem;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .video-vertical-container {
        max-width: 220px;
        border-radius: 18px;
    }
    
    /* Адаптация страницы "О нас" для маленьких телефонов */
    .about-text h3 {
        font-size: 1.2rem;
    }
    
    .video-title {
        font-size: 1.2rem;
    }
    
    .why-us h3 {
        font-size: 1.2rem;
    }
}

/* ОБЩАЯ АНИМАЦИЯ ПОЯВЛЕНИЯ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}