/* =====================================================
   Перепрошивка — Clone Styles
   Palette:
   - Gold accent: #f4c430
   - Dark graphite (cards): #2b2b2b / #3a3a3a
   - Dark blue footer: #14181f
   - Light section bg: #f5f5f5
   - Text dark: #1a1a1a
   ===================================================== */

:root {
    --gold: #f4c430;
    --gold-dark: #d4a818;
    --gold-light: #ffe066;
    --dark: #1a1a1a;
    --graphite: #2b2b2b;
    --graphite-light: #3a3a3a;
    --footer-bg: #14181f;
    --light-bg: #f5f5f5;
    --white: #ffffff;
    --text: #1a1a1a;
    --text-muted: #6b6b6b;
    --blue: #2563eb;
    --blue-glow: #3b82f6;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.25);
    --container: 1200px;
    --container-wide: 1400px;
    --container-narrow: 800px;
    --font: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.85;
}

/* ========== Container ========== */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.container--wide {
    max-width: var(--container-wide);
}

.container--narrow {
    max-width: var(--container-narrow);
}

/* ========== Section title ========== */
.section-title {
    text-align: center;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.15;
    margin-bottom: 50px;
    color: var(--text);
}

.section-title--gold {
    color: var(--gold);
}

/* ========== HERO ========== */
.hero {
    position: relative;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 80px 0 60px;
    overflow: hidden;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0.7) 100%);
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero__title {
    font-size: clamp(32px, 5.5vw, 64px);
    font-weight: 900;
    color: var(--gold);
    text-transform: uppercase;
    line-height: 1.1;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5), 0 0 1px rgba(0,0,0,0.4);
    margin-bottom: 60px;
    letter-spacing: 0.01em;
}

.hero__cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.hero-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px 18px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 200px;
    height: 100%;
}

.hero-card__icon {
    margin-bottom: 12px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-card__photo-wrap {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--gold);
    padding: 4px;
    margin-bottom: 12px;
}

.hero-card__photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 3px solid var(--white);
}

.hero-card__label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.hero-card__name {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
}

.hero-card__text {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text);
}

/* ========== Wave divider ========== */
.wave-divider {
    line-height: 0;
    background: transparent;
}

.wave-divider svg {
    width: 100%;
    height: 60px;
    display: block;
}

/* ========== ABOUT ========== */
.about {
    background: var(--white);
    padding: 80px 0;
}

.about__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.about__text p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 16px;
    color: var(--text);
}

.about__text p:last-child {
    margin-bottom: 0;
}

.about__lead {
    font-size: 20px !important;
    font-weight: 600;
    line-height: 1.5 !important;
    margin-bottom: 24px !important;
}

.about__photo-wrap {
    position: relative;
}

.about__photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius);
    border: 4px solid var(--gold);
    box-shadow: var(--shadow);
}

/* ========== PRICING ========== */
.pricing {
    position: relative;
    padding: 100px 0;
    background-size: cover;
    background-position: center;
    color: var(--white);
}

.pricing__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.75) 100%);
}

.pricing > .container {
    position: relative;
    z-index: 2;
}

.pricing__card {
    background: var(--white);
    border-radius: 24px 24px 0 0;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    max-width: 720px;
    margin: 0 auto;
}

.pricing__card-top {
    padding: 36px 36px 28px;
    text-align: center;
    color: var(--text);
}

.pricing__includes {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 28px;
    font-weight: 500;
}

.pricing__prices {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.pricing__price {
    background: var(--light-bg);
    border-radius: var(--radius-sm);
    padding: 14px 8px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.pricing__price--active {
    background: var(--gold);
    border-color: var(--gold-dark);
    transform: scale(1.05);
}

.pricing__price--old {
    opacity: 0.55;
}

.pricing__price .price {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
}

.pricing__price--active .price {
    color: var(--dark);
}

.pricing__price .date {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pricing__price--active .date {
    color: var(--dark);
    font-weight: 600;
}

.pricing__buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
    text-align: center;
    line-height: 1.2;
    font-family: var(--font);
}

.btn--primary {
    background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 100%);
    color: var(--dark);
    box-shadow: 0 8px 24px rgba(244, 196, 48, 0.4);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(244, 196, 48, 0.5);
    opacity: 1;
}

.btn--outline {
    background: transparent;
    color: var(--text);
    border-color: var(--text);
}

.btn--outline:hover {
    background: var(--text);
    color: var(--white);
    opacity: 1;
}

.btn--large {
    padding: 18px 48px;
    font-size: 16px;
}

.pricing__note {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 12px;
}

.pricing__subnote {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.pricing__discounts {
    max-width: 1000px;
    margin: 40px auto 0;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid var(--gold-dark);
    border-radius: var(--radius);
    padding: 28px;
}

.discounts__title {
    color: var(--white);
    text-align: center;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.discounts__hint {
    text-align: center;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 22px;
}

.discounts__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.discount-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(244, 196, 48, 0.3);
    border-radius: var(--radius-sm);
    padding: 18px 14px;
    text-align: center;
}

.discount-card__value {
    color: var(--gold);
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 6px;
}

.discount-card__label {
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    line-height: 1.4;
}

/* ========== TRAINERS ========== */
.trainers {
    background: var(--light-bg);
    padding: 100px 0;
    position: relative;
}

.trainers__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.trainer-card {
    background: var(--graphite);
    border-radius: var(--radius);
    padding: 80px 32px 36px;
    position: relative;
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.trainer-card__photo-wrap {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--gold);
    padding: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.trainer-card__photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-size: cover;
    background-position: center top;
    border: 4px solid var(--white);
}

.trainer-card__role {
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 4px;
}

.trainer-card__name {
    text-align: center;
    font-size: 26px;
    font-weight: 900;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(244, 196, 48, 0.25);
}

.trainer-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.trainer-card__list li {
    position: relative;
    padding-left: 18px;
    font-size: 13.5px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
}

.trainer-card__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
}

.trainer-card__list li:last-child {
    margin-bottom: 0;
}

.trainers__cta {
    text-align: center;
}

/* ========== FORM SECTION (legacy, kept for shodhan.html) ========== */
.form-section {
    background: var(--white);
    padding: 80px 0;
    border-top: 4px solid var(--gold);
}

.form-section__subtitle {
    text-align: center;
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.detail-form {
    background: var(--light-bg);
    padding: 36px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* In modal context, detail-form has no card background */
.modal .detail-form {
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field--full {
    margin-bottom: 18px;
}

.form-field__label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-field input,
.form-field textarea {
    font-family: var(--font);
    font-size: 15px;
    padding: 12px 14px;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--text);
    transition: border-color 0.2s;
    width: 100%;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.form-field textarea {
    resize: vertical;
    font-family: var(--font);
}

.form-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 8px;
}

.form-actions__hint {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}

.form-status {
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

.form-status--success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-status--error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-status__link {
    color: #0b5ed7;
    text-decoration: underline;
    font-weight: 700;
}

.form-actions__hint a {
    color: var(--blue);
    text-decoration: underline;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--footer-bg);
    color: rgba(255, 255, 255, 0.85);
    padding: 60px 0 24px;
}

.footer__top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__heading {
    font-size: 22px;
    font-weight: 800;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 20px;
}

.footer__contact-line {
    margin-bottom: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

.footer__contact-label {
    color: rgba(255, 255, 255, 0.6);
    margin-right: 6px;
}

.footer__link {
    color: var(--gold);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(244, 196, 48, 0.4);
    text-underline-offset: 3px;
}

.footer__link:hover {
    text-decoration-color: var(--gold);
    opacity: 1;
}

.footer__link--phone {
    font-size: 16px;
    color: var(--white);
    text-decoration: none;
}

.footer__socials {
    display: flex;
    gap: 14px;
    margin: 12px 0;
    flex-wrap: wrap;
}

.footer__social {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    font-size: 14px;
    color: var(--white);
    font-weight: 600;
}

.footer__social img {
    width: 28px;
    height: 28px;
}

.footer__social:hover {
    background: rgba(244, 196, 48, 0.15);
    border-color: var(--gold);
    opacity: 1;
}

.footer__links-list {
    list-style: none;
    padding: 0;
}

.footer__links-list li {
    margin-bottom: 10px;
}

.footer__links-list a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s;
}

.footer__links-list a:hover {
    color: var(--gold);
    opacity: 1;
}

.footer__bottom {
    padding-top: 20px;
    text-align: center;
}

.footer__copyright {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

/* ========== Responsive ========== */
@media (max-width: 980px) {
    .hero__cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .about__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .pricing__prices {
        grid-template-columns: repeat(2, 1fr);
    }
    .trainers__grid {
        grid-template-columns: 1fr;
        gap: 80px;
    }
    .discounts__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer__top {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 640px) {
    .hero__cards {
        grid-template-columns: 1fr;
    }
    .hero__title {
        font-size: 32px;
    }
    .pricing__prices {
        grid-template-columns: 1fr;
    }
    .pricing__buttons {
        flex-direction: column;
    }
    .discounts__grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .detail-form {
        padding: 22px;
    }
    .section-title {
        font-size: 26px;
        margin-bottom: 32px;
    }
    .trainer-card {
        padding: 70px 22px 28px;
    }
}

/* ========== MODAL ========== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal[hidden] {
    display: flex !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal__dialog {
    position: relative;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 36px 36px 28px;
    max-width: 560px;
    width: 100%;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal.is-open .modal__dialog {
    transform: translateY(0);
}

.modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--light-bg);
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.modal__close:hover {
    background: var(--text);
    color: var(--white);
}

.modal__title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 8px;
    padding-right: 36px;
    line-height: 1.2;
}

.modal__subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.5;
}

.modal__type-badge {
    display: inline-block;
    background: var(--gold);
    color: var(--dark);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 12px;
    border-radius: 100px;
    margin-bottom: 18px;
}

@media (max-width: 640px) {
    .modal__dialog {
        padding: 28px 20px 24px;
    }
    .modal__title {
        font-size: 20px;
    }
}

/* Body lock when modal open */
body.modal-open {
    overflow: hidden;
}
