/*
Theme Name: NISHKA
Theme URI: https://nishka.kz
Description: Платформа подготовки к НИШ, ЕНТ, БИЛ и IELTS.
Version: 2.0
Author: NISHKA
*/

:root {
    --teal: #0d9488;
    --teal-dark: #0f766e;
    --navy: #0f172a;
    --orange: #f59e0b;
    --bg: #f8fafc;
    --card: #ffffff;
    --text: #1e293b;
    --muted: #64748b;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(15, 23, 42, .08);
    --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: var(--teal); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Шапка ---------- */
.nk-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
}
.nk-header-inner {
    max-width: var(--maxw); margin: 0 auto; padding: 16px 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.nk-logo { font-size: 28px; font-weight: 800; color: var(--navy); letter-spacing: -0.5px; }
.nk-logo b { color: var(--teal); }
.nk-nav { display: flex; gap: 26px; align-items: center; }
.nk-nav a { color: var(--navy); font-weight: 600; font-size: 15px; }
.nk-nav a:hover { color: var(--teal); }
.nk-cta {
    background: var(--teal); color: #fff !important;
    padding: 11px 22px; border-radius: 999px; font-weight: 700; font-size: 15px;
}
.nk-cta:hover { background: var(--teal-dark); }

/* ---------- Hero ---------- */
.nk-hero {
    background: radial-gradient(1100px 500px at 85% -10%, #155e5a 0%, transparent 55%),
                radial-gradient(900px 420px at -10% 110%, #0f3d39 0%, transparent 55%),
                linear-gradient(135deg, #0b1220 0%, #0f172a 60%, #134e4a 100%);
    color: #fff; padding: 90px 0 80px;
    overflow: hidden;
}
.nk-hero-inner {
    max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
    display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center;
}
.nk-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px; padding: 8px 16px; font-size: 13px; color: #cbd5e1;
    margin-bottom: 22px;
}
.nk-badge b { color: #5eead4; }
.nk-hero h1 { font-size: 48px; line-height: 1.12; font-weight: 800; letter-spacing: -1px; }
.nk-hero h1 span { color: #5eead4; }
.nk-hero p.lead { margin: 20px 0 30px; font-size: 18px; color: #cbd5e1; max-width: 540px; }
.nk-hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
    display: inline-block; padding: 15px 28px; border-radius: 999px;
    font-weight: 700; font-size: 16px; border: none; cursor: pointer; text-align: center;
}
.btn-primary { background: var(--orange); color: #0f172a; }
.btn-primary:hover { background: #fbbf24; }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }
.nk-hero-media img { border-radius: 20px; box-shadow: 0 30px 70px rgba(0,0,0,.45); }
.nk-hero-media .cap {
    margin-top: 14px; text-align: center; color: #94a3b8; font-size: 13px;
}

/* Таймер */
.nk-timer {
    margin-top: 36px; display: inline-flex; gap: 14px; align-items: center;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15);
    border-radius: 18px; padding: 18px 22px;
}
.nk-timer .t-item { text-align: center; min-width: 58px; }
.nk-timer .t-item b { display: block; font-size: 30px; color: #5eead4; line-height: 1; }
.nk-timer .t-item span { font-size: 12px; color: #94a3b8; }
.nk-timer .t-sep { font-size: 26px; color: #475569; }

/* Статистика */
.nk-stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
    max-width: var(--maxw); margin: 0 auto; padding: 46px 24px 0;
}
.nk-stat {
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius); padding: 22px 26px;
}
.nk-stat b { display: block; font-size: 34px; color: #5eead4; line-height: 1.1; }
.nk-stat span { font-size: 14px; color: #94a3b8; }

/* ---------- Секции ---------- */
.nk-section { max-width: var(--maxw); margin: 0 auto; padding: 84px 24px; }
.nk-section h2 { font-size: 36px; font-weight: 800; color: var(--navy); letter-spacing: -.5px; line-height: 1.2; }
.nk-section h2 em { font-style: normal; color: var(--teal); }
.nk-sub { color: var(--muted); margin: 14px 0 40px; font-size: 17px; max-width: 640px; }
.nk-center { text-align: center; }
.nk-center .nk-sub { margin-left: auto; margin-right: auto; }

/* Дни теста */
.nk-days { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.nk-day {
    background: var(--card); border-radius: 20px; padding: 34px;
    box-shadow: var(--shadow); border-top: 5px solid var(--teal);
}
.nk-day.orange { border-top-color: var(--orange); }
.nk-day h3 { font-size: 23px; margin-bottom: 6px; }
.nk-day .total { font-weight: 800; color: var(--teal); font-size: 18px; margin-bottom: 6px; }
.nk-day.orange .total { color: var(--orange); }
.nk-day table { width: 100%; margin-top: 12px; border-collapse: collapse; font-size: 15px; }
.nk-day td { padding: 10px 0; border-bottom: 1px solid #f1f5f9; }
.nk-day td:last-child { text-align: right; font-weight: 700; color: var(--navy); }

/* Преимущества */
.nk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.nk-card {
    background: var(--card); border-radius: 20px; padding: 28px;
    box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.nk-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(15,23,42,.12); }
.nk-card .icon { font-size: 40px; line-height: 1; }
.nk-card h4 { margin: 14px 0 8px; font-size: 18px; color: var(--navy); }
.nk-card p { color: var(--muted); font-size: 14.5px; }
.nk-card .num { font-weight: 800; color: var(--teal); margin-top: 12px; display: block; font-size: 16px; }

/* Платформа */
.nk-platform { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.nk-platform img { border-radius: 20px; box-shadow: var(--shadow); }
.nk-feature { display: flex; gap: 16px; margin-bottom: 26px; }
.nk-feature .ico {
    flex: 0 0 46px; height: 46px; border-radius: 12px;
    background: #ecfdf5; color: var(--teal);
    display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.nk-feature h5 { font-size: 17px; color: var(--navy); margin-bottom: 4px; }
.nk-feature p { color: var(--muted); font-size: 14.5px; }

/* Демо-панель */
.nk-demo {
    background: linear-gradient(120deg, #0d9488 0%, #134e4a 100%);
    border-radius: 26px; padding: 60px; color: #fff; text-align: center;
}
.nk-demo h2 { color: #fff; }
.nk-demo p { max-width: 580px; margin: 14px auto 30px; color: #cbd5e1; font-size: 17px; }

/* Тарифы */
.nk-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 820px; margin: 0 auto; }
.nk-plan {
    background: var(--card); border-radius: 22px; padding: 36px;
    box-shadow: var(--shadow); text-align: center; border: 2px solid transparent;
}
.nk-plan.hot { border-color: var(--orange); }
.nk-plan h3 { font-size: 22px; }
.nk-plan .price { font-size: 40px; font-weight: 800; color: var(--navy); margin: 12px 0 4px; }
.nk-plan .price small { font-size: 15px; color: var(--muted); font-weight: 600; }
.nk-plan ul { list-style: none; margin: 22px 0 26px; text-align: left; }
.nk-plan li { padding: 8px 0 8px 30px; position: relative; color: var(--text); font-size: 15px; }
.nk-plan li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 800; }
.nk-plan .btn { display: block; }

/* FAQ */
.nk-faq { max-width: 780px; margin: 0 auto; }
.nk-faq-item {
    background: var(--card); border-radius: 14px; margin-bottom: 14px;
    box-shadow: var(--shadow); overflow: hidden;
}
.nk-faq-q {
    width: 100%; text-align: left; padding: 20px 24px; background: none; border: none;
    font-size: 17px; font-weight: 700; color: var(--navy); cursor: pointer;
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.nk-faq-q .arr { transition: transform .2s; color: var(--teal); }
.nk-faq-item.open .arr { transform: rotate(180deg); }
.nk-faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.nk-faq-a p { padding: 0 24px 20px; color: var(--muted); }

/* CTA финальный */
.nk-final {
    background: linear-gradient(120deg, #0f172a, #134e4a);
    color: #fff; text-align: center; padding: 80px 24px;
}
.nk-final h2 { color: #fff; font-size: 34px; }
.nk-final p { color: #cbd5e1; margin: 14px auto 30px; max-width: 560px; }

/* Блог */
.nk-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.nk-post {
    background: var(--card); border-radius: 18px; overflow: hidden;
    box-shadow: var(--shadow); display: block; transition: transform .2s;
}
.nk-post:hover { transform: translateY(-4px); }
.nk-post img { width: 100%; height: 180px; object-fit: cover; }
.nk-post .body { padding: 20px; }
.nk-post .date { color: var(--teal); font-size: 13px; font-weight: 600; }
.nk-post h4 { font-size: 17px; margin: 6px 0 8px; color: var(--navy); }
.nk-post p { color: var(--muted); font-size: 14px; }

/* Подвал */
.nk-footer { background: var(--navy); color: #94a3b8; padding: 46px 24px 30px; }
.nk-footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.nk-footer h6 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.nk-footer a { color: #cbd5e1; display: block; margin-bottom: 8px; }
.nk-footer a:hover { color: #5eead4; }
.nk-footer .logo { font-size: 26px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.nk-footer .logo b { color: #5eead4; }
.nk-copy { text-align: center; margin-top: 34px; padding-top: 20px; border-top: 1px solid #1e293b; font-size: 13px; }

/* Статья */
.nk-content { max-width: 820px; margin: 0 auto; padding: 60px 24px; }
.nk-content article { background: #fff; border-radius: 20px; padding: 44px; box-shadow: var(--shadow); }
.nk-content h1 { font-size: 32px; color: var(--navy); margin-bottom: 12px; line-height: 1.25; }
.nk-content h2 { font-size: 24px; margin: 30px 0 12px; color: var(--navy); }
.nk-content h3 { font-size: 20px; margin: 24px 0 10px; color: var(--navy); }
.nk-content table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.nk-content td, .nk-content th { border: 1px solid #e2e8f0; padding: 10px 12px; font-size: 15px; }
.nk-content ul { margin: 12px 0 12px 24px; }
.nk-content p { margin-bottom: 14px; }

/* ---------- Адаптив ---------- */
@media (max-width: 920px) {
    .nk-hero-inner { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .nk-hero p.lead { margin-left: auto; margin-right: auto; }
    .nk-hero-btns, .nk-timer { justify-content: center; }
    .nk-hero-media { order: -1; }
    .nk-stats { grid-template-columns: 1fr; }
    .nk-days, .nk-grid, .nk-posts, .nk-plans, .nk-platform { grid-template-columns: 1fr; }
    .nk-section { padding: 60px 24px; }
    .nk-hero h1 { font-size: 34px; }
    .nk-nav a:not(.nk-cta) { display: none; }
    .nk-demo { padding: 40px 24px; }
    .nk-footer .container { grid-template-columns: 1fr; }
    .nk-timer { flex-wrap: wrap; }
}
