/* Design tokens from the rrg.ru mockups */
:root {
    --color-text: #101820;
    --color-dark: #0A1017;
    --color-bg: #F4F5F7;
    --color-white: #FFFFFF;
    --color-border: #E1E5EB;
    --color-border-strong: #CBD2DB;
    --color-text-secondary: #3E4756;
    --color-text-muted: #5A6372;
    --color-body-text: #1E2733;
    --color-input-border: #8A94A3;
    --color-on-dark: #C9D1DC;
    --color-on-dark-line: #26303C;
    --color-on-dark-border: #6B7686;
    --accent: #C93A14;
    --accent-on-dark: #FF8A63;

    --font-base: "Manrope", system-ui, sans-serif;
    --container: 1200px;
    --gutter: 32px;
    --radius: 4px;
    --tap: 44px;
}

/* Base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    font-family: var(--font-base);
    line-height: 1.5;
    color: var(--color-text);
    background: var(--color-bg);
}

/* Keeps the footer at the bottom of short pages */
main {
    flex: 1 0 auto;
}

img,
svg {
    display: block;
    max-width: 100%;
}

/* width/height attributes reserve space; let CSS (aspect-ratio, object-fit) decide the box */
img {
    height: auto;
}

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

a:hover {
    text-decoration: underline;
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -100px;
    z-index: 100;
    padding: 12px 16px;
    background: var(--color-text);
    color: var(--color-white);
    font-weight: 700;
}

.skip-link:focus {
    top: 16px;
}

/* Top bar */
.topbar {
    background: var(--color-dark);
    color: var(--color-on-dark);
    font-size: 13px;
}

.topbar__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 28px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.topbar__phone {
    font-weight: 600;
}

/* Header */
.site-header {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 32px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.site-header__logo {
    margin-right: auto;
}

.site-header__logo img {
    height: 60px;
    width: auto;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0 4px;
}

.main-nav__link {
    display: block;
    padding: 12px 10px;
    font-size: 15px;
    font-weight: 600;
}

.main-nav__link.is-active {
    box-shadow: inset 0 -3px 0 var(--accent);
}

.icon-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--tap);
    height: var(--tap);
    padding: 0;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius);
    background: var(--color-white);
    color: var(--color-text);
    cursor: pointer;
}

.nav-toggle,
.header-call {
    display: none;
}

.header-call {
    color: var(--accent);
}

@media (max-width: 860px) {
    /* The address and phone line gives way to the call button in the header */
    .topbar {
        display: none;
    }

    .header-call,
    .js .nav-toggle {
        display: flex;
    }

    .main-nav {
        order: 3;
        width: 100%;
        flex-direction: column;
        border-top: 1px solid var(--color-border);
        padding-top: 8px;
    }

    .js .main-nav:not(.is-open) {
        display: none;
    }

    .main-nav__link {
        padding: 14px 4px;
        font-size: 17px;
    }
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.breadcrumbs__current {
    color: var(--color-text);
    font-weight: 600;
}

/* Footer */
.site-footer {
    background: var(--color-dark);
    color: var(--color-on-dark);
}

.site-footer .container {
    padding-top: 56px;
    padding-bottom: 32px;
}

.site-footer__top {
    display: flex;
    flex-wrap: wrap;
    gap: 36px 64px;
    margin-bottom: 40px;
}

.site-footer__contacts {
    flex: 1 1 280px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 15px;
}

.site-footer__logo {
    height: 72px;
    width: auto;
    align-self: flex-start;
    margin-bottom: 6px;
}

.site-footer__phone {
    color: var(--color-white);
    font-weight: 700;
}

.site-footer__nav {
    flex: 1.4 1 360px;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0 24px;
}

.site-footer__nav a {
    display: block;
    min-width: 140px;
    padding: 10px 0;
    font-size: 15px;
    font-weight: 600;
}

.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 32px;
    padding-top: 20px;
    border-top: 1px solid var(--color-on-dark-line);
    font-size: 13px;
}

.site-footer__legal {
    text-decoration: underline;
}

/* Buttons and links */
.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.btn:hover {
    text-decoration: none;
    filter: brightness(1.12);
}

.btn--large {
    min-height: 52px;
    padding: 0 28px;
    font-size: 16px;
}

.btn--accent {
    background: var(--accent);
    color: var(--color-white);
    font-weight: 800;
}

.btn--dark {
    background: var(--color-text);
    color: var(--color-white);
}

.btn--outline-light {
    border-color: var(--color-on-dark-border);
    color: var(--color-white);
}

.section--accent .btn--outline-light {
    border-color: var(--color-white);
}

.link-arrow {
    font-weight: 700;
    color: var(--accent);
}

/* Sections */
.section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.section--white {
    background: var(--color-white);
}

.section--dark {
    background: var(--color-text);
    color: var(--color-white);
}

.section--dark .link-arrow {
    color: var(--accent-on-dark);
}

.section--accent {
    padding-top: 64px;
    padding-bottom: 64px;
    background: var(--accent);
    color: var(--color-white);
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px 24px;
    margin-bottom: 36px;
}

.section-title {
    margin: 0;
    font-size: 40px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Home: hero */
.hero {
    background: var(--color-text);
    color: var(--color-white);
}

.hero__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 48px;
    padding-top: 88px;
    padding-bottom: 88px;
}

.hero__text {
    flex: 1 1 480px;
    min-width: 0;
}

.hero__eyebrow {
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-on-dark);
}

.hero__title {
    margin: 0 0 24px;
    font-size: clamp(44px, 6.4vw, 88px);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hero__lead {
    max-width: 560px;
    margin: 0 0 36px;
    font-size: 19px;
    color: var(--color-on-dark);
}

.hero__media {
    flex: 1 1 360px;
    min-width: 0;
    align-self: stretch;
}

.hero__image {
    width: 100%;
    height: 100%;
    min-height: clamp(260px, 60vw, 440px);
    object-fit: cover;
    border-radius: var(--radius);
}

/* Hero with a photo: darker on the left under the text, lighter on the right */
.hero--photo {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero--photo::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        90deg,
        rgba(10, 16, 23, 0.86) 0%,
        rgba(10, 16, 23, 0.62) 42%,
        rgba(10, 16, 23, 0.18) 100%
    );
}

.hero--photo .hero__lead {
    color: #E4E9F0;
}

/* Variant with the video behind the first screen (/index2/) */
.hero--video .hero__inner {
    min-height: min(78vh, 720px);
}

.hero--video .hero__text {
    flex-basis: 100%;
    max-width: 760px;
}

.hero--video .hero__bg {
    background: var(--color-dark);
}

/* The showreel is dark itself, so it needs a lighter shade than the photo */
.hero--video::before {
    background: linear-gradient(90deg, rgba(10, 16, 23, 0.72) 0%, rgba(10, 16, 23, 0.4) 50%, rgba(10, 16, 23, 0.1) 100%);
}

@media (max-width: 860px) {
    .hero--video::before {
        background: rgba(10, 16, 23, 0.55);
    }
}

.hero__media--video {
    flex: 1 1 440px;
    align-self: center;
    margin: 0;
}

.hero__video {
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.hero__video video {
    object-fit: cover;
}

.hero__caption {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-on-dark);
}

@media (max-width: 860px) {
    /* Text and video stack: the shade evens out so both stay readable */
    .hero--photo::before {
        background: linear-gradient(180deg, rgba(10, 16, 23, 0.82) 0%, rgba(10, 16, 23, 0.7) 100%);
    }
}

/* Home: services */
.service-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.service-card {
    flex: 1 1 240px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.service-card:hover {
    text-decoration: none;
    border-color: var(--color-border-strong);
}

.service-card:hover .service-card__title {
    text-decoration: underline;
}

.service-card__title {
    font-size: 22px;
    font-weight: 800;
}

.service-card__text {
    font-size: 15px;
    color: var(--color-text-secondary);
}

/* Call-to-action columns on the accent background */
.cta-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 40px 64px;
}

.cta-columns__item {
    flex: 1 1 320px;
    min-width: 0;
}

.cta-title {
    margin: 0 0 12px;
    font-size: 32px;
    line-height: 1.15;
    font-weight: 800;
}

.cta-text {
    margin: 0 0 24px;
    font-size: 17px;
}

.section--compact {
    padding-top: 48px;
    padding-bottom: 48px;
}

.section-title--small {
    font-size: 36px;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px 40px;
}

.cta-row__text {
    flex: 1 1 320px;
    min-width: 0;
}

.cta-title--small {
    margin-bottom: 8px;
    font-size: 28px;
}

.cta-text--flush {
    margin: 0;
}

/* Page head: white band with breadcrumbs, title and filters */
.page-head {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
}

.page-head__inner {
    padding-top: 40px;
    padding-bottom: 48px;
}

.page-head__row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px 32px;
}

.page-head__chips {
    margin-top: 32px;
}

.rss-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: var(--tap);
    font-size: 15px;
    font-weight: 700;
    color: var(--accent);
}

/* Filter chips */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
    padding: 0 18px;
    border: 1px solid var(--color-border-strong);
    border-radius: 999px;
    background: var(--color-white);
    font-size: 14px;
    font-weight: 600;
}

.chip:hover {
    text-decoration: none;
    border-color: var(--color-text);
}

.chip.is-active {
    border-color: var(--color-text);
    background: var(--color-text);
    color: var(--color-white);
    font-weight: 700;
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
    padding: 0 18px;
    border: 1px solid var(--color-border-strong);
    border-radius: 999px;
    background: var(--color-white);
    color: var(--color-text);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

/* Image placeholder when a page has no picture yet */
.media-placeholder {
    background: repeating-linear-gradient(135deg, #E6E9EE 0 14px, #DDE1E8 14px 28px);
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    gap: 32px 28px;
}

.news-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.news-card__image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: var(--radius);
}

.news-card__date {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-muted);
}

.news-card__title {
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 800;
}

.news-card__excerpt {
    margin: 0;
    font-size: 15px;
    color: var(--color-text-secondary);
}

/* News list */
.news-featured-wrap {
    padding-top: 56px;
    padding-bottom: 24px;
}

.news-featured {
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.news-featured__image {
    flex: 1 1 420px;
    min-width: 0;
    min-height: 320px;
    object-fit: cover;
}

.news-featured__body {
    flex: 1 1 420px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    padding: 40px;
}

.news-featured__date {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-muted);
}

.news-featured__title {
    margin: 0;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.news-featured__excerpt {
    margin: 0;
    font-size: 17px;
    color: var(--color-text-secondary);
}

.news-list {
    padding-top: 24px;
    padding-bottom: 56px;
}

.empty-state {
    margin: 0;
    font-size: 17px;
    color: var(--color-text-secondary);
}

/* Pagination */
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 56px;
}

.pagination__link,
.pagination__gap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: var(--tap);
    min-height: var(--tap);
    font-weight: 700;
}

.pagination__link {
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius);
    background: var(--color-white);
}

.pagination__link.is-current {
    border-color: var(--color-text);
    background: var(--color-text);
    color: var(--color-white);
    font-weight: 800;
}

/* Article (news, analytics) */
.article {
    background: var(--color-white);
}

.article__head {
    padding-top: 40px;
}

.article__head .breadcrumbs {
    margin-bottom: 28px;
}

.article__title-wrap {
    max-width: 880px;
}

.article__date {
    display: block;
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-muted);
}

.article__title {
    margin: 0 0 36px;
    font-size: clamp(32px, 4.6vw, 56px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.article__cover {
    width: 100%;
    aspect-ratio: 21 / 9;
    min-height: 220px;
    object-fit: cover;
    border-radius: var(--radius);
}

.article__body {
    max-width: 760px;
    margin: 0 auto;
    padding: 56px var(--gutter) 72px;
}

.article__lead {
    margin: 0 0 28px;
    font-size: 22px;
    line-height: 1.5;
    font-weight: 600;
    color: var(--color-text);
}

/* Rich text and StreamField blocks */
.rich-text {
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-body-text);
}

.rich-text p,
.rich-text ul,
.rich-text ol {
    margin: 0 0 24px;
}

.rich-text ul,
.rich-text ol {
    padding-left: 24px;
}

.rich-text li + li {
    margin-top: 8px;
}

.rich-text a {
    color: var(--accent);
    text-decoration: underline;
}

.rich-text h2,
.rich-text h3,
.rich-text h4 {
    color: var(--color-text);
    font-weight: 800;
}

.rich-text h2 {
    margin: 40px 0 16px;
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.rich-text h3 {
    margin: 32px 0 12px;
    font-size: 22px;
    line-height: 1.25;
}

.rich-text h4 {
    margin: 28px 0 10px;
    font-size: 19px;
    line-height: 1.3;
}

.rich-text hr {
    margin: 40px 0;
    border: 0;
    border-top: 1px solid var(--color-border);
}

.content-figure,
.gallery {
    margin: 36px 0;
}

.content-figure img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.content-figure figcaption,
.gallery figcaption {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-text-muted);
}

.gallery__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.gallery__item {
    flex: 1 1 200px;
    min-width: 0;
}

.gallery__item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
}

.logo-list {
    margin: 36px 0;
}

.logo-list__grid,
.rich-text .logo-list__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
    gap: 28px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rich-text .logo-list__item {
    margin: 0;
    padding: 0;
}

.logo-list__image {
    display: block;
    max-width: 160px;
    max-height: 72px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.rich-text .logo-list__caption {
    margin: 12px 0 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-text-secondary);
}

.video {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--color-text);
    border-radius: var(--radius);
}

.video iframe,
.video video {
    width: 100%;
    height: 100%;
    border: 0;
}

.quote {
    margin: 40px 0;
    padding: 0;
    font-size: 24px;
    line-height: 1.4;
    font-weight: 600;
    color: var(--color-text);
}

.quote p {
    margin: 0 0 10px;
}

.quote footer {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-muted);
}

.table-scroll {
    margin: 0 0 32px;
    overflow-x: auto;
}

/* Tables follow the analytics mockup: dark header, numbers aligned right */
.table-scroll table {
    width: 100%;
    min-width: 480px;
    border-collapse: collapse;
    font-size: 16px;
    line-height: 1.4;
}

.table-scroll caption {
    padding-bottom: 10px;
    text-align: left;
    font-size: 14px;
    color: var(--color-text-muted);
}

.table-scroll th,
.table-scroll td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--color-border-strong);
    text-align: right;
    vertical-align: top;
}

.table-scroll th:first-child,
.table-scroll td:first-child {
    text-align: left;
}

.table-scroll thead th {
    border-bottom: 0;
    background: var(--color-text);
    color: var(--color-white);
    font-weight: 700;
}

.table-scroll tbody th {
    font-weight: 600;
}

/* Alignment set in the table editor's context menu */
.table-scroll .htLeft {
    text-align: left;
}

.table-scroll .htCenter {
    text-align: center;
}

.table-scroll .htRight {
    text-align: right;
}

.content-button {
    margin: 32px 0;
}

.rich-text .content-button a {
    color: var(--color-white);
    text-decoration: none;
}

/* Share row */
.share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
    font-size: 15px;
}

.share__label {
    margin-right: 4px;
    font-weight: 700;
}

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

.share__status {
    color: var(--color-text-muted);
}

/* Previous / next links */
.prev-next {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 48px;
}

.prev-next__link {
    flex: 1 1 320px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.prev-next__link--next {
    text-align: right;
}

.prev-next__label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-muted);
}

.prev-next__title {
    font-size: 18px;
    line-height: 1.3;
    font-weight: 800;
}

.related {
    padding-top: 64px;
    padding-bottom: 72px;
}

.related .section-head {
    margin-bottom: 32px;
}

/* Gallery lightbox */
.lightbox {
    width: 100vw;
    max-width: none;
    height: 100vh;
    max-height: none;
    margin: 0;
    padding: 24px;
    border: 0;
    background: rgba(10, 16, 23, 0.94);
    color: var(--color-white);
}

.lightbox[open] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.lightbox__image {
    max-width: 100%;
    max-height: calc(100vh - 140px);
    object-fit: contain;
}

.lightbox__caption {
    min-height: 1.5em;
    font-size: 15px;
    color: var(--color-on-dark);
    text-align: center;
}

.lightbox__controls {
    display: flex;
    gap: 12px;
}

.lightbox .icon-button {
    background: transparent;
    border-color: var(--color-on-dark-border);
    color: var(--color-white);
    font-size: 20px;
}

/* Page head variants */
.page-head__inner--compact {
    padding-bottom: 36px;
}

.page-head__inner--offer {
    padding-bottom: 40px;
}

.page-head__inner--offer .breadcrumbs {
    margin-bottom: 24px;
}

.page-title--with-intro {
    margin-bottom: 12px;
}

/* Page head with a photo behind the breadcrumbs and title (section index pages) */
.page-head--photo {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-bottom: 0;
    color: var(--color-white);
}

.page-head__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-head--photo::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        90deg,
        rgba(10, 16, 23, 0.86) 0%,
        rgba(10, 16, 23, 0.62) 50%,
        rgba(10, 16, 23, 0.3) 100%
    );
}

.page-head--photo .page-head__inner {
    padding-top: 48px;
    padding-bottom: 72px;
}

.page-head--photo .breadcrumbs {
    color: var(--color-on-dark);
}

.page-head--photo .breadcrumbs__current {
    color: var(--color-white);
}

.page-head--photo .page-intro {
    color: #E4E9F0;
}

@media (max-width: 860px) {
    .page-head--photo::before {
        background: rgba(10, 16, 23, 0.72);
    }
}

.page-intro {
    max-width: 640px;
    margin: 0 0 28px;
    font-size: 18px;
    color: var(--color-text-secondary);
}

/* Years under the news category chips: many of them, so plain links rather than chips */
.year-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0 4px;
    margin-top: 16px;
    font-size: 15px;
    font-weight: 600;
}

.year-links__item {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
    padding: 0 8px;
    border-radius: var(--radius);
    color: var(--color-text-secondary);
}

.year-links__item:hover {
    color: var(--color-text);
}

.year-links__item.is-active {
    background: var(--color-bg);
    color: var(--color-text);
}

/* Chips right under a title without an intro get the gap the intro would give */
.page-title + .chips {
    margin-top: 28px;
}

.chips--spaced {
    margin-bottom: 32px;
}

.section-head--offers {
    align-items: flex-end;
    margin-bottom: 28px;
}

.section-head--tight {
    margin-bottom: 32px;
}

.section-actions {
    margin-top: 36px;
}

.btn--field {
    height: 48px;
    min-height: 48px;
    padding: 0 28px;
    font-size: 16px;
    font-weight: 800;
}

.btn--block {
    width: 100%;
    justify-content: center;
}

/* Form fields */
.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.field__label {
    padding: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text-secondary);
}

.field input:not([type="checkbox"]):not([type="radio"]),
.field select,
.field textarea,
.inline-field select {
    width: 100%;
    height: 48px;
    padding: 0 12px;
    border: 1px solid var(--color-input-border);
    border-radius: var(--radius);
    background: var(--color-white);
    color: var(--color-text);
    font-family: inherit;
    font-size: 16px;
}

.field textarea {
    height: auto;
    padding: 12px;
    resize: vertical;
}

.field--error input:not([type="checkbox"]):not([type="radio"]),
.field--error select,
.field--error textarea {
    border-color: var(--accent);
}

.field__error {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
}

.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.consent {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.consent__label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--color-text-secondary);
    cursor: pointer;
}

.consent__label input {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--accent);
}

.consent__label a {
    text-decoration: underline;
}

.form-success {
    margin: 0;
    padding: 16px;
    border-radius: var(--radius);
    background: var(--color-bg);
    font-weight: 600;
}

.stack-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Segmented control (radio buttons) and view toggle (links) */
.segmented,
.view-toggle {
    display: flex;
    overflow: hidden;
    border: 1px solid var(--color-input-border);
    border-radius: var(--radius);
}

.view-toggle {
    border-color: var(--color-text);
}

.segmented__option {
    position: relative;
    cursor: pointer;
}

.segmented__option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.segmented__option span,
.view-toggle__option {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 0 20px;
    background: var(--color-white);
    color: var(--color-text);
    font-size: 15px;
    font-weight: 700;
}

.view-toggle__option {
    min-height: var(--tap);
}

.view-toggle__option:hover {
    text-decoration: none;
}

.segmented__option input:checked + span,
.view-toggle__option.is-active {
    background: var(--color-text);
    color: var(--color-white);
}

.segmented__option input:focus-visible + span {
    outline: 3px solid var(--accent);
    outline-offset: -3px;
}

/* Offers: filter bar and results */
.filter-bar {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
}

.filter-bar__form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px;
    padding-top: 24px;
    padding-bottom: 24px;
}

.filter-bar__form > .field--deal {
    flex: 0 0 auto;
}

/* A fieldset's legend ignores the flex gap, so space it like the other labels */
.field--deal > legend {
    margin-bottom: 6px;
}

.filter-bar__form > .field--area {
    flex: 1 1 120px;
}

.filter-bar__form > .field--select {
    flex: 1 1 180px;
}

.offers-results {
    padding-top: 32px;
    padding-bottom: 72px;
}

.results-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px 24px;
    margin-bottom: 28px;
}

.results-bar__count {
    font-size: 16px;
    color: var(--color-text-secondary);
}

.results-bar__count strong {
    color: var(--color-text);
}

.results-bar__controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.inline-field {
    display: flex;
    align-items: center;
    gap: 8px;
}

.inline-field__label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.inline-field select {
    width: auto;
    height: var(--tap);
    font-size: 15px;
}

/* Offer card */
.card-grid--offers {
    gap: 24px;
}

.offer-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.offer-card__image {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.offer-card__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px;
}

.offer-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.offer-meta--head {
    margin-bottom: 14px;
}

.badge {
    padding: 3px 10px;
    border-radius: 2px;
    background: var(--color-text);
    color: var(--color-white);
    font-size: 12px;
    font-weight: 700;
}

.offer-meta__category {
    font-size: 13px;
    color: var(--color-text-muted);
}

.offer-meta--head .offer-meta__category {
    font-size: 14px;
}

.offer-card__title {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 800;
}

.offer-card__address {
    font-size: 15px;
    color: var(--color-text-secondary);
}

.offer-card__facts,
.offer-card__price {
    font-size: 15px;
    font-weight: 600;
}

.offer-card__more {
    margin-top: 6px;
}

/* Offers on the map */
.offers-map-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 20px;
}

.map-list {
    flex: 1 1 340px;
    max-width: 420px;
    min-width: 0;
    max-height: 560px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.map-list__item {
    display: flex;
    gap: 14px;
    padding: 12px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.map-list__item:hover {
    text-decoration: none;
    border-color: var(--color-border-strong);
}

.map-list__number {
    flex: 0 0 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--color-white);
    font-weight: 800;
}

.map-list__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.map-list__title {
    font-size: 17px;
    line-height: 1.25;
    font-weight: 800;
}

.map-list__address {
    font-size: 14px;
    color: var(--color-text-secondary);
}

.map-list__meta {
    font-size: 13px;
    color: var(--color-text-muted);
}

.map {
    position: relative;
    flex: 2 1 480px;
    min-width: 0;
    min-height: 560px;
    overflow: hidden;
    border-radius: var(--radius);
}

.offer-main .map {
    /* explicit width: otherwise aspect-ratio derives it from min-height and overflows on phones */
    width: 100%;
    min-height: 280px;
    aspect-ratio: 16 / 9;
}

.map__note {
    position: absolute;
    left: 16px;
    bottom: 14px;
    font-size: 13px;
    color: var(--color-text-secondary);
}

/* "Could not find a property?" block */
.section--lead {
    padding-top: 56px;
    padding-bottom: 56px;
}

.lead-block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 32px 64px;
}

.lead-block__text {
    flex: 1 1 320px;
    min-width: 0;
}

.lead-block .cta-title {
    margin-bottom: 10px;
}

.lead-block__muted {
    color: var(--color-on-dark);
}

.lead-block__form {
    flex: 1 1 360px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lead-block__fields {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
}

.lead-block__fields .field {
    flex: 1 1 160px;
}

.section--dark .field__label,
.section--dark .consent__label {
    color: var(--color-on-dark);
}

.section--dark .field input:not([type="checkbox"]) {
    border-color: var(--color-on-dark-border);
}

.section--dark .field__error {
    color: var(--accent-on-dark);
}

.section--dark .form-success {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-white);
}

/* Offer page */
.article__title--offer {
    margin-bottom: 12px;
}

.offer-address {
    font-size: 18px;
    color: var(--color-text-secondary);
}

.offer-gallery-wrap {
    background: var(--color-white);
}

.offer-gallery {
    padding-top: 32px;
    padding-bottom: 48px;
}

.offer-gallery__main img {
    width: 100%;
    aspect-ratio: 16 / 8;
    min-height: 240px;
    object-fit: cover;
    border-radius: var(--radius);
}

/* Fixed columns so one or two photos keep thumbnail size instead of stretching */
.offer-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

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

.offer-gallery__thumb,
.offer-gallery__all {
    min-width: 0;
    aspect-ratio: 4 / 3;
}

.offer-gallery__thumb[hidden] {
    display: none;
}

.offer-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
}

.offer-gallery__all {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: var(--radius);
    background: var(--color-text);
    color: var(--color-white);
    font-family: inherit;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
}

.no-js .offer-gallery__all {
    display: none;
}

.offer-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 48px;
    padding-top: 56px;
    padding-bottom: 72px;
}

.offer-main {
    flex: 2 1 560px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.offer-aside {
    flex: 1 1 320px;
    max-width: 420px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.offer-lead {
    margin: 0;
    font-size: 22px;
    line-height: 1.5;
    font-weight: 600;
}

.offer-section-title {
    margin: 0 0 20px;
    font-size: 32px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.offer-section-title--flush {
    margin: 0;
}

.offer-section-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px 24px;
    margin-bottom: 20px;
}

.specs {
    margin: 0;
    border-top: 1px solid var(--color-border-strong);
}

.specs__row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 24px;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border-strong);
    font-size: 16px;
}

.specs dt {
    color: var(--color-text-secondary);
}

.specs dd {
    margin: 0;
    font-weight: 700;
    text-align: right;
}

.plans {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.plan {
    position: relative;
    min-width: 0;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 12px 36px;
    background: var(--color-white);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius);
}

.plan:hover {
    text-decoration: none;
    border-color: var(--color-text);
}

.plan__image {
    max-height: 100%;
    object-fit: contain;
}

.plan__title {
    position: absolute;
    left: 12px;
    bottom: 10px;
    font-size: 13px;
    color: var(--color-text-secondary);
}

.plan__file-type {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-text-muted);
}

.side-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.side-card__label {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text-muted);
}

.side-card__title {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 800;
}

.side-card__note {
    margin-top: -8px;
    font-size: 14px;
    color: var(--color-text-secondary);
}

.manager {
    display: flex;
    align-items: center;
    gap: 16px;
}

.manager__photo {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
}

.manager__name {
    font-size: 18px;
    line-height: 1.25;
    font-weight: 800;
}

.manager__position,
.manager__email {
    font-size: 14px;
    color: var(--color-text-secondary);
}

.manager__email {
    font-size: 15px;
}

.manager__phone {
    font-size: 18px;
    font-weight: 800;
}

.section--related {
    padding-top: 64px;
    padding-bottom: 72px;
}

.section--related .offer-card__image {
    height: 200px;
}

/* Shared bits for analytics, clients, contacts */
.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-muted);
}

.meta-row--article {
    margin-bottom: 14px;
    font-size: 14px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 6px 14px;
    border: 1px solid var(--color-border-strong);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
}

.tag--link {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
    padding: 0 16px;
}

.pill--strong {
    padding: 0 20px;
    font-weight: 700;
}

.side-card--muted {
    gap: 14px;
    background: var(--color-bg);
}

.side-card--tight {
    gap: 6px;
}

.side-card__note--flush {
    margin-top: 0;
    font-size: 15px;
}

/* Analytics list */
.analytics-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 48px;
    padding-bottom: 72px;
}

.analytics-list .pagination {
    margin-top: 36px;
}

.analytics-card {
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.analytics-card__image {
    flex: 0 1 280px;
    min-width: 0;
    min-height: 180px;
    object-fit: cover;
}

.analytics-card__body {
    flex: 1 1 380px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 28px;
}

.analytics-card__title {
    margin: 0;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 800;
}

.analytics-card__excerpt {
    margin: 0;
    font-size: 15px;
    color: var(--color-text-secondary);
}

.analytics-card__more {
    margin-top: 4px;
}

/* Analytics article: text with a side column */
.research-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 48px;
    padding-top: 56px;
    padding-bottom: 72px;
}

.research-layout__body {
    flex: 2 1 520px;
    min-width: 0;
    max-width: 760px;
}

.research-layout__aside {
    flex: 1 1 280px;
    max-width: 360px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.share--aside {
    margin-top: 0;
    padding-top: 8px;
    border-top: 0;
}

/* Home: analytics teaser */
.analytics-teaser {
    display: flex;
    flex-wrap: wrap;
    gap: 40px 64px;
}

.analytics-teaser__intro {
    flex: 1 1 320px;
    min-width: 0;
}

.analytics-teaser__title {
    margin-bottom: 20px;
}

.analytics-teaser__text {
    margin: 0 0 28px;
    font-size: 17px;
    color: var(--color-text-secondary);
}

.numbered-list {
    flex: 1.4 1 420px;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--color-border-strong);
}

.numbered-list li {
    border-bottom: 1px solid var(--color-border-strong);
}

.numbered-list__link {
    display: flex;
    align-items: baseline;
    gap: 20px;
    padding: 18px 0;
    font-size: 19px;
    font-weight: 700;
}

.numbered-list__number {
    min-width: 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-muted);
}

/* Clients */
.client-group {
    padding-top: 32px;
    padding-bottom: 24px;
}

.client-group--first {
    padding-top: 56px;
}

.client-group--last {
    padding-bottom: 72px;
}

.client-group__title {
    margin-bottom: 28px;
}

/* Grid rather than flex so a short last row keeps tile size */
.client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
    gap: 12px;
}

.client-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 110px;
    padding: 14px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    text-align: center;
}

a.client-tile:hover {
    text-decoration: none;
    border-color: var(--color-border-strong);
}

.client-grid--home .client-tile {
    min-height: 96px;
}

.client-tile__name {
    font-size: 18px;
    font-weight: 800;
    color: var(--color-text-secondary);
}

.client-grid--home .client-tile__name {
    font-size: 17px;
}

.client-tile__logo {
    max-height: 64px;
    width: auto;
    object-fit: contain;
}

.client-groups {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    font-size: 14px;
    font-weight: 600;
}

.client-groups__label {
    padding: 12px 0;
    color: var(--color-text-muted);
}

/* Contacts */
.page-head__inner--contacts {
    padding-bottom: 44px;
}

.contacts-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 48px 64px;
    padding-top: 56px;
    padding-bottom: 64px;
}

.contacts-info {
    flex: 1 1 340px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contacts-info__label {
    margin-bottom: 8px;
}

.contacts-info__label--wide {
    margin-bottom: 12px;
}

.contacts-info__address,
.contacts-info__email {
    font-size: 20px;
    line-height: 1.4;
    font-weight: 700;
}

.contacts-info__phone {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.contacts-info__hours {
    font-size: 18px;
    font-weight: 600;
}

.contact-card {
    flex: 1.2 1 400px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 32px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.contact-card__title {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.stack-form--loose {
    gap: 18px;
}

.field-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.field-row > .field {
    flex: 1 1 200px;
}

.directions-title {
    margin: 0 0 28px;
}

.map-wide .map {
    width: 100%;
    min-height: 320px;
    aspect-ratio: 16 / 7;
}

.directions {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 28px;
}

.directions__item {
    flex: 1 1 240px;
    min-width: 0;
    padding-top: 14px;
    border-top: 2px solid var(--color-text);
}

.directions__title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 800;
}

.directions__text {
    margin: 0;
    font-size: 16px;
    color: var(--color-text-secondary);
}

/* Home: video */
/* About the company */
.page-intro--wide {
    max-width: 880px;
}

.facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: 24px;
    margin: 40px 0 0;
}

.facts__item {
    padding-top: 14px;
    border-top: 2px solid var(--color-text);
}

.facts__value {
    font-size: 40px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.facts__label {
    margin: 6px 0 0;
    font-size: 15px;
    color: var(--color-text-secondary);
}

.about-title {
    margin-bottom: 36px;
}

.about-text {
    max-width: 760px;
}

.principles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.principle {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 28px;
    border: 1px solid var(--color-on-dark-line);
    border-radius: var(--radius);
}

.principle__number {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-on-dark);
}

.principle__title {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 800;
}

.principle__text {
    margin: 0;
    font-size: 15px;
    color: var(--color-on-dark);
}

.philosophy-note {
    max-width: 760px;
    margin: 36px 0 0;
    font-size: 19px;
    font-weight: 600;
}

.award-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr));
    gap: 12px;
}

.award {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 14px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    text-align: center;
}

.award:hover {
    text-decoration: none;
    border-color: var(--color-border-strong);
}

.award__image {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: contain;
}

.award__title {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
    gap: 40px 24px;
    align-items: start;
}

.person {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.person__photo {
    width: 100%;
    aspect-ratio: 3 / 4;
    margin-bottom: 8px;
    object-fit: cover;
    border-radius: var(--radius);
}

.person__name {
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 800;
}

.person__position {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.person__highlights {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    color: var(--color-text-muted);
}

.person__highlights li + li {
    margin-top: 4px;
}

/* With JS the biography opens in a dialog; without it, in the <details> below the card. */
.no-js .person__photo-button,
.no-js .person__more {
    display: none;
}

.js .person__bio {
    display: none;
}

.person__photo-button,
.person__name-button,
.person__more {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.no-js .person__name-button {
    cursor: default;
}

.person__photo-button {
    display: block;
    width: 100%;
}

.person__photo-button:hover .person__photo {
    filter: brightness(0.92);
}

.person__name-button {
    min-height: var(--tap);
    letter-spacing: inherit;
}

.person__name-button:hover,
.person__photo-button:hover ~ .person__name .person__name-button {
    text-decoration: underline;
}

.person__more {
    align-self: flex-start;
    font-size: 15px;
    font-weight: 700;
    color: var(--accent);
}

.person__more:hover {
    text-decoration: underline;
}

.person__bio summary {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
    font-weight: 700;
    color: var(--accent);
    cursor: pointer;
}

.person__bio .rich-text {
    font-size: 15px;
    line-height: 1.6;
}

.person__bio .rich-text p {
    margin-bottom: 12px;
}

.partner-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
}

.partner {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

a.partner:hover {
    text-decoration: none;
    border-color: var(--color-border-strong);
}

.partner__logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 96px;
    margin-bottom: 12px;
}

.partner__name {
    font-size: 17px;
    font-weight: 800;
}

.partner__description {
    font-size: 14px;
    color: var(--color-text-secondary);
}

.partner__domain {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
}

/* Simple page shell until each page type gets its own layout */
.page-section {
    padding-top: 40px;
    padding-bottom: 56px;
}

.page-title {
    margin: 0;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.03em;
}

/* Services */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.service-grid > li {
    display: flex;
}

.service-card--grid {
    flex: 1 1 auto;
    background: var(--color-white);
}

.service-card__more {
    margin-top: auto;
    padding-top: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--accent);
}

.side-card__text {
    margin: -8px 0 0;
    font-size: 15px;
    color: var(--color-text-secondary);
}

.side-card__phone {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-text);
}

.side-nav {
    gap: 8px;
}

.side-nav__heading {
    align-self: flex-start;
    color: var(--color-text-muted);
}

.side-nav__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.side-nav__link {
    display: flex;
    align-items: center;
    min-height: var(--tap);
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-text);
}

.side-nav__list li:last-child .side-nav__link {
    border-bottom: 0;
}

.side-nav__link.is-current {
    color: var(--accent);
}

/* Projects */
.specs--compact {
    border-top: 0;
}

.specs--compact .specs__row {
    padding: 10px 0;
    font-size: 15px;
}

.specs--compact .specs__row:last-child {
    border-bottom: 0;
}

.category-about {
    padding-top: 0;
}

.category-about__text {
    max-width: 760px;
    margin-top: 20px;
}

/* Team member dialog */
.person-dialog {
    width: min(1040px, calc(100vw - 32px));
    max-width: none;
    max-height: calc(100dvh - 32px);
    padding: 0;
    border: 0;
    border-radius: var(--radius);
    background: var(--color-white);
    color: var(--color-text);
    overflow: hidden;
}

.person-dialog::backdrop {
    background: rgba(10, 16, 23, 0.72);
}

body:has(.person-dialog[open]) {
    overflow: hidden;
}

.person-dialog__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    max-height: calc(100dvh - 32px);
}

.person-dialog__close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1;
    font-size: 18px;
}

.person-dialog__media {
    min-height: 0;
    background: var(--color-bg);
}

.person-dialog__photo {
    display: block;
    width: 100%;
    height: 100%;
    max-height: calc(100dvh - 32px);
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.person-dialog__body {
    max-height: calc(100dvh - 32px);
    padding: 48px 48px 40px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.person-dialog__name {
    margin: 0 48px 8px 0;
    font-size: clamp(28px, 3.2vw, 40px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.person-dialog__position {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.person-dialog__highlights {
    margin: 0 0 24px;
    padding: 16px 0 0;
    border-top: 1px solid var(--color-border);
    list-style: none;
    font-size: 15px;
    color: var(--color-text-muted);
}

.person-dialog__highlights li + li {
    margin-top: 6px;
}

.person-dialog__text {
    font-size: 16px;
    line-height: 1.65;
}

.person-dialog__text p {
    margin-bottom: 14px;
}

@media (max-width: 760px) {
    .person-dialog__inner {
        display: block;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .person-dialog__photo {
        height: auto;
        max-height: 56vh;
        object-position: top;
    }

    .person-dialog__body {
        max-height: none;
        padding: 24px 20px 32px;
        overflow: visible;
    }

    .person-dialog__close {
        position: fixed;
        top: 28px;
        right: 28px;
        background: rgba(255, 255, 255, 0.92);
    }
}

/* Form dialog (contact form) */
.form-dialog {
    width: min(600px, calc(100vw - 32px));
    max-width: none;
    max-height: calc(100dvh - 32px);
    padding: 40px;
    border: 0;
    border-radius: var(--radius);
    background: var(--color-white);
    color: var(--color-text);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.form-dialog::backdrop {
    background: rgba(10, 16, 23, 0.72);
}

body:has(.form-dialog[open]) {
    overflow: hidden;
}

.form-dialog__close {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 18px;
}

.form-dialog__title {
    margin: 0 48px 8px 0;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.form-dialog__intro {
    margin: 0 0 24px;
    font-size: 15px;
    color: var(--color-text-secondary);
}

.form-dialog__error {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
}

.form-dialog__sent {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.form-dialog__sent .form-success:focus {
    outline: none;
}

.form-page {
    max-width: 680px;
}

@media (max-width: 600px) {
    .form-dialog {
        padding: 28px 20px;
    }

    .form-dialog__close {
        top: 12px;
        right: 12px;
    }

    .form-dialog__title {
        font-size: 24px;
    }
}

/* Vacancies */
.vacancy-list {
    display: grid;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.vacancy-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 28px 32px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.vacancy-card__title {
    margin: 0;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 800;
}

.vacancy-card__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-muted);
}

.vacancy-card__summary {
    max-width: 760px;
    margin: 0;
    font-size: 16px;
    color: var(--color-text-secondary);
}

.vacancy-apply {
    margin-top: 40px;
}

.btn--outline {
    border: 1px solid var(--color-border-strong);
    background: var(--color-white);
    color: var(--color-text);
}

.btn--outline:hover {
    border-color: var(--color-text);
    text-decoration: none;
}

.field__hint {
    font-size: 13px;
    color: var(--color-text-muted);
}

@media (max-width: 600px) {
    .vacancy-card {
        padding: 22px 20px;
    }
}
