/* The home page (T/template-home-new.php, docs/home.md): the rules the old page used, in its order: style.css (the spinner),
   css/main.css (#dynamic-search, body.home) and css/home-new.css. The rules of the first two are scoped to this page
   with :where(.page-home), which keeps their weight. Old names: .hn-main → .home, .hn-container → .container, .hn-offer-* → .offer-card__* (as in offers.css),
   .hn-hero-search/.hn-search-* → .hero-search* (as on the 404 page), any other .hn-X → .home-X; the short classes inside
   a block (.stars, .ava, .who, .cnt, .t…) → .{block}__stars, __avatar, __name, __count, __name…
   Generated by a port script; keep the order of the rules when editing. */

@keyframes home-rolling {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ---------- style.css ---------- */

:where(.page-home) .hero-search__spinner {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    height: 100%;
    overflow: hidden;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
}

:where(.page-home) .hero-search__spinner-ring div {
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    width: 18px;
    height: 18px;
    margin: 0 auto;
    border: 2px solid #000;
    border-top-color: transparent;
    border-radius: 50%;
    -webkit-animation: home-rolling 1s linear infinite;
    animation: home-rolling 1s linear infinite;
    transform: scale(0.2);
}

:where(.page-home) .hero-search__spinner-ring {
    height: 100%;
    width: 100%;
}

:where(.page-home) #dynamic-search-inner > p {
    margin-bottom: 0;
}

/* ---------- css/main.css ---------- */

:where(.page-home) h1 {
    margin: 0 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif;
    font-weight: 400;
    color: #333;
    text-transform: none;
}

:where(.page-home) h1 {
    font-size: 2.23125rem;
    line-height: 1.2;
}

@media (min-width: 960px) {
    :where(.page-home) h1 {
        font-size: 2.625rem;
    }

}

:where(.page-home) .c-search__input-box {
    margin-bottom: 20px;
}

:where(.page-home) *+.c-search__input-box {
    margin-top: 20px !important;
}

:where(.page-home) h1 {
    font-family: Poppins, sans-serif;
}

:where(.page-home) .hero-search__input {
    color: #000;
}

:where(.page-home) h1 {
    display: inline-block;
}

:where(.page-home) .hero-search__input {
    font-size: 0.875em;
    font-weight: 500;
    height: 3.28571em;
    border: 0;
    margin: 0.64286em 0;
    border-radius: 0;
    padding-left: 1.42857em;
}

:where(.page-home) .c-search__input-box {
    max-width: 569px;
    position: relative;
    padding: 0 1em;
    border: none;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin-bottom: 0;
}

:where(.page-home) .hero-search__input,
:where(.page-home) .c-search__input-box {
    width: 100%;
    -webkit-transition: all 0.15s ease-out;
    -o-transition: all 0.15s ease-out;
    transition: all 0.15s ease-out;
}

:where(.page-home) .hero-search__input {
    height: 100%;
    padding: 0;
    margin: 0;
    background-color: transparent;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    color: #000;
    font-weight: 700;
    font-size: 18px;
}

:where(.page-home) #dynamic-search {
    -webkit-box-direction: normal;
    background-color: #fff;
    border-radius: 0px;
    width: 100%;
}

:where(.page-home) #dynamic-search {
    display: none;
    position: absolute;
    bottom: -10px;
    -webkit-box-orient: vertical;
    -ms-flex-flow: column;
    flex-flow: column;
    -webkit-transform: translateY(100%);
    -o-transform: translateY(100%);
    transform: translateY(100%);
    max-height: 350px;
    overflow: hidden;
    -webkit-box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.2);
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    padding: 20px;
}

:where(.page-home) #dynamic-search>div {
    overflow: auto;
    max-height: 320px;
}

:where(.page-home) #dynamic-search>div::-webkit-scrollbar {
    width: 8px;
}

:where(.page-home) #dynamic-search>div::-webkit-scrollbar-track {
    background: #d0d0d0;
    border-radius: 16px;
}

:where(.page-home) #dynamic-search>div::-webkit-scrollbar-thumb {
    background-color: #444;
    border-radius: 16px;
}

:where(.page-home) #dynamic-search a {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-flow: row;
    flex-flow: row;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 12px 15px;
    border-bottom: 2px solid #f0f0f0;
}

@media (max-width: 400px) {
    :where(.page-home) #dynamic-search a {
        -webkit-box-pack: start;
        -ms-flex-pack: start;
        justify-content: flex-start;
        text-align: left;
    }

}

:where(.page-home) #dynamic-search a:hover {
    background-color: #f0f0f0;
}

:where(.page-home) #dynamic-search a:last-child {
    border: none;
}

:where(.page-home) #dynamic-search a p {
    margin: 0;
    text-align: left;
}

:where(.page-home) #dynamic-search a p:first-of-type {
    width: 84%;
}

:where(.page-home) #dynamic-search a p:last-of-type {
    font-size: 14px;
    width: 16%;
    text-align: right;
}

@media (max-width: 400px) {
    :where(.page-home) #dynamic-search a p:last-child {
        display: none;
    }

}

:where(.page-home) h1 {
    padding: 20px 16px 7px;
    color: #000;
    font-size: 22px;
    display: block;
    max-width: var(--container);
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0 auto;
    font-weight: 700;
    text-transform: uppercase;
}

@media (min-width: 900px) {
    :where(.page-home) h1 {
        padding: 40px 60px 7px;
    }

}

@media (min-width: 450px) {
    :where(.page-home) h1 {
        font-size: 30px;
    }

}

.page-home h2 {
    margin-top: 107px !important;
    padding-top: 0px !important;
    padding-bottom: 0px !important;
    margin-bottom: 37px !important;
}

/* ---------- css/home-new.css ---------- */

.home,
.home *,
.home *::before,
.home *::after {
    box-sizing: border-box;
}

.home {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: clip;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.home *,
.home *::before,
.home *::after {
    margin: 0;
    padding: 0;
}

.home .offer-card__location span {
    color: inherit;
}

.home h1,
.home h2,
.home h3 {
    display: block;
    width: auto;
    text-transform: none;
    letter-spacing: normal;
    background: none;
    border: 0;
}

.home h2::before,
.home h2::after,
.home h3::before,
.home h3::after {
    content: none;
}

.home a {
    color: inherit;
    text-decoration: none;
}

.home img {
    display: block;
    max-width: 100%;
}

.home button {
    font-family: inherit;
    cursor: pointer;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 32px;
}

.home-section {
    display: block;
    width: 100%;
    padding: 104px 0;
    background: var(--paper);
}

.home-section-head {
    margin-bottom: 0;
}

.home .home-section-title {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.home-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 14px;
}

.home .home-section-title {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.2;
    color: var(--ink);
    text-align: left;
}

.home-head-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.home-see-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
}

.home-see-all:hover {
    color: var(--red);
}

.home-hero {
    position: relative;
    display: block;
    width: 100%;
    background-color: var(--ink);
    background-size: cover;
    background-position: 70% 50%;
    background-repeat: no-repeat;
    color: #fff;
}

.home-hero::before {
    content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13, 14, 17, 1) 0%, rgba(13, 14, 17, 0.96) 38%, rgba(13, 14, 17, 0.7) 64%, rgba(13, 14, 17, 0.35) 100%);
}

.home-hero--plain {
    background-color: var(--ink);
}

.home-hero--plain::before {
    content: none;
}

.home-hero-grid {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 80px;
    align-items: center;
    padding-top: 96px;
    padding-bottom: 96px;
}

.home-hero-content {
    min-width: 0;
}

.home .home-hero h1 {
    font-size: clamp(36px, 3.2vw, 48px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
    max-width: 520px;
    color: #fff;
    text-align: left;
    text-wrap: balance;
}

.home .home-hero h1 em,
.home .home-hero h1 strong {
    font-style: normal;
    font-weight: inherit;
    color: var(--red);
}

.home .home-hero-content > p {
    margin-top: 24px;
    font-size: 16.5px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.72);
    max-width: 480px;
    text-align: left;
}

.hero-search {
    position: relative;
    margin-top: 36px;
    max-width: 540px;
}

.home .hero-search__row {
    display: flex; align-items: stretch; background: #fff; border-radius: calc(var(--radius) + 2px);
    padding: 6px;
    margin: 0;
    box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.55);
}

.hero-search__field {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 8px 0 14px;
    color: var(--muted);
}

.home .hero-search__field > svg {
    flex: none;
    width: 18px;
    height: 18px;
}

.home .hero-search__row input.hero-search__input {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    height: 52px;
    border: 0;
    outline: none;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--ink);
    padding: 0;
    margin: 0;
}

.home .hero-search__row input.hero-search__input::placeholder {
    color: var(--muted-2);
    font-weight: 600;
}

.home .hero-search__button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--red);
    color: #fff;
    border: 0;
    border-radius: var(--radius);
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0 26px;
    height: 52px;
    flex: none;
    margin: 0;
    transition: background 0.15s ease;
}

.home .hero-search__button:hover {
    background: var(--red-dark);
}

.home .hero-search__button svg {
    width: 16px;
    height: 16px;
}

.home .home-hero .hero-search__spinner {
    display: none;
    flex: none;
    align-self: center;
    margin-right: 10px;
}

.home #dynamic-search {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    bottom: auto;
    transform: none;
    padding: 0;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 24px 48px -16px rgba(13, 14, 17, 0.25);
    max-height: 380px;
    overflow-y: auto;
    z-index: 60;
}

.home #dynamic-search-inner {
    max-height: none;
    overflow: visible;
}

.home #dynamic-search-inner a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
}

.home #dynamic-search-inner a:last-child {
    border-bottom: 0;
}

.home #dynamic-search-inner a:hover {
    background: var(--red-soft);
}

.home #dynamic-search-inner a p {
    margin: 0;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
}

.home #dynamic-search-inner a p:last-child {
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
}

.home #dynamic-search-inner > p {
    margin: 0;
    padding: 14px 16px;
    font-size: 14px;
    color: var(--muted);
    text-align: left;
}

.home #dynamic-search-inner > p.nav-search-results__head {
    padding: 11px 16px 7px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted-2);
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}

.home-hero-popular {
    margin-top: 18px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 13.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
}

.home .home-hero-popular span {
    color: #fff;
}

.home .home-hero-popular a {
    color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    padding-bottom: 1px;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.home .home-hero-popular a:hover {
    color: var(--red);
    border-color: var(--red);
}

.home-hero-reviews {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.home-rev {
    background: #fff;
    color: var(--ink);
    border-radius: 10px;
    padding: 18px 20px;
    box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.5);
}

.home-hero-reviews .home-rev:nth-child(odd) {
    transform: translateX(28px);
}

.home-hero-reviews .home-rev:nth-child(even) {
    transform: translateX(-16px);
}

.home-rev .home-rev__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.home-rev .home-rev__avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    color: var(--muted);
    flex: none;
}

.home-rev .home-rev__name {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.3;
}

.home-rev .home-rev__place {
    display: block;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--muted);
}

.home-rev .home-rev__stars {
    margin-left: auto;
    color: #e8a013;
    font-size: 14px;
    letter-spacing: 2px;
    white-space: nowrap;
}

.home .home-rev p {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.55;
    color: var(--ink-2);
    text-align: left;
}

.home .home-hero-reviews-link {
    align-self: flex-end;
    margin-right: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.home-devs {
    background: var(--band);
}

.home-dev-grid {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}

.home-devs .home-dev-grid {
    align-items: stretch;
}

.home-devs .home-dev-meta {
    margin-bottom: 18px;
}

.home .home-devs .home-dev-cta {
    margin-top: auto;
}

.home-dev-card {
    position: relative;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 24px 24px;
    margin: 0;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.home-dev-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.home .home-dev-card h3 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin: 0 0 16px;
    color: var(--ink);
    text-align: left;
    min-height: 2.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-dev-rate {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.home .home-dev-rate .home-dev-rate__stars {
    color: #e8a013;
    letter-spacing: 2px;
    font-size: 13px;
}

.home .home-dev-rate .home-dev-rate__rating {
    color: var(--ink);
    font-weight: 800;
}

.home .home-dev-rate .home-dev-rate__count {
    color: var(--muted);
    font-weight: 600;
}

.home .home-dev-rate--empty .home-dev-rate__stars {
    color: var(--muted-2);
}

.home .home-dev-card h3:has(+ .home-dev-rate) {
    margin-bottom: 6px;
}

.home-dev-meta {
    border-top: 1px solid var(--line);
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--muted);
    text-align: left;
}

.home-dev-meta b {
    color: var(--ink);
    font-weight: 800;
}

.home-dev-cities {
    color: var(--muted-2);
    font-weight: 600;
    font-size: 12.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home .home-dev-cta {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    border: 1.5px solid var(--red);
    border-radius: var(--radius);
    color: var(--red);
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: background 0.15s ease, color 0.15s ease;
}

.home .home-dev-cta:hover {
    background: var(--red);
    color: #fff;
}

.home .home-dev-cta::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.home-city-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.home .home-city-tab {
    display: inline-block;
    border: 1.5px solid var(--line);
    background: var(--paper);
    color: var(--ink);
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    padding: 11px 20px;
    border-radius: 999px;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.home .home-city-tab:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.offer-grid {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.offer-card {
    position: relative;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.home .offer-card__cta::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.offer-card:hover .offer-card__cta {
    background: var(--red-dark);
}

.offer-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--bg);
    overflow: hidden;
}

.offer-card__media > a {
    position: absolute;
    inset: 0;
    display: block;
}

.offer-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home .offer-card__media .favorite-button {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    margin: 0;
    color: var(--ink);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
    transition: color 0.15s ease, box-shadow 0.15s ease;
}

.home .offer-card__media .favorite-button:hover {
    color: var(--red);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.home .offer-card__media .favorite-button svg {
    width: 18px;
    height: 18px;
}

.offer-card__body {
    padding: 24px 24px 0;
}

.home .offer-card__name {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
    text-align: left;
    transition: color 0.15s ease;
    min-height: 2.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.offer-card:hover .offer-card__name {
    color: var(--red);
}

.offer-card__location {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--muted);
    line-height: 1.45;
    text-align: left;
}

.offer-card__location span {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.offer-card__location svg {
    width: 14px;
    height: 14px;
    flex: none;
    color: var(--muted-2);
}

.offer-card__specs {
    margin: 18px 24px 0;
    border-top: 1px solid var(--line);
}

.offer-card__specs .offer-card__spec {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 10px 0;
}

.offer-card__specs .offer-card__spec + .offer-card__spec {
    border-top: 1px solid var(--line);
}

.offer-card__specs dt {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--muted);
    white-space: nowrap;
}

.offer-card__specs dd {
    font-size: 14px;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.4;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.home .offer-card__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px 24px 24px;
    height: 50px;
    border: 0;
    border-radius: var(--radius);
    background: var(--red);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    transition: background 0.15s ease;
}

.home .offer-card__cta:hover {
    background: var(--red-dark);
    color: #fff;
}

.home-features {
    background: var(--ink);
    color: #fff;
}

.home-features .home-section-head {
    margin-bottom: 44px;
}

.home .home-features .home-section-title {
    color: #fff;
}

.home-op-cards {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.home-op-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 32px 30px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.home-op-card:hover {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.07);
}

.home .home-op-card h3 {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #fff;
    text-align: left;
}

.home .home-op-card p {
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.62);
    text-align: left;
}

.home-op-quote {
    margin-top: 28px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 34px 40px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
}

.home .home-op-quote .home-op-quote__quote {
    font-size: 21px;
    font-weight: 600;
    line-height: 1.5;
    color: #fff;
    text-align: left;
}

.home-op-quote .home-op-quote__quote::before {
    content: "\201E";
    color: var(--red);
}

.home-op-quote .home-op-quote__quote::after {
    content: "\201D";
    color: var(--red);
}

.home-op-quote .home-op-quote__person {
    display: flex;
    align-items: center;
    gap: 14px;
}

.home-op-quote .home-op-quote__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: grid;
    place-items: center;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    flex: none;
}

.home-op-quote .home-op-quote__name {
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
}

.home-op-quote .home-op-quote__place {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.55);
}

.home-op-quote .home-op-quote__stars {
    display: block;
    color: #e8a013;
    letter-spacing: 2px;
    font-size: 13px;
    white-space: nowrap;
}

.home-op-cta-bar {
    margin-top: 28px;
    background: var(--red);
    border-radius: 10px;
    padding: 26px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.home-op-cta-bar .home-op-cta-bar__title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
    text-align: left;
}

.home .home-op-cta-bar .home-op-cta-bar__text {
    margin-top: 4px;
    font-size: 13.5px;
    font-weight: 400;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    text-align: left;
}

.home .home-op-cta-bar .home-op-cta-bar__button {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 50px;
    padding: 0 28px;
    background: #fff;
    color: var(--ink);
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.home .home-op-cta-bar .home-op-cta-bar__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.4);
}

.home .home-op-quote .home-op-quote__quote:not(#wpadminbar *),
.home .home-op-cta-bar .home-op-cta-bar__title:not(#wpadminbar *) {
    font-family: 'Google Sans', 'Sora', sans-serif !important;
}

.home-blog {
    background: var(--band);
}

.home-blog .home-section-head {
    margin-bottom: 44px;
}

.home-blog-grid {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.home .home-blog-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
    box-shadow: var(--shadow-card);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.home .home-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.home-blog-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    background: #ecece9;
    overflow: hidden;
}

.home-blog-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-blog-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px 22px 22px;
}

.home .home-blog-card h3 {
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.005em;
    color: var(--ink);
    text-align: left;
    text-wrap: pretty;
    transition: color 0.15s ease;
}

.home .home-blog-card:hover h3 {
    color: var(--red);
}

.home .home-blog-card p {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--muted);
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-blog-more {
    margin-top: auto;
    padding-top: 16px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--red);
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.home-directory {
    background: var(--paper);
}

.home-dir-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--line);
    margin-bottom: 36px;
}

.home .home-dir-tab {
    background: none;
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    margin: 0 36px -1px 0;
    padding: 14px 4px 16px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted-2);
    transition: color 0.15s ease, border-color 0.15s ease;
}

.home .home-dir-tab:hover {
    color: var(--ink);
}

.home .home-dir-tab.is-active {
    color: var(--ink);
    border-bottom-color: var(--red);
}

.home-dir-panel {
    display: none;
}

.home-dir-panel.is-active {
    display: block;
}

.home-dir-cols {
    columns: 3;
    column-gap: 40px;
}

.home .home-dir-cols a {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 7px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-2);
    break-inside: avoid;
    transition: color 0.12s ease;
}

.home .home-dir-cols a:hover {
    color: var(--red);
}

.home-dir-cols a .home-dir-cols__name {
    flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
}

.home-dir-cols .home-dir-cols__count {
    flex: none;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted-2);
    font-variant-numeric: tabular-nums;
}

@media (max-width: 1180px) {
    .offer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-dev-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-dir-cols {
        columns: 2;
    }

}

@media (max-width: 1160px) {
    .home-hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 48px;
        padding-top: 56px;
        padding-bottom: 64px;
    }

    .home-hero::before {
        background: linear-gradient(180deg, rgba(13, 14, 17, 1) 0%, rgba(13, 14, 17, 0.92) 50%, rgba(13, 14, 17, 0.7) 100%);
    }

    .home-hero-content {
        max-width: 600px;
        margin: 0 auto;
    }

    .home-hero-popular {
        justify-content: center;
    }

    .hero-search {
        max-width: none;
    }

    .home-hero-reviews {
        display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
        width: 100%;
        max-width: 760px;
        margin: 0 auto;
    }

    .home-hero-reviews .home-rev {
        transform: none;
    }

    .home .home-hero-reviews-link {
        grid-column: 1 / -1;
        justify-self: center;
        align-self: auto;
        margin-right: 0;
    }

    .home-op-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 760px) {
    .container {
        padding: 0 20px;
    }

    .home-hero-grid {
        padding-top: 48px;
        padding-bottom: 56px;
    }

    .home-section {
        padding: 64px 0;
    }

    .home .home-section-title {
        font-size: 26px;
    }

    .home .home-hero h1 {
        font-size: 32px;
        max-width: 100%;
    }

    .home .home-hero-content > p {
        font-size: 15.5px;
        max-width: 100%;
    }

    .home-head-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .home-hero-reviews {
        grid-template-columns: minmax(0, 1fr);
        max-width: 460px;
    }

    .home-hero-reviews .home-rev:nth-child(even) {
        transform: translateX(-28px);
    }

    .home-op-cards {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-dir-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .home-dir-tabs::-webkit-scrollbar {
        display: none;
    }

    .home .home-dir-tab {
        flex: 0 0 auto;
        white-space: nowrap;
        margin-right: 18px;
        font-size: 12px;
        letter-spacing: 0.04em;
        padding: 12px 2px 14px;
    }

    .home-op-quote {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 26px 24px;
    }

    .home .home-op-quote .home-op-quote__quote {
        font-size: 18px;
    }

    .home-op-cta-bar {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
        padding: 24px;
    }

    .home .home-op-cta-bar .home-op-cta-bar__button {
        justify-content: center;
    }

}

@media (max-width: 620px) {
    .home-dev-grid,
    .offer-grid,
    .home-blog-grid {
        display: flex;
        align-items: stretch;
        gap: 16px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        padding: 6px 0 14px;
        scrollbar-width: thin;
        scrollbar-color: var(--red) rgba(13, 14, 17, 0.08);
        -webkit-overflow-scrolling: touch;
    }

    .home-dev-grid::-webkit-scrollbar,
    .offer-grid::-webkit-scrollbar,
    .home-blog-grid::-webkit-scrollbar {
        height: 4px;
    }

    .home-dev-grid::-webkit-scrollbar-track,
    .offer-grid::-webkit-scrollbar-track,
    .home-blog-grid::-webkit-scrollbar-track {
        background: rgba(13, 14, 17, 0.08);
    }

    .home-dev-grid::-webkit-scrollbar-thumb,
    .offer-grid::-webkit-scrollbar-thumb,
    .home-blog-grid::-webkit-scrollbar-thumb {
        background: var(--red);
    }

    .home-dev-grid > *,
    .offer-grid > *,
    .home-blog-grid > * {
        scroll-snap-align: start;
    }

    .offer-grid > * {
        flex: 0 0 84%;
    }

    .home-dev-grid > * {
        flex: 0 0 72%;
    }

    .home-blog-grid > * {
        flex: 0 0 78%;
    }

    .home-city-tabs {
        flex-wrap: nowrap;
        width: 100%;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

    .home-city-tabs::-webkit-scrollbar {
        display: none;
    }

    .home .home-city-tab {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .home-dir-cols {
        columns: auto;
        display: grid;
        grid-auto-flow: column;
        grid-template-rows: repeat(8, auto);
        grid-auto-columns: 74%;
        gap: 2px 28px;
        overflow-x: auto;
        padding-bottom: 14px;
        scrollbar-width: thin;
        scrollbar-color: var(--red) rgba(13, 14, 17, 0.1);
    }

    .home-dir-cols::-webkit-scrollbar {
        height: 6px;
    }

    .home-dir-cols::-webkit-scrollbar-track {
        background: rgba(13, 14, 17, 0.1);
    }

    .home-dir-cols::-webkit-scrollbar-thumb {
        background: var(--red);
    }

    .home .hero-search__row {
        padding: 5px;
        flex-wrap: wrap;
    }

    .home .hero-search__field {
        width: 100%;
    }

    .home .hero-search__row input.hero-search__input {
        font-size: 14.5px;
    }

    .home .hero-search__button {
        width: 100%;
        justify-content: center;
        margin-top: 5px;
        height: 46px;
        padding: 0 16px;
        font-size: 12.5px;
        letter-spacing: 0.05em;
    }

}

@media (pointer: coarse) {
    .home .hero-search__row input.hero-search__input {
        font-size: 16px;
    }

}

/* The footer sits right on the directory: main.css gave the gap only to pages without body.home. */
.page-home .site-footer {
    margin-top: 0;
}
