﻿:root {
    --color-gold: #E2C792;
    --color-primary: #4BB9AD;
    --color-text: #FFFFFF;
    --color-text-secondary: rgba(255, 255, 255, 0.8);
    --color-text-inverse: #000000;
    --color-bg: #0a0a0a;
    --color-bg-elevated: #121212;
    --color-bg-green: #1a3d38;
    --color-teal-800: #225852;
    --color-teal-700: #2D7B73;
    --color-teal-600: #3A9D92;
    --shadow-hover-green: 0 0 24px 0 rgba(75, 185, 173, 0.5);
    --font-title: "Amiko", "Assistant", sans-serif;
    --font-body: "Assistant", sans-serif;
    --radius: 12px;
    --radius-sm: 8px;
    --container: 1680px;
    --header-h: 65px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: linear-gradient(176.47deg, #000000 1.21%, #131313 97.78%), #FFFFFF;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 24px;
    direction: rtl;
    text-align: right;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}

p {
    margin: 0;
}

.display {
    font-size: 64px;
    line-height: 72px;
}

.h2 {
    font-size: 48px;
    line-height: 56px;
}

.h3 {
    font-size: 36px;
    line-height: 40px;
}

.h4 {
    font-size: 24px;
    line-height: 28px;
    font-weight: 600;
}

.h5 {
    font-size: 20px;
    line-height: 24px;
}

.body-lg {
    font-size: 24px;
    line-height: 32px;
    font-weight: 400;
}

.body {
    font-size: 18px;
    line-height: 24px;
}

.body-sm {
    font-size: 14px;
    line-height: 20px;
}

.label {
    font-size: 16px;
    line-height: 24px;
}

.caption {
    font-size: 12px;
    line-height: 16px;
}

.nav-label {
    font-size: 14px;
    line-height: 16px;
}

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

.text-primary-accent {
    color: var(--color-primary);
}

.text-gold {
    color: var(--color-gold);
}

.container {
    width: min(100% - 48px, var(--container));
    margin-inline: auto;
}

.site {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: clip;
    padding: 8px 8px 0;
}

.site-header,
.site-main,
.site-footer {
    position: relative;
    z-index: 1;
}

.site-main {
    flex: 1;
    background: transparent;
}

/* Decorative orbs — all pages except home */
.page-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.home .page-decor,
.front-page .page-decor {
    display: none;
}

.page-decor__balls,
.page-decor__ball {
    position: absolute;
    display: block;
    max-width: none;
    width: auto;
    height: auto;
    pointer-events: none;
    user-select: none;
}

.page-decor__balls {
    width: 1923px;
    max-width: none;
    height: 1004px;
    left: -357px;
    top: 592.43px;
    object-fit: contain;
}

.page-decor__ball {
    width: 794.89px;
    max-width: none;
    height: 747.48px;
    right: -140px;
    top: 1084.95px;
    border-radius: 12px;
    object-fit: contain;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 28px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 700;
    line-height: 22px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn--gold {
    background: var(--color-gold);
    color: var(--color-text-inverse);
}

.btn--gold:hover {
    background-color: #E9DBBE;
}

.btn--primary {
    background: var(--color-primary);
    color: var(--color-text-inverse);
}

.btn--primary:hover {
    background: var(--color-teal-600);
}

.btn--ghost {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-text);
    border-width: 2px;
}

.btn--ghost:hover {
    border-color: rgba(185, 212, 210, 1);
    background-color: rgba(185, 212, 210, 0.2);
}

.btn--ghost--primary {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
    border-width: 2px;
}

.btn--ghost--primary:hover {
    border-color: var(--color-teal-600);
    background-color: var(--color-teal-600);
}

/* Header */
.site-header {
    /*position: sticky;*/
    z-index: 100;
    background: transparent;
    backdrop-filter: blur(10px);
    margin: 32px 0 28px;
}

/* Transparent header over hero вЂ” homepage only */
.home .site-header,
.front-page .site-header {
    /*position: fixed;*/
    position: absolute;
    inset-inline: 0;
    top: 32px;
    background: transparent;
    backdrop-filter: none;
    border-bottom: none;
    margin: 0;
}

.home .hero--home,
.front-page .hero--home {
    flex-direction: column;
    justify-content: space-between;
    max-width: 1888px;
    margin: 0 auto;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: var(--header-h);
    padding: 0 60px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    color: inherit;
    text-decoration: none;
}

.site-branding-text {
    display: flex;
    flex-direction: column;
    align-items: start;
    font-family: var(--font-title);
    font-weight: 700;
}

.site-branding-text-lg {
    font-size: 29px;
}

.site-branding-text-sm {
    font-size: 19px;
}


.site-title {
    font-family: var(--font-title);
    font-size: 16px;
    line-height: 1.3;
    margin: 0;
}

.site-title small {
    display: block;
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--color-text-secondary);
    font-weight: 400;
}

.primary-nav ul {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.primary-nav a {
    font-size: 21px;
    line-height: 24px;
    font-weight: 600;
    color: var(--color-text);
    transition: color 0.2s, background-color 0.2s;
    padding: 10px 20px;
    border-radius: 12px;
}

.primary-nav a:hover {
    color: var(--color-text);
}

.primary-nav .is-active > a,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a,
.primary-nav a.is-active {
    padding: 8px 16px;
    border-radius: 12px;
    background-color: #4BB9AD;
    color: var(--color-text-inverse);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.header-actions a {
    font-size: 21px;
    font-weight: 600;
    color: var(--color-text);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.header-actions a .action-icon {
    height: 24px;
    width: 24px;
}

.header-actions .btn {
    padding: 8px 16px;
    font-size: 14px;
}

.header-search {
    margin: 0;
}

.search-page__title {
    margin: 0 0 40px;
}

.search-page__group + .search-page__group {
    margin-top: 48px;
}

.search-page__subtitle {
    margin: 0 0 24px;
}

.search-page__empty {
    margin: 0;
}

.header-actions-search {
    width: 157px;
    height: 42px;
    padding-inline-start: 44px;
    padding-inline-end: 12px;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7' stroke='%23fff' stroke-width='1.5'/%3E%3Cpath stroke='%23fff' stroke-width='1.5' stroke-linecap='round' d='M20 20l-3.5-3.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 24px 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 64px;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.header-actions-search::placeholder {
    color: rgba(255, 255, 255, 0.6);
    opacity: 1;
}

.header-actions-search:focus {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-hover-green);
}

html[dir="ltr"] .header-actions-search {
    background-position: left 12px center;
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
}

.hero--home {
    min-height: 860px;
    display: flex;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    height: 860px;
    min-height: 860px;
    border-radius: 24px;
}

.hero__bg::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(261.12deg, #225852 14.15%, rgba(0, 0, 0, 0) 57.65%);
    pointer-events: none;
    z-index: 1;
}

.hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(270deg, rgba(0, 0, 0, 0.75) 20%, rgba(0, 0, 0, 0.45) 100%);
}

.hero.hero--about {
    max-width: 1888px;
    margin: 0 auto;
}

.hero__bg--about {
    background: linear-gradient(0deg, #000000 -1.85%, rgba(0, 0, 0, 0) 67.38%),
    linear-gradient(0deg, rgba(18, 18, 18, 0.6), rgba(18, 18, 18, 0.6)),
    var(--about-hero-image);
    background-size: cover;
    background-repeat: no-repeat;
    margin: 0;
    border-radius: 24px;
    background-position: center 67%;
    height: 453px;
    min-height: 453px;
}

.hero__bg--about::before,
.hero__bg--about::after {
    content: none;
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 1024px;
    margin-right: 60px;
    margin-top: 200px;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 24px;
}

.hero--about .hero__content {
    margin-top: 0;
    padding-top: 80px;
    max-width: 1240px;
    gap: 24px;
    height: 453px;
    margin-right: 110px;
}

.hero.hero--specialists,
.hero.hero--services,
.hero.hero--blog {
    max-width: 1888px;
    margin: 0 auto;
}

.hero--blog .hero__content {
    padding: 80px 0 0 0;
    margin-top: 0;
    max-width: 1420px;
    gap: 24px;
    height: 453px;
    margin-right: 110px;
    justify-content: start;
}

.section.section--blog-list {
    padding: 32px 0;
}

#blog .section__header-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.blog-section__action {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}


.hero__bg--specialists {
    background-color: #111;
    background-image:
        linear-gradient(0deg, #000000 -1.85%, rgba(0, 0, 0, 0) 67.38%),
        linear-gradient(0deg, rgba(18, 18, 18, 0.6), rgba(18, 18, 18, 0.6)),
        var(--specialists-hero-image, none);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center 70%;
    margin: 0;
    border-radius: 24px;
    height: 453px;
    min-height: unset;
}

.hero__bg--services {
    background-color: #111;
    background-image:
        linear-gradient(0deg, #000000 -1.85%, rgba(0, 0, 0, 0) 67.38%),
        linear-gradient(0deg, rgba(18, 18, 18, 0.6), rgba(18, 18, 18, 0.6)),
        var(--services-hero-image, none);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center 70%;
    margin: 0;
    border-radius: 24px;
    height: 453px;
    min-height: unset;
}

.hero__bg--blog {
    background-color: #111;
    background-image:
        linear-gradient(0deg, #000000 -1.85%, rgba(0, 0, 0, 0) 67.38%),
        linear-gradient(0deg, rgba(18, 18, 18, 0.35), rgba(18, 18, 18, 0.35)),
        linear-gradient(0deg, rgba(18, 18, 18, 0.35), rgba(18, 18, 18, 0.35)),
        var(--blog-hero-image, none);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom;
    margin: 0;
    border-radius: 24px;
    height: 453px;
    min-height: unset;
}

.hero__bg--specialists::before,
.hero__bg--specialists::after,
.hero__bg--services::before,
.hero__bg--services::after,
.hero__bg--blog::before,
.hero__bg--blog::after {
    content: none;
}

.hero--specialists .hero__content,
.hero--services .hero__content {
    margin-top: 0;
    padding-top: 80px;
    max-width: 1420px;
    gap: 24px;
    height: 453px;
    margin-right: 110px;
    justify-content: start;
}

.hero--specialists .hero__text,
.hero--services .hero__text {
    max-width: 560px;
    margin: 0;
}

.hero--specialists .hero__actions,
.hero--services .hero__actions {
    margin-top: 0;
}

.section--specialists-list,
.section--services-list {
    padding-top: 48px;
}

.filters__search {
    margin-inline-start: auto;
}

.filter-pill__count {
    opacity: 0.85;
    font-weight: 400;
    height: 32px;
    width: 32px;
    border-radius: 64px;
    background-color: #1A1A1A;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__eyebrow {
    color: var(--color-primary);
}

.hero__subtitle {
    display: flex;
    align-items: center;
    gap: 24px;
    color: var(--color-gold);
    font-size: 20px;
    line-height: 24px;
}

.hero__title {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 700;
    font-family: var(--font-title);
    line-height: 72px;
}

.hero__text {
    color: var(--color-text);
    font-weight: 700;
    font-size: 36px;
    line-height: 40px;
    max-width: 930px;
}

.hero__text p {
    margin: 0;
}

.hero__subcaption {
    font-weight: 400;
    font-size: 24px;
    line-height: 32px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
}

.hero__actions a {
    width: 278px;
}

.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 1;
}

.stat {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat + .stat {
    border-inline-start: 1px solid rgba(255, 255, 255, 0.15);
}

.stat__value {
    font-family: var(--font-title);
    font-size: 28px;
    color: var(--color-text);
    line-height: 36px;
    font-weight: 700;
}

.stat__label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 20px;
    font-weight: 400;
}

.advantages-bar {
    border-top: none;
}

.advantages-bar .stat {
    border: none;
    align-items: start;
    padding: 56px 0;
}

.advantages-bar .stat__value {
    font-size: 24px;
    line-height: 32px;
}

.advantages-bar .stat__label {
    font-size: 18px;
    line-height: 24px;
}

.stat__icon {
    margin-bottom: 16px;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section--green {
    position: relative;
    isolation: isolate;
    background-color: #091913;
    background-image: url("../images/service_bg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.section--green::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #091913;
    opacity: 0.88;
    pointer-events: none;
    z-index: 0;
}

.section--green > * {
    position: relative;
    z-index: 1;
}

#contact-form {
    position: relative;
    isolation: isolate;
    padding: 120px 0;
    background-color: #091913;
    background-image: url("../images/service_bg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#contact-form::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #091913;
    opacity: 0.88;
    pointer-events: none;
    z-index: 0;
}

#contact-form > .container {
    position: relative;
    z-index: 1;
}

/* Team: photo + green overlay on top (#091913) */
#team {
    position: relative;
    isolation: isolate;
    background-color: #091913;
    background-image: var(--team-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#team::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #091913;
    opacity: 0.88;
    pointer-events: none;
    z-index: 0;
}

#team > .container {
    position: relative;
    z-index: 1;
}

.about-section {
    display: flex;
    align-items: start;
    gap: 64px;
}

.about-section.split, #about-team .split {
    padding: 0;
}

.about-section .split__content, #about-team .split__content {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 16px;
    max-width: 768px;
}

.about-section .split__media {
    max-width: 828px;
    height: 880px;
}

.about-section .split__media img {
    object-fit: cover;
    height: 100%;
}

.about-section .split__content .text-secondary, #about-team .text-secondary {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 24px;
}

/* Home about: text + video on top, full-width gallery below */
.about-home {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    grid-template-rows: auto auto;
    gap: 64px 64px;
    align-items: start;
}

.about-home__content {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 16px;
}

.about-home__video {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: #111;
    aspect-ratio: 16 / 9;
    width: 100%;
    align-self: stretch;
    min-height: 0;
}

.about-home__video::after {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 96px;
    background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.55) 0%,
            rgba(0, 0, 0, 0.28) 45%,
            transparent 100%
    );
    pointer-events: none;
    z-index: 1;
}

.about-home__video-el {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--radius);
}

.about-home__play {
    display: none;
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: 97px;
    height: 97px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(4px);
    color: #fff;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding-inline-start: 4px;
    transition: background 0.2s ease, opacity 0.2s ease;
    z-index: 3;
}

.about-home__play:hover {
    background: rgba(255, 255, 255, 0.4);
}

.about-home__video.is-playing .about-home__play {
    opacity: 0;
    pointer-events: none;
}

.about-home__video-controls {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.about-home__video-btn {
    pointer-events: auto;
    position: absolute;
    top: 16px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(2.47423px);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease;
}

.about-home__video-btn--mute {
    left: 16px;
    right: auto;
}

.about-home__video-btn--expand {
    right: 16px;
    left: auto;
}

.about-home__video-btn:hover {
    background: rgba(0, 0, 0, 0.65);
}

.about-home__video-btn--mute .about-home__video-icon--sound {
    display: none;
}

.about-home__video-btn--mute:not(.is-muted) .about-home__video-icon--muted {
    display: none;
}

.about-home__video-btn--mute:not(.is-muted) .about-home__video-icon--sound {
    display: inline-flex;
}

.about-home__video-btn--mute.is-muted .about-home__video-icon--muted {
    display: inline-flex;
}

.modal--video {
    padding: 0;
}

.modal--video .modal__backdrop {
    background: rgba(0, 0, 0, 0.92);
}

.modal__dialog--video {
    width: min(100vw - 32px, 1600px) !important;
    max-height: calc(100vh - 32px);
    padding: 0 !important;
    background: #000;
    background-image: none;
    border: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: none;
    filter: none;
    position: relative;
}

.about-home__video-modal-el {
    width: 100%;
    max-height: calc(100vh - 32px);
    height: auto;
    display: block;
    background: #000;
    border-radius: var(--radius);
}

.about-home__video-btn--close {
    position: absolute;
    top: 16px;
    right: 16px;
    left: auto;
    z-index: 2;
}

.about-home__gallery {
    grid-column: 1 / -1;
    grid-row: 2;
    position: relative;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.about-home__gallery-viewport {
    width: 100%;
    overflow: hidden;
    scrollbar-width: none;
    user-select: none;
}

.about-home__gallery-viewport::-webkit-scrollbar {
    display: none;
}

.about-home__gallery-viewport.is-dragging {
    cursor: grabbing;
}

.about-home__gallery-track {
    display: flex;
    gap: 16px;
    width: 100%;
    padding-inline: 0;
}

.about-home__gallery-slide {
    margin: 0;
    flex: 1 1 0;
    min-width: 0;
    width: auto;
}

.about-home__gallery-slide img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 16px;
    display: block;
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
}

.about-home__gallery-fade,
.about-home__gallery-nav {
    display: none;
}

.about-home__gallery-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 180px;
    z-index: 1;
    pointer-events: none;
}

.about-home__gallery-fade--end {
    left: 0;
    right: auto;
    background: linear-gradient(
            to right,
            #000 0%,
            rgba(0, 0, 0, 0.92) 18%,
            rgba(0, 0, 0, 0.7) 40%,
            rgba(0, 0, 0, 0.35) 65%,
            rgba(0, 0, 0, 0.1) 85%,
            transparent 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    -webkit-mask-image: linear-gradient(
            to right,
            #000 0%,
            #000 25%,
            rgba(0, 0, 0, 0.85) 45%,
            rgba(0, 0, 0, 0.4) 70%,
            transparent 100%
    );
    mask-image: linear-gradient(
            to right,
            #000 0%,
            #000 25%,
            rgba(0, 0, 0, 0.85) 45%,
            rgba(0, 0, 0, 0.4) 70%,
            transparent 100%
    );
}

.about-home__gallery-fade--start {
    right: 0;
    left: auto;
    background: linear-gradient(
            to left,
            #000 0%,
            rgba(0, 0, 0, 0.92) 18%,
            rgba(0, 0, 0, 0.7) 40%,
            rgba(0, 0, 0, 0.35) 65%,
            rgba(0, 0, 0, 0.1) 85%,
            transparent 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    -webkit-mask-image: linear-gradient(
            to left,
            #000 0%,
            #000 25%,
            rgba(0, 0, 0, 0.85) 45%,
            rgba(0, 0, 0, 0.4) 70%,
            transparent 100%
    );
    mask-image: linear-gradient(
            to left,
            #000 0%,
            #000 25%,
            rgba(0, 0, 0, 0.85) 45%,
            rgba(0, 0, 0, 0.4) 70%,
            transparent 100%
    );
}

.about-home__gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    background: transparent;
}

.about-home__gallery-nav svg {
    height: 40px;
    width: 40px;
}

.about-home__gallery-nav--next {
    left: 12px;
    right: auto;
}

.about-home__gallery-nav--prev {
    right: 12px;
    left: auto;
}

.about-home__gallery-nav--prev svg {
    transform: rotate(180deg);
}

.about-home__gallery-nav[hidden],
.about-home__gallery-fade[hidden] {
    display: none;
}

#about-team .split {
    display: flex;
    align-items: start;
    gap: 64px;
}

#about-team .specialist-card {
    aspect-ratio: 828 / 543;
    width: 828px;
    max-width: 100%;
    height: auto;
}

#about-gallery {
    padding-bottom: 160px;
}

.about-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.about-gallery-slider {
    width: 100%;
    margin-inline: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    overflow-x: clip;
}

.about-gallery-viewport {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    cursor: grab;
    user-select: none;
}

.about-gallery-viewport::-webkit-scrollbar {
    display: none;
}

.about-gallery-viewport.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
}

.about-gallery-track {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    width: max-content;
    padding-inline: 0;
}

.about-gallery-slide {
    flex: 0 0 auto;
    width: auto;
    max-height: 640px;
    opacity: 0.9;
    scroll-snap-align: center;
    scroll-snap-stop: normal;
}

.about-gallery-slide img {
    width: auto;
    height: auto;
    max-height: 640px;
    object-fit: contain;
    border-radius: 16px;
    display: block;
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
}

.about-gallery-slide.is-active {
    opacity: 1;
}

.about-gallery-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.about-gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid var(--color-primary);
    background: transparent;
    padding: 0;
    cursor: pointer;
    opacity: 0.9;
}

.about-gallery-dot.is-active {
    background: var(--color-primary);
}

.section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 40px;
}

.section__title {
    font-size: 48px;
    color: var(--color-primary);
    font-weight: 700;
    line-height: 56px;
}

.section__subtitle {
    color: var(--color-text);
    font-size: 24px;
    font-weight: 600;
    line-height: 28px;
}

.section__description {
    color: var(--color-text-secondary);
    font-weight: 400;
}

.split__content .btn {
    height: 56px;
    width: 270px;
}

.section__title--white {
    color: var(--color-text);
}

.section__title--center {
    text-align: center;
    width: 100%;
}

.split {
    padding: 80px 0;
}

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

.media-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: 24px;
    grid-row-gap: 24px;
}

.split__content {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 16px;
}

.split__content {
    grid-area: 1 / 1 / 2 / 3;
}

.image1 {
    grid-area: 2 / 1 / 3 / 2;
}

.image2 {
    grid-area: 2 / 2 / 3 / 3;
}

.big-image {
    grid-area: 1 / 3 / 3 / 5;
}

.media-grid img,
.media-grid video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
}

.media-grid__stack {
    display: grid;
    gap: 12px;
}

.team {
    padding: 40px 0;
    display: grid;
    grid-template-columns: 1fr 849px;
    align-items: center;
    gap: 24px;
    justify-content: space-between;
}

.team__content {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 16px;
}

.team__content .btn {
    height: 56px;
}

.team__gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 24px;
    height: 392px;
}

.team__main {
    min-width: 0;
    height: 100%;
    border-radius: var(--radius);
    overflow: hidden;
}

.team__main img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
}

.team__photos {
    min-width: 0;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 24px;
}

.team__photo {
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 0;
}

.team__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
    max-height: 184px;
}

.team__photo:nth-of-type(1) img {
    object-position: top;
}

/* Cards */
.cards-grid {
    display: grid;
    gap: 24px;
    width: 100%;
}

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

.cards-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.cards-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

.services {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 16px;
    padding: 80px 0;
}

.service-card {
    position: relative;
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 498px;
    transition: box-shadow 0.25s ease;
}

.service-card:hover {
    box-shadow: 0 18px 40px -6px rgba(75, 185, 173, 0.55),
    0 0 24px rgba(75, 185, 173, 0.35);
}

.service-card:hover .service-card__overlay {
    background: linear-gradient(360deg, #225852 0%, rgba(0, 0, 0, 0) 57.65%);
}

.service-card:hover .service-card__icon {
    background-color: var(--color-gold);
}

.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.service-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.85) 100%);
    transition: background 0.25s ease;
    pointer-events: none;
}

.service-card__body {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.service-card__title {
    font-family: var(--font-title);
    margin: 0;
    max-width: 60%;
}

.service-card__icon {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 64px;
    background: var(--color-primary);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    color: #fff;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s ease;
}

.service-card__icon-face {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    transition: opacity 0.3s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card__icon-face--default {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.service-card__icon-face--hover {
    opacity: 0;
    transform: scale(0.55) rotate(-28deg);
}

.service-card:hover .service-card__icon {
    transform: scale(1.06);
}

.service-card:hover .service-card__icon-face--default {
    opacity: 0;
    transform: scale(0.55) rotate(28deg);
}

.service-card:hover .service-card__icon-face--hover {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.service-card__icon--gold {
    background: var(--color-gold);
    color: var(--color-text-inverse);
}

/* Specialist card */
.specialist-card {
    position: relative;
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 3 / 4;
    transition: box-shadow 0.25s ease;
}

.specialist-card:hover {
    box-shadow: var(--shadow-hover-green);
}

.specialist-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.specialist-card__badge {
    position: absolute;
    top: 16px;
    inset-inline-end: 16px;
    background: var(--color-gold);
    color: var(--color-text-inverse);
    font-size: 12px;
    font-weight: 400;
    padding: 4px 12px;
    border-radius: 16px;
}

.specialist-card__info {
    position: absolute;
    inset-inline: 16px;
    bottom: 16px;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2px;
    transition: background 0.25s ease;
}

.specialist-card__meta {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 2px;
}

.specialist-card:hover .specialist-card__info {
    background: var(--color-teal-800);
}

.specialist-card:hover svg path {
    stroke: var(--color-gold)
}

.specialist-card__name {
    font-family: var(--font-title);
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

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

.specialist-card:hover .specialist-card__role {
    color: rgba(255, 255, 255, 0.9);
}

.specialist-card__arrow {
    font-size: 18px;
    opacity: 0.9;
}

.specialist-hero__content {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 32px;
    max-width: 796px;
}

/* Article card */
.article-card {
    background: var(--color-bg-elevated);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: 100%;
    border: 1px solid #2D7B73;
    padding: 24px;
}

.article-card:hover {
    box-shadow: var(--shadow-hover-green);
    border-color: #2D7B73;
    background-color: #2D7B73;
}

.article-card:hover .article-card__tag {
    border-color: #FFFFFF;
    color: #FFFFFF;
}

.article-card:hover .article-card__more {
    color: var(--color-gold);
}

.article-card__media {
    aspect-ratio: 20 / 11;
    background: #163a36;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 16px;
}

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

.article-card__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

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

.article-card__tag {
    display: inline-block;
    border: 1px solid #193935;
    color: #4BB9AD;
    font-size: 14px;
    padding: 2px 16px;
    border-radius: 999px;
    width: fit-content;
}

.article-card__title {
    margin: 0;
}

.article-card__excerpt {
    color: var(--color-text);
    flex: 1;
}

.article-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-top: auto;
}

.article-card__more {
    color: var(--color-primary);
    font-size: 16px;
    font-weight: 600;
}

/* Filters */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
    align-items: center;
}

.filter-pill {
    padding: 7px 16px;
    border-radius: 64px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--color-text-secondary);
    font-size: 16px;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    gap: 24px;
}

.filter-pill.is-active,
.filter-pill:hover {
    background: var(--color-primary);
    color: var(--color-text-inverse);
    box-shadow: var(--shadow-hover-green);
}

.filter-pill.is-active .filter-pill__count, .filter-pill:hover .filter-pill__count {
    background-color: rgba(8, 8, 8, 0.2);
    color: #000000;
}

.filters--specialists {
    align-items: center;
}

.filters__toggle {
    width: 58px;
    height: 48px;
    border-radius: 64px;
    background: transparent;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background 0.2s, color 0.2s;
}

.filters__toggle.is-open {
    background: var(--color-primary);
    color: #000;
}

.filters__toggle-icon--close {
    display: none;
}

.filters__toggle.is-open .filters__toggle-icon--open {
    display: none;
}

.filters__toggle.is-open .filters__toggle-icon--close {
    display: block;
}

.filters__badges {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

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

.filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 16px;
    border-radius: 64px;
    background: #132624;
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 600;
    border: 0;
    cursor: pointer;
}

.filter-badge__remove {
    display: inline-flex;
    line-height: 1;
}

.filters__badges-clear {
    background: transparent;
    border: 0;
    color: var(--color-text-secondary);
    font-size: 14px;
    cursor: pointer;
    padding: 0;
}

.specialists-list__body {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 0;
    transition: gap 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.specialists-list__body.is-filters-open {
    gap: 24px;
}

.filters-panel {
    flex: 0 0 0;
    width: 0;
    max-width: 0;
    min-width: 0;
    overflow: hidden;
    opacity: 0;
    align-self: stretch;
    pointer-events: none;
    transition: flex-basis 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    max-width 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.28s ease;
}

.specialists-list__body.is-filters-open .filters-panel {
    flex-basis: 330px;
    width: 330px;
    max-width: 330px;
    opacity: 1;
    pointer-events: auto;
}

.filters-panel__dropdown {
    width: 330px;
    min-height: 100%;
    height: 100%;
    box-sizing: border-box;
    background: linear-gradient(176.47deg, #000000 1.21%, #131313 97.78%), #FFFFFF;
    padding: 30px 16px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.3s ease;
}

.specialists-list__body.is-filters-open .filters-panel__dropdown {
    transform: translateX(0);
    opacity: 1;
}

.cards-grid--specialists {
    flex: 1;
    min-width: 0;
    transition: grid-template-columns 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.specialists-list__body.is-filters-open .cards-grid--specialists {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.filters-panel__overlay {
    display: none;
}

.filters-panel__header {
    display: contents;
}

.filters-panel__close,
.filters-panel__footer {
    display: none;
}

.filters-panel__body {
    display: contents;
}

.filters-panel__title {
    margin: 0;
    color: #fff;
    font-size: 24px;
}

.filters-panel__section {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/*
.filters-panel__section + .filters-panel__section {

  padding-top: 24px;
}*/

.filters-panel__section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    font-size: 18px;
    line-height: 24px;
    color: #fff;
}

.filters-panel__section-icon {
    display: inline-flex;
}

.filters-panel__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.filters-panel__option {
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: flex-start;
    gap: 5px;
    padding: 2px;
    border-radius: 5px;
    cursor: pointer;
    color: var(--color-text-secondary);
    transition: background 0.2s, color 0.2s;
    font-size: 13px;
    line-height: 17px;
    letter-spacing: -0.4px;
}

.filters-panel__option.is-active {
    background: #193935;
    color: #fff;
}

.filters-panel__option input {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    flex-shrink: 0;
    position: relative;
}

.filters-panel__option input:checked {
    border-color: var(--color-primary);
    background: var(--color-primary);
}

.filters-panel__option input:checked::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.search-field {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--color-bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 64px;
    padding: 0 16px;
    min-width: 360px;
    height: 48px;
    font-size: 16px;
}

.search-field input {
    background: transparent;
    border: 0;
    color: #fff;
    font-family: var(--font-body);
    font-size: 14px;
    width: 100%;
    outline: none;
}

/* Forms */
.contact-form {
    max-width: 680px;
    margin-inline: auto;
    display: grid;
    gap: 20px;
}

.contact-form form {
    width: 677px;
}

.contact-form br {
    display: none;
}

.contact-form label {
    display: block;
    font-size: 14px;
    margin-bottom: 0;
    color: var(--color-text-secondary);
}

.contact-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.contact-form textarea {
    width: 100%;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    font-family: var(--font-body);
    font-size: 16px;
    padding: 10px 0;
    outline: none;
    resize: vertical;
    height: 70px;
    direction: rtl !important;
}

.contact-form textarea {
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    margin-top: 60px;
    height: 140px;
    padding: 10px;
}

.contact-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):focus,
.contact-form textarea:focus {
    border-bottom-color: var(--color-primary);
}

.contact-form textarea:focus {
    border-color: var(--color-primary);
}

.contact-form input:not([type="checkbox"]):not([type="radio"])::placeholder {
    font-size: 20px;
    color: #FFFFFF;
}

.contact-form .btn {
    width: 100%;
    margin-top: 8px;
}

.contact-form .wpcf7-submit {
    width: 100%;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 28px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 700;
    line-height: 22px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    background: var(--color-primary);
    color: var(--color-text-inverse);
    margin-top: 19px;
}

.contact-form .wpcf7-checkbox,
.contact-form .wpcf7-acceptance {
    margin-top: 16px;
    width: 100%;
}

.contact-form .wpcf7-checkbox .wpcf7-list-item,
.contact-form .wpcf7-acceptance .wpcf7-list-item {
    margin: 0;
}

.contact-form .wpcf7-checkbox label,
.contact-form .wpcf7-acceptance label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    color: #fff;
    cursor: pointer;
}

.contact-form .wpcf7-list-item-label {
    display: block;
    flex: 1;
    min-width: 0;
}

.contact-form input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    margin: 2px 0 0;
    padding: 0;
    flex-shrink: 0;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    border-radius: 2px;
    background: transparent;
    cursor: pointer;
    direction: ltr;
}

.contact-form input[type="checkbox"]:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 6.2L4.8 8.5L9.5 3.5' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 12px;
}

.contact-form input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.contact-form .wpcf7-list-item-label a,
.contact-form .wpcf7-acceptance a {
    color: var(--color-primary);
    text-decoration: none;
}

.contact-form .wpcf7-consent-break {
    display: block;
    width: 100%;
    height: 0;
}

.contact-form .wpcf7-list-item-label a:hover,
.contact-form .wpcf7-acceptance a:hover {
    text-decoration: underline;
}

/* Single specialist */
.specialist-hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: start;
    padding: 64px 0;
}

.specialist-hero__badge {
    display: inline-block;
    background: var(--color-primary);
    color: #fff;
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.btn-back {
    box-sizing: border-box;
    display: inline-flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    width: 190px;
    height: 42px;
    border: 1px solid var(--color-primary);
    border-radius: 12px;
    color: var(--color-primary);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn-back svg {
    flex-shrink: 0;
}

.btn-back:hover {
    background: rgba(75, 185, 173, 0.12);
}

.specialist-hero__photo {
    border-radius: 24px;
}

.specialist-hero__photo img {
    width: 100%;
    border-radius: var(--radius);
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

.specialist-meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.specialist-meta__item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 24px;
    line-height: 32px;
}

.specialist-meta__icon {
    display: inline-flex;
    flex-shrink: 0;
    color: var(--color-primary);
    margin-top: 0;
}

.specialist-meta__text {
    min-width: 0;
}

.specialist-meta__text-lg {
    font-size: 30px;
    line-height: 40px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.bio-block {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.bio-block__section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bio-block h2 {
    font-size: 24px;
    margin: 0;
}

.bio-block p,
.bio-block li {
    color: var(--color-text-secondary);
    margin-bottom: 12px;
}

/* Service single */
.service-single-hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
    align-items: start;
    padding: 64px 0 80px;
}

.service-single-hero__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    height: 100%;
}

.service-single-hero__meta {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 32px;
}

.service-single-hero__title {
    margin: 0;
}

.service-single-hero__subtitle {
    margin: 0;
    color: #fff;
    font-family: var(--font-title);
    font-size: 36px;
    line-height: 40px;
    font-weight: 700;
}

.service-single-hero__desc {
    max-width: 768px;
    margin: 0;
}

.service-single-hero__cta .btn {
    min-width: 200px;
}

.service-single-hero__media {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
}

.service-single-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    pointer-events: none;
    border-radius: inherit;
    z-index: 1;
}

.service-single-hero__media img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 24px;
    display: block;
}

.service-usps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    width: 100%;
    max-width: 788px;
}

.service-usp {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.service-usp__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    color: var(--color-primary);
}

.service-usp__icon svg {
    display: block;
}

.service-usp__emoji {
    font-size: 24px;
    line-height: 1;
}

.service-usp__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.service-usp__title {
    color: #fff;
    font-family: var(--font-title);
}

.service-usp__subtitle {
    color: var(--color-text-secondary);
}

.service-single-green {
    padding: 80px 0;
}

.service-single-green__inner {
    display: grid;
    grid-template-columns: 828px 1fr;
    gap: 64px;
    align-items: center;
}

.service-single-green__content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
}

.service-single-green__content .h3 {
    margin: 0;
    color: #fff;
}

.service-single-green__text {
    color: rgba(255, 255, 255, 0.88);
}

.service-single-green__media img {
    border-radius: 24px;
    object-fit: cover;
    display: block;
    min-height: 360px;
    width: 100%;
}

.service-single-team .section__header {
    margin-bottom: 40px;
}

/* legacy usps (unused on new template, keep safe) */
.usps {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 28px;
}

.usp {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-primary);
    font-size: 14px;
}

/* Contacts */
.section--contacts {
    padding-top: 56px;
    padding-bottom: 80px;
}

.contacts-page__title {
    margin: 0 0 48px;
}

.locations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    padding: 0;
}

.location__title {
    margin: 0 0 8px;
}

.location__label {
    color: var(--color-text);
    margin: 0 0 32px;
}

.location__list {
    display: grid;
    gap: 16px;
    margin: 0 0 40px;
    padding: 0;
    list-style: none;
}

.location__list li {
    display: flex;
    gap: 12px;
    align-items: center;
    color: var(--color-text);
    font-size: 18px;
    line-height: 24px;
}

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

.location__list a:hover {
    color: var(--color-primary);
}

.location__list .icon {
    color: var(--color-primary);
    flex-shrink: 0;
    display: inline-flex;
    width: 24px;
    height: 24px;
}

.location__list .icon svg {
    width: 24px;
    height: 24px;
}

.location__map {
    border-radius: 24px;
    overflow: hidden;
    background: #1a1a1a;
    aspect-ratio: 2 / 1;
}

.location__map img,
.location__map-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
    filter: grayscale(1) contrast(1.05);
}

/* Legal / terms */
.legal-content {
    max-width: 900px;
    margin: 56px auto 80px;
    padding: 0 24px;
}

.legal-content h1 {
    font-size: clamp(32px, 4vw, 48px);
    margin-bottom: 32px;
}

.legal-content h2 {
    font-size: 22px;
    margin: 28px 0 12px;
}

.legal-content p,
.legal-content li {
    color: var(--color-text-secondary);
    margin-bottom: 12px;
}

#blog-single p, #blog-single li {
    font-size: 24px;
    line-height: 32px;
}

.legal-content ol {
    list-style: decimal;
    padding-inline-start: 1.25em;
}

.terms-page {
    max-width: 900px;
    width: min(100% - 48px, 900px);
    margin: 56px auto 96px;
    padding: 0;
}

.terms-page__title {
    margin: 0 0 40px;
    color: var(--color-text);
}

.terms-page__content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: var(--color-text);
    font-size: 18px;
    line-height: 28px;
}

.terms-page__content > *:first-child {
    margin-top: 0;
}

.terms-page__content h2,
.terms-page__content h3,
.terms-page__content h4 {
    margin: 24px 0 0;
    color: var(--color-text);
    font-size: 24px;
    line-height: 32px;
    font-weight: 700;
}

.terms-page__content p {
    margin: 0;
    color: var(--color-text);
}

.terms-page__content a {
    color: var(--color-primary);
    text-decoration: underline;
}

.terms-page__content ol {
    margin: 0;
    padding-inline-start: 1.5em;
    list-style: decimal;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.terms-page__content ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.terms-page__content li {
    margin: 0;
    color: var(--color-text);
}

.terms-page__content ul li {
    position: relative;
    padding-inline-start: 1.25em;
}

.terms-page__content ul li::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 0.7em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-text);
}

.post-page {
    max-width: 1680px;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 32px;
}

.post-page .post-page__title {
    font-size: 64px;
    line-height: 72px;
    font-weight: 700;
    margin: 0;
}

.post-page .text-secondary {
    margin: 0;
}

.post-page .article-card__tag {
    padding: 5px 16px;
}

.post-page__cover {
    border-radius: 24px;
    overflow: hidden;
    max-height: 700px;
}

.entry-content {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 24px;
    max-width: 1112px;
    align-self: center;
}

.entry-content strong {
    font-size: 48px;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin-top: 40px;
}

.entry-content img {
    width: 1112px;
    border-radius: 24px;
}

.entry-content ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.entry-content li {
    position: relative;
    padding-inline-start: 1.25em;
    margin-bottom: 0;
}

.entry-content li::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-text-secondary);
}

.terms-page__content h3 {
    font-size: 36px;
    line-height: 40px;
}

.terms-page p, .terms-page li {
    font-size: 24px;
    line-height: 32px;
}

.contact-form-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 56px;
}

/* Footer */
.site-footer {
    margin-top: auto;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 16px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 400px 1fr 400px;
    padding: 80px 0;
}

.footer-column-text {
    font-size: 15px;
    line-height: 22px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
}

.footer-about p {
    color: var(--color-text-secondary);
    font-size: 14px;
    margin-top: 12px;
    max-width: 320px;
}

.footer-nav ul {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.footer-nav a {
    color: var(--color-text);
    padding: 10px 20px;
    font-size: 18px;
    line-height: 24px;
}

.footer-nav a:hover {
    color: var(--color-primary);
}

.footer-contacts {
    display: grid;
    gap: 30px;
}

.footer-contacts a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    color: var(--color-text);
}

.footer-contacts .icon {
    color: var(--color-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 24px 0 64px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
    color: var(--color-text-secondary);

}

.footer-bottom a {
    color: var(--color-primary);
    font-size: 14px;
}

/* Page title bar */
.page-hero {
    padding: 56px 0 32px;
}

.page-hero__title {
    font-size: clamp(32px, 4vw, 48px);
}

.page-hero__text {
    color: var(--color-text-secondary);
    max-width: 560px;
    margin-top: 12px;
}

/* Utils */
.mt-24 {
    margin-top: 24px;
}

.mt-32 {
    margin-top: 32px;
}

.mt-40 {
    margin-top: 40px;
}

.mb-0 {
    margin-bottom: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .cards-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .specialists-list__body.is-filters-open .cards-grid--specialists {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .specialist-hero,
    .service-single-hero,
    .service-single-green__inner,
    .split,
    .locations-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .team {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .team__content {
        grid-column: 1 / -1;
    }

    .team__gallery {
        height: 420px;
        grid-column: 1 / -1;
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero--specialists .hero__content,
    .hero--services .hero__content,
    .hero--blog .hero__content,
    .hero--about .hero__content {
        margin-right: 24px;
        margin-left: 24px;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .display {
        font-size: 40px;
        line-height: 48px;
    }

    .primary-nav {
        display: none;
    }

    .primary-nav.is-open {
        display: block;
        position: absolute;
        top: var(--header-h);
        inset-inline: 0;
        background: #111;
        padding: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .primary-nav.is-open ul {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .cards-grid--2,
    .cards-grid--3,
    .cards-grid--4 {
        grid-template-columns: 1fr;
    }

    .header-actions .phone-text {
        display: none;
    }

    .section {
        padding: 56px 0;
    }

    .about-home {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 24px;
    }

    .about-home__content,
    .about-home__video,
    .about-home__gallery {
        grid-column: 1;
        grid-row: auto;
    }

    .about-home__gallery {
        /* Flush to physical left screen edge: container inset 24px + .site 8px */
        margin-left: -32px;
        margin-right: 0;
        width: calc(100% + 32px);
        max-width: none;
    }

    .about-home__play {
        display: inline-flex;
    }

    .about-home__video {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .about-home__gallery-viewport {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
        overscroll-behavior-x: contain;
        scroll-snap-type: x proximity;
        scroll-behavior: smooth;
        cursor: grab;
    }

    .about-home__gallery-track {
        width: max-content;
        /* Match right-side inset (container 24px + .site 8px) at the left/end in RTL */
        padding-inline-start: 0;
        padding-inline-end: 32px;
    }

    .about-home__gallery-slide {
        flex: 0 0 210px;
        width: 210px;
        scroll-snap-align: start;
    }

    .about-home__gallery-slide img {
        height: 280px;
        aspect-ratio: auto;
    }

    .about-home__gallery-nav,
    .about-home__gallery-fade {
        display: none !important;
    }

    .modal--video {
        padding: 16px;
        align-items: center;
        justify-content: center;
    }

    .modal--video .modal__dialog--video {
        width: min(100%, calc(100vw - 32px)) !important;
        max-height: calc(100vh - 32px);
        margin: 0 auto;
        border-radius: var(--radius);
        padding: 0 !important;
    }

    .modal--video .about-home__video-modal-el {
        border-radius: var(--radius);
    }

    .hero__bg--specialists,
    .hero__bg--services,
    .hero__bg--blog,
    .hero--specialists .hero__content,
    .hero--services .hero__content,
    .hero--blog .hero__content {
        height: auto;
        min-height: 360px;
    }

    .hero--specialists .hero__content,
    .hero--services .hero__content,
    .hero--blog .hero__content {
        padding: 48px 0;
    }

    .service-usps {
        grid-template-columns: 1fr;
    }

    .service-single-hero__media img {
        min-height: 360px;
        max-height: none;
    }

    .filters__search {
        margin-inline-start: 0;
        width: 100%;
    }

    .blog-grid {
        display: flex;
        grid-template-columns: unset;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 16px;
        margin-inline: -24px;
        padding-inline: 24px;
        width: auto;
    }

    .blog-grid::-webkit-scrollbar {
        display: none;
    }

    .blog-grid .article-card {
        flex: 0 0 100%;
        width: 100%;
        min-width: 0;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }
}

/* Cookie consent banner */
.cookie-banner {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 1000;
    background: var(--color-primary);
    border-top: 1px solid rgba(0, 0, 0, 0.25);
    color: var(--color-text-inverse);
    padding: 24px 0;
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner__inner {
    width: min(100% - 48px, var(--container));
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-banner__info {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
    flex: 1;
}

.cookie-banner__icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: block;
}

.cookie-banner__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.cookie-banner__title {
    margin: 0;
    font-size: 18px;
    line-height: 20px;
    font-weight: 400;
    color: var(--color-text-inverse);
}

.cookie-banner__desc {
    margin: 0;
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    color: var(--color-text-inverse);
    max-width: 720px;
}

.cookie-banner__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-banner__btn {
    min-width: 196px;
    height: 40px;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 12px;
    line-height: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s ease, background 0.2s ease;
}

.cookie-banner__btn--accept {
    background: #000000;
    color: #4BB9AD;
    border: 1px solid #000000;
}

.cookie-banner__btn--accept:hover {
    opacity: 0.88;
}

.cookie-banner__btn--decline {
    background: transparent;
    color: #000000;
    border: 1px solid #000000;
}

.cookie-banner__btn--decline:hover {
    background: rgba(0, 0, 0, 0.08);
}

@media (max-width: 900px) {
    .cookie-banner__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .cookie-banner__actions {
        width: 100%;
    }

    .cookie-banner__btn {
        flex: 1;
    }
}

@media (max-width: 600px) {
    .cookie-banner__info {
        align-items: flex-start;
    }

    .cookie-banner__icon {
        width: 48px;
        height: 48px;
    }

    .cookie-banner__title {
        font-size: 18px;
        line-height: 24px;
    }

    .cookie-banner__desc {
        font-size: 14px;
        line-height: 20px;
    }

    .cookie-banner__actions {
        flex-direction: column;
    }

    .cookie-banner__btn {
        width: 100%;
    }
}

/* Appointment modal */
body.is-modal-open {
    overflow: hidden;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal[hidden] {
    display: none;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    cursor: pointer;
}

.modal__dialog {
    position: relative;
    z-index: 1000;
    width: min(100%, 1083px);
    max-height: calc(100vh - 48px);
    overflow: auto;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background-color: #0d1512;
    background-image: linear-gradient(0deg, rgba(9, 25, 19, 0.85), rgba(9, 25, 19, 1)),
    url("../images/modal_bg.jpg");
    filter: drop-shadow(0px 0px 24px rgba(75, 185, 173, 0.5));
    background-size: cover;
    background-position: center;
    padding: 100px 170px 40px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.modal__close {
    position: absolute;
    top: 16px;
    inset-inline-end: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.modal__close:hover {
    color: var(--color-primary);
}

.modal__title {
    font-size: clamp(28px, 3vw, 48px);
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 40px;
}

.modal--appointment .modal__form {
    margin: 0;
    max-width: 735px;
}

.modal--appointment .modal__form form {
    width: 100%;
}

.modal--appointment .contact-form label {
    color: #fff;
    font-size: 16px;
    direction: rtl;
}

.modal--appointment .contact-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.modal--appointment .contact-form textarea {
    height: auto;
    min-height: 70px;
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.55);
}

.modal--appointment .contact-form textarea {
    margin-top: 60px;
    min-height: 140px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 12px;
}

.modal--appointment .contact-form .wpcf7-checkbox,
.modal--appointment .contact-form .wpcf7-acceptance {
    margin-top: 20px;
}

.modal--appointment .contact-form .wpcf7-checkbox label,
.modal--appointment .contact-form .wpcf7-acceptance label {
    font-size: 14px;
    line-height: 20px;
    color: rgba(255, 255, 255, 0.95);
}

.modal--appointment .contact-form .wpcf7-submit {
    margin-top: 24px;
    background: var(--color-primary);
    color: var(--color-text-inverse);
}

@media (max-width: 1600px) {
    .primary-nav ul {
        gap: 4px;
    }

    .primary-nav a {
        padding: 8px;
        font-size: 16px;
        line-height: 18px;
    }

    .footer-nav ul {
        gap: 0;
    }

    .footer-grid {
        grid-template-columns: 400px 1fr 300px;
    }

    .container {
        --container: 1440px;
    }

    .section--specialists-list .container {
        width: min(100% - 48px, var(--container));
    }

    .specialists-list__body.is-filters-open .filters-panel {
        flex-basis: 240px;
        width: 240px;
        max-width: 240px;
    }

    .filters-panel__dropdown {
        width: 240px;
    }
}

@media (max-width: 1400px) {
    .header-actions a {
        font-size: 16px;
    }

    .header-inner {
        padding: 0 16px;
    }

    .footer-grid {
        grid-template-columns: 300px 1fr 300px;
    }
}

@media (max-width: 1225px) {
    .site-branding-text {
        display: none;
    }

    .header-actions, .header-inner {
        gap: 8px;
    }

    .primary-nav ul {
        gap: 0;
    }

    .footer-nav a {
        padding: 8px;
        font-size: 16px;
        line-height: 18px;
    }

    .footer-grid {
        grid-template-columns: 220px 1fr 220px;
    }

    .footer-contacts a {
        font-size: 16px;
        gap: 0;
    }

    .filters--specialists {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin-inline-end: -24px;
        width: calc(100% + 24px);
        max-width: none;
    }

    .filters--specialists::-webkit-scrollbar {
        display: none;
    }

    .filters--specialists .filter-pill,
    .filters--specialists .filters__toggle {
        flex-shrink: 0;
    }

    #about-team .specialist-card {
        width: 705px;
    }
}

@media (max-width: 1025px) {
    #about-team .specialist-card {
        width: 590px;
    }
}

@media (max-width: 910px) {
    .header-actions-search {
        width: 100px;
        padding-inline-start: 36px;
        padding-inline-end: 4px;
    }

    .header-actions a {
        gap: 0;
    }

    .header-inner {
        padding: 0 6px;
        gap: 4px;
    }

    .primary-nav a {
        padding: 8px 4px;
    }

    .footer-grid {
        grid-template-columns: 1fr 220px;
        gap: 24px;
    }

    .footer-column {
        grid-area: 1 / 1 / 2 / 3;
    }

    .site-branding-text {
        display: flex;
    }

    .about-section {
        flex-direction: column;
        gap: 32px;
    }

    #about-team .split {
        flex-direction: column-reverse;
        gap: 32px;
    }

    #about-team .specialist-card {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .primary-nav ul {
        gap: 16px;
    }

    .primary-nav a {
        font-size: 16px;
    }

    .specialists-list__body {
        display: block;
    }

    .specialists-list__body.is-filters-open {
        gap: 0;
    }

    .specialists-list__body.is-filters-open .cards-grid--specialists {
        grid-template-columns: 1fr;
    }

    .filters-panel {
        position: fixed;
        inset: 0;
        z-index: 1200;
        flex: none;
        width: auto;
        max-width: none;
        min-width: 0;
        overflow: visible;
        opacity: 0;
        pointer-events: none;
        align-self: auto;
        transition: opacity 0.3s ease;
    }

    .specialists-list__body.is-filters-open .filters-panel {
        flex-basis: auto;
        width: auto;
        max-width: none;
        opacity: 1;
        pointer-events: auto;
    }

    .filters-panel__overlay {
        display: block;
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .specialists-list__body.is-filters-open .filters-panel__overlay {
        opacity: 1;
    }

    .filters-panel__dropdown {
        position: absolute;
        top: 0;
        right: 0;
        width: 300px;
        max-width: 100%;
        height: 100%;
        min-height: 100%;
        padding: 24px 16px 24px;
        border-radius: 0;
        background: #0a0a0a;
        transform: translateX(100%);
        opacity: 1;
        display: flex;
        flex-direction: column;
        gap: 0;
        overflow: hidden;
        transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .specialists-list__body.is-filters-open .filters-panel__dropdown {
        transform: translateX(0);
        opacity: 1;
    }

    .filters-panel__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        flex-shrink: 0;
        margin-bottom: 8px;
    }

    .filters-panel__title {
        font-size: 24px;
        line-height: 1.2;
    }

    .filters-panel__close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        margin: -8px;
        padding: 0;
        border: 0;
        background: transparent;
        color: #fff;
        cursor: pointer;
        flex-shrink: 0;
    }

    .filters-panel__body {
        display: block;
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .filters-panel__footer {
        display: block;
        flex-shrink: 0;
        padding-top: 24px;
        margin-top: auto;
    }

    .filters-panel__apply {
        width: 100%;
        justify-content: center;
    }

    body.is-filters-modal-open {
        overflow: hidden;
    }
}

@media (max-width: 695px) {
    .footer-nav ul {
        flex-direction: column;
    }

    .footer-nav a {
        padding: 8px;
        font-size: 18px;
        line-height: 20px;
    }

    .footer-contacts a {
        font-size: 18px;
        gap: 4px;
    }
}

@media (max-width: 600px) {
    .modal {
        padding: 12px;
        align-items: flex-end;
    }

    .modal__dialog {
        width: 100%;
        max-height: calc(100vh - 24px);
        padding: 40px 20px 24px;
        border-radius: 16px 16px 0 0;
    }

    .modal--video {
        padding: 16px;
        align-items: center;
        justify-content: center;
    }

    .modal--video .modal__dialog--video {
        width: min(100%, calc(100vw - 32px)) !important;
        max-height: calc(100vh - 32px);
        margin: 0 auto;
        border-radius: var(--radius);
        padding: 0 !important;
    }

    .modal--video .about-home__video-modal-el {
        border-radius: var(--radius);
        max-height: calc(100vh - 32px);
    }

    .modal__title {
        font-size: 24px;
        margin-bottom: 24px;
    }
}

@media (max-width: 460px) {
    .container {
        width: min(100% - 32px, var(--container));
    }

    .container.about-home {
        width: calc(100% - 16px);
        padding-bottom: 64px;
    }

    .about-home__gallery {
        /* Break out only to the physical left (overflow edge in RTL), past container + .site 8px padding. */
        margin-left: -16px;
        margin-right: 0;
        width: calc(100% + 16px);
        max-width: none;
    }

    .about-home__gallery-track {
        gap: 8px;
        padding-inline-start: 0;
        /* Match right-side inset at ≤460 (container 8px + .site 8px) */
        padding-inline-end: 16px;
    }

    .about-home__video-btn {
        width: 40px;
        height: 40px;
        top: 12px;
    }

    .about-home__video-btn--mute {
        left: 12px;
    }

    .about-home__video-btn--expand {
        right: 12px;
    }

    .about-home__gallery-nav {
        display: none;
    }

    .filters--specialists {
        margin-inline-end: -16px;
        width: calc(100% + 16px);
    }

    .site-header {
        margin: 16px 0 12px;
    }

    .header-inner {
        padding: 0 24px;
        gap: 12px;
        min-height: 64px;
    }

    .site-branding-icon svg {
        width: 32px;
        height: 32px;
    }

    .site-branding-text-lg {
        font-size: 19.6px;
    }

    .site-branding-text-sm {
        font-size: 13.06px;
    }

    .header-actions {
        display: none;
    }

    .header-actions-search {
        max-width: 96px;
    }

    .display {
        font-size: 28px;
        line-height: 32px;
    }

    .h2 {
        font-size: 28px;
        line-height: 34px;
    }

    .h3 {
        font-size: 22px;
        line-height: 28px;
    }

    .body-lg {
        font-size: 18px;
        line-height: 26px;
    }

    .btn {
        padding: 14px 16px;
        font-size: 14px;
        line-height: 20px;
    }

    .section {
        padding: 0;
    }

    .hero__content {
        margin-right: 16px;
        margin-left: 16px;
        margin-top: 100px;
        gap: 16px;
    }

    .home .hero--home, .front-page .hero--home {
        gap: 32px;
        justify-content: unset;
    }

    .hero--specialists .hero__content,
    .hero--services .hero__content,
    .hero--blog .hero__content,
    .hero--about .hero__content {
        margin-right: 16px;
        margin-left: 16px;
        padding-top: 32px;
        gap: 16px;
        height: 288px;

    }


    .hero__bg--specialists,
    .hero__bg--services,
    .hero__bg--blog,
    .hero--specialists .hero__content,
    .hero--services .hero__content,
    .hero--blog .hero__content {
        min-height: 280px;
        border-radius: 16px;
    }

    .hero--home {
        min-height: 820px;
    }

    .hero__bg {
        background-position: center left 30%;
        height: 670px;
        min-height: 670px;

    }

    .hero--home .hero__bg {
        top: 70px;
    }

    .hero__bg--about,
    .hero__bg--specialists,
    .hero--specialists,
    .hero__bg--services,
    .hero--services,
    .hero--blog,
    .hero__bg--blog {
        height: 288px;
        min-height: unset;
    }

    .hero.hero--specialists {
        margin-top: 0;
        margin-inline: auto;
        margin-bottom: 24px;
    }

    .section--services-list {
        padding: 40px 0;
    }

    .hero__eyebrow {
        font-size: 18px;
        line-height: 24px;
    }

    .hero__title {
        font-size: 36px;
        line-height: 36px;
    }

    .hero__subtitle {
        flex-direction: column;
        align-items: start;
        gap: 0;
    }

    .hero__subtitle img {
        width: 78px;
    }

    .hero__text {
        font-size: 26px;
        line-height: 26px;
        font-weight: 400;
    }

    .hero__subcaption {
        font-size: 20px;
        line-height: 24px;
    }

    .hero__actions {
        margin-top: 16px;
        gap: 8px;
        width: 100%;
    }

    .btn--ghost {
        border-width: 1px;
    }

    .hero__actions a {
        width: 100%;
    }

    .stat {
        padding: 16px;
    }

    .stat__value {
        font-size: 18px;
        line-height: 20px;
    }

    .stat__label {
        font-size: 13px;
    }


    .media-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(5, 1fr);
    }

    .split__content {
        grid-area: 1 / 1 / 3 / 3;;
    }

    .image1 {
        grid-area: 5 / 1 / 6 / 2;
    }

    .image2 {
        grid-area: 5 / 2 / 6 / 3;
    }

    .big-image {
        grid-area: 3 / 1 / 5 / 3;;
    }

    .about-home__gallery-track {
        gap: 8px;
    }

    .about-home__gallery-slide {
        flex: 0 0 150px;
        width: 150px;
    }

    .about-home__gallery-slide img {
        height: 200px;
    }

    .about-home__gallery-nav {
        display: none;
    }

    .about-home__gallery-fade {
        display: none;
    }

    .team {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .team__gallery {
        height: auto;
        grid-template-columns: 1fr;
    }

    .team__main {
        height: 420px;
    }

    .team__photos {
        height: auto;
        aspect-ratio: 1 / 1;
        gap: 12px;
        width: 100%;
    }

    .cards-grid--3 {
        grid-template-columns: 1fr 1fr;
    }

    .blog-grid {
        margin-inline: -16px;
        padding-inline: 16px;
    }

    .services {
        padding: 40px 0;
    }

    .cards-grid {
        margin-top: 0;
    }

    #contact-form {
        padding: 40px 0;
    }

    .footer-grid {
        padding: 24px 0 0;
        max-width: calc(100svw - 32px);
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        grid-column-gap: 0px;
        grid-row-gap: 16px;
    }

    .footer-column {
        max-width: calc(100svw - 32px);
        grid-area: 1 / 1 / 2 / 3;
    }

    .footer-column-text {
        max-width: 100%;
    }

    .footer-nav {
        grid-area: 2 / 1 / 4 / 2;
    }

    .footer-nav ul {
        display: flex;
        flex-direction: column;
        align-items: start;
        gap: 16px;
    }

    .footer-contacts {
        grid-area: 2 / 2 / 3 / 3;
        gap: 16px;
    }

    .footer-bottom {
        padding: 0 0 24px;
    }

    .advantages-bar .stat {
        padding: 16px 4px;
    }

    .advantages-bar .stat__value {
        font-size: 18px;
        line-height: 20px;
    }

    .advantages-bar .stat__label {
        font-size: 14px;
        line-height: 18px;
    }

    .advantages-bar .stat__icon {
        margin-bottom: 4px;
    }

    .about-section.split {
        padding: 40px 0;
    }

    .about-section .split__media {
        height: unset;
        aspect-ratio: 1 / 1;
    }

    #about-team {
        padding: 40px 0;
    }

    #about-team .split {
        flex-direction: column-reverse;
    }

    .section__title {
        font-size: 32px;
        line-height: 40px;
    }

    #about-gallery {
        padding-bottom: 40px;
    }

    .section--specialists-list {
        padding-bottom: 40px;
    }

    .specialist-hero__content {
        gap: 16px;
    }

    .service-single-hero {
        padding: 16px 0;
        gap: 16px;
    }

    .service-single-hero__content,
    .service-single-hero__meta,
    .service-usps {
        gap: 16px;
    }

    .service-usps {
        grid-template-columns: 1fr 1fr;
    }

    .service-usp {
        gap: 16px;
    }

    .service-usp__title {
        font-size: 18px;
        line-height: 20px;
    }

    .service-usp__subtitle {
        font-size: 14px;
        line-height: 18px;
    }

    .service-single-green__inner {
        padding-bottom: 40px;
    }

    .service-single-team {
        padding-bottom: 40px;
        padding-top: 40px;
    }

    .section--blog-list .cards-grid--3 {
        grid-template-columns: 1fr;
    }

    .legal-content {
        margin: 24px auto;
        gap: 16px;
    }

    .entry-content strong {
        font-size: 32px;
    }

    .page-decor__balls,
    .page-decor__ball {
        display: none;
    }

    .service-card {
        min-height: 360px;
    }

    .service-card__body {
        padding: 16px;
    }

    .service-card__icon {
        width: 48px;
        height: 48px;
    }

    .specialist-hero {
        padding: 32px 0;
        gap: 24px;
    }

    .specialist-hero__photo img {
        max-height: 420px;
    }

    .locations-grid {
        gap: 40px;
    }

    .location__list li {
        font-size: 16px;
        line-height: 22px;
    }

    .contact-form form {
        width: 100%;
    }

    .contact-form textarea {
        margin-top: 24px;
    }

    .contact-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
    .contact-form textarea {
        height: auto;
        min-height: 48px;
    }

    .modal__dialog {
        padding: 32px 16px 20px;
    }

    .modal__title {
        font-size: 22px;
        line-height: 28px;
        margin-bottom: 20px;
        text-align: start;
    }

    .modal--appointment .contact-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
    .modal--appointment .contact-form textarea {
        min-height: 48px;
    }

    .modal--appointment .contact-form textarea {
        margin-top: 24px;
        min-height: 110px;
    }

    .modal--appointment .contact-form .wpcf7-checkbox label,
    .modal--appointment .contact-form .wpcf7-acceptance label {
        font-size: 12px;
        line-height: 18px;
    }

    .cookie-banner {
        padding: 16px 0;
    }

    .cookie-banner__inner {
        width: min(100% - 32px, var(--container));
        gap: 16px;
    }

    .cookie-banner__btn {
        min-width: 0;
        height: 44px;
    }

    .terms-page {
        margin: 32px auto 56px;
    }

    .terms-page__title {
        margin-bottom: 24px;
    }

    .terms-page__content h2,
    .terms-page__content h3,
    .terms-page__content h4,
    .terms-page__content h3 {
        font-size: 20px;
        line-height: 28px;
    }

    .terms-page p,
    .terms-page li {
        font-size: 16px;
        line-height: 24px;
    }

    .post-page .post-page__title {
        font-size: 32px;
        line-height: 40px;
    }

    .filters {
        gap: 8px;
        margin-bottom: 24px;
    }

    .filter-pill {
        font-size: 14px;
        padding: 6px 12px;
        gap: 12px;
    }


    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .about-gallery-track {
        padding-inline: 0;
        gap: 10px;
    }

    .about-gallery-slide {
        flex: 0 0 auto;
        width: auto;
        max-width: none;
        max-height: min(640px, 70vh);
    }

    .about-gallery-slide img {
        width: auto;
        height: auto;
        max-height: min(640px, 70vh);
    }

    .home .site-header, .front-page .site-header {
        top: 16px;
    }

    .article-card__title {
        font-size: 18px;
        line-height: 24px;
    }

    .article-card__excerpt.body {
        font-size: 14px;
        line-height: 20px;
    }

    .article-card {
        padding: 16px;
    }

    .blog-section__action {
        margin-bottom: 40px;
    }

    .hero__subtitle {
        font-size: 12px;
        line-height: 16px;
    }

    #blog-single p, #blog-single li {
        font-size: 18px;
        line-height: 22px;
    }

    #blog-single .article-card__excerpt {
        font-size: 22px;
        line-height: 24px;
    }

    .service-single-hero__title {
        font-size: 32px;
    }

    .service-single-hero__subtitle {
        font-size: 22px;
        line-height: 24px;
    }

    .advantages-bar.stats-bar {
        display: flex;
        flex-direction: column-reverse;
        position: relative;
        gap: 16px;
    }

    .advantages-bar .stat {
        display: grid;
        grid-template-columns: 48px 1fr;
        gap: 0;
        border-bottom: none;
    }

    .advantages-bar .stat + .stat {
        border: none;
    }

    .stat {
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .stat:nth-child(3), .stat:nth-child(4) {
        border-bottom: none;
    }

    .stat__icon {
        grid-area: 1 / 1 / 3 / 2;
        margin-left: 16px;
    }

    .stat__value {
        grid-area: 1 / 2 / 2 / 3;
    }

    .stat__label {
        grid-area: 2 / 2 / 3 / 3;
    }
}




