/* ============================================================
   Certificate check (/Course/CertCheck) — "Сертификат шалгах".
   Scoped under .cc so it can't affect other pages.
   ============================================================ */

.cc {
    --cc-brand: #3f51b5;
    --cc-brand-d: #2c3a91;
    --cc-brand-l: #5c6bc0;
    --cc-accent: #ff7a59;
    --cc-green: #1f9e87;
    --cc-red: #e05260;
    --cc-ink: #16225a;
    --cc-body: #4d5468;
    --cc-muted: #8a90a2;
    --cc-line: #e4e7f2;
    --cc-bg-soft: #f6f7fb;
    --cc-radius: 18px;
    --cc-shadow: 0 22px 46px -22px rgba(22, 27, 51, .32);
    --cc-shadow-sm: 0 12px 26px -16px rgba(22, 27, 51, .26);

    font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
    color: var(--cc-body);
    padding-bottom: 90px;
}
.cc * { box-sizing: border-box; }
.cc h1, .cc h2, .cc h3, .cc h4 { font-family: 'Montserrat', 'Roboto', sans-serif; color: var(--cc-ink); margin: 0; }
.cc__wrap { max-width: 880px; margin: 0 auto; padding: 0 22px; }

/* ---------- Hero + search ---------- */
.cc-hero {
    text-align: center;
    padding: 50px 22px 40px;
    background: linear-gradient(180deg, #eef1fb 0%, #ffffff 100%);
    border-bottom: 1px solid var(--cc-line);
    margin-bottom: 34px;
}
.cc-hero__eyebrow {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
    color: var(--cc-brand); background: rgba(63, 81, 181, .1);
    padding: 6px 15px; border-radius: 999px; margin-bottom: 14px;
}
.cc-hero h1 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; margin-bottom: 10px; }
.cc-hero p { max-width: 520px; margin: 0 auto 24px; font-size: 16px; color: var(--cc-body); }

.cc-search { position: relative; max-width: 560px; margin: 0 auto; }
.cc-search .form-group { margin: 0; }
.cc-search .control-label, .cc-search .bar { display: none !important; }
.cc-search input[type="text"], .cc-search #stf {
    width: 100%;
    height: 58px;
    padding: 0 130px 0 22px;
    border: 1.5px solid var(--cc-line) !important;
    border-radius: 999px !important;
    background: #fff;
    font-size: 15.5px !important;
    color: var(--cc-ink);
    text-align: left !important;
    box-shadow: 0 16px 34px -20px rgba(22, 27, 51, .4);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.cc-search #stf:focus {
    outline: none; border-color: var(--cc-brand) !important;
    box-shadow: 0 16px 36px -18px rgba(63, 81, 181, .5);
}
.cc-search__btn {
    position: absolute;
    right: 7px; top: 7px;
    height: 44px; padding: 0 24px;
    border: 0; border-radius: 999px;
    background: linear-gradient(135deg, var(--cc-brand-l), var(--cc-brand));
    color: #fff;
    font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 14.5px;
    cursor: pointer;
    display: inline-flex; align-items: center; gap: 8px;
    box-shadow: 0 10px 22px -10px rgba(63, 81, 181, .8);
    transition: transform .2s ease;
}
.cc-search__btn:hover { transform: translateY(-1px); }

/* ---------- Certificate card ---------- */
.cc-cert {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    background: #fff;
    border: 1px solid var(--cc-line);
    border-radius: var(--cc-radius);
    box-shadow: var(--cc-shadow);
    overflow: hidden;
    margin-bottom: 22px;
}
.cc-cert__media {
    background: var(--cc-bg-soft);
    display: flex; align-items: center; justify-content: center;
    padding: 22px;
    border-right: 1px solid var(--cc-line);
}
.cc-cert__media img { width: 100%; height: auto; border-radius: 10px; box-shadow: var(--cc-shadow-sm); display: block; }
.cc-cert__body { padding: 30px 32px; }
.cc-cert__badge {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: 'Montserrat', sans-serif; font-size: 12.5px; font-weight: 700;
    color: var(--cc-green);
    background: rgba(31, 158, 135, .1);
    border: 1px solid rgba(31, 158, 135, .25);
    padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.cc-cert__org { font-size: 16px; font-weight: 700; color: var(--cc-brand); line-height: 1.35; margin-bottom: 18px; }
.cc-cert__rows { list-style: none; margin: 0; padding: 0; }
.cc-cert__rows li {
    display: flex; align-items: flex-start; gap: 13px;
    padding: 12px 0;
    border-top: 1px solid var(--cc-line);
}
.cc-cert__rows li:first-child { border-top: 0; padding-top: 0; }
.cc-cert__rows i {
    flex: none; width: 34px; height: 34px;
    display: grid; place-items: center;
    border-radius: 9px; font-size: 14px; color: #fff;
    background: linear-gradient(135deg, var(--cc-brand-l), var(--cc-brand));
}
.cc-cert__rows .lbl { display: block; font-size: 11.5px; color: var(--cc-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.cc-cert__rows .val { font-size: 16px; color: var(--cc-ink); font-weight: 600; line-height: 1.4; }

/* ---------- States ---------- */
.cc-state {
    text-align: center;
    background: #fff;
    border: 1px solid var(--cc-line);
    border-radius: var(--cc-radius);
    box-shadow: var(--cc-shadow-sm);
    padding: 54px 28px;
}
.cc-state__icon {
    width: 72px; height: 72px;
    margin: 0 auto 20px;
    display: grid; place-items: center;
    border-radius: 50%;
    font-size: 30px; color: var(--cc-brand);
    background: rgba(63, 81, 181, .1);
}
.cc-state--error .cc-state__icon { color: var(--cc-red); background: rgba(224, 82, 96, .1); }
.cc-state h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.cc-state p { margin: 0 auto; max-width: 440px; font-size: 15.5px; color: var(--cc-body); }
.cc-state strong { color: var(--cc-ink); }

@media (max-width: 700px) {
    .cc-cert { grid-template-columns: 1fr; }
    .cc-cert__media { border-right: 0; border-bottom: 1px solid var(--cc-line); }
}
@media (max-width: 480px) {
    .cc-search input[type="text"], .cc-search #stf { padding-right: 64px; }
    .cc-search__btn { padding: 0 16px; }
    .cc-search__btn span { display: none; }
}
