/*
 * Lagoon (docs/multisite.md §Темы): a rating site on a photo — white type on
 * a student's photo under a dark veil, cut by a white wave on inner pages and
 * by a slanted edge on the home page; navy headings in heavy Montserrat,
 * white row cards with a soft shadow, teal square ranks and buttons, gold
 * stars, a teal-tinted panel next to a student, a grey photo panel and a
 * teal footer. Corners are nearly square.
 *
 * Loaded after every base stylesheet (CssManifest appends it). The token
 * block re-skins what tokens reach; the rules after it lay out what the
 * theme changes: the header with its band, the theme's own home page
 * (resources/themes/lagoon/views/pages/home), the company rows, the catalog
 * and company pages, the footer and the 404.
 *
 * Montserrat is self-hosted next to this file (SIL OFL, licence included),
 * variable, split per script with unicode-range so a uk/ru page fetches the
 * Latin and Cyrillic cuts only. Headings use its ExtraBold (800).
 */

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

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/montserrat/montserrat-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: 'Montserrat';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/montserrat/montserrat-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: 'Montserrat';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/montserrat/montserrat-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: 'Montserrat';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/montserrat/montserrat-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: #18345C;
    --color-text-alt: #4A5A70;
    --color-text-secondary: #FFF;
    --color-text-link: #6B7785;
    --color-text-third: #0B7A82;

    --color-bg: #FFFFFF;
    --color-bg-alt: #FFF;
    --color-bg-secondary: #FFC107;
    --color-bg-third: #E7F4F5;
    --color-bg-drive: #CFE5E7;
    --color-bg-effect: #E7F4F5;
    --color-bg-fourth: #0E848C;
    --color-bg-fifth: #18345C;
    --color-bg-sixth: #2C4A73;
    --color-bg-empty: #F4F4F4;

    --color-border: #E4E9EC;
    --color-border-secondary: #CFE5E7;
    --color-border-alt: #FFF;

    --color-btn: #0B7A82;

    --progress-primary: #0E848C;
    --progress-bg: #E7EEF0;

    --color-icon-star: #FFC107;
    --color-icon-primary: #0E848C;

    --color-star-empty: #DCE3E6;
    --skeleton-bg: #EEF3F4;

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

    --radius-xs: 2px;
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 4px;
    --radius-xl: 4px;
    --radius-2xl: 6px;
    --radius-3xl: 8px;
    --radius-pill: 999px;

    /* The reference's soft grey shadow under every white card. */
    --shadow-card: 0 4px 20px rgba(140, 150, 160, 0.22);
    --shadow-popover: 0 8px 24px rgba(24, 52, 92, 0.12);
    --shadow-overlay: 0 12px 32px 0 rgba(24, 52, 92, 0.14);

    /* No page glow: the pages are white. */
    --glow-rgb: 255, 255, 255;

    /* Lagoon's own. Teal is the brand (ranks, the footer) and, a shade
       deeper, the action — buttons and links keep 4.5:1 with white. Green is
       for leaving to a company's own site only. */
    --lagoon-navy: #18345C;
    --lagoon-teal: #0E848C;
    --lagoon-teal-deep: #0B7A82;
    --lagoon-teal-dark: #08646B;
    --lagoon-teal-foot: #0C7E86;
    --lagoon-tint: #DCEFF0;
    --lagoon-tint-soft: #E7F4F5;
    --lagoon-green: #00873A;
    --lagoon-green-hover: #006F30;
    --lagoon-gold: #FFC107;
    --lagoon-grey: #757575;
    --lagoon-faded: #EEEEEE;
    --lagoon-veil: linear-gradient(90deg, rgba(14, 22, 34, 0.78) 0%, rgba(14, 22, 34, 0.55) 45%, rgba(14, 22, 34, 0.28) 100%);
    --lagoon-shadow: 0 4px 20px rgba(140, 150, 160, 0.22);
    --lagoon-button-shadow: 0 5px 10px rgba(60, 70, 80, 0.22);
}

/* ------------------------------------------------------------- the page */

body {
    background: #FFF;
}
body::before {
    display: none;
}
.container,
.full-container {
    max-width: calc(1296px + 40px);
}
h1, h2, h3,
.title {
    color: var(--color-text);
}

/* Section titles: centred, ExtraBold navy, sentence case. */
section#rating .title,
#how_is_work .title,
#home-reviews .title,
#rate_info .wrap-title .title,
#partnership .box .title,
#company-detail .left .title,
#company-reviews .title {
    max-width: none;
    margin: 0 0 40px;
    padding: 0;
    color: var(--color-text);
    font-size: 34px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
    text-align: center;
    text-transform: none;
}

/* Section badges: plain small caps in teal, no plate. */
.topic {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: var(--lagoon-teal-deep);
    font-size: 13px;
    font-weight: 700;
    line-height: 18px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

/* Teal, nearly square, lifted by a soft shadow — the reference's action. */
.btn,
#how_is_work .button,
#home-info .right .make_review,
#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 {
    border-radius: 2px;
    background: var(--lagoon-teal-deep);
    box-shadow: var(--lagoon-button-shadow);
    color: #FFF;
    font-weight: 600;
    transition: background-color 0.2s ease;
}
.btn:not(:disabled):hover,
#how_is_work .button:hover,
#home-info .right .make_review:hover,
#partnership .box .start_cooperation:hover,
#not-found .btn:hover {
    background: var(--lagoon-teal-dark);
}

/* ------------------------------------------------- the band and the header */

/* The photo band: the home hero carries it under the header; elsewhere the
   header carries it itself, its lower edge a white wave. */
.lagoon-header,
#home-preview {
    background-color: #2A3440;
    background-image: var(--lagoon-veil), url('../img/band.jpg');
    background-size: cover;
    background-position: center 30%;
}
/* 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'))) {
    .lagoon-header,
    #home-preview {
        background-image: var(--lagoon-veil), image-set(url('../img/band.webp') type('image/webp'), url('../img/band.jpg') type('image/jpeg'));
    }
}
header.lagoon-header {
    position: relative;
    z-index: 5;
    margin: 0;
    padding-bottom: 150px;
}
header.lagoon-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 96px;
    background: url('../img/wave.svg') center bottom / 100% 100% no-repeat;
    pointer-events: none;
}
#home-preview header.lagoon-header {
    padding-bottom: 0;
    margin-bottom: 0;
    background: none;
}
#home-preview header.lagoon-header::after {
    display: none;
}
/* The home hero's base rules make its containers flex rows. */
#home-preview header.lagoon-header .full-container {
    display: block;
}
header.lagoon-header .bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 0;
}
header.lagoon-header .logo,
footer.lagoon-footer .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 24px;
    text-decoration: none;
    flex-shrink: 0;
}
header.lagoon-header .logo img {
    width: 46px;
    height: 46px;
}
.lagoon-header .wordmark,
.lagoon-footer .wordmark {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.lagoon-header .wordmark .name,
.lagoon-footer .wordmark .name {
    color: #FFF;
    font-size: 24px;
    font-weight: 800;
    line-height: 28px;
    white-space: nowrap;
}
.lagoon-header .wordmark .tagline,
.lagoon-footer .wordmark .tagline {
    max-width: 190px;
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 11px;
    font-weight: 500;
    line-height: 14px;
}
header.lagoon-header .menu {
    margin: 0 0 0 auto;
    padding: 0;
}
header.lagoon-header .menu .item {
    margin-right: 4px;
}
header.lagoon-header .menu .item > a {
    display: inline-flex;
    padding: 8px 12px;
    white-space: nowrap;
    color: #FFF;
    font-size: 17px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 0.02em;
}
header.lagoon-header .menu .item > a:hover,
header.lagoon-header .menu .item.active a {
    border: 0;
    background: none;
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 2px;
}
header.lagoon-header .menu .mobile-button {
    color: #FFF;
}
header.lagoon-header .panel {
    margin-left: 24px;
}
header.lagoon-header .panel .auth {
    margin-right: 26px;
}
header.lagoon-header .panel .auth .reg {
    padding: 8px 12px;
    color: #FFF;
    font-size: 16px;
    font-weight: 500;
}
header.lagoon-header .panel .auth .reg:hover {
    text-decoration: underline;
    text-underline-offset: 6px;
}
header.lagoon-header .panel .auth .login {
    padding: 10px 22px;
    border-radius: 2px;
    background: var(--lagoon-teal-deep);
    box-shadow: var(--lagoon-button-shadow);
    color: #FFF;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}
header.lagoon-header .panel .auth .login:hover {
    background: var(--lagoon-teal-dark);
}
header.lagoon-header .locale .lang,
header.lagoon-header .locale .lang::after {
    color: #FFF;
    font-size: 17px;
    font-weight: 400;
    line-height: 24px;
}
header.lagoon-header .locale .lang::after {
    content: "";
    padding: 0 7px;
}
header.lagoon-header .locale .lang.active {
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 2px;
}

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

/* The band as the first screen: the title over the veil, the lower right
   corner cut on a slant. */
#home-preview {
    min-height: 580px;
    padding-bottom: 0;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 64px), calc(100% - 52px) 100%, 0 100%);
}
#home-preview .hero {
    display: block;
    padding-top: 70px;
    padding-bottom: 120px;
}
#home-preview .intro {
    max-width: 640px;
}
#home-preview .hero-title {
    color: #FFF;
    font-size: 45px;
    font-weight: 800;
    line-height: 1.12;
}
#home-preview .hero-text {
    max-width: 560px;
    margin-top: 26px;
    color: #FFF;
    font-size: 20px;
    line-height: 30px;
    letter-spacing: 0.02em;
}

/* The search: a white field with the teal button joined to it — the home
   hero's and the catalog hero's. */
#home-preview .search-form,
#catalog-preview .left .search-form {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 560px;
    margin: 40px 0 0;
}
#home-preview .search-form .form-control,
#catalog-preview .left .search-form input {
    flex: 1 1 auto;
    width: 100%;
    height: 56px;
    margin: 0;
    padding: 0 20px;
    border: 1px solid #FFF;
    border-radius: 2px 0 0 2px;
    background: #FFF;
    color: var(--color-text);
    font-size: 17px;
    line-height: 24px;
}
#catalog-preview .left .search-form input {
    border-color: #C9D3DB;
}
#home-preview .search-form .form-control::placeholder,
#catalog-preview .left .search-form input::placeholder {
    color: #8A96A3;
}
#home-preview .search-form .form-control:focus,
#catalog-preview .left .search-form input:focus {
    outline: 0;
    box-shadow: inset 0 0 0 2px var(--lagoon-teal);
}
#home-preview .search-form .btn,
#catalog-preview .left .search-form .btn {
    position: static;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    transform: none;
    height: 56px;
    margin: 0;
    padding: 0 26px;
    border-radius: 0 2px 2px 0;
    box-shadow: none;
    background: var(--lagoon-teal-deep);
    color: #FFF;
    font-size: 17px;
    font-weight: 600;
    line-height: 24px;
    opacity: 1;
}
#home-preview .search-form .btn .icon {
    font-size: 20px;
}
#home-preview .search-form .btn:disabled,
#catalog-preview .left .search-form .btn:disabled {
    opacity: 1;
    cursor: default;
}

/* ------------------------------------------------------ the rating table */

section#rating {
    padding: 60px 0 70px;
    overflow: visible;
}
section#rating .list-rate {
    padding-top: 0;
}
/* "How it is counted": grey, bold, after a chevron, at the table's right. */
section#rating > .container > .prompt {
    display: flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    max-width: none;
    margin: -10px 0 30px auto;
    border: 0;
    color: var(--lagoon-grey);
    font-size: 16px;
    font-weight: 700;
    line-height: 22px;
    text-decoration: none;
}
section#rating > .container > .prompt::before {
    content: "\e969";
    font-family: 'heroicons-outline' !important;
    font-size: 16px;
    font-weight: normal;
    line-height: 1;
    transition: transform 0.2s ease;
}
section#rating > .container > .prompt:hover {
    color: var(--color-text);
}
section#rating > .container > .topic {
    display: none;
}
#rating .empty {
    padding: 30px 0;
    color: var(--color-text-alt);
    text-align: center;
}

/* The shared company card (partials/cards/company-card) as a white row card
   under the column heads (home): the rank in a teal square, a gem or a
   raised thumb for the top three, the name, reviews, stars, the rating and
   the button to the company's reviews. */
.list-rate_item,
#rating .table-head {
    display: grid;
    grid-template-columns: 64px 44px minmax(0, 1fr) 120px 170px 170px 190px;
    grid-template-areas: "rank icon name comment rate progress link";
    align-items: center;
    padding: 0 20px 0 22px;
}
#rating .table-head {
    margin-bottom: 18px;
    color: var(--lagoon-grey);
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
}
#rating .table-head .col-company {
    grid-column: 3;
}
#rating .table-head .col-reviews {
    grid-column: 4;
}
#rating .table-head .col-stars {
    grid-column: 5;
}
#rating .table-head .col-score {
    grid-column: 6;
}
.list-rate_item {
    margin-top: 0;
    margin-bottom: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
    border: 0;
    border-radius: 0;
    background: #FFF;
    box-shadow: var(--lagoon-shadow);
    transition: box-shadow 0.2s ease;
}
.list-rate_item:last-child {
    margin-bottom: 0;
}
.list-rate_item:hover {
    box-shadow: 0 6px 24px rgba(14, 132, 140, 0.22);
}
.list-rate_item::before,
.list-rate_item--top::before {
    grid-area: rank;
    content: attr(data-rank);
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
    width: auto;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    flex-basis: auto;
    border: 0;
    border-radius: 2px;
    background: var(--lagoon-teal);
    color: #FFF;
    font-family: var(--font-sans) !important;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}
/* The first three: a gem, then a raised thumb. */
.list-rate_item--top::after {
    content: "";
    grid-area: icon;
    width: 22px;
    height: 22px;
    background: url('../img/rank-thumb.svg') center / contain no-repeat;
}
.list-rate_item--top[data-rank="1"]::after {
    background-image: url('../img/rank-gem.svg');
}
.list-rate_item .name {
    grid-area: name;
    padding: 0 16px 0 0;
    margin: 0;
    color: var(--color-text);
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
    text-decoration: none;
}
.list-rate_item:hover .name {
    color: var(--lagoon-teal-deep);
}
.list-rate_item .comment {
    grid-area: comment;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    color: var(--color-text);
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
}
.list-rate_item .comment .icon {
    margin: 0;
    color: var(--lagoon-teal);
    font-family: 'heroicons-outline' !important;
    font-size: 20px;
}
.list-rate_item .rate {
    grid-area: rate;
    padding: 0;
}
.list-rate_item .rate .star-rating__value {
    display: none;
}
.list-rate_item .star-rating__star {
    margin-right: 3px;
}
.list-rate_item .star-rating__stars,
.list-rate_item .star-rating__star::before,
.list-rate_item .star-rating__star--half::after {
    font-size: 19px;
}
.list-rate_item .star-rating__star--half::after {
    top: 0;
}
/* The rating: its figure after a short teal bar. */
.list-rate_item .progress {
    grid-area: progress;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 0;
}
.list-rate_item .progress .progress-bar {
    flex: 0 1 86px;
    width: auto;
}
.list-rate_item .progress-bar__track {
    height: 6px;
    border-radius: 0;
    background: var(--progress-bg);
}
.list-rate_item .progress-bar__fill {
    border-radius: 0;
    background: var(--lagoon-teal);
}
/* Calm bars: no shimmer running over them. */
.list-rate_item .progress-bar__fill--animated::after {
    display: none;
}
.list-rate_item .progress .value {
    min-width: 0;
    margin: 0;
    color: var(--color-text);
    font-size: 16px;
    font-weight: 700;
    line-height: 22px;
    text-align: left;
}
/* The card's link keeps covering the whole row (base ::after); its own text
   — the base wording with an arrow — gives way to the theme's button, its
   label from --lagoon-card-link (layouts/partials/theme-head). */
.list-rate_item .link {
    grid-area: link;
    justify-self: end;
    margin: 0;
    font-size: 0;
    color: transparent;
}
.list-rate_item .link > span {
    display: inline-flex;
    font-size: 0;
}
.list-rate_item .link > span::before {
    content: var(--lagoon-card-link, "→");
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 2px;
    background: var(--lagoon-teal-deep);
    box-shadow: var(--lagoon-button-shadow);
    color: #FFF;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}
.list-rate_item:hover .link > span::before {
    background: var(--lagoon-teal-dark);
}
.list-rate_item .link:focus-visible {
    outline: none;
}
.list-rate_item .link:focus-visible > span::before {
    outline: 2px solid var(--lagoon-navy);
    outline-offset: 2px;
}

#rating .all,
#rating .get_more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin: 40px auto 0;
    padding: 18px 30px;
    border-radius: 2px;
    background: var(--lagoon-teal-deep);
    box-shadow: var(--lagoon-button-shadow);
    color: #FFF;
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}
#rating .all:hover,
#rating .get_more:hover {
    background: var(--lagoon-teal-dark);
}

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

/* A teal-tinted panel: on the home page folded above the table and unfolded
   while it is the page's :target (the prompt, the header's and footer's
   links); on the catalog a section of its own under the list. */
#rate_info {
    padding: 70px 0;
    background: var(--lagoon-tint-soft);
}
#rate_info > .container > .topic {
    display: none;
}
#rate_info .wrap-title {
    display: block;
    margin: 0;
}
#rate_info .wrap-title .title {
    margin-bottom: 18px;
}
#rate_info .wrap-title .description {
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    color: var(--color-text);
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
}
#rate_info .wrap-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 40px;
    max-width: none;
    margin: 36px 0 0;
    padding: 0;
}
#rate_info .wrap-steps .step {
    display: flex;
    align-items: flex-start;
    margin: 0;
}
#rate_info .wrap-steps .step .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    margin-right: 16px;
    border-radius: 2px;
    background: var(--lagoon-teal);
    color: #FFF;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}
#rate_info .wrap-steps .step .inner {
    flex-basis: auto;
    padding: 0;
}
#rate_info .wrap-steps .step .inner .title {
    margin: 0;
    color: var(--color-text);
    font-size: 18px;
    font-weight: 700;
    line-height: 26px;
    text-align: left;
}
#rate_info .wrap-steps .step .inner .description {
    margin-top: 4px;
    color: var(--color-text-alt);
    font-size: 15px;
    line-height: 1.6;
}
#rating #rate_info {
    margin: 0 0 30px;
    padding: 30px 36px;
}
#rating #rate_info > .container {
    max-width: none;
    padding: 0;
}
#rating #rate_info .wrap-title .title {
    display: none;
}
#rating #rate_info .wrap-title .description {
    max-width: none;
    text-align: left;
}
#rating #rate_info .wrap-steps {
    margin-top: 24px;
}
@supports selector(:has(*)) {
    #rating #rate_info {
        display: none;
    }
    #rating #rate_info:target {
        display: block;
    }
    #rating:has(#rate_info:target) > .container > .prompt {
        color: var(--color-text);
    }
    #rating:has(#rate_info:target) > .container > .prompt::before {
        transform: rotate(180deg);
    }
}
/* The jump lands with the prompt still in view. */
#rating #rate_info {
    scroll-margin-top: 120px;
}

/* --------------------------------------------- home: where reviews come from */

/* A teal-tinted panel of text, a student's photo melting into it at the
   right. */
#home-about_us {
    position: relative;
    margin: 30px 0;
    padding: 60px 0;
    background: var(--lagoon-tint);
    overflow: hidden;
}
#home-about_us .container {
    position: relative;
    z-index: 1;
    max-width: calc(1296px + 40px);
}
#home-about_us .text {
    max-width: 880px;
    color: var(--color-text);
    font-size: 16px;
    line-height: 26px;
}
#home-about_us .text p + p {
    margin-top: 14px;
}
#home-about_us .text .lead {
    margin-bottom: 40px;
    font-size: 17px;
    line-height: 28px;
}
#home-about_us .text .title {
    max-width: none;
    margin: 0 0 24px;
    padding: 0;
    color: var(--color-text);
    font-size: 30px;
    font-weight: 400;
    line-height: 1.25;
    text-align: center;
}
#home-about_us .text .note {
    margin-top: 26px;
}
#home-about_us .text .note strong {
    font-weight: 800;
}
/* Multiplied into the tint, the photo's white room turns the panel's own
   colour and the student stays. */
#home-about_us .mate {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 100%;
    max-height: 560px;
    mix-blend-mode: multiply;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 38%);
    mask-image: linear-gradient(90deg, transparent 0, #000 38%);
}
#home-about_us .mate img {
    display: block;
    width: auto;
    height: 100%;
}

/* ------------------------------------------------------ home: how it works */

#how_is_work {
    padding: 70px 0 60px;
}
#how_is_work > .container {
    max-width: calc(1296px + 40px);
}
#how_is_work .title {
    margin-bottom: 50px;
}
#how_is_work .steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}
/* Each step: the drawing, then its title over a big faded number. */
#how_is_work .step {
    position: relative;
    z-index: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
#how_is_work .step-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 26px;
}
#how_is_work .step .num {
    position: absolute;
    top: 82px;
    left: 50%;
    z-index: -1;
    transform: translateX(-50%);
    color: var(--lagoon-faded);
    font-size: 80px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.02em;
}
#how_is_work .step-title {
    margin: 12px 0 0;
    color: var(--color-text);
    font-size: 18px;
    font-weight: 800;
    line-height: 24px;
    letter-spacing: 0.02em;
}
#how_is_work .step-text {
    max-width: 240px;
    margin-top: 8px;
    color: var(--color-text-alt);
    font-size: 15px;
    line-height: 22px;
}

/* --------------------------------------------- home: the latest reviews */

#home-reviews {
    padding: 40px 0 80px;
}
#home-reviews::before {
    display: none;
}
#home-reviews .container {
    max-width: calc(1100px + 40px);
}
#home-reviews .title {
    margin-bottom: 36px;
}
/* A white card: the face for the mark at the left, the text, then who wrote
   it, when, the mark and the company. */
#home-reviews .review {
    position: relative;
    margin-bottom: 20px;
    padding: 22px 28px 20px 84px;
    background: #FFF;
    box-shadow: var(--lagoon-shadow);
}
#home-reviews .review:last-child {
    margin-bottom: 0;
}
#home-reviews .review::before {
    content: "";
    position: absolute;
    left: 26px;
    top: 50%;
    width: 36px;
    height: 36px;
    margin-top: -18px;
    background: url('../img/face-plain.svg') center / contain no-repeat;
}
#home-reviews .review--good::before {
    background-image: url('../img/face-good.svg');
}
#home-reviews .review--fair::before {
    background-image: url('../img/face-fair.svg');
}
#home-reviews .review--poor::before {
    background-image: url('../img/face-poor.svg');
}
#home-reviews .review .text {
    color: var(--color-text);
    font-size: 16px;
    line-height: 26px;
    overflow-wrap: break-word;
}
#home-reviews .review .meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 20px;
    margin-top: 12px;
    color: var(--color-text);
    font-size: 14px;
    line-height: 22px;
}
#home-reviews .review .meta .author::before,
#home-reviews .review .meta .date::before,
#home-reviews .review .meta .mark::before {
    margin-right: 6px;
    color: var(--lagoon-teal);
    font-family: 'heroicons-outline' !important;
    font-size: 15px;
    line-height: 1;
    vertical-align: -2px;
}
#home-reviews .review .meta .author::before {
    content: "\ea1a";
}
#home-reviews .review .meta .date::before {
    content: "\e973";
}
#home-reviews .review .meta .mark::before {
    content: "\ea0a";
    color: var(--lagoon-gold);
}
#home-reviews .review .meta .company {
    margin-left: auto;
    color: var(--lagoon-teal-deep);
    font-weight: 700;
    text-decoration: none;
}
#home-reviews .review .meta .company:hover {
    text-decoration: underline;
}

/* --------------------------------------------- home: why reviews help */

/* Grey, a greyscale photo melting into it at the left, white type at the
   right, a white wave for its lower edge. */
.lagoon-why {
    position: relative;
    padding: 70px 0 170px;
    background: #8A8F94;
    color: #FFF;
    overflow: hidden;
}
.lagoon-why .team {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 52%;
    -webkit-mask-image: linear-gradient(90deg, #000 55%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 55%, transparent 100%);
}
.lagoon-why .team img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    opacity: 0.85;
}
.lagoon-why::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 110px;
    background: url('../img/wave.svg') center bottom / 100% 100% no-repeat;
    pointer-events: none;
}
.lagoon-why .container {
    position: relative;
    z-index: 1;
}
.lagoon-why .why-text {
    max-width: 610px;
    margin-left: auto;
    font-size: 16px;
    line-height: 26px;
}
.lagoon-why .why-text .title {
    margin-bottom: 30px;
    color: #FFF;
    font-size: 30px;
    font-weight: 400;
    line-height: 1.25;
    text-align: center;
}
.lagoon-why .why-text p + p {
    margin-top: 14px;
}
.lagoon-why .why-button {
    display: inline-flex;
    margin-top: 28px;
    padding: 12px 24px;
    border-radius: 2px;
    background: #FFF;
    box-shadow: var(--lagoon-button-shadow);
    color: var(--lagoon-teal-deep);
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}
.lagoon-why .why-button:hover {
    background: var(--lagoon-tint);
}

/* Stars are gold everywhere — the base paints some of them in the action
   colour. */
.star-rating__star--full,
.star-rating__star--half::after,
.review-card .head .rate .star-rating__star--full,
.review-card .head .rate .star-rating__star--half::after {
    color: var(--lagoon-gold);
}
/* …and in the review form's star input. */
.sri-input {
    --sri-star-color: #DCE3E6;
    --sri-star-filled: var(--lagoon-gold);
    --sri-star-hover: #FFD75E;
}

/* ----------------------------------------------------------- partnership */

/* The invitation to work together (catalog, partnership page): a white card
   on its shadow, the figures in navy ExtraBold. */
#partnership {
    padding: 70px 0;
}
#partnership .box {
    padding: 50px 60px;
    border: 0;
    border-radius: 0;
    background: #FFF;
    box-shadow: var(--lagoon-shadow);
}
#partnership .box .topic,
#claim-invite .topic {
    display: block;
    width: fit-content;
    margin: 0 auto;
    padding: 0;
    border-radius: 0;
    background: none;
    color: var(--lagoon-teal-deep);
    font-size: 13px;
    font-weight: 700;
    line-height: 18px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
#partnership .box .title {
    margin: 10px 0 0;
}
#partnership .box .description {
    color: var(--color-text-alt);
}
#partnership .box .list-items .item .icon {
    color: var(--lagoon-teal);
}
#partnership .box .list-items .item .label {
    color: var(--color-text);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
}
#partnership .box .list-items .drive::before {
    background-color: var(--lagoon-teal);
}
#partnership .box .start_cooperation {
    padding: 16px 30px;
    font-size: 16px;
}

/* The other pages' heroes: sentence case, the hero's weight. */
#create-review-preview .box .left .title,
#cooperation-statement-preview .box .left .title {
    font-size: 45px;
    font-weight: 800;
    line-height: 1.12;
    text-transform: none;
}

/* The company owners' invitation (partnership page): a teal-tinted panel,
   square, its title at the left. */
#claim-invite .box {
    border: 0;
    border-radius: 0;
    background: var(--lagoon-tint-soft);
}
#claim-invite .topic {
    margin: 0;
}
#claim-invite .title {
    margin-top: 10px;
    color: var(--color-text);
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
    text-align: left;
}
#claim-invite .steps .num {
    border-radius: 2px;
    background-color: var(--lagoon-teal);
    color: #FFF;
}

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

/* The catalog's head under the band: centred, no picture — the title, a
   word on how the list is made, the search. */
#catalog-preview {
    overflow: visible;
}
#catalog-preview .container > .row {
    display: block;
    padding: 20px 0 0;
    text-align: center;
}
#catalog-preview .left {
    flex-basis: auto;
    max-width: 920px;
    margin: 0 auto;
    padding: 0;
}
#catalog-preview .left .topic,
#catalog-preview .right {
    display: none;
}
#catalog-preview .left .title {
    margin: 0;
    color: var(--color-text);
    font-size: 34px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: none;
}
#catalog-preview .left .description {
    margin-top: 16px;
    color: var(--color-text-alt);
    font-size: 15px;
    line-height: 1.65;
}
#catalog-preview .left .search-form {
    margin: 28px auto 0;
}
#catalog-preview .left .search-form input {
    padding-right: 46px;
}
#catalog-preview .left .search-form .search-clear {
    right: 128px;
}
section#rating .title.full-title {
    margin-bottom: 20px;
    font-size: 28px;
}

/* --------------------------------------------------------- company page */

/* The head of a company's page as the reference lays it out: the name on a
   white strip, then three cards — the gallery, the site's verdict with the
   button to review, the marks by category. The base boxes around them give
   way (display: contents) so their parts sit in one grid; the middle card's
   white is drawn by the grid's own ::before across both its rows. */
#company-preview {
    overflow: visible;
}
#company-preview .inner {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
        "title title title"
        "gallery place marks"
        "gallery panel marks";
    column-gap: 24px;
    align-items: stretch;
    padding: 10px 0 30px;
}
#company-preview .inner::before {
    content: "";
    grid-column: 2;
    grid-row: 2 / 4;
    background: #FFF;
    box-shadow: var(--lagoon-shadow);
}
/* The base centres the gallery on phones with auto side margins and stops
   it at 576px. In this grid auto margins keep the item from stretching: it
   took the width of its 576px slides and pushed a phone's page sideways. It
   fills its grid area at every width instead, as the cards under it do. */
#company-preview .inner .left {
    grid-area: gallery;
    flex-basis: auto;
    width: auto;
    min-width: 0;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}
#company-preview .inner .right,
#company-preview .inner .right .info-box,
#company-preview .inner .right .info-box .inner-info-box,
#company-preview .inner .right .info-box .inner-info-box .part-left {
    display: contents;
}
#company-preview .inner .right .info-box > .topic,
#company-preview .inner .right .info-box .drive {
    display: none;
}
#company-preview .inner .right .info-box .inner-info-box .part-left .name {
    grid-area: title;
    margin: 0 0 30px;
    padding: 26px 24px;
    background: #FFF;
    box-shadow: var(--lagoon-shadow);
    color: var(--color-text);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}
#company-preview .inner .right .info-box .inner-info-box .part-left .rate {
    grid-area: place;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 30px 20px 6px;
    color: var(--color-text);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}
#company-preview .inner .right .info-box .inner-info-box .part-left .rate::before {
    width: 64px;
    height: 64px;
    flex-basis: auto;
    margin: 0 0 14px;
    border: 0;
    border-radius: 2px;
    background: var(--lagoon-teal);
    color: #FFF;
    font-size: 30px;
}
/* The base pins this panel to the card's foot on phones (absolute, with
   offsets); here it stays in the grid. */
#company-preview .inner .right .info-box .inner-info-box .part-left .panel {
    grid-area: panel;
    position: relative;
    inset: auto;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: auto;
    margin: 0;
    padding: 12px 20px 30px;
}
#company-preview .inner .right .info-box .inner-info-box .part-left .panel .btn {
    margin: 0;
    padding: 12px 24px;
    font-size: 15px;
    line-height: 20px;
}
#company-preview .inner .right .info-box .inner-info-box .part-left .panel .amount_reviews {
    margin: 0;
    color: var(--color-text);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}
#company-preview .inner .right .info-box .inner-info-box .part-left .panel .amount_reviews i {
    color: var(--lagoon-teal);
}
#company-preview .inner .right .info-box .part-right {
    grid-area: marks;
    padding: 26px 28px;
    background: #FFF;
    box-shadow: var(--lagoon-shadow);
}
#company-preview .inner .right .info-box .part-right .rate {
    color: var(--color-text-alt);
    font-size: 13px;
    font-weight: 600;
}
#company-preview .inner .right .info-box .part-right .rate .mark {
    color: var(--color-text);
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
}
#company-preview .inner .right .info-box .part-right .list-rate {
    margin-top: 16px;
}
#company-preview .inner .right .info-box .part-right .list-rate .item-list-rate {
    margin-top: 10px;
}
#company-preview .inner .right .info-box .part-right .list-rate .item-list-rate .label {
    color: var(--color-text);
    font-size: 14px;
    font-weight: 700;
}
#company-preview .inner .left .gallery .gallery-swiper {
    height: 300px;
}
#company-preview .inner .left .gallery .gallery-swiper img,
#company-preview .inner .left .gallery-swiper-bar .swiper-slide img {
    border-radius: 0;
}

/* About the company, with the sidebar of white boxes and the teal-tinted
   top five. */
#company-detail {
    padding: 40px 0 50px;
}
#company-detail .left .title {
    margin-bottom: 20px;
    font-size: 26px;
    text-align: left;
}
#company-detail .left .description,
#company-detail .left .description > p {
    color: var(--color-text);
    font-size: 16px;
    line-height: 1.7;
}
#company-detail .left .description ul {
    padding: 0;
    list-style: none;
}
#company-detail .left .description ul > li {
    position: relative;
    margin-top: 8px;
    padding-left: 24px;
}
#company-detail .left .description ul > li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 9px;
    width: 8px;
    height: 8px;
    background: var(--lagoon-teal);
}
#company-detail .right .site,
#company-detail .right .socials,
#company-detail .right .messengers,
#company-detail .right .contacts {
    margin: 0 0 20px;
    padding: 20px 22px;
    background: #FFF;
    box-shadow: var(--lagoon-shadow);
}
#company-detail .right .label {
    color: var(--color-text);
    font-size: 14px;
    font-weight: 800;
    line-height: 20px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
/* Leaving for the company's own site: the one green link. */
#company-detail .right .site a {
    color: var(--lagoon-green);
    font-size: 15px;
    font-weight: 700;
    word-break: break-all;
}
#company-detail .right .site a .icon {
    color: var(--lagoon-green);
}
#company-detail .right .site a:hover {
    color: var(--lagoon-green-hover);
    text-decoration: underline;
}
#company-detail .right .contacts-box .item {
    color: var(--color-text);
    font-size: 15px;
    word-break: break-all;
}
#company-detail .right .contacts-box .item .icon {
    color: var(--lagoon-teal);
}
#company-detail .right .owner-promo {
    margin-top: 0;
    padding: 22px;
    border: 0;
    border-radius: 0;
    background: var(--lagoon-tint-soft);
}
#company-detail .right .owner-promo .label {
    letter-spacing: 0;
    text-transform: none;
}
#company-detail .right .owner-promo .action + .action {
    border-top-color: var(--lagoon-tint);
}
#company-detail .right .top-list {
    margin-top: 24px;
    padding: 24px 22px 26px;
    background: var(--lagoon-tint-soft);
}
#company-detail .right .top-list .topic {
    max-width: none;
    margin: 0 0 6px;
    color: var(--color-text);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-align: center;
}
#company-detail .right .top-list .list .item {
    margin-top: 12px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
}
#company-detail .right .top-list .list .item a {
    text-decoration: none;
}
#company-detail .right .top-list .list .item .name {
    color: var(--color-text);
    font-size: 14px;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}
#company-detail .right .top-list .list .item a:hover .name {
    color: var(--lagoon-teal-deep);
}
#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);
    width: 32px;
    height: 32px;
    margin-right: 14px;
    padding: 0;
    border: 0;
    border-radius: 2px;
    background: var(--lagoon-teal);
    color: #FFF;
    font-family: var(--font-sans) !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 32px;
}
#company-detail .right .top-list .list .item .progress-bar {
    display: none;
}

/* The reviews of a company as the reference's: white cards, a face for the
   mark at the left, the text, then the author, the date, the stars and the
   kind of work. The head and its rating give way (display: contents) so
   their parts take the card's own grid. */
#company-reviews {
    padding: 30px 0 80px;
}
#company-reviews .container {
    max-width: calc(1100px + 40px);
}
#company-reviews .reviews-list > .topic {
    margin: 0 auto 10px;
}
#company-reviews .title {
    margin-bottom: 26px;
}
/* Five pills are wider than a 340px phone: they wrap, centred, spaced by
   gaps instead of the base's side margins. */
#company-reviews .filters .filter-stars {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
#company-reviews .filters .filter-stars .filter-stars-item {
    margin: 0;
    padding: 6px 14px;
    border: 1px solid var(--lagoon-teal);
    border-radius: 2px;
    background: #FFF;
    color: var(--color-text);
    font-weight: 600;
}
#company-reviews .filters .filter-stars .filter-stars-item.active {
    border-color: var(--lagoon-teal-deep);
    background: var(--lagoon-teal-deep);
    color: #FFF;
}
#company-reviews .list {
    margin-top: 30px;
}
#company-reviews .list .review-card {
    position: relative;
    display: grid;
    grid-template-columns: auto auto auto minmax(0, 1fr);
    grid-template-areas:
        "text text text text"
        "photos photos photos photos"
        "reply reply reply reply"
        "name date stars type"
        "bottom bottom bottom bottom";
    align-items: center;
    column-gap: 22px;
    margin: 0 0 20px;
    padding: 22px 28px 20px 84px;
    border: 0;
    border-radius: 0;
    background: #FFF;
    box-shadow: var(--lagoon-shadow);
}
#company-reviews .list .review-card:last-child {
    margin-bottom: 0;
}
#company-reviews .list .review-card::before {
    content: "";
    position: absolute;
    left: 26px;
    top: 24px;
    width: 36px;
    height: 36px;
    background: url('../img/face-plain.svg') center / contain no-repeat;
}
@supports selector(:has(*)) {
    #company-reviews .review-card:has(.star-rating[data-rating^="4"]),
    #company-reviews .review-card:has(.star-rating[data-rating^="5"]) {
        --lagoon-face: url('../img/face-good.svg');
    }
    #company-reviews .review-card:has(.star-rating[data-rating^="3"]) {
        --lagoon-face: url('../img/face-fair.svg');
    }
    #company-reviews .review-card:has(.star-rating[data-rating^="0"]),
    #company-reviews .review-card:has(.star-rating[data-rating^="1"]),
    #company-reviews .review-card:has(.star-rating[data-rating^="2"]) {
        --lagoon-face: url('../img/face-poor.svg');
    }
    #company-reviews .list .review-card::before {
        background-image: var(--lagoon-face, url('../img/face-plain.svg'));
    }
}
#company-reviews .review-card .head,
#company-reviews .review-card .head .rate {
    display: contents;
}
#company-reviews .review-card .head .rate .star-rating {
    grid-area: stars;
    justify-self: start;
}
#company-reviews .review-card .star-rating__stars,
#company-reviews .review-card .star-rating__star::before,
#company-reviews .review-card .star-rating__star--half::after {
    font-size: 15px;
}
#company-reviews .review-card .star-rating__star--half::after {
    top: 0;
}
#company-reviews .review-card .star-rating__star {
    margin-right: 2px;
}
#company-reviews .review-card .head .rate .star-rating__value {
    margin-left: 6px;
    color: var(--color-text);
    font-size: 14px;
    font-weight: 700;
}
#company-reviews .review-card .text {
    grid-area: text;
    margin: 0 0 12px;
    color: var(--color-text);
    font-size: 16px;
    line-height: 26px;
}
#company-reviews .review-card .photos {
    grid-area: photos;
    margin: 0 0 14px;
}
#company-reviews .review-card .company-reply {
    grid-area: reply;
    margin: 0 0 14px;
    border-left-color: var(--lagoon-teal);
    border-radius: 0;
    background: var(--lagoon-tint-soft);
}
#company-reviews .review-card .name,
#company-reviews .review-card .head .created_at {
    margin: 0;
    color: var(--color-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
}
#company-reviews .review-card .name {
    grid-area: name;
}
#company-reviews .review-card .head .created_at {
    grid-area: date;
}
/* The loading cards' bones (lists.js) take the stars' and the date's places:
   the head around them is display: contents here. */
#company-reviews .review-card.is-skeleton .skeleton-line--stars {
    grid-area: stars;
}
#company-reviews .review-card.is-skeleton .skeleton-line--date {
    grid-area: date;
}
#company-reviews .review-card .name::before,
#company-reviews .review-card .head .created_at::before {
    margin-right: 6px;
    color: var(--lagoon-teal);
    font-family: 'heroicons-outline' !important;
    font-size: 15px;
    font-weight: normal;
    line-height: 1;
}
#company-reviews .review-card .name::before {
    content: "\ea1a";
}
#company-reviews .review-card .head .created_at::before {
    content: "\e973";
    vertical-align: -2px;
}
#company-reviews .review-card .work-type {
    grid-area: type;
    justify-self: start;
    margin: 0;
    padding: 2px 10px;
    border-radius: 2px;
    background: var(--lagoon-tint-soft);
    color: var(--lagoon-teal-dark);
    font-size: 12px;
    font-weight: 600;
}
#company-reviews .review-card .bottom_panel {
    grid-area: bottom;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #EEF2F4;
    color: var(--lagoon-grey);
    font-size: 13px;
}
#company-reviews .review-card .bottom_panel .to_company {
    color: var(--lagoon-green);
    font-weight: 700;
    text-decoration: none;
}
#company-reviews .review-card .bottom_panel .to_company:hover {
    color: var(--lagoon-green-hover);
    text-decoration: underline;
}
#company-reviews .get_more,
#blog-listing .more-link {
    display: block;
    width: fit-content;
    margin: 36px auto 0;
    padding: 16px 28px;
    border-radius: 2px;
    background: var(--lagoon-teal-deep);
    box-shadow: var(--lagoon-button-shadow);
    color: #FFF;
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}
#company-reviews .get_more:hover,
#blog-listing .more-link:hover {
    background: var(--lagoon-teal-dark);
    color: #FFF;
}

/* ----------------------------------------------------------------- blog */

/* White cards on their shadow, square pictures; the company chips and the
   side articles alike. */
.blog-card,
.company-chip,
#blog-article .aside-articles .item,
#blog-article .aside-articles .item:nth-child(-n+3) {
    border: 0;
    border-radius: 0;
    box-shadow: var(--lagoon-shadow);
}
.blog-card .cover,
#blog-article .cover,
#blog-article .cover img {
    border-radius: 0;
}
.company-chip .badge-icon,
.company-chip .rank {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 2px;
    background: var(--lagoon-teal);
    color: #FFF;
}
.company-chip .bar {
    height: 6px;
    border-radius: 0;
    background: var(--lagoon-teal);
}
#blog-article .aside-articles .item .goto {
    color: var(--lagoon-teal-deep);
    font-weight: 600;
}

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

footer.lagoon-footer {
    padding: 44px 0 22px;
    background: var(--lagoon-teal-foot);
}
footer.lagoon-footer .row {
    align-items: flex-start;
}
footer.lagoon-footer .logo img {
    width: 44px;
    height: 44px;
}
.lagoon-footer .wordmark .name {
    font-size: 22px;
    line-height: 26px;
}
footer.lagoon-footer .row .menu .col {
    padding: 0 0 0 44px;
}
footer.lagoon-footer .row .menu .col .label {
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
footer.lagoon-footer .row .menu .col .item-menu {
    margin-top: 12px;
    color: #FFF;
    font-size: 15px;
    font-weight: 700;
    line-height: 20px;
}
footer.lagoon-footer .row .menu .col .item-menu:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}
footer.lagoon-footer .row .panel {
    gap: 18px;
    align-items: flex-end;
}
footer.lagoon-footer .row .panel .auth .reg {
    color: #FFF;
    font-weight: 600;
}
footer.lagoon-footer .row .panel .auth .login {
    border-radius: 2px;
    background: #FFF;
    color: var(--lagoon-teal-dark);
    font-weight: 700;
}
footer.lagoon-footer .row .locale .lang,
footer.lagoon-footer .row .locale .lang::after,
footer.lagoon-footer .col-locale .locale .lang,
footer.lagoon-footer .col-locale .locale .lang::after {
    color: #FFF;
    font-size: 15px;
}
footer.lagoon-footer .row .locale .lang.active,
footer.lagoon-footer .col-locale .locale .lang.active {
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 4px;
}
footer.lagoon-footer .bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 24px;
    margin-top: 34px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.24);
}
footer.lagoon-footer .bottom .copyright,
footer.lagoon-footer .bottom .domain {
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    font-weight: 400;
    line-height: 20px;
    text-align: left;
}
footer.lagoon-footer .bottom .domain {
    color: rgba(255, 255, 255, 0.66);
}

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

#not-found.lagoon-404 .container {
    padding-top: 0;
    padding-bottom: 0;
}
#not-found.lagoon-404 .box {
    padding: 30px 0 90px;
    text-align: center;
}
/* "404" with the zero a lifebuoy. */
#not-found.lagoon-404 .code {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--lagoon-navy);
    font-size: 132px;
    font-weight: 800;
    line-height: 1;
}
#not-found.lagoon-404 .code .zero {
    width: 112px;
    height: 112px;
}
#not-found.lagoon-404 .title {
    margin-top: 28px;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.2;
}
#not-found.lagoon-404 .text {
    max-width: 560px;
    margin: 12px auto 0;
    color: var(--color-text-alt);
    font-size: 17px;
    line-height: 1.6;
}
#not-found.lagoon-404 .actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px 28px;
    margin-top: 32px;
}
#not-found.lagoon-404 .btn {
    padding: 14px 30px;
    font-size: 16px;
}
#not-found.lagoon-404 .catalog-link {
    color: var(--lagoon-teal-deep);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px dashed currentColor;
}

/* ------------------------------------------------------------ long words */

/* A company's name is often one long word, its site and e-mail longer
   still: they break rather than push a phone's page sideways (Firefox does
   not break an address at its hyphens). */
#create-review-preview .box .left .title,
#cooperation-statement-preview .box .left .title,
#create-review-form form .company_name,
#company-preview .inner .right .info-box .inner-info-box .part-left .name,
#company-detail .left .title,
#company-reviews .title,
#claim .claim-head .title,
#company-detail .right .site a,
#company-detail .right .contacts-box .item {
    overflow-wrap: anywhere;
}

/* ------------------------------------------------------------ responsive */

/* The bar loses a size before it would run out of room — a company's
   representative gets one more link in it. */
@media (max-width: 1439px) {

    header.lagoon-header .menu .item {
        margin-right: 2px;
    }
    header.lagoon-header .menu .item > a {
        padding: 8px 9px;
        font-size: 16px;
    }
    header.lagoon-header .panel .auth {
        margin-right: 18px;
    }
    header.lagoon-header .panel .auth .reg {
        font-size: 15px;
    }
    header.lagoon-header .locale .lang,
    header.lagoon-header .locale .lang::after {
        font-size: 16px;
    }
}

@media (max-width: 1279px) {

    .lagoon-header .wordmark .tagline {
        display: none;
    }
}

@media (max-width: calc(1140px + 30px)) {

    header.lagoon-header .menu .item > a {
        padding: 8px 7px;
        font-size: 15px;
    }
    header.lagoon-header .panel {
        margin-left: 16px;
    }
    header.lagoon-header .panel .auth .login {
        padding: 9px 16px;
        font-size: 15px;
    }
    #home-preview .hero-title {
        font-size: 40px;
    }
    .list-rate_item,
    #rating .table-head {
        grid-template-columns: 56px 36px minmax(0, 1fr) 90px 140px 150px 170px;
        padding-left: 18px;
        padding-right: 16px;
    }
    #how_is_work .steps {
        gap: 20px;
    }
    #home-about_us .text {
        max-width: 760px;
    }
    footer.lagoon-footer .row .menu .col {
        padding-left: 28px;
    }
    footer.lagoon-footer .wordmark .tagline {
        display: none;
    }
    #company-preview .inner {
        grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
        column-gap: 18px;
    }
}

@media (max-width: 1100px) {

    header.lagoon-header .menu .item > a {
        padding: 8px 6px;
        font-size: 14px;
    }
    header.lagoon-header .locale .lang,
    header.lagoon-header .locale .lang::after {
        font-size: 15px;
    }
}

@media (max-width: calc(991px + 30px)) {

    /* The base drops the menu into a dropdown here: a white sheet, so its
       links turn navy. */
    header.lagoon-header .bar {
        padding: 22px 0;
    }
    header.lagoon-header .menu {
        margin-left: 18px;
    }
    header.lagoon-header .panel {
        margin-left: auto;
    }
    header.lagoon-header .panel .auth {
        margin-right: 0;
    }
    header.lagoon-header .menu .mobile-button .icon {
        font-size: 30px;
    }
    header.lagoon-header .menu .menu-box {
        border: 0;
        border-radius: 2px;
        box-shadow: var(--shadow-popover);
    }
    header.lagoon-header .menu .item > a {
        padding: 12px 40px 12px 12px;
        color: var(--color-text);
        font-size: 17px;
    }
    header.lagoon-header .menu .item > a:hover,
    header.lagoon-header .menu .item.active a {
        color: var(--lagoon-teal-deep);
        font-weight: 600;
    }
    header.lagoon-header .menu .item.locale-panel .locale {
        border-top-color: var(--color-border);
    }
    header.lagoon-header .menu .item.locale-panel .locale .lang,
    header.lagoon-header .menu .item.locale-panel .locale .lang::after {
        color: var(--color-text);
    }

    #home-preview {
        min-height: 0;
    }
    #home-preview .hero {
        padding-top: 40px;
        padding-bottom: 100px;
    }
    #home-preview .hero-title {
        font-size: 36px;
    }

    section#rating,
    #how_is_work {
        padding: 50px 0;
    }
    section#rating .title,
    #how_is_work .title,
    #home-reviews .title,
    #rate_info .wrap-title .title,
    #partnership .box .title,
    #company-reviews .title {
        margin-bottom: 30px;
        font-size: 30px;
    }
    /* One row still, the rating's bar left out — its figure stays. */
    .list-rate_item,
    #rating .table-head {
        grid-template-columns: 52px 32px minmax(0, 1fr) 70px 118px 44px 150px;
    }
    .list-rate_item .progress .progress-bar {
        display: none;
    }
    .list-rate_item .link > span::before {
        padding: 9px 14px;
        font-size: 13px;
    }
    #rate_info .wrap-steps {
        grid-template-columns: minmax(0, 1fr);
    }

    #home-about_us .text {
        max-width: 64%;
    }
    #how_is_work .steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px 30px;
    }
    .lagoon-why .team {
        width: 46%;
    }
    .lagoon-why .why-text {
        max-width: 56%;
    }

    #catalog-preview .container > .row {
        padding-top: 10px;
    }

    /* The company's head in two columns: the name, the gallery, then the
       verdict and the marks side by side. */
    #company-preview .inner {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-rows: auto auto 1fr auto;
        grid-template-areas:
            "title title"
            "gallery gallery"
            "place marks"
            "panel marks";
        row-gap: 0;
    }
    #company-preview .inner::before {
        grid-column: 1;
        grid-row: 3 / 5;
    }
    #company-preview .inner .left {
        margin-bottom: 24px;
    }
    #company-preview .inner .left .gallery .gallery-swiper {
        height: 320px;
    }

    footer.lagoon-footer .row {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {

    /* A row in three lines: the rank and the name; the stars, the reviews
       and the rating; the button across the card. */
    #rating .table-head {
        display: none;
    }
    .list-rate_item {
        grid-template-columns: 44px 30px auto auto minmax(0, 1fr);
        grid-template-areas:
            "rank icon name name name"
            "rank icon rate comment progress"
            "link link link link link";
        row-gap: 4px;
        padding: 14px 16px;
    }
    .list-rate_item::before,
    .list-rate_item--top::before {
        align-self: center;
    }
    .list-rate_item .name {
        padding-right: 0;
    }
    .list-rate_item .rate {
        margin-right: 14px;
    }
    .list-rate_item .star-rating__stars,
    .list-rate_item .star-rating__star::before,
    .list-rate_item .star-rating__star--half::after {
        font-size: 16px;
    }
    .list-rate_item .comment {
        margin-right: 14px;
        font-size: 15px;
    }
    .list-rate_item .progress {
        justify-content: flex-end;
    }
    .list-rate_item .link {
        justify-self: stretch;
        margin-top: 10px;
    }
    .list-rate_item .link > span {
        display: flex;
    }
    .list-rate_item .link > span::before {
        flex: 1 1 auto;
        justify-content: center;
        padding: 10px 14px;
        font-size: 14px;
    }

    /* The student under the text, rising from the panel's lower edge. */
    #home-about_us {
        padding-bottom: 0;
    }
    #home-about_us .text {
        max-width: none;
    }
    #home-about_us .text .lead {
        margin-bottom: 30px;
    }
    #home-about_us .mate {
        position: relative;
        display: block;
        width: fit-content;
        height: 300px;
        margin: 10px 0 0 auto;
        -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 30%);
        mask-image: linear-gradient(180deg, transparent 0, #000 30%);
    }

    #home-reviews .review {
        padding: 18px 18px 16px 62px;
    }
    #home-reviews .review::before {
        left: 16px;
        top: 20px;
        margin-top: 0;
        width: 32px;
        height: 32px;
    }
    #home-reviews .review .text {
        font-size: 15px;
        line-height: 24px;
    }
    #home-reviews .review .meta {
        gap: 4px 14px;
    }
    #home-reviews .review .meta .company {
        margin-left: 0;
    }

    /* The grey panel: the photo on top, the text under it. */
    .lagoon-why {
        padding: 0 0 120px;
    }
    .lagoon-why .team {
        position: relative;
        display: block;
        width: 100%;
        height: 240px;
        -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
        mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
    }
    .lagoon-why .why-text {
        max-width: none;
        margin-top: -30px;
    }
    .lagoon-why::after {
        height: 60px;
    }

    #partnership .box {
        padding: 36px 24px;
    }
    #claim-invite .title {
        font-size: 26px;
    }

    /* The company's head in one column. */
    #company-preview .inner {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
        grid-template-areas:
            "title"
            "gallery"
            "place"
            "panel"
            "marks";
    }
    #company-preview .inner::before {
        grid-column: 1;
        grid-row: 3 / 5;
    }
    #company-preview .inner .right .info-box .part-right {
        margin-top: 20px;
    }
    #company-preview .inner .right .info-box .inner-info-box .part-left .name {
        margin-bottom: 20px;
        padding: 20px;
        font-size: 22px;
    }

    /* A review on a phone: the text, then who and when, the stars, the
       kind of work. */
    #company-reviews .list .review-card {
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas:
            "text text"
            "photos photos"
            "reply reply"
            "name name"
            "date stars"
            "type type"
            "bottom bottom";
        padding: 18px 18px 16px 62px;
    }
    #company-reviews .review-card .head .created_at,
    #company-reviews .review-card .head .rate .star-rating {
        margin-top: 4px;
    }
    #company-reviews .list .review-card::before {
        left: 16px;
        top: 20px;
        width: 32px;
        height: 32px;
    }
    #company-reviews .review-card .text {
        font-size: 15px;
        line-height: 24px;
    }
    #company-reviews .review-card .work-type {
        margin-top: 8px;
    }
    #company-reviews .review-card .bottom_panel {
        display: flex;
        flex-wrap: wrap;
        gap: 4px 12px;
    }

    /* The footer: the logo on its own line, the columns, the account links
       and the language at the end. */
    footer.lagoon-footer .logo {
        flex-basis: 100%;
        margin: 0 0 26px;
    }
    footer.lagoon-footer .row .menu {
        order: 2;
        flex-basis: 100%;
        margin: 0;
        padding-top: 0;
    }
    footer.lagoon-footer .row .menu .col {
        padding: 0 16px 0 0;
    }
    footer.lagoon-footer .row .panel {
        order: 3;
        flex-basis: 100%;
        justify-content: flex-start;
        margin-top: 26px;
    }
    footer.lagoon-footer .bottom {
        flex-direction: column;
    }
}

@media (max-width: 576px) {

    header.lagoon-header {
        padding-bottom: 86px;
    }
    header.lagoon-header::after {
        height: 54px;
    }
    header.lagoon-header .bar {
        padding: 18px 0;
    }
    header.lagoon-header .logo {
        gap: 10px;
        margin-right: 12px;
    }
    header.lagoon-header .logo img {
        width: 40px;
        height: 40px;
    }
    .lagoon-header .wordmark .name {
        font-size: 20px;
        line-height: 24px;
    }
    header.lagoon-header .panel .auth .reg {
        display: none;
    }
    header.lagoon-header .panel .auth .login {
        padding: 8px 14px;
        font-size: 14px;
    }
    header.lagoon-header .menu {
        margin-left: 14px;
    }

    #home-preview {
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), calc(100% - 34px) 100%, 0 100%);
    }
    #home-preview .hero {
        padding-top: 22px;
        padding-bottom: 70px;
    }
    #home-preview .hero-title {
        font-size: 28px;
        line-height: 1.15;
    }
    #home-preview .hero-text {
        margin-top: 16px;
        font-size: 16px;
        line-height: 24px;
    }
    #home-preview .search-form,
    #catalog-preview .left .search-form {
        margin-top: 26px;
    }
    #home-preview .search-form .form-control,
    #catalog-preview .left .search-form input {
        min-width: 0;
        height: 50px;
        padding: 0 14px;
        font-size: 15px;
    }
    #home-preview .search-form .btn,
    #catalog-preview .left .search-form .btn {
        height: 50px;
        padding: 0 18px;
        font-size: 15px;
    }
    #home-preview .search-form .btn .label {
        display: none;
    }
    #catalog-preview .left .search-form input {
        padding-right: 40px;
    }
    #catalog-preview .left .search-form .search-clear {
        right: 96px;
    }

    section#rating,
    #how_is_work {
        padding: 36px 0;
    }
    section#rating .title,
    #how_is_work .title,
    #home-reviews .title,
    #rate_info .wrap-title .title,
    #partnership .box .title,
    #company-reviews .title,
    #catalog-preview .left .title,
    #not-found.lagoon-404 .title {
        margin-bottom: 20px;
        font-size: 24px;
        line-height: 1.25;
    }
    #catalog-preview .left .title {
        margin-bottom: 0;
    }
    section#rating > .container > .prompt {
        margin: -4px auto 24px;
        font-size: 15px;
    }
    #rating #rate_info {
        padding: 22px 18px;
    }
    #rate_info {
        padding: 44px 0;
    }
    #rating .all,
    #rating .get_more {
        width: 100%;
    }
    .list-rate_item .name {
        font-size: 15px;
        line-height: 20px;
    }

    #home-about_us {
        margin: 10px 0;
        padding-top: 40px;
    }
    #home-about_us .text,
    #home-about_us .text .lead {
        font-size: 15px;
        line-height: 24px;
    }
    #home-about_us .text .title,
    .lagoon-why .why-text .title {
        font-size: 24px;
    }
    #home-about_us .mate {
        height: 260px;
    }

    #how_is_work .steps {
        grid-template-columns: minmax(0, 1fr);
        gap: 34px;
    }
    #how_is_work .step .num {
        font-size: 72px;
    }

    #home-reviews {
        padding: 20px 0 50px;
    }

    .lagoon-why .team {
        height: 200px;
    }
    .lagoon-why .why-text {
        font-size: 15px;
        line-height: 24px;
    }
    .lagoon-why .why-button {
        display: flex;
        justify-content: center;
    }

    #company-preview .inner .left .gallery .gallery-swiper {
        height: 230px;
    }
    #company-detail .left .title {
        font-size: 22px;
    }

    #create-review-preview .box .left .title,
    #cooperation-statement-preview .box .left .title {
        font-size: 30px;
    }

    #not-found.lagoon-404 .code {
        font-size: 84px;
    }
    #not-found.lagoon-404 .code .zero {
        width: 72px;
        height: 72px;
    }

    footer.lagoon-footer .row .menu .col {
        flex-basis: 50%;
    }
}

@media (max-width: 400px) {

    /* The stars, the reviews and the rating keep their line: the rank and
       the gaps give way. */
    .list-rate_item {
        grid-template-columns: 36px 26px auto auto minmax(0, 1fr);
        padding: 14px 12px;
    }
    .list-rate_item .rate,
    .list-rate_item .comment {
        margin-right: 8px;
    }
    .list-rate_item .star-rating__stars,
    .list-rate_item .star-rating__star::before,
    .list-rate_item .star-rating__star--half::after {
        font-size: 14px;
    }

    /* The date and the stars no longer share a row: the stars go first. */
    #company-reviews .list .review-card {
        grid-template-areas:
            "text text"
            "photos photos"
            "reply reply"
            "name name"
            "stars stars"
            "date date"
            "type type"
            "bottom bottom";
    }
}

/* 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;
    }
}
