/* IS Coach — стили страниц этапа 1 (токены — в base.css) */

/* ---------------- шапка ---------------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: #fff;
    box-shadow: 0 1px 8px rgba(31,47,85,.08);
}
.header-inner {
    max-width: 1180px; margin: 0 auto; padding: 12px 24px;
    display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border: 2px solid var(--gold);
    border-radius: 8px; color: var(--navy-dark); font-weight: 700; font-size: 19px;
    background: #fffdf6;
}
.brand-name { font-weight: 700; color: var(--navy-dark); font-size: 18px; }
.menu { display: flex; gap: 22px; flex: 1; justify-content: space-evenly; margin: 0 24px; }
.menu a { color: var(--text); text-decoration: none; font-weight: 600; }
.menu a:hover { color: var(--navy); }
.header-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }

/* ---------------- hero (банер) ---------------- */
.hero {
    position: relative;
    aspect-ratio: 1.85 / 1;               /* 15.10: герой подрезан по высоте (просьба Ирины)
                                             срез сверху/снизу поровну, ось узора сохранена */
    min-height: 420px;
    background-size: 100% auto;           /* картинка всегда на всю ширину,
                                             симметрия углов сохранена */
    background-position: 50% 50%;         /* ось узора = центр секции */
    background-repeat: no-repeat;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    overflow: hidden;
}
.hero-overlay {
    position: absolute; inset: 0;
    /* затемнение только в центре, под текстом. Золото и рельеф банера по краям не глушатся */
    background: radial-gradient(ellipse 58% 74% at 50% 50%,
                rgba(7,38,34,.60) 0%, rgba(7,38,34,.26) 48%, rgba(7,38,34,0) 76%);
}
/* 15.10: диагональные надписи вплавлены в картинку банера
   (банер_надписи, рисунок Ирины) — CSS-спаны из верстки убраны. */

.hero-gold-line {
    position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 3;
    background: linear-gradient(90deg, transparent 0%, #D4AF6A 30%, #F0D080 50%, #D4AF6A 70%, transparent 100%);
}
/* 20.10: невидимая кнопка входа в админку (идея Ирины) — прозрачная зона
   на правом ромбе узора банера. Не рисуется; реагирует только курсором. */
.admin-hotspot {
    position: absolute;
    right: 2.5%;
    top: 42%;
    width: 46px;
    height: 46px;
    transform: translateY(-50%);
    border-radius: 50%;          /* зона клика — круг, в рисунок не вписана жёстко */
    cursor: pointer;
    z-index: 5;                  /* выше .hero-content (z-index:2) — иначе на
                                    узких экранах текст перекрывает зону клика */
}
@media (max-width: 720px) {
    /* на телефоне зона ближе к краю, чуть меньше палец не цепляет при скролле */
    .admin-hotspot { right: 1.5%; width: 40px; height: 40px; top: 45%; }
}
.hero-content { position: relative; z-index: 2; padding: 40px 24px 130px; max-width: 700px; width: 100%;
                 /* 15.10: блок поднят ~45px — середина «IS Coach» напротив уголков узора (Ирина) */ }
.hero-script {
    font-family: "Playfair Display", serif; font-style: italic; font-weight: 500;
    font-size: 30px; color: #f4ead2;
}
.hero-caps {
    margin-top: 10px; letter-spacing: 4px; font-weight: 700; font-size: 12px;
    color: #cfd8cf; text-transform: uppercase;
}
.hero-title {
    font-size: 84px; line-height: 1.05; font-weight: 700; margin: 14px 0 18px;
    /* объёмное золото с бегущим бликом (анимация, как на Chatium) */
    background: linear-gradient(100deg,
        #a8823c 0%, #c9962b 22%, #ffefb0 38%, #fff7d0 44%,
        #d9a94b 54%, #a8823c 70%, #c9962b 100%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gold-shimmer 4.5s ease-in-out infinite;
    filter: drop-shadow(0 3px 0 rgba(133, 101, 26, .9))
           drop-shadow(0 8px 18px rgba(0, 0, 0, .35));
}
@keyframes gold-shimmer {
    0%, 100% { background-position: 0% 0; }
    50%      { background-position: 100% 0; }
}
/* ---------------- hero: слоган (как в Chatium) ---------------- */
.hero-slogan {
    margin: 0 0 22px;
    display: flex; flex-direction: column; align-items: center; gap: 38px;   /* 15.10: 14→26→38px — Ирина: ещё шире между слоганами */
    animation: heroSloganIn 1.1s cubic-bezier(.2,.7,.2,1) both;
}
.hero-slogan-top {
    display: inline-flex; align-items: center; gap: 14px;
    font-family: "Cormorant Garamond", "Playfair Display", serif;
    font-style: italic; font-weight: 500;
    font-size: clamp(20px, 3.2vw, 34px);
    color: #F2EBDA; line-height: 1.15;
    text-shadow: 0 2px 16px rgba(0,0,0,.35);
    position: relative;
    padding: 0 clamp(28px, 6vw, 70px);
}
/* 15.10: разделительную линию под слоганом убрали (Ирина: лишняя — у акцента
   «без страха и ошибок» есть своё подчёркивание). */
.hero-slogan-italic { position: relative; white-space: nowrap; }
.hero-slogan-accent {
    position: relative; font-weight: 600; white-space: nowrap;
    background: linear-gradient(92deg, #FFE9A8 0%, #E9C46A 35%, #FFF6D5 55%, #C9974B 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
    animation: heroSloganShimmer 6s ease-in-out infinite;
}
.hero-slogan-accent::after {
    content: ''; position: absolute; left: 6%; right: 6%; bottom: -4px; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(233,196,106,.85), transparent);
    border-radius: 2px; opacity: .85;
}
.hero-slogan-deco-line {
    flex: 0 0 auto; width: clamp(28px, 6vw, 70px); height: 1px; position: relative;
    background: linear-gradient(90deg, transparent, rgba(233,196,106,.85), transparent);
}
.hero-slogan-deco-line::after {
    content: ''; position: absolute; top: 50%; left: 50%; width: 5px; height: 5px;
    border-radius: 50%; background: #E9C46A;
    box-shadow: 0 0 10px rgba(233,196,106,.9); transform: translate(-50%, -50%);
}
.hero-slogan-bottom {
    display: inline-flex; align-items: center; gap: 14px;
    font-family: "Inter", system-ui, sans-serif;
    font-size: clamp(10.5px, 1.5vw, 13px); font-weight: 600;
    color: rgba(212,232,224,.85); letter-spacing: 3.5px; text-transform: uppercase;
}
.hero-slogan-dot {
    display: inline-block; width: 4px; height: 4px; border-radius: 50%;
    background: #E9C46A; box-shadow: 0 0 8px rgba(233,196,106,.9);
}
@keyframes heroSloganShimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes heroSloganIn { 0% { opacity: 0; transform: translateY(-10px); } 100% { opacity: 1; transform: translateY(0); } }

/* ---------------- hero: заголовок IS Coach — объём, блик, искра (как в Chatium) ---------------- */
.hero-title {
    font-family: "Playfair Display", serif;
    font-size: clamp(64px, 12vw, 118px);
    font-weight: 700; margin: 0 0 6px; line-height: 1;
    letter-spacing: -2px; display: inline-flex; align-items: baseline; gap: .18em;
    position: relative;
    filter: drop-shadow(0 22px 40px rgba(0,0,0,.35));
}
.hero-title-is, .hero-title-coach { position: relative; display: inline-block; font-weight: 800; }
.hero-title-is { animation: heroTitleFloat 6s ease-in-out infinite; animation-delay: -3s; }
.hero-title-coach { letter-spacing: -3px; animation: heroTitleFloat 6s ease-in-out infinite; }
.hero-title-coach-3d {
    color: #fff; display: inline-block;
    text-shadow:
        1px 1px 0 #c89a55, 2px 2px 0 #b88a45, 3px 3px 0 #a77a36,
        4px 4px 0 #966a28, 5px 5px 0 #855b1d, 6px 6px 0 #714b14,
        7px 7px 0 #5d3d0e, 8px 8px 0 #4a300a, 9px 9px 0 #382307,
        10px 12px 24px rgba(0,0,0,.55), 0 22px 48px rgba(0,0,0,.45);
}
.hero-title-coach-front {
    position: absolute; left: 0; top: 0; width: 100%;
    background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 38%, #FFF6E2 58%, #F0D080 82%, #D4AF6A 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; pointer-events: none;
}
.hero-title-coach-shine {
    position: absolute; left: 0; top: 0; width: 100%;
    background-image: linear-gradient(110deg, transparent 38%, rgba(255,255,255,.95) 50%, transparent 62%);
    background-size: 280% 100%; background-position: 200% 0;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; pointer-events: none;
    animation: heroTitleShine 5.5s ease-in-out infinite;
}
.hero-title-spark {
    position: absolute; right: -.35em; top: -.1em; font-size: .32em; color: #F5E0A8;
    -webkit-text-fill-color: #F5E0A8;
    filter: drop-shadow(0 0 8px rgba(245,224,168,.9));
    display: inline-block; transform-origin: center; z-index: 4;
    animation: heroTitleSparkle 2.6s ease-in-out infinite;
}
.hero-gold-underline {
    width: 100px; height: 2px; margin: 12px auto 24px; border-radius: 2px;
    background: linear-gradient(90deg, transparent, #D4AF6A, #F0D080, #D4AF6A, transparent);
}
@keyframes heroTitleShine { 0%, 55% { background-position: 220% 0; } 100% { background-position: -120% 0; } }
@keyframes heroTitleSparkle {
    0%, 100% { opacity: .35; transform: scale(.75) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.25) rotate(180deg); }
}
@keyframes heroTitleFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.hero-subtitle {
    font-family: "Inter", system-ui, sans-serif;
    font-size: clamp(15px, 2.5vw, 19px); color: rgba(255,255,255,.85);
    margin: 0; line-height: 1.6; font-weight: 400;
    text-shadow: 0 2px 12px rgba(0,0,0,.35);
}
@media (prefers-reduced-motion: reduce) {
    .hero-slogan, .hero-title-is, .hero-title-coach,
    .hero-title-coach-shine, .hero-title-spark, .hero-slogan-accent { animation: none; }
}
.hero-sub { color: #fff; font-size: 17px; max-width: 640px; margin: 0 auto; }

/* ---------------- общие секции ---------------- */
.section { max-width: 1180px; margin: 0 auto; padding: 56px 24px; }
.page-wrap { max-width: 1180px; margin: 0 auto; padding: 40px 24px 80px; }
.page-wrap.narrow { max-width: 720px; }
.page-title { font-size: 40px; margin: 6px 0 24px; }
.caps-sub {
    text-transform: uppercase; letter-spacing: 2.5px; font-size: 12px;
    font-weight: 700; color: var(--mint-deep); margin: 0 0 6px;
}
.section-heading { font-size: 34px; margin: 0 0 10px; font-weight: 700; }
.accent-green { color: var(--mint-deep); }
.underline-wave { text-decoration: underline wavy var(--gold) 2px; text-underline-offset: 8px; }
.empty-note { color: var(--text-muted); }

/* «Обо мне» */
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
.about-subtitle { color: var(--text-muted); margin-top: 4px; }
.about-text p { margin: 0 0 12px; }
.about-photo { margin: 0; padding: 14px; text-align: center; }
.about-photo img { width: 100%; border-radius: 8px; display: block; }
.about-photo figcaption { display: inline-block; margin-top: 10px; }

/* карточки курсов */
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

.glow-card {
    position: relative;
    background: #fff;
    border-radius: 14px !important;
    overflow: visible !important;
}
.glow-card::before {
    content: '';
    position: absolute; inset: -1.5px;
    border-radius: 16px;
    padding: 1.5px;
    background: conic-gradient(from var(--ang),
        #e8c877, #d9a94b 30%, #b9a8f0 55%, #7dcf9f 80%, #e8c877);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    animation: glow-spin 7s linear infinite;
    pointer-events: none;
}
.glow-card::after {
    content: '';
    position: absolute; inset: -8px;
    border-radius: 20px;
    box-shadow: 0 0 20px 2px rgba(217,169,75,.35);
    animation: glow-pulse 3.2s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}
@keyframes glow-spin { to { --ang: 360deg; } }
@keyframes glow-pulse {
    50% { box-shadow: 0 0 30px 5px rgba(217,169,75,.55); }
}
.cover-float {
    height: 96% !important; width: auto !important;
    object-fit: contain;
    margin: -34px auto 0;
    display: block;
    mix-blend-mode: multiply;           /* белый фон иллюстрации растворяется в фоне карточки */
    filter: none;
    animation: cover-bob 5.5s ease-in-out infinite;
}
@keyframes cover-bob {
    50% { transform: translateY(-7px); }
}
@media (prefers-reduced-motion: reduce) {
    .glow-card::before, .glow-card::after, .cover-float { animation: none; }
}

.trainings-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.course-card { overflow: hidden; display: flex; flex-direction: column; }
.course-cover { position: relative; height: 170px; background: linear-gradient(120deg, #d8efe3, #eef7e9); }
.course-cover img { width: 100%; height: 100%; object-fit: cover; }
.course-cover-fallback {
    height: 100%; display: flex; align-items: center; justify-content: center;
    font-size: 64px; font-weight: 800; color: rgba(36,53,110,.25);
}
.cover-badge { position: absolute; top: 12px; left: 12px; }
.course-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.course-title { font-size: 21px; margin: 0; }
.course-desc { color: var(--text-muted); font-size: 14px; margin: 0; flex: 1; }
.course-meta { display: flex; gap: 14px; color: var(--text-muted); font-size: 13px; }

.course-buy {
    display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid #edf1f6; padding-top: 14px; gap: 10px;
}
.price { font-weight: 700; color: var(--navy-dark); font-size: 16px; }
.price.big { font-size: 22px; }
.old-price { color: var(--gold); margin-right: 6px; }

/* страница курса */
.crumbs { max-width: 1180px; margin: 0 auto; padding: 16px 24px 0; color: var(--text-muted); font-size: 14px; }
.crumbs a { color: var(--link); text-decoration: none; }
.course-hero { background: linear-gradient(135deg, #8a7ff0 0%, #5b4bc4 100%); color: #fff; }
.course-hero-inner {
    max-width: 1180px; margin: 0 auto; padding: 48px 24px 40px;
    display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px;
}
.course-hero-left h1 { color: #fff; font-size: 34px; margin: 0 0 12px; }
.course-hero-sub { color: #e7e4ff; }
.course-hero-meta { display: flex; gap: 18px; margin-top: 22px; color: #e7e4ff; }
.buy-plate { padding: 20px 22px; background: #fff; color: var(--text); }
.btn-buy {
    display: block; width: 100%; box-sizing: border-box; margin: 12px 0;
    background: linear-gradient(135deg, #8a7ff0, #5b4bc4); color: #fff;
    font-weight: 700; padding: 12px 18px;
}
.buy-plate .buy-price { display: flex; align-items: baseline; gap: 8px; }
.buy-list { list-style: none; margin: 0; padding: 0; color: var(--text-muted); font-size: 14px; }
.buy-list li { margin: 6px 0; }

.program-title { margin-bottom: 20px; }
.program-module { padding: 16px 20px; margin-bottom: 14px; }
.module-head { display: flex; gap: 12px; align-items: start; }
.module-num {
    width: 28px; height: 28px; min-width: 28px; border-radius: 50%;
    background: var(--navy-dark); color: #fff; display: inline-flex;
    align-items: center; justify-content: center; font-weight: 700;
}
.module-count { margin-left: 10px; color: var(--text-muted); font-size: 13px; }
.lesson-list { list-style: none; margin: 12px 0 0; padding: 0 0 0 40px; }
.lesson-list li {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 8px; border-bottom: 1px solid #edf1f6; flex-wrap: wrap;
}
.lesson-list li:last-child { border-bottom: none; }
.lesson-num {
    min-width: 34px; border-radius: 6px; background: var(--navy-dark);
    color: #fff; font-size: 12px; font-weight: 700; padding: 2px 7px; text-align: center;
}
.lesson-name { color: var(--link); text-decoration: none; font-weight: 600; flex: 1; min-width: 200px; }
.lesson-meta { color: var(--text-muted); font-size: 13px; }

/* отзывы */
.reviews-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
.rating-card { padding: 14px 20px; display: flex; gap: 12px; align-items: center; }
.rating-avg { font-size: 26px; font-weight: 800; color: var(--navy-dark); }
.stars.gold, .stars .star.filled { color: var(--gold-strong); }
.reviews-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-bottom: 24px; }
.review-card { padding: 18px 20px; }
.review-card footer { color: var(--text-muted); font-size: 13px; margin-top: 10px; }
.review-form { padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.review-form h3 { margin: 0; }
.hint { color: var(--text-muted); font-size: 13px; }
.review-form input[type="text"], .review-form textarea, .order-form input, .order-form select {
    width: 100%; box-sizing: border-box; padding: 10px 12px;
    border: 1px solid #d6dbe8; border-radius: 8px; font: inherit; background: #fafbfe;
}
.stars-input { display: flex; gap: 4px; }
.stars-input .star { font-size: 24px; background: none; border: none; cursor: pointer; color: var(--gold-strong); }
.consent { font-size: 13px; color: var(--text-muted); display: flex; gap: 8px; align-items: flex-start; }
.consent a { color: var(--link); }
.review-form .btn, .order-form .btn { align-self: flex-start; }

/* почему выбирают */
.why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; margin-top: 22px; }
.why-card { padding: 18px 20px; }
.why-ico {
    width: 42px; height: 42px; border-radius: 10px; display: inline-flex;
    align-items: center; justify-content: center; font-size: 20px; margin-bottom: 10px;
    color: #fff;
}
.i-teal { background: #35b8b8; } .i-gold { background: var(--gold-strong); }
.i-green { background: #3f9d6d; } .i-blue { background: #3e6bd6; }
.i-orange { background: #d98a2b; } .i-violet { background: #8a6bd8; }
.i-pink { background: #d8578f; }
.why-card b { display: block; margin-bottom: 4px; color: var(--navy-dark); }
.why-card p { margin: 0; color: var(--text-muted); font-size: 13px; }

/* CTA */
.cta-strip {
    background: var(--navy-dark); color: #fff; text-align: center;
    padding: 52px 24px;
}
.cta-strip h2 { color: #fff; font-size: 30px; margin: 0 0 8px; }
.cta-strip p { color: #b9c4de; margin: 0 0 20px; }
.ghost-on-dark { background: #fff; color: var(--navy-dark); font-weight: 700; padding: 12px 22px; }

/* футер */
.site-footer { background: #1e2f4d; color: #c3cde2; margin-top: 40px; }
.footer-inner {
    max-width: 1180px; margin: 0 auto; padding: 40px 24px 24px;
    display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px;
}
.footer-brand-name { color: #fff; font-weight: 700; margin-bottom: 12px; }
.footer-brand .brand-mark { width: 38px; height: 38px; font-size: 17px; background: #fffdf6; border-color: var(--gold); }
.footer-requisites { margin: 0 0 6px; font-size: 13px; }
.footer-col h4 { color: #fff; margin: 4px 0 12px; font-size: 15px; }
.footer-col a, .footer-col p { display: block; color: #c3cde2; text-decoration: none; margin: 0 0 8px; font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
    max-width: 1180px; margin: 0 auto; padding: 14px 24px 20px;
    border-top: 1px solid #2c3f63; display: flex; justify-content: space-between;
    gap: 16px; flex-wrap: wrap; font-size: 13px;
}
.footer-bottom a { color: #c3cde2; text-decoration: none; }
.footer-secure { color: #8fd6ae; }

/* каталог */
.catalog-tools { display: flex; gap: 14px; max-width: 520px; margin-bottom: 24px; }
.catalog-tools input, .catalog-tools select {
    flex: 1; padding: 10px 12px; border: 1px solid #d6dbe8; border-radius: 8px; font: inherit;
}

/* приватность */
.privacy-wrap { max-width: 880px; margin: 0 auto; padding: 44px 24px 80px; }
.privacy-title { font-size: 38px; color: #1B3A6B; margin: 0 0 8px; }
.updated { color: #6b7280; font-size: 14px; margin: 0 0 30px; }
.privacy-section { padding: 22px 26px; margin-bottom: 14px; }
.privacy-section h2 { font-size: 19px; color: #1B3A6B; margin: 0 0 10px; }
.privacy-section p { font-size: 15px; line-height: 1.7; margin: 0 0 10px; }
.privacy-section ul { padding-left: 22px; font-size: 15px; line-height: 1.7; margin: 0 0 10px; }

/* заявка */
.order-form { padding: 24px 26px; display: flex; flex-direction: column; gap: 14px; }
.order-form .btn { align-self: flex-start; }
.ok-state { padding: 36px; text-align: center; }
.ok-state .page-title { margin-bottom: 10px; }
.webinar-card { padding: 20px 22px; }

@media (max-width: 900px) {
    .about-grid, .course-hero-inner, .footer-inner { grid-template-columns: 1fr; }
    .hero-title { font-size: 54px; }
    .trainings-head { flex-direction: column; align-items: flex-start; }
    .header-inner { flex-wrap: wrap; }
    .menu { order: 3; width: 100%; }
}