:root {
    --font-heading: 'Roboto Condensed', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    --primary: #ff6a00;
    --primary-dark: #e55a00;
    --dark: #121212;
    --dark-light: #1e1e1e;
    --light: #f8f9fa;
}

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

html,
body {
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

body {
    background-color: var(--dark);
    color: var(--light);
    font-family: var(--font-body);
    scroll-behavior: smooth;
    overflow-wrap: break-word;
}

img,
svg,
video,
canvas,
iframe {
    max-width: 100%;
}

iframe {
    display: block;
}

a {
    overflow-wrap: anywhere;
}

.row > *,
.card,
.card-body {
    min-width: 0;
}

.bg-dark-custom {
    background-color: var(--dark-light) !important;
}

.text-primary-custom {
    color: var(--primary) !important;
}

.btn-primary-custom {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
    font-weight: 600;
}

.btn-primary-custom:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
}

.btn-outline-primary-custom {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline-primary-custom:hover {
    background-color: var(--primary);
    color: white;
}

.border-primary-custom {
    border-color: var(--primary) !important;
}

.section-title {
    position: relative;
    margin-bottom: 2rem;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary);
}

.service-card {
    transition: transform 0.3s;
    border: none;
    background-color: var(--dark-light);
}

.service-card:hover {
    transform: translateY(-10px);
}

.trainer-card {
    background-color: var(--dark-light);
    border: none;
    transition: transform 0.3s;
    overflow: hidden;
}

.trainer-card:hover {
    transform: scale(1.03);
}

.trainer-image {
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s;
}

.trainer-card:hover .trainer-image {
    transform: scale(1.1);
}

.trainer-social {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s;
}

.trainer-card:hover .trainer-social {
    opacity: 1;
}

.price-card {
    background-color: var(--dark-light);
    border: 2px solid var(--dark);
    transition: all 0.3s;
    position: relative;
}

.price-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.price-card.featured {
    border-color: var(--primary);
    transform: scale(1.05);
}

.price-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
}

.contact-info {
    background-color: var(--dark-light);
    border-radius: 10px;
    padding: 2rem;
}

.map-container {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    min-height: 420px;
    height: clamp(420px, 40vw, 513px);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.navbar {
    background-color: rgba(18, 18, 18, 0.95) !important;
    backdrop-filter: blur(10px);
}

footer {
    background-color: var(--dark-light);
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--dark);
    border-radius: 50%;
    transition: all 0.3s;
}

.social-icon:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(255, 106, 0, 0.4);
}

.modal-content {
    background-color: var(--dark-light);
    color: var(--light);
}

.form-control {
    background-color: var(--dark);
    border: 1px solid #444;
    color: var(--light);
}

.form-control:focus {
    background-color: var(--dark);
    border-color: var(--primary);
    color: var(--light);
    box-shadow: 0 0 0 0.25rem rgba(255, 106, 0, 0.25);
}

.callback-section {
    background: linear-gradient(135deg, var(--dark-light) 0%, var(--dark) 100%);
    padding: 80px 0;
}

.callback-form-container {
    background-color: var(--dark-light);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 106, 0, 0.2);
}

.address-highlight {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.text-white-custom {
    color: #ffffff !important;
}

.big-call-button {
    font-size: 1.2rem;
    padding: 16px 32px;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(255, 106, 0, 0.3);
    transition: all 0.4s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    position: relative;
    overflow: hidden;
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
}

.big-call-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}

.big-call-button:hover::before {
    left: 100%;
}

.big-call-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 35px rgba(255, 106, 0, 0.4);
}

.big-call-button:active {
    transform: translateY(-2px) scale(1.02);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.benefit-item {
    text-align: center;
    padding: 20px;
}

.benefit-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-image {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 106, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 106, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 106, 0, 0);
    }
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translate(0, 0px); }
    50% { transform: translate(0, -10px); }
    100% { transform: translate(0, 0px); }
}

.trainer-specialty {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.price-period {
    color: #888;
    font-size: 0.9rem;
}

/* Стили для неактивной кнопки */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Стили для валидных полей */
.is-valid {
    border-color: #198754 !important;
}

.form-check-input.is-valid {
    background-color: #198754;
    border-color: #198754;
}

.form-check-input.is-valid:checked {
    background-color: #198754;
    border-color: #198754;
}

/* Стили для невалидных полей */
.is-invalid {
    border-color: #dc3545 !important;
}

.form-check-input.is-invalid {
    border-color: #dc3545;
}

/* Стили для ссылки в чекбоксе */
.form-check-label a {
    text-decoration: none;
}

.form-check-label a:hover {
    text-decoration: underline;
}

/* Стили для текста ошибок */
.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

.is-invalid ~ .invalid-feedback {
    display: block;
}

/* Стили для текста подсказок */
.form-text {
    font-size: 0.875em;
    margin-top: 0.25rem;
}

@media (max-width: 991.98px) {
    .navbar .container {
        align-items: flex-start;
    }

    .navbar-collapse {
        width: 100%;
        padding-top: 1rem;
    }

    .navbar-nav {
        gap: 0.25rem;
    }

    .price-card.featured {
        transform: none;
    }

    .map-container {
        min-height: 460px;
        height: 460px;
    }
}

@media (max-width: 767.98px) {
    body {
        font-size: 0.95rem;
    }

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    section.py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .hero-section,
    section[class*="hero"] {
        padding: 118px 0 64px !important;
    }

    .hero-content .display-3 {
        font-size: 2.15rem;
        line-height: 1.08;
    }

    .hero-content .lead {
        font-size: 1.05rem !important;
        margin-bottom: 2rem !important;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 28px;
    }

    .benefit-item {
        padding: 12px;
    }

    .big-call-button {
        width: 100%;
        padding: 14px 18px;
        font-size: 1rem;
        border-radius: 16px;
    }

    .logo-container {
        gap: 10px;
        min-width: 0;
    }

    .logo-container span {
        font-size: 1.25rem;
    }

    .logo-image {
        width: 44px;
        height: 44px;
        flex: 0 0 auto;
    }

    .service-card,
    .price-card {
        padding: 1.25rem !important;
    }

    .trainer-image {
        height: 260px;
    }

    .contact-info {
        padding: 1.25rem;
    }

    .map-container {
        min-height: 380px;
        height: 380px;
    }

    footer .row {
        row-gap: 1rem;
        text-align: center;
    }

    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 44px;
        height: 44px;
    }

    .modal-dialog {
        margin: 0.75rem;
    }
}

@media (max-width: 380px) {
    .hero-content .display-3 {
        font-size: 1.9rem;
    }

    .big-call-button {
        font-size: 0.92rem;
        padding-left: 12px;
        padding-right: 12px;
    }

    .logo-container span {
        font-size: 1.1rem;
    }

    .map-container {
        min-height: 340px;
        height: 340px;
    }
}
