/* ===== Общие стили ===== */
html,
body {
    margin: 0;
    padding: 0;
    font-family: "PT Serif", serif;
    background-color: #fafafa;
    color: #333;
}

.lobster {
    font-family: "Lobster", cursive !important;
}

.wrapper {
    max-width: 850px;
    margin: 0 auto;
    background-color: #fafafa;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

/* ===== Хедер ===== */
header {
    position: relative;
    background-color: #c7c0b6;
    color: #4e4e4e;
    padding: 0rem 0;
    text-align: center;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 0.5rem 1rem;
}

.logo-block {
    flex: 1;
    text-align: center;
    min-width: 0;
}

.logo-block h1 {
    font-family: "Russo One", sans-serif;
    margin: 0.5rem 0;
    color: #4e4e4e;
    font-size: clamp(1rem, 5vw, 2rem);
}

header nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

header nav a {
    color: dimgray;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
}

header nav a:hover {
    text-decoration: underline;
}

/* ===== Кнопка-бургер ===== */
.burger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 34px;
    height: 24px;
    cursor: pointer;
    display: none;
}

.burger span {
    display: block;
    height: 4px;
    width: 100%;
    background: #4e4e4e;
    border-radius: 2px;
    transition: 0.3s;
}

/* ===== Карусель ===== */
.carousel {
    overscroll-behavior: contain;
    position: relative;
    width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
    background: #000;
    margin: 0 auto;
}

.carousel-inner {
    display: flex;
    transition: transform 0.6s ease;
}

.carousel-item {
    min-width: 100%;
    box-sizing: border-box;
}

.carousel-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Точки */
.carousel-dots {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
    pointer-events: none;
}

.dot {
    display: inline-block;
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: white;
}

/* ===== Контент ===== */
main {
    flex: 1;
    padding: 1rem;
    max-width: 800px;
    box-sizing: border-box;
}

main h1,
main p {
    margin: 0;
}

/* ===== Футер ===== */
footer {
    background-color: black;
    color: #c7c0b6;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
}

/* ===== Кнопка Telegram ===== */
.telegram-fab {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    z-index: 1000;
}

.telegram-label {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0.9;
}

.telegram-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #0088cc;
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.4);
    transition:
        transform 0.2s,
        box-shadow 0.3s;
    text-decoration: none;
}

.telegram-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 136, 204, 0.6);
}

.telegram-icon svg {
    width: 34px;
    height: 34px;
}

/* Анимация появления карточек */
.fly {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

.fly.show {
    opacity: 1;
    transform: translateY(0);
}

@keyframes flyIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-text1 {
    background-color: #f0ede9; /* светло-бежевый фон */
    color: #2f2f2f; /* более контрастный тёмный текст */
    border: 1px solid #d0c8be; /* мягкая рамка */
    border-radius: 10px;
    padding: 1.2rem 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition:
        transform 0.2s ease,
        box-shadow 0.3s ease;
}

.card-text1:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.card-text2 {
    background-color: #e3ddd3; /* чуть теплее, чем первый */
    color: #3c3c3c;
    border: 1px solid #c7c0b6;
    border-left: 6px solid #a89f91; /* акцентная полоска слева */
    border-radius: 8px;
    padding: 1.2rem 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    transition:
        transform 0.2s ease,
        box-shadow 0.3s ease;
}
.card-text2:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.card-text3 {
    background-color: #4e4e4e; /* основной серый сайта */
    color: #f5f2ec; /* почти белый текст */
    border: 1px solid #3c3c3c;
    border-radius: 10px;
    padding: 1.4rem 1.6rem;
    margin: 1.5rem 0;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    transition:
        transform 0.2s ease,
        box-shadow 0.3s ease;
}
.card-text3:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.card-text4 {
    background-color: #fafafa;
    color: #3c3c3c;
    border: 1px solid #c7c0b6;
    border-left: 6px solid #98b9e0;
    border-radius: 8px;
    padding: 1.4rem 1.6rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    transition:
        transform 0.2s ease,
        box-shadow 0.3s ease;
}
.card-text4:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.card-text5 {
    background-color: #fafafa;
    color: #3c3c3c;
    border: 1px solid #c7c0b6;
    border-left: 6px solid #98e0ca;
    border-radius: 8px;
    padding: 1.4rem 1.6rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    transition:
        transform 0.2s ease,
        box-shadow 0.3s ease;
}
.card-text5:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.section {
    width: 100%;
    padding: 50px 0;
    background-clip: content-box;
}

.section .section-inner {
    max-width: 850px; /* та же ширина, что и wrapper */
    margin: 0 auto; /* центрируем контент */
    padding: 0 20px; /* отступы слева/справа */
}

.section .section-inner p,
h1,
h2,
h3 {
    padding-right: 40px;
}

/* спокойные голубые */
.bg-blue-1 {
    background: #f3f8ff;
}
.bg-blue-2 {
    background: #e3efff;
}

/* приятные зеленоватые */
.bg-green-1 {
    background: #f3fff6;
}
.bg-green-2 {
    background: #e6ffed;
}

/* нейтральные сероватые */
.bg-gray-1 {
    background: #fafafa;
}
.bg-gray-2 {
    background: #f0f0f0;
}

/* мягкие теплые */
.bg-warm-1 {
    background: #fff7e8;
}
.bg-warm-2 {
    background: #ffeecd;
}

/* акцентные (для важных блоков) */
.bg-accent-1 {
    background: #fff4f4;
}
.bg-accent-2 {
    background: #ffe4e4;
}

.contacts-main-card {
    padding: 2rem;
    margin: 2rem 0;
}

.contacts-title {
    text-align: center;
    margin-bottom: 2rem;
    color: #4e4e4e;
    border-bottom: 3px solid #c7c0b6;
    padding-bottom: 1rem;
}

.contacts-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.section-title {
    margin-top: 0;
    margin-bottom: 0.3rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e3ddd3;
    color: #4e4e4e;
    font-size: 1.3rem;
}

.contact-info {
    line-height: 1.6;
}

.contact-label {
    font-weight: bold;
    color: #4e4e4e;
    min-width: 120px;
    display: inline-block;
}

.contact-info p {
    margin: 0.8rem 0;
}

.contact-info a {
    color: #4e4e4e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #0088cc;
    text-decoration: underline;
}

.tg-button {
    display: inline-block;
    background: #0088cc;
    color: white !important;
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    text-decoration: none !important;
    margin-top: 0.8rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tg-button:hover {
    background: #0077b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
    text-decoration: none !important;
}

.price-list div {
    display: flex;
    justify-content: space-between;
    width: 140px;
}

/* ===== Адаптив: мобильные (до 768px) ===== */
@media (max-width: 768px) {
    .header-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
        padding: 0.5rem 1rem;
        gap: 1rem;
    }

    .logo-and-burger-container {
        display: flex;
        align-items: center;
        flex: 1;
        min-width: 0;
    }

    .burger {
        display: flex;
        width: 32px;
        height: 24px;
        z-index: 1001;
        flex-direction: column;
        justify-content: space-between;
        cursor: pointer;
        flex-shrink: 0;
        margin-right: 1rem; /* Добавляем отступ справа */
    }

    .logo-block {
        flex: 1;
        text-align: center; /* Возвращаем центрирование */
        min-width: 0;
        margin: 0;
    }

    .logo-block h1 {
        font-family: "Russo One", sans-serif;
        margin: 0.5rem 0;
        color: #4e4e4e;
        font-size: clamp(1.3rem, 5vw, 2rem);
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
        text-align: center; /* Центрируем текст */
    }

    /* Скрываем навигацию в мобильной версии */
    header nav {
        display: none;
    }

    .contacts-main-card {
        padding: 1.5rem;
        margin: 1rem 0;
    }

    .contact-section {
        padding: 1rem;
    }

    .contact-label {
        min-width: 100px;
        display: block;
        margin-bottom: 0.2rem;
    }

    .contacts-grid {
        gap: 1.5rem;
    }

    /* Остальные стили бургера и меню остаются без изменений */
    .burger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    .burger.active span:nth-child(2) {
        opacity: 0;
    }
    .burger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    header nav {
        display: none;
    }

    header.active nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        background-color: #c7c0b6;
        position: absolute;
        top: calc(100% + 10px);
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 40px);
        max-width: 600px;
        border-radius: 12px;
        padding: 1rem 0;
        z-index: 999;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        opacity: 0;
        pointer-events: none;
        transition:
            opacity 0.3s ease,
            transform 0.3s ease;
    }

    header.active nav.show {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0);
    }

    header.active nav a {
        font-size: 1.2rem;
        color: #4e4e4e;
        padding: 0.5rem;
        width: 100%;
        text-align: center;
        text-decoration: none;
    }

    header.active nav a:hover {
        background-color: rgba(0, 0, 0, 0.05);
    }

    .reviews-container {
        display: flex;
        gap: 1rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 1rem;
        padding-top: 0.3rem;
    }

    .reviews-container .review {
        flex: 0 0 70%;
        scroll-snap-align: start;
        margin-right: 0;
    }
}

/* ===== Адаптив: ПК-версия (от 769px) =====
   Примечание: в исходном файле этот блок был продублирован дважды подряд
   с идентичным содержимым — дубликат удалён, поведение не меняется. */
@media (min-width: 769px) {
    header nav {
        display: flex !important;
        flex-direction: row; /* горизонтально */
        gap: 1.5rem; /* расстояние между пунктами */
        align-items: center; /* по центру по вертикали */
        justify-content: flex-end; /* можно по правому краю */
        position: static;
        transform: none;
        opacity: 1;
        pointer-events: auto;
        background: none;
        box-shadow: none;
        width: auto;
        padding: 0;
        margin-top: 0;
    }

    header nav ul {
        display: flex;
        gap: 1.5rem;
    }

    header.active nav {
        position: static;
        top: auto;
        left: auto;
        width: auto;
        box-shadow: none;
        background: none;
        margin-top: 0;
    }

    .header-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .burger {
        display: none;
    }

    main {
        padding-left: 2rem;
        padding-right: 2rem;
        max-width: 850px;
        margin: 0 auto;
    }

    .card-text1,
    .card-text2,
    .card-text3 {
        max-width: 800px;
        padding: 1.2rem 1.5rem;
        margin: 1.5rem auto;
    }

    .wrapper {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        overflow: hidden;
    }

    .reviews-scroll-wrapper {
        overflow: hidden;
    }

    .reviews-container {
        display: flex;
        flex-wrap: wrap;
        gap: 1.5rem;
        justify-content: space-between;
        overflow-x: visible; /* больше нет скролла */
        scroll-snap-type: none; /* отключаем snap для ПК */
    }

    .reviews-container .review {
        flex: 0 0 40%; /* две карточки в ряд */
        margin: 3 0 1.5rem 0;
    }
}
