/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(90deg, #021F3F 0%, #024873 50%, #0288D1 100%);
    color: #fff;
    font-family: 'Arial', sans-serif;
    overflow-x: hidden;
    position: relative;
    scroll-behavior: smooth!important;
}

/*при скролле делает отступ на высоту хедера*/
section, div[id] {
    scroll-margin-top: 80px;
}

/* =========================
   HEADER
   ========================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: linear-gradient(90deg, #021F3F 0%, #024873 50%, #0288D1 100%);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    color: #fff;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.logo-header-img {
    width: 60px;
    height: 60px;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}

nav a:hover {
    color: #FF3E79;
    cursor: pointer;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background: #fff;
}

.contact-link-header {
    padding: 10px 20px;
    font-size: 1rem;
    background: #FF3E79;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.contact-link-header:hover { background: #cf285a; }

.header-tg-mobile {
    display: none;
    text-decoration: none;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
}

/* =========================
   FLOATING PRICE HINT
   ========================= */
.price-float-hint {
    position: fixed;
    top: 96px;
    right: 22px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 164px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background:
            radial-gradient(120px 60px at 20% 0%, rgba(255, 62, 121, 0.20) 0%, rgba(255, 62, 121, 0) 68%),
            linear-gradient(135deg, rgba(6, 66, 107, 0.94) 0%, rgba(9, 109, 168, 0.94) 100%);
    box-shadow:
            0 14px 28px rgba(0, 0, 0, 0.30),
            0 0 0 1px rgba(255, 255, 255, 0.10) inset;
    opacity: 0;
    transform: translateY(-14px) scale(0.96);
    pointer-events: none;
}

.price-float-hint::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(110deg, rgba(255,255,255,0) 20%, rgba(255,255,255,0.24) 52%, rgba(255,255,255,0) 84%);
    transform: translateX(-130%);
}

.price-float-hint.is-visible {
    animation: priceHintIn 760ms cubic-bezier(.2, .8, .2, 1) forwards;
}

.price-float-hint.is-visible::after {
    animation: priceHintShine 1300ms ease-out 180ms 1 forwards;
}

.price-float-hint.is-exit {
    animation: priceHintOut 560ms cubic-bezier(.4, 0, .6, 1) forwards;
}

.price-float-hint-label {
    font-family: "Manrope", "Arial", sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.88;
}

.price-float-hint-value {
    font-family: "Manrope", "Arial", sans-serif;
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}

@keyframes priceHintIn {
    0% {
        opacity: 0;
        transform: translateY(-14px) scale(0.96);
    }
    60% {
        opacity: 1;
        transform: translateY(2px) scale(1.01);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes priceHintShine {
    to { transform: translateX(130%); }
}

@keyframes priceHintOut {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
    }
}

/* =========================
   HERO SECTION
   ========================= */
.welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    height: 100vh;
    text-align: center;
    padding: 68px 20px 20px 20px;
}

.welcome-title {
    font-size: 48px;
    font-weight: 700;
    margin-top: 45px;
}

.contact-link-main {
    padding: 10px 20px;
    font-size: 2rem;
    background: #FF3E79;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.contact-link-main:hover { background: #cf285a; }

.welcome-title-2 { font-size: 36px; }
.welcome-title-3 { font-size: 28px; }
.welcome-title-4 { font-size: 28px; }

.welcome-image { width: 300px; }

.welcome-scroll p { margin-bottom: 20px; }

/* =========================
   CAREER TRACK
   ========================= */
.career-track {
    padding: 30px 20px;
    text-align: center;
}

.track-title {
    font-size: 36px;
    margin-bottom: 40px;
}

.track-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 200px;
}

.step img {
    width: 200px;
    height: 200px;
    border-radius: 10px;
    object-fit: contain;
    margin-bottom: 15px;
}

.step p { font-size: 18px; }

.track-arrow {
    font-size: 40px;
    color: #ff416c;
}

/* =========================
   COURSE PRICE (Premium block)
   ========================= */
.course-price{
    padding: 52px 20px 24px;
    display: flex;
    justify-content: center;
}

.course-price-inner{
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 980px;
    border-radius: 24px;
    padding: 38px 28px 34px;
    text-align: center;
    position: relative;
    overflow: hidden; 
    background:
            radial-gradient(900px 460px at 10% 0%, rgba(255, 62, 121, 0.13) 0%, rgba(255, 62, 121, 0) 58%),
            radial-gradient(900px 420px at 100% 100%, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0) 60%),
            linear-gradient(120deg, #08325A 0%, #0A4C7F 48%, #0B689E 100%);
    border: 1px solid rgba(255,255,255,.2);
    box-shadow:
            0 24px 58px rgba(0,0,0,.34),
            inset 0 1px 0 rgba(255,255,255,.18);
}

.course-price-inner::before{
    content:"";
    position:absolute;
    inset: 0;
    background:
            linear-gradient(180deg, rgba(255,255,255,.1) 0%, rgba(255,255,255,0) 44%);
    pointer-events:none;
}

.course-price-badge {
    position: relative;
    z-index: 1;
    width: fit-content;
    margin: 0 auto 14px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.28);
    background: rgba(255,255,255,.12);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.course-price-top{
    position: relative;
    z-index: 1;
    font-size: 44px;
    line-height: 1.08;
    font-weight: 900;
    margin-bottom: 10px;
}

.course-price-subtitle {
    position: relative;
    z-index: 1;
    font-size: 19px;
    line-height: 1.4;
    opacity: .92;
    margin-bottom: 26px;
}

.course-price-mid{
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
    justify-content: center;
    gap: 28px;
    margin: 0 auto 22px;
}

.course-price-current{
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    font-family: "Manrope", "Arial", sans-serif;
    font-size: 82px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums lining-nums;
    text-shadow: 0 10px 34px rgba(0,0,0,.26);
}

.course-price-amount {
    letter-spacing: -0.015em;
}

.course-price-currency {
    font-size: 0.86em;
    font-weight: 700;
    opacity: .94;
}

.course-price-old{
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    border-radius: 10px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.16);
}

.course-price-old-value{
    font-family: "Manrope", "Arial", sans-serif;
    font-size: 26px;
    font-weight: 700;
    opacity: .66;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums lining-nums;
    position: relative;
}

.course-price-old-value::after{
    content:"";
    position:absolute;
    left:-4px;
    right:-4px;
    top: 50%;
    height: 3px;
    border-radius: 999px;
    background: rgba(255,62,121,.95);
    transform: rotate(-6deg);
}

.course-price-benefits {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.course-price-benefit {
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.26);
    background: rgba(255,255,255,.1);
    font-size: 14px;
    font-weight: 700;
}

.course-price-cta{
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 16px 24px;
    border-radius: 14px;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0;

    box-shadow:
            0 14px 32px rgba(0,0,0,.36),
            0 8px 24px rgba(255,62,121,.24);
    transform: translateZ(0);
}

.course-price-cta:hover{
    transform: translateY(-1px);
}

.course-price-cta:active{
    transform: translateY(0);
}

/* ====== Responsive ====== */
@media (max-width: 1150px){
    .course-price-inner{
        padding: 30px 18px 30px;
        border-radius: 22px;
    }
    .course-price-badge {
        font-size: 12px;
    }
    .course-price-top{
        font-size: 36px;
    }
    .course-price-subtitle {
        font-size: 17px;
        margin-bottom: 18px;
    }
    .course-price-current{
        font-size: 68px;
    }
    .course-price-currency {
        font-size: 0.83em;
    }
    .course-price-old-value{
        font-size: 22px;
    }
    .course-price-benefit {
        font-size: 13px;
    }
    .course-price-cta{
        max-width: 460px;
        font-size: 21px;
        padding: 14px 20px;
        border-radius: 14px;
    }
}

@media (max-width: 768px){
    .course-price{
        padding: 28px 14px 12px;
    }
    .course-price-inner{
        padding: 26px 14px 24px;
        border-radius: 18px;
    }
    .course-price-badge {
        margin-bottom: 10px;
    }
    .course-price-top{
        font-size: 30px;
    }
    .course-price-subtitle {
        font-size: 16px;
        margin-bottom: 16px;
    }
    .course-price-mid{
        gap: 12px;
        margin-bottom: 14px;
        flex-direction: column;
        align-items: center;
    }
    .course-price-current{
        font-size: 52px;
    }
    .course-price-currency {
        font-size: 0.8em;
    }
    .course-price-old{
        padding: 8px 12px;
    }
    .course-price-old-value{
        font-size: 18px;
    }
    .course-price-old-value::after{
        height: 3px;
    }
    .course-price-benefits {
        margin-bottom: 16px;
    }
    .course-price-benefit {
        width: 100%;
        font-size: 14px;
    }
    .course-price-cta{
        width: 100%;
        font-size: 18px;
        padding: 14px 18px;
    }
}

/* =========================
   WHY US
   ========================= */
.why-us {
    padding: 30px 20px;
    text-align: center;
}

.why-us-title {
    font-size: 36px;
    margin-bottom: 40px;
}

.why-us-benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.benefit {
    background: #2E2E2E;
    padding: 20px;
    border-radius: 12px;
    width: 300px;
    text-align: left;
}

.benefit h3 {
    text-align: center;
    font-size: 20px;
    margin-bottom: 10px;
}

.benefit p {
    font-size: 16px;
    color: #ccc;
    line-height: 1.5;
    text-align: center;
}

/* =========================
   FREE START
   ========================= */
.free-start {
    max-width: 70%;
    padding: 30px 60px;
    color: #fff;
    margin: 0 auto;
}

.free-start h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
}

.free-start p {
    text-align: center;
    margin-bottom: 28px;
    font-size: 24px;
}

.free-start strong {
    color: #ff416c;
    font-weight: 600;
}

.free-lessons-toggle {
    display: block;
    margin: 28px auto 0;
    padding: 12px 22px;
    border: 0;
    border-radius: 12px;
    background: #FF3E79;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.free-lessons-toggle:hover {
    background: #cf285a;
    transform: translateY(-1px);
}

.free-lessons-videos {
    margin-top: 22px;
}

.free-lessons-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.free-lesson-card {
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    padding: 10px;
}

.free-lesson-card iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 10px;
}

.free-lesson-caption {
    margin-top: 10px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

/* =========================
   INTRO EPIC
   ========================= */
.intro-epic {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.epic-logo {
    font-size: 9vw;
    font-weight: 700;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 5px;
    text-shadow: 0 0 100px #FF3E79;
    will-change: transform, opacity;
    margin-left: 20px;
}

/* =========================
   COURSE PROGRAM
   ========================= */
.course-program {
    padding: 70px 20px 30px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.course-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
}

.course-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.course-item {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    font-size: 20px;
    font-weight: 500;
    color: #2E2E2E;
    box-shadow: 0 4px 12px #2E2E2E;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px #2E2E2E;
}

/* =========================
   AUTHORS
   ========================= */
.authors {
    text-align: center;
    padding: 30px 20px;
}

.authors-title {
    font-size: 36px;
    margin-bottom: 40px;
    font-weight: 700;
}

.authors-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
}

.authors-photos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.author-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 200px;
}

.author-photo {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

.author-name {
    font-size: 22px;
    font-weight: 600;
}

.author-role {
    font-size: 14px;
}

.authors-description {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
}

/* =========================
   CTA BUTTON
   ========================= */
.take-course {
    padding: 30px 30px 0px 30px;
    text-align: center;
}

.take-course-button {
    padding: 15px 30px;
    font-size: 2rem;
    background: #FF3E79;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
}

.take-course-button:hover { background: #cf285a; }

/* =========================
   CONTACT US
   ========================= */
.contact-us {
    padding: 40px 40px 20px 40px;
    text-align: center;
}

.contact-title {
    margin-bottom: 40px;
}

.contact-title a { color: #FF3E79; }

.contact-us h2 {
    margin-bottom: 20px;
}

/* =========================
   A D A P T I V E
   ========================= */

/* --- 1150px --- */
@media (max-width: 1150px) {
    .logo { font-size: 18px; }
    .logo-header-img { width: 40px; height: 40px; }

    nav a { font-size: 14px; }

    .contact-link-header {
        display: none;
        font-size: 12px;
        padding: 3px 6px;
        max-width: 80px;
    }

    .welcome-title { font-size: 28px; }
    .contact-link-main { font-size: 18px; }
    .welcome-title-2 { font-size: 24px; }
    .welcome-title-3 { font-size: 22px; }
    .welcome-title-4 { font-size: 20px; }
    .welcome-image { width: 200px; }

    .free-start {
        max-width: 90%;
        padding: 30px 10px;
    }

    .free-start h2 { font-size: 28px; }
    .free-start p { font-size: 20px; }
    .free-lessons-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .intro-epic { display: none; }
    .course-program { padding-top: 30px; }

    .price-float-hint {
        top: 86px;
        right: 14px;
        min-width: 146px;
        padding: 10px 12px;
    }
    .price-float-hint-value {
        font-size: 24px;
    }
}

/* --- 768px --- */
@media (max-width: 768px) {
    nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 20px;
        background: #021F3F;
        padding: 10px;
        gap: 10px;
        border-radius: 10px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    }

    nav.active {
        display: flex;
        background: linear-gradient(90deg, #064f7c 0%, #0288D1 100%);
    }

    .burger { display: flex; }

    .header-tg-mobile {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 6px 12px;
        border-radius: 999px;
        background: rgba(3, 44, 87, 0.9);
        border: 1px solid rgba(255, 255, 255, 0.25);
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    }

    .header-tg-mobile i {
        font-size: 18px;
        color: #2AABEE;
    }

    .header-tg-mobile span {
        font-size: 14px;
    }

    #menu .tg-bot { display: none; }

    .track-steps { flex-direction: column; }
    .track-arrow { transform: rotate(90deg); }

    .welcome-title { margin-top: 0; }

    .price-float-hint {
        top: auto;
        right: 10px;
        bottom: 12px;
        min-width: 136px;
        padding: 9px 10px;
        border-radius: 12px;
    }
    .price-float-hint-label {
        font-size: 11px;
    }
    .price-float-hint-value {
        font-size: 22px;
    }

    .free-lessons-grid {
        grid-template-columns: 1fr;
    }
    .free-lessons-toggle {
        font-size: 16px;
        width: 100%;
    }

    /* price mobile tune */
    .course-price-inner {
        padding: 18px 14px;
        border-radius: 16px;
    }

    .course-price-title { font-size: 22px; }

    .course-price-now { font-size: 38px; }

    .course-price-old { font-size: 18px; }

    .course-price-btn {
        width: 100%;
        font-size: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .price-float-hint,
    .price-float-hint::after,
    .price-float-hint.is-visible,
    .price-float-hint.is-exit {
        animation: none !important;
    }
}

/* =========================
   PRICE TIMER CSS (kept, disabled)
   НЕ УДАЛЯТЬ — вернёшь потом.
   ========================= */
/*
.price-timer { ... }
.countdown { ... }
... (весь твой код таймера можешь держать тут закомментированным)
*/

/* =========================
   GAME CSS (kept, disabled)
   НЕ УДАЛЯТЬ — вернёшь потом.
   ========================= */
/*
.game-cta { ... }
.game-modal { ... }
... (весь твой код игры можешь держать тут закомментированным)
*/
