/*
 * Aurora — the example second theme (docs/multisite.md §Темы).
 *
 * Loaded after every base stylesheet (CssManifest appends it), so the token
 * block below re-skins the whole site by itself: night-ink text, a violet
 * action colour, aurora-green stars, rounder shapes, Onest for the copy and
 * Unbounded for the headings. The rules after it are the few places a token
 * cannot reach: the header and footer (overridden views in
 * resources/themes/aurora/views/partials), the sky glow, headings, badges
 * and the primary buttons.
 *
 * Fonts are self-hosted next to this file (SIL OFL, licences included),
 * variable, split per script with unicode-range so a uk/ru page fetches the
 * Latin and Cyrillic cuts only.
 */

/* ------------------------------------------------------------- typefaces */

@font-face {
    font-family: 'Onest';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/onest/onest-cyrillic-ext-wght-normal.woff2') format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
    font-family: 'Onest';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/onest/onest-cyrillic-wght-normal.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Onest';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/onest/onest-latin-ext-wght-normal.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Onest';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/onest/onest-latin-wght-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Unbounded';
    font-style: normal;
    font-weight: 200 900;
    font-display: swap;
    src: url('../fonts/unbounded/unbounded-cyrillic-ext-wght-normal.woff2') format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
    font-family: 'Unbounded';
    font-style: normal;
    font-weight: 200 900;
    font-display: swap;
    src: url('../fonts/unbounded/unbounded-cyrillic-wght-normal.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Unbounded';
    font-style: normal;
    font-weight: 200 900;
    font-display: swap;
    src: url('../fonts/unbounded/unbounded-latin-wght-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------------------------------------------------------------- tokens */

:root {
    --color-text: #121735;
    --color-text-alt: #4A5072;
    --color-text-secondary: #FFF;
    --color-text-link: #737A9B;
    --color-text-third: #6A5AF9;

    --color-bg: #F4F5FB;
    --color-bg-alt: #FFF;
    --color-bg-secondary: #2FC99A;
    --color-bg-third: #EFEDFF;
    --color-bg-drive: #737A9B;
    --color-bg-effect: #CFF5E7;
    --color-bg-fourth: #6A5AF9;
    --color-bg-fifth: #121735;
    --color-bg-sixth: #2B3263;
    --color-bg-empty: #EAFAF4;

    --color-border: #E2E5F1;
    --color-border-secondary: #CBC4FF;
    --color-border-alt: #FFF;

    --color-btn: #6A5AF9;

    --progress-primary: #6A5AF9;
    --progress-bg: #EFEDFF;

    --color-icon-star: #2FC99A;
    --color-icon-primary: #6A5AF9;

    --color-danger: #E5484D;
    --color-success: #12A37F;
    --color-failure: #D93D5C;

    --color-star-empty: #DCE0EE;
    --skeleton-bg: #ECEEF6;

    --font-sans: 'Onest', -apple-system, 'Segoe UI', Roboto, sans-serif;

    --radius-xs: 8px;
    --radius-sm: 12px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-2xl: 28px;
    --radius-3xl: 44px;
    --radius-pill: 999px;

    --shadow-card: 0 14px 34px rgba(18, 23, 53, 0.09);
    --shadow-popover: 0 12px 30px rgba(18, 23, 53, 0.12);
    --shadow-overlay: 0 18px 44px 0 rgba(18, 23, 53, 0.14);

    --glow-rgb: 152, 140, 255;

    /* Aurora's own: the display face of the headings and the wordmark, and
       the light of the sky used by the glow, the buttons and the accents. */
    --font-display: 'Unbounded', 'Onest', -apple-system, sans-serif;
    --aurora-mint: #46E0B4;
    --aurora-violet: #8B7BFF;
    --aurora-gradient: linear-gradient(115deg, #2FC99A 0%, #6A5AF9 62%, #8B7BFF 100%);
    --aurora-glass: rgba(255, 255, 255, 0.78);
}

/* ------------------------------------------------------------ atmosphere */

/* The sky: two soft lights, mint over the top right and violet over the top
   left, instead of the base theme's single warm glow (same layer, same
   geometry cap — see body::before in global.css). */
body::before {
    background:
        radial-gradient(ellipse 820px 520px at calc(50% + 460px) -60px, rgba(70, 224, 180, 0.30) 0%, rgba(70, 224, 180, 0.12) 45%, rgba(70, 224, 180, 0) 75%),
        radial-gradient(ellipse 760px 480px at calc(50% - 540px) 60px, rgba(139, 123, 255, 0.22) 0%, rgba(139, 123, 255, 0.08) 50%, rgba(139, 123, 255, 0) 78%);
}

::selection {
    background: #D9D4FF;
    color: var(--color-text);
}

/* ------------------------------------------------------------ typography */

h1, h2,
.title,
.step-title,
.company_name,
.article-title,
.reviews-title {
    font-family: var(--font-display);
    letter-spacing: -0.025em;
}

/* Unbounded is a wide face: the base sizes, set per section, come down a
   step so the headings keep the base line lengths. */
#catalog-preview .left .title,
#cooperation-statement-preview .box .left .title,
#create-review-preview .box .left .title {
    font-size: 46px;
    line-height: 56px;
    font-weight: 700;
    text-transform: none;
    overflow-wrap: anywhere;
}
:is(#rating, #rate_info, #how_is_work, #home-reviews, #home-about_us, #partnership,
    #company-detail, #company-reviews, #create-review-form, #cooperation-statement-form,
    #blog-listing, #blog-article, #auth, #profile, #business, #claim, #company-widget,
    #not-found, #claim-invite) :is(.title, .company_name, .article-title, .reviews-title) {
    font-weight: 700;
    overflow-wrap: anywhere;
}
:is(#rating, #home-reviews, #home-about_us, #how_is_work, #partnership) .title,
#rate_info .wrap-title .title,
#company-detail .left .title,
#company-reviews .title,
#cooperation-statement-form .cooperation-statement-form-container .right .title,
#create-review-form form .company_name,
#blog-listing .title,
#auth .auth-head .title,
#profile .profile-head .title,
#claim .claim-head .title,
#company-widget .widget-head .title {
    font-size: 36px;
    line-height: 46px;
}
#rate_info .wrap-steps .step .inner .title {
    font-size: 22px;
    line-height: 30px;
}

/* The figures read in the display face too — the numbers are the product. */
#catalog-preview .right .label-container .label-container-inner .label,
#partnership .box .list-items .item .label,
#cooperation-statement-preview .box .right .stats .value,
#company-preview .inner .right .info-box .part-right .rate .mark,
.list-rate_item::before {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
}

@media (max-width: 1400px) {
    #catalog-preview .left .title,
    #cooperation-statement-preview .box .left .title,
    #create-review-preview .box .left .title {
        font-size: 40px;
        line-height: 50px;
    }
}

@media (max-width: calc(991px + 30px)) {
    #catalog-preview .left .title,
    #cooperation-statement-preview .box .left .title,
    #create-review-preview .box .left .title {
        font-size: 34px;
        line-height: 42px;
    }
    :is(#rating, #home-reviews, #home-about_us, #how_is_work, #partnership) .title,
    #rate_info .wrap-title .title,
    #company-detail .left .title,
    #company-reviews .title,
    #cooperation-statement-form .cooperation-statement-form-container .right .title,
    #create-review-form form .company_name,
    #blog-listing .title,
    #auth .auth-head .title,
    #profile .profile-head .title,
    #claim .claim-head .title,
    #company-widget .widget-head .title {
        font-size: 28px;
        line-height: 36px;
    }
}

@media (max-width: 576px) {
    #catalog-preview .left .title,
    #cooperation-statement-preview .box .left .title,
    #create-review-preview .box .left .title {
        font-size: 28px;
        line-height: 36px;
    }
    :is(#rating, #home-reviews, #home-about_us, #how_is_work, #partnership) .title,
    #rate_info .wrap-title .title,
    #company-detail .left .title,
    #company-reviews .title,
    #cooperation-statement-form .cooperation-statement-form-container .right .title,
    #create-review-form form .company_name,
    #blog-listing .title,
    #auth .auth-head .title,
    #profile .profile-head .title,
    #claim .claim-head .title,
    #company-widget .widget-head .title {
        font-size: 24px;
        line-height: 32px;
    }
}

/* ---------------------------------------------------------------- badges */

/* The section badge: a lavender pill with a small light in front, instead of
   the base theme's yellow tab. */
.topic {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    padding: 4px 14px 4px 12px;
    border-radius: var(--radius-pill);
    background: var(--color-bg-third);
    color: var(--color-text-third);
    font-weight: 600;
    letter-spacing: 0.01em;
}
.topic::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--aurora-gradient);
    box-shadow: 0 0 0 3px rgba(106, 90, 249, 0.14);
    flex-shrink: 0;
}

/* Badges the base fills with the action colour keep it, as a pill with a
   white light. */
#claim-invite .topic {
    border-radius: var(--radius-pill);
}
#claim-invite .topic::before {
    background: #FFF;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

/* ------------------------------------------------------------- buttons */

/* Primary actions are pills lit by the aurora gradient; the base layout and
   sizes stay, only the surface and the corners change. */
.btn,
#partnership .box .start_cooperation,
#company-preview .inner .right .info-box .inner-info-box .part-left .panel .btn,
#create-review-preview .box .left .panel .create_review,
#cooperation-statement-preview .box .left .btn,
#not-found .btn,
#auth .auth-main .btn,
#claim-invite .btn {
    background: var(--aurora-gradient);
    border-radius: var(--radius-pill);
    color: #FFF;
    box-shadow: 0 8px 20px rgba(106, 90, 249, 0.22);
    transition: box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}
.btn:not(:disabled):hover,
#partnership .box .start_cooperation:hover {
    box-shadow: 0 12px 26px rgba(106, 90, 249, 0.32);
    transform: translateY(-1px);
}
.btn:disabled {
    box-shadow: none;
}

#partnership .box .list-items .item .label {
    font-size: 24px;
    line-height: 32px;
}

/* ----------------------------------------------------------------- cards */

.list-rate_item {
    border-color: var(--color-border);
    box-shadow: 0 2px 10px rgba(18, 23, 53, 0.04);
}
.list-rate_item:hover {
    border-color: var(--color-border-secondary);
}
.review-card {
    box-shadow: 0 10px 30px rgba(18, 23, 53, 0.07);
}
#partnership .box {
    border: 0;
    background:
        radial-gradient(ellipse 60% 90% at 100% 0%, rgba(70, 224, 180, 0.22), rgba(70, 224, 180, 0) 70%),
        radial-gradient(ellipse 60% 90% at 0% 100%, rgba(139, 123, 255, 0.25), rgba(139, 123, 255, 0) 70%),
        var(--color-bg-alt);
    box-shadow: var(--shadow-card);
    border-radius: var(--radius-3xl);
}
#partnership .box .topic {
    background: var(--color-bg-third);
    color: var(--color-text-third);
}

/* ------------------------------------------------------------ the night */

/* The night the theme is named after: navy under the northern lights. The
   heroes open on a photograph of it, the leader's card and "who we are" on
   its drawn twin — a mint and a violet curtain. */
:root {
    --vidno-night: #0D1130;
    --vidno-night-text: rgba(234, 236, 255, 0.74);
    --vidno-night-line: rgba(255, 255, 255, 0.12);
    --vidno-night-glass: rgba(255, 255, 255, 0.06);
    --vidno-sky:
        radial-gradient(ellipse 60% 70% at 88% 0%, rgba(70, 224, 180, 0.30), rgba(70, 224, 180, 0) 70%),
        radial-gradient(ellipse 55% 75% at 8% 4%, rgba(139, 123, 255, 0.38), rgba(139, 123, 255, 0) 72%),
        radial-gradient(ellipse 70% 60% at 50% 110%, rgba(106, 90, 249, 0.28), rgba(106, 90, 249, 0) 70%),
        var(--vidno-night);
    /* Over the photograph: the night deepest at the left, where the
       headlines lie, the aurora at the right left bright. */
    --vidno-veil: linear-gradient(90deg, rgba(13, 17, 48, 0.8) 0%, rgba(13, 17, 48, 0.5) 50%, rgba(13, 17, 48, 0.15) 100%);
}
/* One column: the text runs over the whole sky, the veil with it. */
@media (max-width: calc(991px + 30px)) {
    :root {
        --vidno-veil: linear-gradient(180deg, rgba(13, 17, 48, 0.74), rgba(13, 17, 48, 0.62));
    }
}

/* The sky over the Carpathians (img/sky, generated for the theme): the
   curtains at the upper right, the ridge and a village's lights along the
   bottom. The position keeps both in the frame from a phone to 4K. The
   pages with a hero open on it, the header lying on it. */
#home-preview,
#catalog-preview,
#company-preview,
#create-review-preview,
#cooperation-statement-preview {
    background-color: var(--vidno-night);
    background-image: var(--vidno-veil), url('../img/sky.jpg');
    background-size: cover;
    background-position: 70% 75%;
    color: #FFF;
}
/* A browser without image-set() (Safari before 17) would void this
   declaration at computed time, veil and all — it holds a var(), so the
   JPEG one above could not stand in for it: it comes only where it is
   understood. */
@supports (background-image: image-set(url('x.webp') type('image/webp'))) {
    #home-preview,
    #catalog-preview,
    #company-preview,
    #create-review-preview,
    #cooperation-statement-preview {
        background-image: var(--vidno-veil), image-set(url('../img/sky.webp') type('image/webp'), url('../img/sky.jpg') type('image/jpeg'));
    }
}

/* ------------------------------------------------------------ home: hero */

#home-preview {
    padding-bottom: 64px;
}
#home-preview header {
    margin-bottom: 0;
}
#home-preview .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 56px;
    align-items: center;
    padding-top: 76px;
}
/* A badge on the night: frosted, the light in front mint. */
#home-preview .topic,
#home-about_us .night .topic {
    background: rgba(255, 255, 255, 0.09);
    color: #CFF5E7;
}
#home-preview .topic::before,
#home-about_us .night .topic::before {
    background: var(--aurora-mint);
    box-shadow: 0 0 0 3px rgba(70, 224, 180, 0.2);
}
#home-preview .hero-title {
    margin: 22px 0 0;
    font-family: var(--font-display);
    font-size: 52px;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.035em;
    color: #FFF;
    overflow-wrap: anywhere;
}
#home-preview .hero-title .accent {
    background: linear-gradient(90deg, var(--aurora-mint), var(--aurora-violet));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
#home-preview .hero-text {
    max-width: 560px;
    margin: 22px 0 0;
    color: var(--vidno-night-text);
    font-size: 18px;
    line-height: 28px;
}
#home-preview .search-form {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 560px;
    margin-top: 34px;
    padding: 6px;
    border-radius: var(--radius-pill);
    background: #FFF;
    box-shadow: 0 24px 60px rgba(3, 5, 25, 0.45);
}
#home-preview .search-form > .icon {
    position: absolute;
    left: 24px;
    color: var(--color-text-link);
    font-size: 20px;
    pointer-events: none;
}
#home-preview .search-form .form-control {
    flex: 1 1 auto;
    min-width: 0;
    height: 48px;
    margin: 0;
    padding: 0 12px 0 48px;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: var(--color-text);
    font-size: 16px;
}
#home-preview .search-form .btn {
    position: static;
    flex-shrink: 0;
    height: 48px;
    padding: 0 28px;
    transform: none;
    font-size: 16px;
    font-weight: 600;
}
#home-preview .promises {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}
#home-preview .promise {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--vidno-night-text);
    font-size: 14px;
    line-height: 20px;
}
#home-preview .promise .icon {
    color: var(--aurora-mint);
    font-size: 18px;
}

/* The board: the five leaders on frosted glass, each with its score bar. */
#home-preview .board {
    padding: 22px 22px 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-2xl);
    background: var(--vidno-night-glass);
    box-shadow: 0 30px 80px rgba(3, 5, 25, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}
#home-preview .board-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}
#home-preview .board-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
    color: #FFF;
}
#home-preview .board-all {
    color: var(--aurora-mint);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
#home-preview .board-all::after {
    content: " →";
}
#home-preview .board-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
#home-preview .board-row {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    grid-template-areas:
        "place name average"
        "place reviews reviews";
    align-items: center;
    column-gap: 12px;
    row-gap: 2px;
    padding: 12px 0;
}
#home-preview .board-row + .board-row {
    border-top: 1px solid var(--vidno-night-line);
}
#home-preview .board-row .place {
    grid-area: place;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.45);
}
#home-preview .board-row:nth-child(-n+3) .place {
    color: var(--aurora-mint);
}
#home-preview .board-row .name {
    grid-area: name;
    overflow: hidden;
    color: #FFF;
    font-weight: 600;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#home-preview .board-row .name:hover {
    color: #CFF5E7;
}
#home-preview .board-row .average {
    grid-area: average;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: #FFF;
}
#home-preview .board-row .average .icon {
    color: var(--aurora-mint);
    font-size: 15px;
}
#home-preview .board-row .reviews {
    grid-area: reviews;
    color: rgba(234, 236, 255, 0.5);
    font-size: 13px;
    line-height: 18px;
}
#rating .podium .progress-bar__fill {
    background: linear-gradient(90deg, var(--aurora-mint), var(--aurora-violet));
}

/* The figures under the hero, apart by hairlines. */
#home-preview .stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 64px 0 0;
    padding: 30px 0 0;
    list-style: none;
    border-top: 1px solid var(--vidno-night-line);
}
#home-preview .stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 28px;
}
#home-preview .stat:first-child {
    padding-left: 0;
}
#home-preview .stat + .stat {
    border-left: 1px solid var(--vidno-night-line);
}
#home-preview .stat .value {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #FFF;
}
#home-preview .stat .label {
    color: var(--vidno-night-text);
    font-size: 14px;
    line-height: 20px;
}

/* ---------------------------------------------------------- home: rating */

section#rating {
    padding: 96px 0 40px;
    overflow: visible;
}
/* The base narrows these sections for its own layouts; here they keep the
   page's width. */
#how_is_work > .container,
#home-reviews .container,
#home-about_us > .container {
    max-width: calc(1065px + 40px);
}
#rating .section-head,
#home-reviews .section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}
section#rating .topic,
#how_is_work .topic,
#home-reviews .topic {
    margin: 0;
}
section#rating .title,
#how_is_work .title,
#home-reviews .title {
    max-width: 680px;
    margin: 14px 0 0;
    padding: 0;
    text-align: left;
}
section#rating .prompt {
    margin: 0;
    color: var(--color-text-third);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
section#rating .prompt::after {
    content: " →";
}

/* The top three: big cards, the numbers in light, the leader on the night. */
#rating .podium {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 40px;
}
#rating .leader {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    background: var(--color-bg-alt);
    box-shadow: var(--shadow-card);
}
#rating .leader .place {
    font-family: var(--font-display);
    font-size: 54px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    background: var(--aurora-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
#rating .leader .name {
    margin: 18px 0 0;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    line-height: 28px;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
}
#rating .leader .name a {
    color: inherit;
    text-decoration: none;
}
#rating .leader .score {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 22px;
}
#rating .leader .score .value {
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
}
#rating .leader .score .label {
    color: var(--color-text-link);
    font-size: 14px;
}
#rating .leader .progress-bar {
    margin: 12px 0 0;
}
#rating .leader .progress-bar__track {
    height: 8px;
}
#rating .leader .meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    margin-top: 18px;
    color: var(--color-text-alt);
    font-size: 14px;
}
#rating .leader .go {
    align-self: flex-start;
    margin-top: auto;
    padding: 12px 22px;
    border-radius: var(--radius-pill);
    background: var(--color-bg-third);
    color: var(--color-text-third);
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}
#rating .leader .meta + .go {
    margin-top: 24px;
}
#rating .leader .go:hover {
    background: var(--color-text-third);
    color: #FFF;
}
#rating .leader--first {
    border-color: transparent;
    background: var(--vidno-sky);
    color: #FFF;
    box-shadow: 0 24px 60px rgba(13, 17, 48, 0.35);
}
#rating .leader--first .place {
    background: linear-gradient(90deg, var(--aurora-mint), var(--aurora-violet));
    -webkit-background-clip: text;
    background-clip: text;
}
#rating .leader--first .score .label,
#rating .leader--first .meta {
    color: var(--vidno-night-text);
}
#rating .leader--first .progress-bar__track {
    background: rgba(255, 255, 255, 0.12);
}
#rating .leader--first .go {
    background: var(--aurora-gradient);
    color: #FFF;
}

/* Places 4–10: a compact chart in two columns. */
#rating .chart {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 20px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}
#rating .chart-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto auto 48px;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-bg-alt);
    transition: border-color 0.15s ease;
}
#rating .chart-row:hover {
    border-color: var(--color-border-secondary);
}
#rating .chart-row .place {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text-link);
}
#rating .chart-row .name {
    overflow: hidden;
    color: var(--color-text);
    font-weight: 600;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#rating .chart-row .name:hover {
    color: var(--color-text-third);
}
#rating .chart-row .average,
#rating .chart-row .reviews {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 15px;
    white-space: nowrap;
}
#rating .chart-row .average {
    color: var(--color-text);
    font-weight: 600;
}
#rating .chart-row .average .icon {
    color: var(--color-icon-star);
}
#rating .chart-row .reviews {
    color: var(--color-text-link);
}
#rating .chart-row .score {
    justify-self: end;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: var(--color-bg-third);
    color: var(--color-text-third);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
}
#rating .all {
    display: inline-flex;
    margin-top: 28px;
    color: var(--color-text-third);
    font-weight: 600;
    text-decoration: none;
}
#rating .all::after {
    content: " →";
    white-space: pre;
}
#rating .empty {
    margin-top: 28px;
    color: var(--color-text-alt);
}

/* -------------------------------------------- how the rating is counted */

/* A lavender panel, the four criteria side by side under their numbers
   (the base section, on the home and the catalog page). */
#rate_info > .container {
    padding: 48px;
    border-radius: var(--radius-3xl);
    background:
        radial-gradient(ellipse 55% 80% at 100% 0%, rgba(70, 224, 180, 0.16), rgba(70, 224, 180, 0) 70%),
        var(--color-bg-third);
}
#rate_info .wrap-title {
    align-items: flex-end;
}
#rate_info .wrap-title .description {
    color: var(--color-text-alt);
}
#rate_info .wrap-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    max-width: none;
    margin: 36px 0 0;
}
#rate_info .wrap-steps .step {
    flex-direction: column;
    align-items: flex-start;
    margin: 0;
    padding: 24px;
    border-radius: var(--radius-xl);
    background: var(--color-bg-alt);
}
#rate_info .wrap-steps .step .icon {
    flex-basis: auto;
    justify-content: flex-start;
    height: auto;
    border-radius: 0;
    background: var(--aurora-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    font-family: var(--font-display);
    font-size: 30px;
    line-height: 1;
}
#rate_info .wrap-steps .step .inner {
    flex-basis: auto;
    margin-top: 16px;
    padding-left: 0;
}
#rate_info .wrap-steps .step .inner .title {
    font-size: 18px;
    line-height: 24px;
}
#rate_info .wrap-steps .step .inner .description {
    color: var(--color-text-alt);
    font-size: 15px;
    line-height: 22px;
}

/* ----------------------------------------------------- home: three steps */

#how_is_work {
    padding: 96px 0 40px;
}
#how_is_work .steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 40px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}
#how_is_work .step {
    position: relative;
    padding: 28px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    background: var(--color-bg-alt);
    counter-increment: step;
}
/* The step's number, outlined in the corner. */
#how_is_work .step::after {
    content: "0" counter(step);
    position: absolute;
    top: 22px;
    right: 26px;
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px var(--color-border-secondary);
}
#how_is_work .step-icon {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--aurora-gradient);
    color: #FFF;
    font-size: 24px;
    box-shadow: 0 10px 24px rgba(106, 90, 249, 0.25);
}
#how_is_work .step-title {
    margin: 20px 0 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 26px;
}
#how_is_work .step-text {
    margin: 10px 0 0;
    color: var(--color-text-alt);
    line-height: 1.55;
}

/* ------------------------------------------------------ home: the quotes */

#home-reviews {
    padding: 56px 0 96px;
}
#home-reviews .quotes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 40px;
}
#home-reviews .quote {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 26px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    background: var(--color-bg-alt);
    box-shadow: 0 2px 10px rgba(18, 23, 53, 0.04);
}
#home-reviews .quote::before {
    content: "\201C";
    position: absolute;
    top: 18px;
    right: 24px;
    font-family: var(--font-display);
    font-size: 64px;
    font-weight: 800;
    line-height: 0.9;
    background: var(--aurora-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    opacity: 0.85;
}
#home-reviews .quote .company {
    align-self: flex-start;
    max-width: calc(100% - 48px);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    background: var(--color-bg-third);
    color: var(--color-text-third);
    font-size: 13px;
    font-weight: 600;
    line-height: 20px;
    text-decoration: none;
    overflow-wrap: anywhere;
}
#home-reviews .quote .text {
    display: -webkit-box;
    flex: 1 1 auto;
    margin: 16px 0 0;
    overflow: hidden;
    color: var(--color-text);
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    line-clamp: 6;
}
#home-reviews .quote .by {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}
#home-reviews .quote .avatar {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--aurora-gradient);
    color: #FFF;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
}
#home-reviews .quote .who {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
#home-reviews .quote .author {
    overflow: hidden;
    color: var(--color-text);
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#home-reviews .quote .date {
    color: var(--color-text-link);
    font-size: 13px;
}
#home-reviews .quote .star-rating {
    flex-shrink: 0;
    margin-left: auto;
}

/* --------------------------------------------- home: who we are, at night */

#home-about_us {
    padding: 0 0 64px;
}
#home-about_us .night .topic {
    margin: 0;
}
#home-about_us .night {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    padding: 56px;
    border-radius: var(--radius-3xl);
    background: var(--vidno-sky);
    color: #FFF;
}
#home-about_us .night .title {
    margin: 16px 0 0;
    padding: 0;
    color: #FFF;
    text-align: left;
}
#home-about_us .night .description {
    max-width: none;
    margin: 16px 0 0;
    color: var(--vidno-night-text);
    font-size: 18px;
    line-height: 28px;
    text-align: left;
}
#home-about_us .principles {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}
#home-about_us .principle {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
#home-about_us .principle > .icon {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--aurora-mint);
    font-size: 22px;
}
#home-about_us .principle-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
    color: #FFF;
}
#home-about_us .principle-text {
    margin: 6px 0 0;
    color: var(--vidno-night-text);
    line-height: 1.55;
}

@media (max-width: calc(1140px + 30px)) {
    #home-preview .hero {
        grid-template-columns: minmax(0, 1fr) 380px;
        gap: 40px;
    }
    #home-preview .hero-title {
        font-size: 46px;
    }
    #rating .leader {
        padding: 24px;
    }
}

@media (max-width: calc(991px + 30px)) {
    #home-preview .hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 44px;
        padding-top: 56px;
    }
    #home-preview .board {
        max-width: 560px;
    }
    #home-preview .hero-title {
        font-size: 42px;
    }
    #home-preview .stats {
        margin-top: 48px;
    }
    #home-preview .stat .value {
        font-size: 34px;
    }
    section#rating {
        padding-top: 72px;
    }
    #rating .podium {
        gap: 14px;
    }
    #rating .leader .place {
        font-size: 44px;
    }
    #rating .leader .name {
        font-size: 19px;
        line-height: 25px;
    }
    #rating .leader .score .value {
        font-size: 28px;
    }
    #rating .chart {
        grid-template-columns: minmax(0, 1fr);
    }
    #rate_info > .container {
        padding: 40px 32px;
    }
    #rate_info .wrap-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    #how_is_work,
    #home-reviews {
        padding-top: 72px;
    }
    #home-reviews .quotes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    #home-about_us .night {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
        padding: 44px 40px;
    }
}

@media (max-width: 768px) {
    #rating .section-head,
    #home-reviews .section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    #rating .podium {
        grid-template-columns: minmax(0, 1fr);
    }
    #how_is_work .steps {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }
    #home-reviews .quotes {
        grid-template-columns: minmax(0, 1fr);
    }
    #rate_info .wrap-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    #rate_info .wrap-title .description {
        padding-left: 0;
    }
}

@media (max-width: 576px) {
    #home-preview {
        padding-bottom: 44px;
    }
    #home-preview .hero {
        padding-top: 40px;
    }
    #home-preview .hero-title {
        font-size: 34px;
        line-height: 1.12;
    }
    #home-preview .hero-text {
        font-size: 16px;
        line-height: 25px;
    }
    #home-preview .search-form > .icon {
        display: none;
    }
    #home-preview .search-form .form-control {
        padding-left: 18px;
    }
    #home-preview .search-form .btn {
        padding: 0 20px;
    }
    #home-preview .promises {
        flex-direction: column;
        gap: 8px;
    }
    #home-preview .board {
        padding: 18px 18px 6px;
    }
    #home-preview .stats {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        margin-top: 40px;
        padding-top: 24px;
    }
    /* On a phone each figure is a line: the value, its label after it. */
    #home-preview .stat {
        flex-direction: row;
        align-items: baseline;
        gap: 12px;
        padding: 0;
    }
    #home-preview .stat + .stat {
        border-left: 0;
    }
    #home-preview .stat .value {
        min-width: 88px;
        font-size: 28px;
    }
    #rating .leader {
        padding: 22px;
    }
    #rating .chart-row {
        grid-template-columns: 26px minmax(0, 1fr) auto 44px;
        gap: 10px;
        padding: 12px 14px;
    }
    #rating .chart-row .reviews {
        display: none;
    }
    #rate_info > .container {
        padding: 28px 18px;
        border-radius: var(--radius-2xl);
    }
    #rate_info .wrap-steps {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }
    #rate_info .wrap-steps .step {
        padding: 20px;
    }
    #how_is_work .step,
    #home-reviews .quote {
        padding: 22px;
    }
    #home-about_us {
        padding-bottom: 64px;
    }
    #home-about_us .night {
        padding: 32px 22px;
        border-radius: var(--radius-2xl);
    }
    #home-about_us .night .description {
        font-size: 16px;
        line-height: 25px;
    }
}

@media (max-width: 360px) {
    #home-preview .hero-title {
        font-size: 29px;
    }
    #home-preview .search-form .btn {
        padding: 0 16px;
    }
}

/* ------------------------------------------------- the night on the heroes */

/* The pages that open with a hero open on the night too (the sky above);
   the company's rating card on it stays white, the catalog's and the
   partnership's photos are windows (below). */
:is(#catalog-preview, #create-review-preview, #cooperation-statement-preview) .topic {
    background: rgba(255, 255, 255, 0.09);
    color: #CFF5E7;
}
:is(#catalog-preview, #create-review-preview, #cooperation-statement-preview) .topic::before {
    background: var(--aurora-mint);
    box-shadow: 0 0 0 3px rgba(70, 224, 180, 0.2);
}
/* The rating card on the night keeps the day's ink. */
#company-preview .inner .right .info-box {
    color: var(--color-text);
}
#catalog-preview .left .title,
#create-review-preview .box .left .title,
#cooperation-statement-preview .box .left .title {
    color: #FFF;
}
#catalog-preview .left .description,
#create-review-preview .box .left .description,
#create-review-preview .box .left .description p,
#cooperation-statement-preview .box .left .description {
    color: var(--vidno-night-text);
}
#catalog-preview .left .search-form .form-control {
    border-color: transparent;
    box-shadow: 0 18px 44px rgba(3, 5, 25, 0.35);
}
#create-review-preview .box .left .panel .to_site {
    color: #CFF5E7;
}
#catalog-preview,
#cooperation-statement-preview {
    padding-bottom: 56px;
}
#create-review-preview .box {
    padding-bottom: 64px;
}
#company-preview .inner {
    padding-bottom: 64px;
}

/* ------------------------------------------------ the heroes' windows */

/* The photo beside the catalog's and the partnership's headline is a window
   onto the evening: an arch, a hairline frame drawn a step outside it. The
   figure it carries (the reviews, the average) hangs off its lower corner on
   the night's frosted glass, in the display face — none of the base theme's
   white mat around the photo and white label on it, no pencil. */
#catalog-preview .right .img-wrap,
#cooperation-statement-preview .box .right > .box {
    position: relative;
    width: min(100%, 420px);
    max-width: none;
    margin: 0 0 0 auto;
    border: 0;
    border-radius: 0;
    background: none;
}
#cooperation-statement-preview .box .right {
    padding-right: 0;
}
/* The arch: at the photo's aspect, 50% across and 44.2% down draw a
   semicircle; the frame, 14px out, is the same arch on its own box. */
#catalog-preview .right .img-wrap > picture img,
#cooperation-statement-preview .box .right > .box > picture img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 840 / 950;
    object-fit: cover;
    border-radius: 50% 50% 28px 28px / 44.2% 44.2% 28px 28px;
    box-shadow: 0 30px 80px rgba(3, 5, 25, 0.5);
}
#catalog-preview .right .img-wrap::before,
#cooperation-statement-preview .box .right > .box::before {
    content: "";
    position: absolute;
    inset: -14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50% 50% 42px 42px / 44.5% 44.5% 42px 42px;
    pointer-events: none;
}
#catalog-preview .right .img-wrap .label-container,
#cooperation-statement-preview .box .right .stats {
    position: absolute;
    z-index: 1;
    top: auto;
    right: auto;
    bottom: 34px;
    left: -44px;
    display: block;
    width: auto;
    min-width: 200px;
    max-width: 240px;
    margin: 0;
    padding: 16px 20px 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-xl);
    background: rgba(13, 17, 48, 0.64);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 24px 60px rgba(3, 5, 25, 0.45);
    color: #FFF;
    transform: none;
}
#catalog-preview .right .img-wrap .label-container .icon {
    display: none;
}
#catalog-preview .right .label-container .label-container-inner {
    padding: 0;
}
#catalog-preview .right .label-container .label-container-inner .label,
#cooperation-statement-preview .box .right .stats .value {
    color: #FFF;
    font-size: 40px;
    line-height: 1;
}
#catalog-preview .right .label-container .label-container-inner .sublabel,
#cooperation-statement-preview .box .right .stats .label {
    margin-top: 8px;
    color: var(--vidno-night-text);
    font-size: 13px;
    line-height: 18px;
}
#cooperation-statement-preview .box .right .stats .progress-bar {
    margin-top: 14px;
}
#cooperation-statement-preview .box .right .stats .progress-bar__track {
    background: rgba(255, 255, 255, 0.12);
}
#cooperation-statement-preview .box .right .stats .progress-bar__fill {
    background: linear-gradient(90deg, var(--aurora-mint), var(--aurora-violet));
}
#cooperation-statement-preview .box .right .stats .progress-bar__percent,
#cooperation-statement-preview .box .right .stats .progress-bar__value {
    color: var(--vidno-night-text);
}

@media (max-width: calc(991px + 30px)) {
    #catalog-preview .right .img-wrap .label-container,
    #cooperation-statement-preview .box .right .stats {
        bottom: 24px;
        left: -28px;
        min-width: 0;
        max-width: 200px;
        padding: 12px 16px 14px;
    }
    #catalog-preview .right .label-container .label-container-inner .label,
    #cooperation-statement-preview .box .right .stats .value {
        font-size: 30px;
    }
    #catalog-preview .right .label-container .label-container-inner .sublabel,
    #cooperation-statement-preview .box .right .stats .label {
        font-size: 12px;
        line-height: 16px;
    }
}
/* One column: the window under the text, in the middle. */
@media (max-width: 768px) {
    #catalog-preview .right .img-wrap,
    #cooperation-statement-preview .box .right > .box {
        width: min(100% - 28px, 360px);
        margin: 18px auto 0;
    }
}
/* No room to hang off the edge on a phone: the glass sits on the photo. */
@media (max-width: 576px) {
    #catalog-preview .right .img-wrap .label-container,
    #cooperation-statement-preview .box .right .stats {
        bottom: 16px;
        left: 16px;
    }
}

/* ---------------------------------------------------------- catalog rows */

/* The catalog's companies as the home page's chart: the place in the display
   face (the top three in light), the name, the stars, the reviews, the score
   on a pill and the way to the reviews — none of the base theme's round
   badges, trophies and bars. The row stays one link (base .link::after). */
#companies-list .list-rate_item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto auto 56px auto;
    grid-template-areas: "rank name rate comment score link";
    align-items: center;
    column-gap: 22px;
    margin-top: 12px;
    padding: 16px 22px;
    border-color: var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: none;
}
#companies-list .list-rate_item:first-child {
    margin-top: 0;
}
#companies-list .list-rate_item:hover {
    border-color: var(--color-border-secondary);
    box-shadow: var(--shadow-card);
}
#companies-list .list-rate_item::before {
    content: attr(data-rank);
    grid-area: rank;
    display: block;
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    background: none;
    color: var(--color-text-link);
    /* The base sets the top three's trophy glyph with !important. */
    font-family: var(--font-display) !important;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}
#companies-list .list-rate_item--top::before {
    background: var(--aurora-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
#companies-list .list-rate_item .name {
    grid-area: name;
    margin: 0;
    padding: 0;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
}
#companies-list .list-rate_item .rate {
    grid-area: rate;
    flex-basis: auto;
    padding: 0;
}
#companies-list .list-rate_item .star-rating__value {
    font-size: 17px;
    font-weight: 700;
}
#companies-list .list-rate_item .comment {
    grid-area: comment;
    display: flex;
    padding: 0;
    color: var(--color-text-link);
    font-size: 15px;
    font-weight: 500;
}
#companies-list .list-rate_item .comment .icon {
    margin-right: 6px;
    font-size: 18px;
}
#companies-list .list-rate_item .progress {
    grid-area: score;
    display: flex;
    justify-content: center;
    flex-basis: auto;
    padding: 0;
}
#companies-list .list-rate_item .progress .progress-bar {
    display: none;
}
#companies-list .list-rate_item .progress .value {
    min-width: 0;
    margin: 0;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: var(--color-bg-third);
    color: var(--color-text-third);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
}
#companies-list .list-rate_item .link {
    grid-area: link;
    margin: 0;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    background: var(--color-bg-third);
    color: var(--color-text-third);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}
#companies-list .list-rate_item:hover .link {
    background: var(--color-text-third);
    color: #FFF;
}

/* The company page's top five the same way: places, not badges. */
#company-detail .right .top-list .list .item {
    padding: 12px 16px;
    border-color: var(--color-border);
    border-radius: var(--radius-md);
    transition: border-color 0.15s ease;
}
#company-detail .right .top-list .list .item:hover {
    border-color: var(--color-border-secondary);
}
#company-detail .right .top-list .list .item a {
    min-width: 0;
    text-decoration: none;
}
#company-detail .right .top-list .list .item .name {
    gap: 12px;
    margin: 0;
    color: var(--color-text);
    font-weight: 600;
    text-decoration: none;
}
#company-detail .right .top-list .list .item .name::before,
#company-detail .right .top-list .list .item:nth-child(-n+3) .name::before {
    content: counter(rate);
    justify-content: flex-start;
    width: 22px;
    height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: var(--color-text-link);
    font-family: var(--font-display) !important;
    font-size: 16px;
    font-weight: 700;
}
#company-detail .right .top-list .list .item:nth-child(-n+3) .name::before {
    background: var(--aurora-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
#company-detail .right .top-list .list .item .progress-bar {
    display: none;
}

@media (max-width: calc(991px + 30px)) {
    #companies-list .list-rate_item {
        grid-template-columns: 40px minmax(0, 1fr) auto auto 52px auto;
        column-gap: 16px;
        padding: 14px 18px;
    }
}

/* Two lines from a tablet down: the name with its score, then the stars,
   the reviews and the way on. */
@media (max-width: 768px) {
    #companies-list .list-rate_item {
        grid-template-columns: 36px auto auto minmax(0, 1fr) auto;
        grid-template-areas:
            "rank name name name score"
            "rank rate comment . link";
        row-gap: 10px;
        column-gap: 14px;
    }
}

@media (max-width: 576px) {
    #companies-list .list-rate_item {
        grid-template-columns: 30px auto minmax(0, 1fr) auto;
        grid-template-areas:
            "rank name name score"
            "rank rate . link";
        column-gap: 10px;
        padding: 12px 14px;
    }
    #companies-list .list-rate_item::before {
        font-size: 18px;
    }
    #companies-list .list-rate_item .name {
        font-size: 15px;
    }
    #companies-list .list-rate_item .comment {
        display: none;
    }
    /* The base turns the link into an arrow here. */
    #companies-list .list-rate_item .link {
        padding: 6px 10px;
    }
}

/* ---------------------------------------------------------------- header */

header.aurora-header .bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 18px;
    padding: 10px 12px 10px 18px;
    border-radius: var(--radius-pill);
    background: var(--aurora-glass);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(18, 23, 53, 0.08);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}
header.aurora-header .logo {
    gap: 10px;
    margin-right: 20px;
    color: var(--color-text);
}
header.aurora-header .logo img {
    width: 36px;
    height: 36px;
}
header.aurora-header .logo .wordmark {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 700;
    line-height: 24px;
    letter-spacing: -0.02em;
    white-space: nowrap;
}
header.aurora-header .menu .item > a {
    display: inline-flex;
    border-radius: var(--radius-pill);
    color: var(--color-text-alt);
    white-space: nowrap;
    transition: color 0.15s ease, background-color 0.15s ease;
}
header.aurora-header .menu .item > a:hover {
    color: var(--color-text);
    background-color: rgba(106, 90, 249, 0.07);
}
header.aurora-header .menu .item.active a {
    border: 0;
    color: var(--color-text-third);
    background-color: var(--color-bg-third);
    font-weight: 600;
}
header.aurora-header .panel {
    gap: 18px;
    margin-left: 20px;
}
header.aurora-header .panel .auth {
    margin-right: 0;
}
header.aurora-header .panel .auth .login {
    border-radius: var(--radius-pill);
    background: var(--aurora-gradient);
    box-shadow: 0 6px 16px rgba(106, 90, 249, 0.25);
}
header.aurora-header .locale {
    padding: 4px;
    border-radius: var(--radius-pill);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
}
header.aurora-header .locale .lang {
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    line-height: 18px;
    color: var(--color-text-alt);
}
header.aurora-header .locale .lang::after {
    display: none;
}
header.aurora-header .locale .lang.active {
    background: var(--color-bg-alt);
    color: var(--color-text);
    box-shadow: 0 1px 4px rgba(18, 23, 53, 0.12);
}

/* The bar holds the whole menu down to 1022px: tighter from 1170px, and a
   representative's "Home" gives way for the cabinet entry. */
@media (max-width: calc(1140px + 30px)) {
    header.aurora-header .menu .item > a {
        padding-left: 10px;
        padding-right: 10px;
    }
    header.aurora-header .logo {
        margin-right: 12px;
    }
    header.aurora-header .panel {
        gap: 12px;
        margin-left: 12px;
    }
}
@media (min-width: 1022px) {
    header.aurora-header--business .menu .item-home {
        display: none;
    }
}

@media (max-width: calc(991px + 30px)) {
    header.aurora-header .bar {
        justify-content: flex-start;
        border-radius: var(--radius-xl);
    }
    header.aurora-header .menu .menu-box {
        top: calc(100% + 18px);
        border-radius: var(--radius-xl);
        box-shadow: var(--shadow-popover);
    }
    header.aurora-header .menu .item > a {
        border-radius: var(--radius-sm);
    }
    header.aurora-header .menu .item.locale-panel .locale {
        border: 0;
        background: transparent;
        border-top: 1px solid var(--color-border);
        border-radius: 0;
        padding: 12px 10px 0;
    }
}

@media (max-width: 576px) {
    header.aurora-header .bar {
        margin-top: 12px;
        padding: 8px 8px 8px 10px;
    }
    header.aurora-header .logo {
        gap: 8px;
        margin-right: 8px;
    }
    header.aurora-header .logo img {
        width: 30px;
        height: 30px;
    }
    header.aurora-header .logo .wordmark {
        font-size: 15px;
    }
    header.aurora-header .panel {
        gap: 8px;
    }
    header.aurora-header .panel .auth .reg {
        padding: 8px;
    }
    header.aurora-header .panel .auth .login {
        padding: 8px 14px;
    }
    header.aurora-header .menu {
        margin-left: 10px;
    }
}

/* One phone-wide row holds the mark, the name, one account button and the
   burger; registration stays a tap away on the login page and in the footer. */
@media (max-width: 420px) {
    header.aurora-header .panel .auth .reg {
        display: none;
    }
}

/* ---------------------------------------------------------------- footer */

footer.aurora-footer {
    position: relative;
    margin-top: auto;
    padding: 64px 0 28px;
    border-radius: var(--radius-3xl) var(--radius-3xl) 0 0;
    background:
        radial-gradient(ellipse 50% 120% at 85% 0%, rgba(70, 224, 180, 0.20), rgba(70, 224, 180, 0) 70%),
        radial-gradient(ellipse 45% 110% at 10% 0%, rgba(139, 123, 255, 0.24), rgba(139, 123, 255, 0) 70%),
        var(--color-bg-fifth);
    overflow: hidden;
}
/* The aurora's edge: a thin band of light along the top. */
footer.aurora-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(90deg, rgba(70, 224, 180, 0), var(--aurora-mint), var(--aurora-violet), rgba(139, 123, 255, 0));
    opacity: 0.8;
}
footer.aurora-footer .row {
    gap: 40px;
}
footer.aurora-footer .brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 320px;
}
footer.aurora-footer .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #FFF;
}
footer.aurora-footer .logo img {
    width: 40px;
    height: 40px;
}
footer.aurora-footer .logo .wordmark {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    line-height: 28px;
    letter-spacing: -0.02em;
}
footer.aurora-footer .tagline {
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 15px;
    line-height: 22px;
}
footer.aurora-footer .brand .panel {
    margin-top: 28px;
    flex-direction: row;
    align-items: center;
    gap: 18px;
}
footer.aurora-footer .row .panel .auth .reg {
    margin-right: 0;
    padding: 8px 12px 8px 0;
}
footer.aurora-footer .row .panel .auth .login {
    border-radius: var(--radius-pill);
    background: #FFF;
    color: var(--color-text);
}
footer.aurora-footer .row .menu .col .label {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
}
footer.aurora-footer .row .menu .col .item-menu {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.15s ease;
}
footer.aurora-footer .row .menu .col .item-menu:hover {
    color: #FFF;
}
footer.aurora-footer .row .locale .lang.active {
    color: var(--aurora-mint);
}
footer.aurora-footer .bottom {
    margin-top: 48px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
footer.aurora-footer .copyright {
    text-align: left;
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: calc(1140px + 30px)) {
    footer.aurora-footer .row .menu .col {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    footer.aurora-footer {
        padding-top: 48px;
        border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
    }
    footer.aurora-footer .row {
        flex-direction: column;
        gap: 0;
    }
    footer.aurora-footer .brand {
        max-width: none;
    }
    /* The base footer re-orders logo, panel and menu on phones; in aurora
       they sit in their own brand column, in source order. */
    footer.aurora-footer .logo {
        order: initial;
        flex-basis: auto;
    }
    footer.aurora-footer .row .panel {
        order: initial;
        flex-basis: auto;
        justify-content: flex-start;
    }
    footer.aurora-footer .row .menu {
        order: initial;
        flex-basis: auto;
        margin: 0 -20px;
        padding-top: 36px;
    }
    footer.aurora-footer .bottom {
        margin-top: 24px;
    }
}

@media (max-width: 567px) {
    footer.aurora-footer .copyright {
        text-align: center;
        width: 100%;
    }
}

/* ------------------------------------------------------------------ 404 */

#not-found.aurora-404 .sky {
    position: relative;
    max-width: 720px;
    margin: 40px auto 0;
    padding: 30px 20px 60px;
    text-align: center;
}
#not-found.aurora-404 .code {
    font-family: var(--font-display);
    font-size: 168px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    background: var(--aurora-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 18px 40px rgba(106, 90, 249, 0.25));
}
#not-found.aurora-404 .topic {
    margin: 26px auto 0;
}
#not-found.aurora-404 .title {
    margin-top: 16px;
}
#not-found.aurora-404 .text {
    max-width: 520px;
    margin: 14px auto 0;
}
#not-found.aurora-404 .btn {
    padding: 12px 30px;
}

@media (max-width: 767px) {
    #not-found.aurora-404 .code {
        font-size: 110px;
    }
}
@media (max-width: 400px) {
    #not-found.aurora-404 .code {
        font-size: 84px;
    }
}
@media (max-width: 320px) {
    #not-found.aurora-404 .code {
        font-size: 66px;
    }
}

/* A company's site and e-mail break anywhere rather than push a phone's
   page sideways (Firefox does not break an address at its hyphens). */
#company-detail .right .site a,
#company-detail .right .contacts-box .item {
    overflow-wrap: anywhere;
}

/* iOS Safari zooms the page into a field set under 16px and leaves it
   zoomed: on touch screens the fields keep to 16px. */
@media (pointer: coarse) {
    input.form-control,
    select.form-control,
    textarea.form-control {
        font-size: 16px !important;
    }
}
