/* style.css — реконструкция оригинального стиля stomformula.ru (лидген-лендинг
   «Федеральный агрегатор лучших предложений в сфере красоты и медицины»).
   Оригинальный CSS не сохранился в архивах. Восстановлено по структуре HTML
   и брендовой палитре #990038 → #F6667F, видной в inline SVG-градиенте. */

/* === Reset === */
* { box-sizing: border-box; margin: 0; padding: 0; }
img, svg { max-width: 100%; display: block; }
button { cursor: pointer; font: inherit; border: 0; background: none; }
a { color: inherit; text-decoration: none; }

:root {
    --brand-dark: #990038;
    --brand-light: #F6667F;
    --text: #1f1f1f;
    --muted: #555;
    --bg: #ffffff;
    --bg-soft: #faf3f5;
    --radius: 10px;
    --shadow: 0 8px 28px rgba(153, 0, 56, 0.12);
}

html, body { background: var(--bg); color: var(--text); line-height: 1.45; }

.wrapper { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.flex    { display: flex; gap: 24px; flex-wrap: wrap; }
.aic     { align-items: center; }

/* === Top bar === */
#top {
    background: #fff;
    border-bottom: 1px solid #f0e7ea;
    padding: 14px 0;
    position: sticky; top: 0; z-index: 50;
}
#top .flex { justify-content: space-between; flex-wrap: nowrap; }
#top .logo img { height: 44px; width: auto; }
#top .price {
    font-size: 14px; color: var(--muted); line-height: 1.2;
    gap: 10px; flex-wrap: nowrap;
}
#top .price svg { flex-shrink: 0; }

/* === Button === */
.button {
    background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-light) 100%);
    color: #fff;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.2px;
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
    box-shadow: var(--shadow);
}
.button:hover  { transform: translateY(-1px); filter: brightness(1.05); }
.button:active { transform: translateY(0); }

/* === Header / hero === */
#header {
    padding: 56px 0 80px;
    background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%);
}
#header .wrapper.flex { gap: 48px; align-items: center; }
#header .left  { flex: 1 1 520px; max-width: 640px; }
#header .right { flex: 1 1 360px; position: relative; text-align: center; }

.promo-header h1 {
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 18px;
    color: var(--text);
}
.promo-header h1::after {
    content: '';
    display: block;
    width: 72px; height: 4px;
    margin-top: 16px;
    background: linear-gradient(90deg, var(--brand-dark), var(--brand-light));
    border-radius: 2px;
}
.promo-header p {
    font-size: 18px; color: var(--muted); margin-bottom: 28px;
}

.dop {
    position: relative;
    color: #fff;
    font-weight: 600;
    font-size: 18px;
    margin: 28px 0;
    line-height: 1;
    display: flex;
    align-items: center;
    min-height: 64px;
}
.dop {
    position: relative;
    overflow: hidden;
    display: inline-block;
    border-radius: 4px;
    margin-bottom: 8px;
}
.dop svg {
    position: absolute; inset: 0;
    width: 100%; height: 100%; z-index: 0;
}
.dop > span {
    color: #ffffff;
    font-weight: 600;
    position: relative;
    z-index: 1;
}
.dop > span,
.dop {
    padding: 14px 110px 14px 24px; /* отступ под "уголок" SVG справа */
}

.action {
    font-size: 16px; color: var(--text); margin-bottom: 18px;
}

/* Right column — врач + бейдж */
#header .right img { margin: 0 auto; max-width: 340px; }
.doc-info {
    position: absolute;
    bottom: 16px; right: 8px;
    background: #fff;
    padding: 14px 20px;
    border-radius: 14px;
    box-shadow: var(--shadow);
    text-align: left;
    min-width: 200px;
}
.years {
    font-size: 32px; font-weight: 800;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand-light));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.spec { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* === Bonus (закомментирован в HTML, но стили на случай раскомменчивания) === */
.bonus { gap: 18px; align-items: flex-start; margin-top: 20px; }
.bonus > div { background: #fff; padding: 14px; border-radius: 10px; box-shadow: var(--shadow); text-align: center; }
.bonus img { width: 64px; height: 64px; object-fit: contain; margin: 0 auto 8px; }

/* === Modal === */
.modal {
    display: none;
    position: fixed; inset: 0;
    background: rgba(31, 31, 31, 0.55);
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal.open { display: flex; }
.modal-content {
    background: #fff;
    border-radius: 14px;
    padding: 32px 28px 28px;
    width: 100%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}
.modal-content p { font-size: 19px; font-weight: 700; margin-bottom: 18px; }
.modal .close {
    position: absolute; top: 10px; right: 16px;
    font-size: 28px; line-height: 1;
    color: #999; cursor: pointer;
}
.modal .close:hover { color: var(--brand-dark); }

.form-phone input {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 1.5px solid #e2dadd;
    border-radius: 10px;
    margin-bottom: 12px;
    transition: border-color .15s ease;
}
.form-phone input:focus { outline: none; border-color: var(--brand-dark); }
.form-phone button {
    width: 100%;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand-light));
    color: #fff;
    padding: 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
}

/* === Footer заглушка === */
footer.recovered-note {
    text-align: center;
    padding: 18px;
    background: #1f1f1f;
    color: #aaa;
    font-size: 13px;
    margin-top: 40px;
}
footer.recovered-note a { color: var(--brand-light); }
