/* Общие настройки */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
section {
    padding-top: 70px; /* чтобы не перекрывалось шапкой */
}
#hero {
    padding-top: 0; /* у hero свой отступ не нужен */
    margin-top: 0;
}

:root {
    --primary: #e83e8c;
    --primary-dark: #c2185b;
    --secondary: #6c757d;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 0px;
}

/* Шапка с прозрачностью */
#navbar {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    transition: background 0.3s;
}
#navbar.scrolled {
    background: rgba(0, 0, 0, 0.95);
}

/* HERO секция с параллаксом */
#hero {
    height: 100vh;
    background: linear-gradient(rgba(1,0,0,0.4), rgba(1,0,0,0.6)), url('../img/hero-bg.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    position: relative;
    isolation: isolate;
}
#hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.35), rgba(15, 23, 42, 0.7));
    z-index: 0;
}
#hero .container {
    position: relative;
    z-index: 1;
}

/* Пульсирующая кнопка */
.pulse-btn {
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(232, 62, 140, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(232, 62, 140, 0); }
    100% { box-shadow: 0 0 0 0 rgba(232, 62, 140, 0); }
}

/* Карточки с анимацией при наведении */
.card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}
.card img {
    height: 200px;
    object-fit: cover;
}

.trainer-photo-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8d7e3, #d7ecff);
}

.trainer-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.trainer-avatar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #fff;
    background: linear-gradient(135deg, #e83e8c, #6f42c1 55%, #0d6efd);
    text-transform: uppercase;
}

/* Счётчики */
.counter {
    font-size: 2.8rem;
    font-weight: bold;
}

/* Отзывы (карусель) */
.review-card {
    max-width: 700px;
    margin: 0 auto;
    background: #f8f9fa;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Красивые разделители между секциями */
section {
    position: relative;
}

section:not(:first-child)::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: inherit;
    clip-path: polygon(0 20%, 100% 0, 100% 100%, 0 100%);
}

.bg-light::after {
    content: "";
    position: absolute;
    bottom: -30px;
    left: 0;
    right: 0;
    height: 30px;
    background: #f8f9fa;
    clip-path: polygon(0 0, 100% 20%, 100% 100%, 0 100%);
}

.bg-primary::after {
    content: "";
    position: absolute;
    bottom: -30px;
    left: 0;
    right: 0;
    height: 30px;
    background: var(--primary);
    clip-path: polygon(0 0, 100% 20%, 100% 100%, 0 100%);
}

/* Карточки услуг */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary), #6f42c1);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.service-card:hover::before {
    opacity: 0.05;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    display: inline-block;
    transition: transform 0.3s;
}

.service-card:hover .service-icon {
    transform: scale(1.2) rotate(5deg);
}

/* Улучшенная форма */
.form-group-custom {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.3s;
    background: #fff;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(232, 62, 140, 0.15);
    background: #fff;
    transform: translateY(-2px);
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
    transition: color 0.3s;
}

.form-control:focus ~ .form-label,
.form-control:not(:placeholder-shown) ~ .form-label {
    color: var(--primary);
}

/* Кнопка прямо в форме */
.btn {
    border-radius: 10px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #c2185b);
    color: white;
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(232, 62, 140, 0.3);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    transition: all 0.3s;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* Отзывы улучшенно */
.review-card {
    max-width: 700px;
    margin: 0 auto;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border-left: 5px solid var(--primary);
    position: relative;
}

.review-card::before {
    content: "❝";
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.2;
}

.review-stars {
    color: #ffc107;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* Футер */
.site-footer {
    background: #0d0d0f;
    color: #f4f4f4;
    padding: 80px 0 30px;
    position: relative;
}

.site-footer .container {
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1.1fr 1fr 1.2fr;
    gap: 40px;
    align-items: start;
}

.footer-block h3 {
    margin-bottom: 22px;
    font-size: clamp(1.2rem, 2vw, 2rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
}

.footer-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-block li,
.footer-block a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.2s ease;
}

.footer-block a:hover {
    color: #fff;
}

.footer-copy {
    margin-top: 30px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

.footer-form-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.trial-input-wrap {
    display: flex;
    align-items: center;
    width: 100%;
    background: #f7f7f7;
    border: 1px solid rgba(255,255,255,0.2);
    min-height: 58px;
    overflow: hidden;
    margin-top: 8px;
}

.trial-input-wrap input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0 16px;
    font-size: 1.05rem;
    color: #111;
    outline: none;
}

.trial-input-wrap button {
    width: 58px;
    height: 58px;
    border: none;
    background: #111;
    color: #fff;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.trial-input-wrap button:hover {
    background: var(--primary);
}

.social-icons {
    display: flex;
    gap: 14px;
    margin-top: 26px;
}

.social-icons a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-icons a:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.floating-chat {
    position: fixed;
    right: 30px;
    bottom: 18px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f0388f, #ff7ab7);
    color: white;
    border-radius: 18px 18px 18px 0;
    padding: 0 0 0 18px;
    box-shadow: 0 15px 30px rgba(240, 56, 143, 0.35);
    z-index: 20;
    overflow: hidden;
}

.floating-chat span {
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    white-space: nowrap;
    letter-spacing: 0.03em;
}

.floating-chat button {
    width: 60px;
    height: 60px;
    border: none;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
}

.document-page {
    min-height: 100vh;
    background: #f7f7f7;
    padding: 120px 0 80px;
}

.document-box {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 22px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    padding: 40px 48px;
}

.document-box h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 24px;
    color: #111;
}

.document-box .document-meta {
    color: #666;
    margin-bottom: 26px;
}

.document-box p,
.document-box li {
    color: #333;
    line-height: 1.8;
    margin-bottom: 14px;
}

.document-box ul {
    padding-left: 24px;
}

.document-box .back-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.5rem;
    }
    .counter {
        font-size: 2rem;
    }
    
    section:not(:first-child)::before {
        height: 30px;
    }
    
    .bg-light::after,
    .bg-primary::after {
        height: 20px;
        bottom: -20px;
    }

    .site-footer {
        padding-top: 60px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .floating-chat {
        right: 12px;
        bottom: 12px;
        padding-left: 12px;
    }

    .floating-chat span {
        display: none;
    }

    .document-box {
        padding: 28px 22px;
    }
}