/* ================================
   Основные переменные и сброс
   ================================ */
:root {
    --bg-white: #ffffff;
    --bg-light: #f9f9f9;
    --bg-beige: #f5f0e8;
    --text-dark: #1a1a1a;
    --text-muted: #6c757d;
    --accent: #c17b4c;   /* терракотовый акцент */
    --accent-hover: #a35f34;
    --border-light: #e9ecef;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 6px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.16);
    --transition: all 0.25s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Montserrat', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: var(--accent);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ================================
   Кнопки
   ================================ */
.btn {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 40px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}

/* ================================
   Jumbotron (главный баннер)
   ================================ */
.jumbotron {
    background: linear-gradient(135deg, var(--bg-beige) 0%, var(--bg-white) 100%);
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 0 0 30px 30px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.jumbotron h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.jumbotron p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.jumbotron .btn {
    margin: 0 0.5rem;
}

/* ================================
   Карточки (услуги, новости, галерея)
   ================================ */
.card {
    background: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-img-top {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
    flex-grow: 1;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.card-text {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* ================================
   Формы
   ================================ */
.form-group {
    margin-bottom: 1.25rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    transition: var(--transition);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(193, 123, 76, 0.1);
}

label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: inline-block;
}

/* ================================
   Галерея
   ================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 1rem;
    color: white;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* ================================
   Новости и акции
   ================================ */
.news-item {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.news-item:hover {
    box-shadow: var(--shadow-lg);
}

.news-item h3 {
    margin-bottom: 0.5rem;
}

.news-item small {
    color: var(--text-muted);
    display: block;
    margin-top: 0.5rem;
}

/* ================================
   Подписка
   ================================ */
.subscribe {
    background: var(--bg-beige);
    padding: 2rem;
    border-radius: 30px;
    text-align: center;
    margin-top: 2rem;
    box-shadow: var(--shadow-sm);
}

.subscribe input[type="email"] {
    max-width: 400px;
    margin: 0 auto 1rem;
    text-align: center;
}

/* ================================
   Отзывы
   ================================ */
.review {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-md);
}

.review strong {
    font-size: 1rem;
    display: inline-block;
    margin-right: 1rem;
}

.review span {
    color: #ffb347;
    letter-spacing: 2px;
}

/* ================================
   Таблицы (история бронирований)
   ================================ */
.table {
    width: 100%;
    background: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.table th {
    background: var(--bg-light);
    font-weight: 600;
}

.table tr:last-child td {
    border-bottom: none;
}

/* ================================
   Админка – дополнительные стили
   ================================ */
.admin-panel {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    margin: 2rem 0;
}

/* ================================
   Адаптивность (мобильные устройства)
   ================================ */
@media (max-width: 768px) {
    .jumbotron h1 {
        font-size: 2rem;
    }

    .jumbotron p {
        font-size: 1rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .card-img-top {
        height: 180px;
    }

    .btn {
        padding: 0.6rem 1.2rem;
    }
}

/* ================================
   Страница "О студии"
   ================================ */
.about-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.about-page h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.about-page h1:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--accent);
    margin: 1rem auto 0;
}

.about-section {
    margin-bottom: 4rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-light);
}

.about-section:last-child {
    border-bottom: none;
}

.about-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.team-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    flex: 1;
    min-width: 250px;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.team-photo {
    width: 180px;
    height: 180px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h3 {
    margin: 0.5rem 0;
    font-size: 1.25rem;
}

.team-card .position {
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 1rem;
}

.team-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Отзывы */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.review-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.review-card:hover {
    box-shadow: var(--shadow-lg);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.review-header strong {
    font-size: 1rem;
}

.rating {
    color: #ffb347;
    letter-spacing: 2px;
}

.review-text {
    margin-bottom: 1rem;
    line-height: 1.5;
}

.review-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Сертификаты */
.awards-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.awards-list li {
    background: var(--bg-white);
    padding: 0.75rem 1.5rem;
    border-radius: 40px;
    box-shadow: var(--shadow-sm);
    font-size: 0.9rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .about-page h1 {
        font-size: 2rem;
    }
    .about-section h2 {
        font-size: 1.5rem;
    }
    .team-card {
        min-width: 100%;
    }
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================
   Главная страница (обновленная)
   ================================ */

/* Герой-секция */
.hero-section {
    background: linear-gradient(135deg, var(--bg-beige) 0%, var(--bg-white) 100%);
    padding: 5rem 2rem;
    text-align: center;
    border-radius: 0 0 30px 30px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}
.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}
.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}
.hero-buttons .btn {
    margin: 0 0.5rem;
}

/* Контейнер для основного контента */
.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Секции */
.features-section,
.news-section,
.gallery-preview,
.contacts-section {
    margin-bottom: 4rem;
}
.features-section h2,
.news-section h2,
.gallery-preview h2,
.contacts-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
}
.features-section h2:after,
.news-section h2:after,
.gallery-preview h2:after,
.contacts-section h2:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 0.5rem auto 0;
}

/* Преимущества */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.feature-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-white);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}
.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.feature-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.feature-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Новости */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.news-card {
    background: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.news-image {
    height: 200px;
    overflow: hidden;
}
.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.news-card:hover .news-image img {
    transform: scale(1.05);
}
.news-content {
    padding: 1.5rem;
}
.news-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}
.news-content p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}
.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}
.news-date {
    color: var(--text-muted);
}
.read-more {
    color: var(--accent);
    font-weight: 500;
}
.read-more:hover {
    text-decoration: underline;
}

/* Галерея */
.gallery-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.preview-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    cursor: pointer;
}
.preview-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.preview-item:hover img {
    transform: scale(1.05);
}
.preview-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 1rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.preview-item:hover .preview-overlay {
    opacity: 1;
}
.preview-category {
    color: white;
    font-weight: 500;
    background: rgba(193, 123, 76, 0.9);
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
}
.text-center {
    text-align: center;
}

/* Контакты */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: var(--bg-white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.info-block {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.info-icon {
    font-size: 1.5rem;
    min-width: 40px;
}
.info-block strong {
    display: block;
    margin-bottom: 0.25rem;
}
.info-block p {
    margin: 0;
    color: var(--text-muted);
}
.info-block a {
    color: var(--accent);
    text-decoration: none;
}
.info-block a:hover {
    text-decoration: underline;
}
.map-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.map-container iframe {
    display: block;
}

/* Адаптивность */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 1rem;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .features-grid,
    .news-grid,
    .gallery-preview-grid {
        grid-template-columns: 1fr;
    }
    .contacts-grid {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
}