/* === Базовая палитра: пастельная === */
:root {
    --cream:       #fbf7f1;
    --cream-deep:  #f4ecdf;
    --mint:        #d9ecdc;
    --peach:       #fadcc7;
    --lilac:       #e3dcf0;
    --rose:        #f7d7d7;
    --sky:         #d6e6f2;
    --ink:         #2d2a26;
    --ink-soft:    #4a4640;
    --accent:      #c9a96a;
    --accent-deep: #a98847;
    --line:        #e6dfd2;
    --white:       #ffffff;
    --shadow:      0 6px 24px rgba(45, 42, 38, 0.08);
}

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

html, body {
    background: var(--cream);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* === Кнопки === */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
    text-align: center;
}
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-deep); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--outline  { background: transparent; color: var(--ink); border-color: var(--accent); }
.btn--outline:hover { background: var(--accent); color: var(--white); }

/* === HERO === */
.hero {
    background: linear-gradient(180deg, var(--cream-deep) 0%, var(--cream) 100%);
    padding: 96px 0 80px;
    text-align: center;
}
.hero__kicker {
    text-transform: uppercase;
    letter-spacing: .15em;
    font-size: 13px;
    color: var(--accent-deep);
    margin-bottom: 18px;
}
.hero__title {
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}
.hero__subtitle {
    max-width: 640px;
    margin: 0 auto 36px;
    font-size: 19px;
    color: var(--ink-soft);
}
.hero__meta {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 24px;
    margin: 0 auto 40px;
    max-width: 900px;
}
.hero__meta li {
    background: var(--white);
    padding: 12px 20px;
    border-radius: 16px;
    border: 1px solid var(--line);
    text-align: left;
}
.meta__label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--accent-deep);
    margin-bottom: 2px;
}
.meta__value { font-weight: 600; font-size: 15px; }

.hero__cta { margin-top: 8px; }

/* === Секции === */
.section { padding: 88px 0; }
.section--cream { background: var(--cream-deep); }
.section__title {
    font-size: clamp(28px, 3.5vw, 42px);
    text-align: center;
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.section__lead {
    max-width: 720px;
    margin: 0 auto 48px;
    text-align: center;
    color: var(--ink-soft);
    font-size: 18px;
}

/* === Программа === */
.program {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.program__item {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 28px;
}
.program__time {
    font-size: 13px;
    color: var(--accent-deep);
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.program__heading { font-size: 19px; margin-bottom: 10px; font-weight: 700; }
.program__item p { color: var(--ink-soft); font-size: 15px; }

/* === Карточки видов травм === */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}
.card {
    border-radius: 20px;
    padding: 24px;
    border: 1px solid var(--line);
    transition: transform .15s ease;
}
.card:hover { transform: translateY(-3px); }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--ink-soft); }
.card--mint  { background: var(--mint); }
.card--peach { background: var(--peach); }
.card--lilac { background: var(--lilac); }
.card--rose  { background: var(--rose); }
.card--sky   { background: var(--sky); }

/* === Юридический блок === */
.legal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.legal__item {
    background: var(--white);
    border-radius: 20px;
    padding: 28px;
    border-left: 4px solid var(--accent);
}
.legal__item h3 { font-size: 17px; margin-bottom: 10px; }
.legal__item p  { color: var(--ink-soft); font-size: 15px; }

/* === Учебное фото СЛР на манекене ===
   Реальное фото в файле emotion.png лежит рядом со styles.css.
*/
.emotion {
    min-height: 520px;
    background: url('emotion.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    padding: 24px;
}
.emotion__overlay {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(2px);
    padding: 28px 32px;
    border-radius: 20px;
    max-width: 420px;
    text-align: center;
    box-shadow: var(--shadow);
}
.emotion__quote {
    color: var(--ink);
    font-size: clamp(20px, 2.4vw, 28px);
    font-weight: 700;
    line-height: 1.3;
}

@media (max-width: 720px) {
    .emotion {
        min-height: 420px;
        justify-content: center;
        align-items: flex-end;
        padding-bottom: 32px;
    }
    .emotion__overlay { max-width: 100%; }
}

/* === Инструкторы === */
.instructors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.instructor {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 28px;
    text-align: center;
}
.instructor__avatar {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background-size: cover;
    background-position: center;
    border: 4px solid var(--cream-deep);
}
.instructor__avatar--1 { background: linear-gradient(135deg, var(--mint),  #b8dabd); }
.instructor__avatar--2 { background: linear-gradient(135deg, var(--peach), #f0b48a); }
.instructor__avatar--3 { background: linear-gradient(135deg, var(--lilac), #b9a8d9); }
.instructor__name { font-size: 20px; margin-bottom: 6px; }
.instructor__role {
    color: var(--accent-deep);
    font-weight: 600;
    margin-bottom: 14px;
    font-size: 14px;
}
.instructor__creds {
    list-style: none;
    text-align: left;
    padding: 0;
    margin: 0;
}
.instructor__creds li {
    padding: 8px 0 8px 24px;
    position: relative;
    font-size: 14px;
    color: var(--ink-soft);
    border-top: 1px solid var(--line);
}
.instructor__creds li:first-child { border-top: none; }
.instructor__creds li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 8px;
    color: var(--accent);
    font-weight: 700;
}

/* === Тарифы === */
.tariffs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    align-items: stretch;
}
.tariff {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    position: relative;
}
.tariff--featured {
    border-color: var(--accent);
    box-shadow: var(--shadow);
    transform: translateY(-6px);
}
.tariff__badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    padding: 6px 14px;
    border-radius: 999px;
}
.tariff__name  { font-size: 22px; margin-bottom: 8px; font-weight: 700; }
.tariff__price { font-size: 32px; color: var(--accent-deep); margin-bottom: 20px; font-weight: 700; }
.tariff__list {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    flex-grow: 1;
}
.tariff__list li {
    padding: 10px 0 10px 24px;
    position: relative;
    font-size: 15px;
    color: var(--ink-soft);
    border-top: 1px solid var(--line);
}
.tariff__list li:first-child { border-top: none; }
.tariff__list li::before {
    content: "•";
    position: absolute;
    left: 4px;
    top: 8px;
    color: var(--accent);
    font-size: 20px;
}

/* === Футер === */
.footer {
    background: #2d2a26;
    color: #d8d2c5;
    padding: 32px 0;
    font-size: 14px;
}
.footer__inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

/* === Модалка === */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.modal.is-open { display: flex; }
.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(45, 42, 38, 0.55);
    backdrop-filter: blur(2px);
}
.modal__dialog {
    position: relative;
    background: var(--white);
    border-radius: 24px;
    padding: 36px 32px 28px;
    max-width: 460px;
    width: 100%;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
    z-index: 1;
    animation: pop .18s ease-out;
}
@keyframes pop {
    from { transform: translateY(8px); opacity: 0; }
    to   { transform: translateY(0);   opacity: 1; }
}
.modal__close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: var(--ink-soft);
}
.modal__title { font-size: 24px; margin-bottom: 8px; font-weight: 700; }
.modal__sub   { color: var(--ink-soft); margin-bottom: 24px; font-size: 15px; }

/* === Форма === */
.form__field { display: block; margin-bottom: 16px; }
.form__label {
    display: block;
    font-size: 13px;
    color: var(--accent-deep);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 6px;
    font-weight: 600;
}
.form__input {
    width: 100%;
    padding: 13px 16px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--cream);
    font-size: 16px;
    font-family: inherit;
    color: var(--ink);
    transition: border-color .12s ease, background .12s ease;
}
.form__input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--white);
}
.form__submit { width: 100%; margin-top: 8px; }
.form__status {
    margin-top: 14px;
    font-size: 14px;
    min-height: 20px;
}
.form__status.is-ok    { color: #2c7a3b; }
.form__status.is-error { color: #b3261e; }
.form__legal {
    margin-top: 14px;
    font-size: 12px;
    color: var(--ink-soft);
    text-align: center;
}

/* === Адаптив === */
@media (max-width: 720px) {
    .hero { padding: 72px 0 56px; }
    .section { padding: 64px 0; }
    .footer__inner { flex-direction: column; }
    .tariff--featured { transform: none; }
}
