/* =====================================================
   RESET & BASE
   Сброс стандартных стилей и базовые настройки
   ===================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", "Segoe UI", sans-serif;
    color: #1f2933;
    background-color: #fafafa;
    line-height: 1.6;
}

svg {
    vertical-align: middle;
    color: #c7a17a;
}

/* SVG отступы в разных контекстах */
h1 svg,
h2 svg {
    margin-right: 10px;
}

li svg {
    margin-bottom: 12px;
}

article svg {
    margin-bottom: 16px;
    opacity: 0.5;
}

/* =====================================================
   LAYOUT
   Основные контейнеры страницы
   ===================================================== */

header,
main,
footer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

.bi-info-circle {
    width: 42px;
    margin-top: -10px;
}

/* =====================================================
   HEADER & NAVIGATION
   ===================================================== */

header {
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 40px;
}

.logo img {
    display: flex;
}

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

nav > a {
    font-size: 22px;
    font-weight: 600;
    color: #111827;
    text-decoration: none;
}

/* Навигационные ссылки */
nav ul {
    list-style: none;
    display: flex;
    gap: 24px;
}

nav ul a {
    position: relative;
    text-decoration: none;
    color: #374151;
    font-size: 15px;
}

nav ul a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #c7a17a;
    transition: width 0.3s ease;
}

nav ul a:hover::after {
    width: 100%;
}

nav a[href^="#"]:hover {
    color: #c7a17a;
}

/* =====================================================
   SECTIONS & TYPOGRAPHY
   ===================================================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 0 auto;
}

.gallery-grid img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 16px;
    cursor: pointer;
    transition: transform .3s, box-shadow .3s;
}

.gallery-grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 40px rgba(0,0,0,.2);
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 2000;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 16px;
}

/* Затемнённый фон */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

/* Активное состояние */
.modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Контент модалки */
.modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    max-width: 520px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);

    transform: translateY(30px) scale(0.97);
    opacity: 0;

    transition: transform 0.35s ease, opacity 0.35s ease;
}

/* Анимация появления */
.modal.active .modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Заголовок */
.modal-content h2 {
    margin: 0 0 12px;
    font-size: 24px;
    line-height: 1.2;
}

/* Текст */
.modal-content p {
    margin: 0 0 24px;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

/* Кнопка закрытия */
.modal-content button {
    background: #111;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 999px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    margin-top: 0px;
}

.modal-content button:hover {
    background: #333;
    transform: translateY(-1px);
}

/* Мобилки */
@media (max-width: 480px) {
    .modal-content {
        padding: 24px;
        border-radius: 12px;
    }

    .modal-content h2 {
        font-size: 20px;
    }
}

section {
    margin-bottom: 80px;
}

section a {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
}

section a:hover {
    color: #c7a17a;
}

section h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
}

section h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

section h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

section p {
    max-width: 720px;
    color: #4b5563;
}

/* =====================================================
   REVIEWS
   ===================================================== */

.review-card {
    padding: 32px;
    margin-bottom: 24px;
}

/* Название услуги */
.review-service {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 999px;
    background: rgba(199, 161, 122, 0.12);
    color: #8a6a45;
}

/* Текст отзыва */
.review-card p {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
}

/* Автор */
.review-card strong {
    margin-top: 16px;
    font-size: 14px;
    color: #6b7280;
}

/* =====================================================
   BUTTONS
   ===================================================== */

button,
.btn {
    margin-top: 24px;
    padding: 14px 32px;
    border: none;
    border-radius: 999px;
    background-color: #c7a17a;
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    width: max-content;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover,
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    color: white;
}

/* Кнопка с обводкой */
.btn-outline {
    background: transparent;
    color: #c7a17a;
    border: 1.5px solid #c7a17a;
    padding: 10px 24px;
    font-size: 14px;
}

.btn-outline:hover {
    background-color: #c7a17a;
    color: #ffffff;
}

/* =====================================================
   CARDS & LISTS
   ===================================================== */

ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

li,
article {
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

li {
    padding: 28px;
    transition: transform 0.2s ease;
}

li:hover {
    transform: translateY(-4px);
}

/* Отзывы / статьи */
article {
    padding: 32px;
    margin-bottom: 24px;
}

article strong {
    display: block;
    margin-top: 12px;
    color: #111827;
}

/* =====================================================
   SCHEDULE
   ===================================================== */

.schedule {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.schedule-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;

    padding: 16px 20px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);

    transition: box-shadow .25s ease, transform .2s ease;
}

.schedule-item:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    transform: translateY(-1px);
}

/* Время */
.schedule-item time {
    font-size: 14px;
    color: #666;
    white-space: nowrap;
}

/* Центр */
.schedule-main h3 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 600;
}

.schedule-main .btn {
    font-size: 14px;
    padding: 6px 14px;
}

/* Цена справа */
.schedule-price {
    font-size: 18px;
    font-weight: 600;
    color: #111;
    white-space: nowrap;
}

/* ₽ чуть мягче */
.schedule-price::after {
    content: '';
}

/* Адаптив */
@media (max-width: 768px) {
    .schedule-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .schedule-price {
        align-self: flex-end;
        font-size: 16px;
    }
}

/* =====================================================
   FORMS & CONTACTS
   ===================================================== */

form {
    max-width: 480px;
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

input,
textarea {
    padding: 14px 16px;
    font-size: 15px;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    outline: none;
}

input:focus,
textarea:focus {
    border-color: #c7a17a;
}

/* Контактный блок */
.contacts-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
    margin-top: 32px;
}

.contacts-content p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.contacts-image img {
    width: 100%;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

/* Чекбоксы */
.form-group {
    font-size: 13px;
    color: #6b7280;
}

.form-group input[type="checkbox"] {
    margin-top: 3px;
}

/* =====================================================
   FOOTER
   ===================================================== */

footer {
    border-top: 1px solid #e5e7eb;
    margin-top: 80px;
    padding: 32px 24px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

footer p {
    font-size: 14px;
    color: #6b7280;
}

/* Социальные иконки */
.socials {
    display: flex;
    gap: 16px;
}

.socials a {
    color: #6b7280;
    transition: color 0.2s ease, transform 0.2s ease;
}

.socials a:hover {
    color: #c7a17a;
    transform: translateY(-2px);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 900px) {
    .contacts-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contacts-image {
        order: -1;
        text-align: center;
    }

    .contacts-image img {
        max-width: 420px;
        margin: 0 auto;
    }

    .contacts-content {
        justify-items: center;
    }

    form {
        align-items: center;
        text-align: center;
    }

    input, textarea {
        width: 100%;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 16px;
    }

    section h1 {
        font-size: 34px;
    }

    section h2 {
        font-size: 26px;
    }

    .schedule-item {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .schedule-item time {
        font-size: 16px;
    }

    .menu {
        display: none;
    }
}

@media (max-width: 600px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
}