/* ============================================
   БЕЛО-СИНЯЯ ТЕМА + АККОРДЕОН
   Шрифт: Inter (для чёткости)
   ============================================ */

:root {
    --blue: #2b6cb0;
    --blue-light: #4a8bcb;
    --blue-dark: #1a4b7a;
    --gray: #4a5568;
    --gray-light: #edf2f7;
    --white: #ffffff;
    --shadow: 0 8px 30px rgba(43, 108, 176, 0.12);
    --radius: 16px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: #2d3748;
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 80px 0;
}

/* --- Заголовки --- */
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    text-align: center;
    margin-bottom: 14px;
    color: var(--blue-dark);
}

.section-sub {
    text-align: center;
    color: var(--gray);
    font-size: 17px;
    margin-bottom: 55px;
}

/* ===== ШАПКА ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 18px 0;
    transition: .3s;
    background: transparent;
}

.header.scrolled {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
    box-shadow: 0 4px 20px rgba(43, 108, 176, 0.08);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-weight: 800;
    font-size: 22px;
    color: var(--white);
}
.header.scrolled .logo {
    color: var(--blue-dark);
}
.logo__text {
    color: var(--white);
}
.header.scrolled .logo__text {
    color: var(--blue-dark);
}

.nav {
    display: flex;
    align-items: center;
    gap: 34px;
}

.nav__link {
    font-weight: 600;
    font-size: 15px;
    color: var(--white);
    transition: .3s;
    position: relative;
}
.header.scrolled .nav__link {
    color: var(--gray);
}
.nav__link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--blue);
    transition: .3s;
}
.nav__link:hover::after {
    width: 100%;
}

.btn-nav {
    background: var(--blue);
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(43, 108, 176, 0.3);
    transition: .3s;
}
.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(43, 108, 176, 0.4);
}
.btn-nav::after { display: none; }

.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 6px;
    z-index: 1100;
}
.burger span {
    width: 28px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: .35s;
}
.header.scrolled .burger span {
    background: var(--blue-dark);
}
.burger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.burger.active span:nth-child(2) {
    opacity: 0;
}
.burger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
    padding-top: 90px;
    background: var(--blue-dark);
}
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-size: cover;
    background-position: center 20%;
    background-repeat: no-repeat;
}
.hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(26, 75, 122, 0.85) 0%, rgba(43, 108, 176, 0.6) 70%);
}
.hero__content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}
.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 12px;
}
.hero p {
    font-size: clamp(18px, 2.2vw, 24px);
    opacity: .95;
    margin-bottom: 36px;
    max-width: 520px;
    font-weight: 400;
}
.hero__btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    transition: .35s;
    border: none;
    cursor: pointer;
}
.btn-primary {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 12px 30px rgba(43, 108, 176, 0.4);
}
.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 18px 40px rgba(43, 108, 176, 0.55);
}
.btn-outline {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(6px);
}
.btn-outline:hover {
    background: #fff;
    color: var(--blue);
    transform: translateY(-4px);
}

/* ===== АККОРДЕОН ===== */
.services {
    background: var(--gray-light);
}

.accordion {
    max-width: 900px;
    margin: 0 auto 40px;
}

.accordion-item {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 16px;
    overflow: hidden;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    cursor: pointer;
    transition: background 0.2s;
}
.accordion-header:hover {
    background: #f7fafc;
}

.accordion-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--blue-dark);
}

.accordion-icon {
    font-size: 28px;
    font-weight: 300;
    color: var(--blue);
    transition: transform 0.3s;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 24px;
}
.accordion-item.active .accordion-body {
    max-height: 800px;
    padding: 0 24px 24px;
}

.service-items {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f4f9;
    flex-wrap: wrap;
    gap: 8px;
}
.service-item:last-child {
    border-bottom: none;
}

.service-item__info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.service-item__name {
    font-weight: 600;
    font-size: 16px;
    color: #2d3748;
}
.service-item__duration {
    font-size: 14px;
    color: var(--gray);
    background: var(--gray-light);
    padding: 2px 12px;
    border-radius: 20px;
    white-space: nowrap;
}
.service-item__right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.service-item__price {
    font-weight: 700;
    font-size: 17px;
    color: var(--blue-dark);
    white-space: nowrap;
}

.btn-book {
    display: inline-block;
    background: var(--blue);
    color: #fff;
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    transition: .3s;
    white-space: nowrap;
    text-decoration: none;
    border: none;
    cursor: pointer;
}
.btn-book:hover {
    background: var(--blue-light);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(43, 108, 176, 0.3);
}

.services__action {
    text-align: center;
    margin-top: 20px;
}
.btn-yandex {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #FFCC00;
    color: #1A1A1A;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: .3s;
    box-shadow: 0 8px 20px rgba(255,204,0,0.3);
}
.btn-yandex:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(255,204,0,0.5);
}
.btn-yandex__icon {
    font-size: 20px;
}
.services__note {
    text-align: center;
    margin-top: 30px;
    font-size: 14px;
    color: var(--gray);
}

/* ===== ГАЛЕРЕЯ ===== */
#works {
    background: var(--white);
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.gallery__item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 3/4;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform .3s;
}
.gallery__item:hover {
    transform: scale(1.02);
}
.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .6s;
}
.gallery__item:hover img {
    transform: scale(1.08);
}
.gallery__item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(43, 108, 176, 0.7), transparent 60%);
    opacity: 0;
    transition: .4s;
}
.gallery__item:hover::after {
    opacity: 1;
}
.gallery__desc {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 15px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    z-index: 2;
    opacity: 0;
    transition: .4s;
}
.gallery__item:hover .gallery__desc {
    opacity: 1;
}
.gallery-empty {
    text-align: center;
    color: var(--gray);
    font-size: 18px;
    grid-column: 1 / -1;
    padding: 40px;
}
.works__more {
    text-align: center;
    margin-top: 20px;
}
.works__more-text {
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 16px;
}
.btn-vk {
    display: inline-block;
    background: #4C75A3;
    color: #fff;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    transition: .3s;
    box-shadow: 0 8px 20px rgba(76,117,163,0.3);
}
.btn-vk:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(76,117,163,0.5);
}

/* ===== МОДАЛЬНОЕ ОКНО ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}
.modal__content-wrapper {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0,0,0,0.7);
    padding: 20px;
    border-radius: 16px;
}
.modal__content {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 8px;
    object-fit: contain;
}
.modal__caption {
    color: #fff;
    text-align: center;
    margin-top: 16px;
    font-size: 18px;
    font-weight: 500;
    background: rgba(0,0,0,0.5);
    padding: 8px 20px;
    border-radius: 30px;
}
.modal__close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: .3s;
    z-index: 10;
}
.modal__close:hover {
    transform: rotate(90deg);
    color: var(--blue-light);
}

/* ===== ОБО МНЕ ===== */
.about {
    background: var(--gray-light);
}
.about__inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}
.about__img img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    object-fit: cover;
}
.about__text h2 {
    font-family: var(--font-heading);
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 800;
    margin-bottom: 20px;
}
.about__text h2 span {
    color: var(--blue);
}
.about__text p {
    color: var(--gray);
    font-size: 17px;
    margin-bottom: 28px;
}
.about__stats {
    display: flex;
    gap: 40px;
}
.about__stat b {
    display: block;
    font-family: var(--font-heading);
    font-size: 34px;
    font-weight: 800;
    color: var(--blue-dark);
}
.about__stat span {
    color: var(--gray);
    font-size: 14px;
}

/* ===== ОТЗЫВЫ ===== */
.reviews {
    background: var(--white);
}
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}
.review-card {
    background: var(--gray-light);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: .4s;
}
.review-card:hover {
    transform: translateY(-6px);
}
.review-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.review-card__name {
    font-weight: 700;
    font-size: 17px;
}
.review-card__stars {
    color: var(--blue);
    font-size: 18px;
    letter-spacing: 2px;
}
.review-card__text {
    color: #444;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 12px;
}
.review-card__date {
    color: #999;
    font-size: 13px;
}
.reviews__action {
    text-align: center;
}

/* ===== КОНТАКТЫ ===== */
.contacts {
    background: var(--blue-dark);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.contacts .section-title {
    color: #fff;
}
.contacts .section-sub {
    color: #c9d9ed;
}
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 20px;
}
.contact-card.glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    transition: .35s;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.contact-card.glass:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}
.contact-card__icon {
    font-size: 34px;
    margin-bottom: 14px;
}
.contact-card h4 {
    font-size: 16px;
    color: #c9d9ed;
    margin-bottom: 8px;
}
.contact-card a,
.contact-card p {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}
.contact-card a:hover {
    color: var(--blue-light);
}
.map-wrapper {
    margin-top: 40px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.05);
}
.map-wrapper iframe {
    display: block;
    height: 400px;
}

/* ===== ПОДВАЛ ===== */
.footer {
    background: #0f1a2b;
    color: #8a9bb5;
    text-align: center;
    padding: 34px 0;
    font-size: 14px;
}
.footer__inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
    text-align: left;
}
.footer__col h4 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 16px;
}
.footer__link {
    display: block;
    color: #8a9bb5;
    transition: .3s;
}
.footer__link:hover {
    color: var(--blue-light);
}
.footer__socials {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.social-btn {
    padding: 8px 18px;
    border-radius: 30px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-weight: 600;
    transition: .3s;
}
.social-btn--wa:hover {
    background: #25d366;
}
.social-btn--call:hover {
    background: var(--blue);
}

/* ===== ПЛАВАЮЩИЕ КНОПКИ ===== */
.float-wa {
    position: fixed;
    bottom: 26px;
    right: 26px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(37, 211, 102, .5);
    z-index: 900;
    font-size: 0;
    animation: pulse-wa 2.4s infinite;
}
.float-wa::before {
    content: "💬";
    font-size: 30px;
}
.float-wa:hover {
    transform: scale(1.1);
}
@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); }
    70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

#toTop {
    position: fixed;
    bottom: 26px;
    left: 26px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    border: none;
    font-size: 22px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: .4s;
    z-index: 900;
    box-shadow: 0 8px 22px rgba(43, 108, 176, .4);
}
#toTop.show {
    opacity: 1;
    visibility: visible;
}
#toTop:hover {
    transform: translateY(-4px);
}

/* ===== АНИМАЦИИ ===== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== МОБИЛЬНАЯ АДАПТАЦИЯ ===== */
@media (max-width: 900px) {
    section { padding: 60px 0; }
    .about__inner { grid-template-columns: 1fr; gap: 40px; }
    .burger { display: flex; }
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        gap: 28px;
        background: #fff;
        box-shadow: -10px 0 40px rgba(0,0,0,0.15);
        transition: .4s;
        padding: 40px;
    }
    .nav.open { right: 0; }
    .nav__link {
        color: var(--gray) !important;
        font-size: 19px;
    }
    .hero__btns { flex-direction: column; }
    .btn { text-align: center; }
    .about__stats { gap: 26px; flex-wrap: wrap; }
    .footer__inner { grid-template-columns: 1fr; text-align: center; }
    .footer__socials { justify-content: center; }
    .map-wrapper iframe { height: 300px; }

    /* Аккордеон на мобильных */
    .accordion-header {
        padding: 14px 18px;
    }
    .accordion-title {
        font-size: 18px;
    }
    .accordion-body {
        padding: 0 18px;
    }
    .accordion-item.active .accordion-body {
        padding: 0 18px 18px;
    }
    .service-item {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 12px 0;
    }
    .service-item__info {
        justify-content: space-between;
        width: 100%;
    }
    .service-item__right {
        justify-content: space-between;
        width: 100%;
        border-top: 1px solid #f0f4f9;
        padding-top: 8px;
    }
}

@media (max-width: 480px) {
    .service-item__name {
        font-size: 14px;
    }
    .service-item__duration {
        font-size: 12px;
    }
    .service-item__price {
        font-size: 15px;
    }
    .btn-book {
        font-size: 13px;
        padding: 4px 14px;
    }
}

/* ===== COOKIE УВЕДОМЛЕНИЕ (адаптивное) ===== */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 75, 122, 0.95);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 16px 24px;
    z-index: 9999;
    border-top: 2px solid rgba(255,255,255,0.1);
    display: none; /* скрыто по умолчанию, показываем через JS */
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}

.cookie-notice__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-notice__text {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    flex: 1;
    min-width: 200px;
}

.cookie-notice__text a {
    color: #8fc5ff;
    text-decoration: underline;
}

.cookie-notice__text a:hover {
    color: #fff;
}

.cookie-btn {
    background: #fff;
    color: var(--blue-dark);
    border: none;
    padding: 10px 32px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: .3s;
    white-space: nowrap;
    flex-shrink: 0;
}

.cookie-btn:hover {
    background: var(--blue-light);
    color: #fff;
    transform: scale(1.05);
}

/* Адаптация для мобильных */
@media (max-width: 600px) {
    .cookie-notice {
        padding: 12px 16px;
    }
    .cookie-notice__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .cookie-notice__text {
        font-size: 14px;
        text-align: center;
    }
    .cookie-btn {
        width: 100%;
        text-align: center;
        padding: 12px;
        font-size: 16px;
    }
}

/* Если нужно скрыть через JS */
.cookie-notice.hidden {
    display: none !important;
}

/* ===== СТРАНИЦА ВСЕХ РАБОТ ===== */
.works-page {
    padding: 120px 0 60px;
}

.works-page .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

@media (max-width: 600px) {
    .works-page {
        padding: 100px 0 40px;
    }
    .works-page .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }
}

/* ===== КНОПКА ВК В БЛОКЕ ОБО МНЕ ===== */
.about__social {
    margin-top: 25px;
}

.about__social .btn-vk {
    display: inline-block;
    background: #4C75A3;
    color: #fff;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: .3s;
    box-shadow: 0 8px 20px rgba(76,117,163,0.3);
}

.about__social .btn-vk:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(76,117,163,0.5);
}