/* RGNH Sports — bosh sahifa. Tokenlar va umumiy bloklar: rgnh-site.css */

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(40px, 6vw, 88px) clamp(48px, 6vw, 80px); overflow: hidden; }
.hero::before {
    content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
    background: radial-gradient(closest-side, rgba(124, 58, 237, .35), rgba(124, 58, 237, 0) 70%);
    pointer-events: none;
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero__title { font-size: clamp(2.8rem, 6.6vw, 5.6rem); line-height: 1.02; letter-spacing: -.035em; max-width: 11ch; }
.hero__title em { font-style: italic; font-weight: 400; background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .08em; }
.hero__lead { margin-top: 24px; max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__note {
    display: flex; align-items: flex-start; gap: 14px;
    margin-top: 36px; padding-top: 24px; max-width: 480px;
    border-top: 1px solid var(--line);
    font-size: .95rem; color: var(--muted);
}
.hero__note .ic { width: 26px; height: 26px; color: var(--success); margin-top: 1px; }
.hero__note strong { display: block; color: var(--ink); font-weight: 600; }

.hero__media { position: relative; aspect-ratio: 5 / 5.4; }
.hero__photo { position: absolute; margin: 0; overflow: hidden; background: var(--bg-2); box-shadow: var(--shadow-lg); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo--main { inset: 0 0 14% 12%; border-radius: 240px 240px var(--r-lg) var(--r-lg); }
.hero__photo--main img { object-position: 45% 30%; }
.hero__photo--side { left: 0; bottom: 0; width: 42%; aspect-ratio: 3 / 4; border-radius: var(--r-lg); border: 6px solid var(--bg); }
.hero__photo--side img { object-position: 50% 20%; }
.hero__ribbon { position: absolute; inset: auto -8% 6% -14%; width: 125%; pointer-events: none; z-index: 2; }
.hero__ribbon path { stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: ic-draw 2.6s var(--ease) .5s forwards; }
html:not(.js) .hero__ribbon path { stroke-dashoffset: 0; }

.hero__metrics {
    display: grid; grid-template-columns: repeat(3, 1fr);
    margin: clamp(48px, 7vw, 88px) 0 0; padding: 0;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.hero__metrics > div { display: flex; flex-direction: column-reverse; gap: 4px; padding: 24px clamp(12px, 3vw, 32px); }
.hero__metrics > div + div { border-left: 1px solid var(--line); }
.hero__metrics dt { font-size: .86rem; color: var(--muted); }
.hero__metrics dd { margin: 0; font-family: var(--serif); font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1; letter-spacing: -.02em; }

@media (max-width: 900px) {
    .hero__grid { grid-template-columns: 1fr; }
    .hero__media { max-width: 520px; width: 100%; margin-inline: auto; }
}
@media (max-width: 480px) {
    .hero__actions .btn { width: 100%; }
    .hero__metrics > div { padding-inline: 10px; }
    .hero__metrics dt { font-size: .78rem; }
}

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.icon-tile {
    padding: 32px 28px; border-radius: var(--r-md);
    background: var(--surface); border: 1px solid var(--line);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.icon-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.icon-tile__icon { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 28px; border-radius: 18px; background: var(--accent-soft); color: var(--accent-ink); }
.icon-tile__icon .bi { font-size: 26px; }
.icon-tile h3 { margin-bottom: 10px; }
.icon-tile p { color: var(--muted); font-size: .97rem; }
@media (max-width: 1000px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- Programs ---------- */
.programs { position: relative; overflow: hidden; }
.programs::after {
    content: ""; position: absolute; right: -20%; bottom: -40%; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
    background: radial-gradient(closest-side, rgba(124, 58, 237, .16), transparent 70%); pointer-events: none;
}
.programs__grid { position: relative; z-index: 1; display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.programs__head { position: sticky; top: calc(var(--nav-h) + 32px); }
.programs__head .section-head { margin-bottom: 32px; }
.programs__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.program-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.program {
    display: grid; grid-template-columns: 72px 1fr; gap: 20px;
    padding: 30px 0; border-bottom: 1px solid rgba(255, 255, 255, .14);
    transition: padding-left .35s var(--ease);
}
.program:hover { padding-left: 10px; }
.program__num { font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--accent-light); font-variant-numeric: lining-nums; }
.program h3 { font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 1.75rem); font-weight: 500; letter-spacing: -.015em; margin-bottom: 8px; }
.program p { color: var(--on-night-muted); max-width: 56ch; }
@media (max-width: 900px) {
    .programs__grid { grid-template-columns: 1fr; }
    .programs__head { position: static; }
}
@media (max-width: 480px) { .program { grid-template-columns: 1fr; gap: 10px; } .programs__actions .btn { width: 100%; } }

/* ---------- Video ---------- */
.video__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.video__frame { border-radius: var(--r-lg); overflow: hidden; background: var(--night); box-shadow: var(--shadow-lg); aspect-ratio: 16 / 10; }
.video__play { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: var(--night); }
.video__play img, .video__play video { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: transform .8s var(--ease), opacity .4s; }
.video__play:hover img, .video__play:hover video { transform: scale(1.03); opacity: 1; }
.video__button {
    position: absolute; left: 50%; top: 50%; translate: -50% -50%;
    display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%;
    background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: 0 10px 40px rgba(0, 0, 0, .3);
    transition: transform .3s var(--ease);
}
.video__button::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); animation: pulse 2.4s var(--ease) infinite; }
.video__button .ic { width: 30px; height: 30px; margin-left: 4px; fill: currentColor; }
.video__play:hover .video__button { transform: scale(1.06); }
.video__badge { position: absolute; left: 20px; bottom: 20px; padding: 7px 14px; border-radius: var(--r-pill); background: rgba(5, 5, 16, .7); color: #fff; font-size: .84rem; font-weight: 600; backdrop-filter: blur(8px); }
.video__copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.video__copy .lead { margin: 20px 0 32px; }
@media (max-width: 900px) { .video__grid { grid-template-columns: 1fr; } }
@keyframes pulse { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }

.dialog--video { width: min(1100px, calc(100vw - 24px)); background: #000; overflow: visible; }
.dialog--video .dialog__close { top: -52px; right: 0; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .2); color: #fff; }
.dialog--video__frame { aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; }
.dialog--video__frame video, .dialog--video__frame iframe { width: 100%; height: 100%; border: 0; background: #000; }

/* ---------- Reviews ---------- */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { display: flex; flex-direction: column; margin: 0; padding: 32px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.review__stars { display: flex; gap: 2px; color: var(--accent); font-size: 1rem; letter-spacing: 1px; margin-bottom: 20px; }
.review blockquote { margin: 0 0 24px; font-family: var(--serif); font-size: 1.14rem; line-height: 1.55; letter-spacing: -.005em; color: var(--ink); }
.review blockquote::before { content: "“"; display: block; height: 28px; font-size: 3.4rem; line-height: 1; color: var(--accent); }
.review figcaption { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); font-weight: 600; font-size: .95rem; }
@media (max-width: 960px) { .review-grid { grid-template-columns: 1fr; max-width: 640px; } }

/* ---------- Gallery head ---------- */
.gallery-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(32px, 5vw, 48px); }
.gallery-head .section-head { margin-bottom: 0; }

/* ---------- Final CTA ---------- */
.final {
    position: relative; overflow: hidden;
    display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: end;
    padding: clamp(32px, 6vw, 72px); border-radius: var(--r-lg);
    background: var(--night); color: var(--on-night);
}
.final::before {
    content: ""; position: absolute; left: -10%; top: -60%; width: 70%; aspect-ratio: 1;
    background: radial-gradient(closest-side, rgba(124, 58, 237, .28), transparent 70%); pointer-events: none;
}
.final > * { position: relative; }
.final h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); max-width: 14ch; }
.final__copy > p:not(.eyebrow) { margin: 18px 0 32px; color: var(--on-night-muted); max-width: 52ch; font-size: 1.08rem; }
.final__visit { display: grid; gap: 4px; font-style: normal; padding: 24px; border-radius: var(--r-md); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.final__visit-title { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-light); margin-bottom: 8px; }
.final__visit a { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; color: var(--on-night); text-decoration: none; }
.final__visit a + a { border-top: 1px solid rgba(255, 255, 255, .1); }
.final__visit a:hover span { text-decoration: underline; }
.final__visit .ic, .final__visit .bi { width: 20px; height: 20px; font-size: 18px; color: var(--accent-light); flex-shrink: 0; margin-top: 2px; }
.final__visit small { display: block; color: var(--on-night-muted); font-size: .85rem; }
@media (max-width: 900px) { .final { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .final .btn { width: 100%; } }
