:root {
    --primary-color: #4682b4;
    --primary-color-rgb: 70, 130, 180;
    --secondary-color: #1e5a99;
    --secondary-color-rgb: 30, 90, 153;
    --accent-color: #e8f4fd;
    --accent-color-rgb: 232, 244, 253;
    --text-color: var(--text-color);
    --light-text: #ffffff;
    --dark-text: #222;
    --gray-color: white;
    --med-gray: #e1e5eb;
    --dark-gray: #5f6368;
    --light-bg: #f8f9fa;
    --border-color: #e1e5ea;
    --border-radius: 8px;
    --success-color: #28a745;
    --error-color: #dc3545;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    --hover-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    --section-padding: 90px 0;
    --light-accent: #f0f8ff;
    --site-header-height: 92px;
}

.fa-solid,
.fa-regular,
.fa-brands {
    margin-right: 1px;
    
}

.btn .fa-solid,
.btn .fa-regular,
.btn .fa-brands,
.breadcrumb-link .fa-solid,
.pagination-arrow .fa-solid {
    color: inherit;
    font-size: 13px;
}

.btn .fa-solid,
.btn .fa-regular,
.btn .fa-brands {
    margin-right: 0.5em;
}

.fa-phone {
    font-size: 13px;
}

.footer-menu .fa-solid {
    font-size: 12px;
    color: var(--light-text);
}

.feature-icon .fa-solid {
    color: var(--primary-color);
    margin: 0;
}

.back-to-top .fa-solid {
    color: white;
    margin: 0;
}

.social-link .fa-brands {
    color: white;
    font-size: 18px;
    margin: 0;
}

.breadcrumb-separator .fa-solid {
    font-size: 10px;
    color: var(--dark-gray);
}

.search-btn .fa-solid {
    color: var(--primary-color);
    margin: 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--light-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--dark-text);
    letter-spacing: -0.02em;
}

h1 {
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.2rem;
    color: #858585;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.primary-btn,
.secondary-btn {
    min-width: 200px;
}

.hero-buttons .btn {
    text-align: center;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    flex: 1;
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--light-text);
    box-shadow: 0 4px 18px rgba(var(--primary-color-rgb), 0.32);
}

.primary-btn .fa-arrow-right {
    font-size: 0.78rem;
    transition: transform 0.3s ease;
}

.primary-btn:hover {
    color: var(--light-text);
    box-shadow: 0 8px 28px rgba(var(--primary-color-rgb), 0.42);
    transform: translateY(-2px);
}

.primary-btn:hover .fa-arrow-right {
    transform: translateX(4px);
}

.primary-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(var(--primary-color-rgb), 0.28);
}

.secondary-btn {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid rgba(var(--primary-color-rgb), 0.3);
}

.secondary-btn:hover {
    background: rgba(var(--primary-color-rgb), 0.05);
    color: var(--secondary-color);
    border-color: rgba(var(--primary-color-rgb), 0.55);
    transform: translateY(-2px);
}

.secondary-btn:active {
    transform: translateY(0);
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-header p {
    color: #555;
    max-width: 700px;
    margin: 1rem auto 0;
    font-size: 1.1rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 30px 0;
    font-size: 16px;
    background-color: var(--accent-color);
}

.breadcrumb-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 10px;
}

.breadcrumb-current {
    color: #8E8E8E;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    cursor: pointer;
    padding: 0;
    border: none;
    background: none;
    font: inherit;
}

.mobile-menu-btn span {
    height: 2px;
    width: 100%;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* ── Иконки поиска и телефона в строке хедера (только мобильные) ── */

.header-mobile-actions {
    display: none;
    align-items: center;
    gap: 0.25rem;
}

@media (max-width: 1199px) {
    .header-mobile-actions {
        display: flex;
        margin-left: auto;
        margin-right: 0.5rem;
    }
}

.header-mobile-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    height: 36px;
    padding: 0 8px;
    border-radius: 8px;
    color: var(--primary-color);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.header-mobile-icon-btn i {
    font-size: 1.35rem;
    line-height: 1;
}

.header-mobile-icon-btn:hover {
    background: rgba(var(--primary-color-rgb), 0.08);
}

.header-mobile-phone-number {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
    color: var(--primary-color);
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    box-shadow: var(--shadow);
    overflow: visible;
    transition: box-shadow 0.35s ease, background-color 0.35s ease;
}

header.sticky {
    box-shadow: 0 16px 34px rgba(24, 53, 84, 0.12);
}

.header-topbar {
    background: #ffffff;
    border-bottom: 1px solid rgba(var(--primary-color-rgb), 0.12);
    max-height: 260px;
    opacity: 1;
    overflow: hidden;
    transform: translateY(0);
    transition:
        max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.28s ease,
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.28s ease;
}

header.header--condensed .header-topbar {
    max-height: 0;
    opacity: 0;
    transform: translateY(-18px);
    border-bottom-color: transparent;
}

.header-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    padding: 10px 20px;
}

.header-topbar__item {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 0.65rem;
    min-width: 0;
    font-size: 0.92rem;
    line-height: 1.4;
    color: var(--dark-text);
    white-space: normal;
    justify-content: flex-start;
}

.header-topbar__item:nth-child(2) {
    justify-content: center;
}

.header-topbar__item:last-child {
    justify-content: flex-end;
}

.header-topbar__item .fa-solid,
.header-topbar__item .fa-regular {
    margin: 0;
    color: var(--primary-color);
    font-size: 0.88rem;
    flex-shrink: 0;
    margin-top: 0;
}

.header-topbar__item + .header-topbar__item {
    position: relative;
    padding-left: 0;
}

.header-topbar__item + .header-topbar__item::before {
    display: none;
}

.header-topbar__item--phones {
    margin-left: 0;
}

.header-topbar__copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2px;
    min-width: 0;
}

.header-topbar__title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-color);
    white-space: nowrap;
}

.header-topbar__note {
    font-size: 0.76rem;
    color: var(--dark-gray);
    white-space: nowrap;
}

.header-topbar__text {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--dark-text);
    white-space: normal;
}

.header-topbar__phones {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.header-topbar__phone {
    color: var(--dark-text);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease, transform 0.2s ease;
}

.header-topbar__phone + .header-topbar__phone::before {
    content: '•';
    margin-right: 0.45rem;
    color: rgba(var(--primary-color-rgb), 0.45);
}

.header-topbar__phone:hover {
    color: var(--primary-color);
    transform: translateX(2px);
}

.header-main {
    padding: 15px 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.logo img {
    height: 60px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-menu > li {
    position: relative;
    padding-bottom: 22px;
    margin-bottom: -22px;
}

.nav-menu > li::after {
    content: '';
    position: absolute;
    left: -12px;
    right: -12px;
    top: 100%;
    height: 22px;
}

.nav-link-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-link-row > a,
.nav-menu > li:not(.nav-item--has-submenu) > a {
    display: inline-block;
    line-height: 1.2;
    vertical-align: middle;
}

.nav-menu a {
    color: var(--text-color);
    font-weight: 100;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link-row > a::after,
.nav-menu > li:not(.nav-item--has-submenu) > a::after {
    bottom: -5px;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a.active::after {
    width: 100%;
}

.nav-submenu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--primary-color);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.nav-submenu-toggle:hover {
    background: rgba(var(--primary-color-rgb), 0.08);
    color: var(--secondary-color);
}

.nav-submenu {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    min-width: 220px;
    padding: 0.9rem;
    border: 1px solid rgba(var(--primary-color-rgb), 0.18);
    border-radius: 20px;
    background: var(--accent-color);
    box-shadow: 0 8px 24px rgba(15, 54, 96, 0.14), 0 24px 48px rgba(15, 54, 96, 0.12);
    backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
    z-index: 1001;
}

.nav-item--has-submenu:not(.nav-item--services) .nav-submenu {
    display: grid;
    gap: 0.7rem;
    width: max-content;
    min-width: 0;
}

.nav-item--has-submenu:not(.nav-item--services) .nav-submenu-link {
    min-width: 230px;
    max-width: 230px;
}

.nav-submenu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 24px;
    width: 16px;
    height: 16px;
    background: var(--accent-color);
    border-top: 1px solid rgba(var(--primary-color-rgb), 0.18);
    border-left: 1px solid rgba(var(--primary-color-rgb), 0.18);
    transform: rotate(45deg);
}

.nav-submenu--mega {
    display: inline-grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.45rem;
    width: max-content;
    min-width: 0;
    max-width: none;
}

.nav-submenu-link {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 48px;
    padding: 0.7rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(var(--primary-color-rgb), 0.08);
    background: rgba(255, 255, 255, 0.78);
    color: var(--dark-text);
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
    box-shadow: inset 0 0 0 1px rgba(var(--primary-color-rgb), 0.04);
    transition: transform 0.24s ease, background 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease, color 0.24s ease;
}

.nav-submenu--mega .nav-submenu-link {
    white-space: nowrap;
    min-width: 230px;
}

.nav-submenu-link::after {
    display: none;
}

.nav-submenu-link:hover,
.nav-submenu-link:focus-visible {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(var(--primary-color-rgb), 0.26);
    box-shadow: 0 10px 20px rgba(var(--primary-color-rgb), 0.12), inset 0 0 0 1px rgba(var(--primary-color-rgb), 0.08);
    transform: translateY(-1px);
}

.nav-submenu-link.active {
    color: var(--primary-color);
    background: rgba(var(--primary-color-rgb), 0.14);
    border-color: rgba(var(--primary-color-rgb), 0.30);
    box-shadow: 0 4px 14px rgba(var(--primary-color-rgb), 0.12);
    font-weight: 700;
}

.nav-item--has-submenu:hover > .nav-submenu,
.nav-item--has-submenu:focus-within > .nav-submenu,
.nav-item--has-submenu.is-open > .nav-submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-item--has-submenu:hover > .nav-link-row > a,
.nav-item--has-submenu:focus-within > .nav-link-row > a,
.nav-item--has-submenu.is-open > .nav-link-row > a {
    color: var(--primary-color);
}

.nav-item--has-submenu:hover > .nav-link-row > a::after,
.nav-item--has-submenu:focus-within > .nav-link-row > a::after,
.nav-item--has-submenu.is-open > .nav-link-row > a::after {
    width: 100%;
}

.nav-item--has-submenu:hover .nav-submenu-toggle i,
.nav-item--has-submenu:focus-within .nav-submenu-toggle i,
.nav-item--has-submenu.is-open .nav-submenu-toggle i {
    transform: rotate(180deg);
}

.nav-submenu-toggle i {
    transition: transform 0.2s ease;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-buttons {
    display: flex;
    gap: 10px;
}

.search-box {
    position: relative;
    width: 205px;
    height: 40px;
}

.search-input {
    width: 100%;
    height: 100%;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 0 40px 0 15px;
    font-size: 14px;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.1);
    outline: none;
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.search-btn img {
    width: 16px;
    height: 16px;
    transition: var(--transition);
}

.search-btn:hover img {
    transform: scale(1.1);
}

.header-contact .phone {
    font-weight: 600;
    color: var(--text-color);
}

.header-phone-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-text);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.header-phone-link i {
    font-size: 0.85rem;
    color: var(--primary-color);
}

.header-phone-link:hover {
    color: var(--primary-color);
}

.header-instagram {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 1.3rem;
    color: var(--primary-color);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.header-instagram:hover {
    background: rgba(var(--primary-color-rgb), 0.08);
    color: var(--primary-color);
}

.header-contact .appointment-btn,
.header-contact .account-btn {
    box-sizing: border-box;
    font-size: 0.85rem;
    padding: 9px 20px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 150px;
    white-space: nowrap;
}

.header-contact .appointment-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--light-text);
    border: none;
    box-shadow: 0 3px 14px rgba(var(--primary-color-rgb), 0.28);
}

.header-contact .appointment-btn:hover {
    color: var(--light-text);
    box-shadow: 0 6px 20px rgba(var(--primary-color-rgb), 0.38);
    transform: translateY(-1px);
}

.header-contact .account-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 1.5px solid rgba(var(--primary-color-rgb), 0.3);
}

.header-contact .account-btn:hover {
    background: rgba(var(--primary-color-rgb), 0.05);
    color: var(--secondary-color);
    border-color: rgba(var(--primary-color-rgb), 0.5);
    transform: translateY(-1px);
}

.nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 20px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    border-top: 1px solid var(--border-color);
    z-index: 1000;
}

.nav-container.show-mobile {
    position: fixed;
    top: var(--site-header-height, 70px);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    padding: 20px;
    z-index: 999;
    overflow-y: auto;
    transition: transform 0.3s ease-out, visibility 0.3s;
}

.nav-container.show-mobile .nav-menu {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

@media (min-width: 1200px) and (max-width: 1600px) {
    .header-topbar__text,
    .header-topbar__phone,
    .header-topbar__item {
        font-size: 0.83rem;
    }

    .header-topbar__title {
        font-size: 0.65rem;
    }

    .header-topbar__inner {
        padding: 7px 16px;
    }
}

/* Хэдер: при ширине < 1200px показываем бургер-меню, обычное меню только на Desktop (≥1200px) */
@media (max-width: 1199px) {
    .header-topbar {
        display: none;
    }

    .search-box {
        display: none;
    }

    .header-contact {
        display: none;
    }

    /* Контейнер меню: открытие — выезд сверху вниз, закрытие — только выцветание (пункты не двигаются) */
    .nav-container {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: var(--site-header-height, 70px);
        left: 0;
        right: 0;
        max-height: calc(100vh - var(--site-header-height, 70px));
        padding: 20px;
        background-color: #ffffff;
        z-index: 999;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.3s ease-out, visibility 0.3s;
    }

    .nav-container.show-mobile {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: transform 0.35s ease-out, opacity 0.35s ease-out, visibility 0.35s;
    }

    /* Фаза закрытия: только opacity, transform остаётся 0 — пункты не уезжают вверх */
    .nav-container.show-mobile.menu-closing {
        transform: translateY(0);
        opacity: 0;
        transition: opacity 0.3s ease-out, visibility 0.3s;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .header-topbar__copy {
        flex-wrap: wrap;
    }

    .header-main {
        padding: 12px 0;
    }
}

/* Уточнения для открытого бургер-меню: вертикальный список, без выхода за экран */
@media (max-width: 1199px) {
    .nav-menu > li {
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .nav-menu > li::after {
        display: none;
    }

    .nav-container.show-mobile .nav-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0;
    }

    .nav-container.show-mobile .nav-menu > li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .nav-container.show-mobile .nav-item--has-submenu {
        padding: 6px 0;
    }

    .nav-container.show-mobile .nav-link-row {
        position: relative;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
    }

    .nav-container.show-mobile .nav-link-row::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 2px;
        background-color: var(--primary-color);
        transform: scaleX(0);
        transform-origin: left center;
        transition: transform 0.24s ease;
        pointer-events: none;
    }

    .nav-container.show-mobile .nav-link-row > a {
        display: block;
        flex: 1;
        padding: 16px 0;
        text-align: left;
        font-weight: 500;
    }

    .nav-container.show-mobile .nav-link-row > a::after {
        display: none;
    }

    .nav-container.show-mobile .nav-submenu-toggle {
        display: inline-flex;
        flex-shrink: 0;
        width: 34px;
        height: 34px;
        border-radius: 12px;
        background: rgba(var(--primary-color-rgb), 0.08);
        box-shadow: inset 0 0 0 1px rgba(var(--primary-color-rgb), 0.08);
        transition: background 0.24s ease, box-shadow 0.24s ease;
    }

    .nav-container.show-mobile .nav-submenu-toggle i {
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), color 0.26s ease;
        transform: rotate(0deg);
        transform-origin: center;
    }

    .nav-container.show-mobile .nav-submenu-toggle[aria-expanded="true"] {
        background: rgba(var(--primary-color-rgb), 0.14);
        box-shadow:
            inset 0 0 0 1px rgba(var(--primary-color-rgb), 0.14),
            0 8px 16px rgba(var(--primary-color-rgb), 0.10);
    }

    .nav-container.show-mobile .nav-item--has-submenu.is-open > .nav-link-row .nav-submenu-toggle i,
    .nav-container.show-mobile .nav-submenu-toggle[aria-expanded="true"] i {
        transform: rotate(180deg);
    }

    .nav-container.show-mobile .nav-item--has-submenu.is-open > .nav-link-row > a {
        color: var(--primary-color);
    }

    .nav-container.show-mobile .nav-item--has-submenu.is-active > .nav-link-row > a,
    .nav-container.show-mobile .nav-link-row > a.active,
    .nav-container.show-mobile .nav-menu > li:not(.nav-item--has-submenu) > a.active {
        color: var(--primary-color);
        font-weight: 600;
    }

    .nav-container.show-mobile .nav-item--has-submenu.is-active > .nav-link-row::after,
    .nav-container.show-mobile .nav-item--has-submenu.is-open > .nav-link-row::after {
        transform: scaleX(1);
    }

    .nav-container.show-mobile .nav-submenu {
        position: static;
        width: 100%;
        min-width: 0;
        max-width: none;
        display: grid;
        gap: 0.15rem;
        margin: 0;
        padding: 0 0 0 1rem;
        border: none;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        overflow: hidden;
        transform: translateY(-8px);
        transition:
            max-height 0.38s cubic-bezier(0.22, 1, 0.36, 1),
            opacity 0.26s ease,
            transform 0.32s ease,
            margin 0.32s ease,
            padding 0.32s ease;
    }

    .nav-container.show-mobile .nav-submenu::before {
        display: none;
    }

    .nav-container.show-mobile .nav-submenu--mega {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .nav-container.show-mobile .nav-item--has-submenu.is-open > .nav-submenu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        max-height: var(--submenu-open-height, 0px);
        margin: 4px 0 14px;
        padding: 0.1rem 0 0 1rem;
        transform: translateY(0);
    }

    .nav-container.show-mobile .nav-item--has-submenu:not(.is-open) > .nav-submenu {
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        margin: 0;
        padding: 0 0 0 1rem;
        transform: translateY(-8px);
    }

    .nav-container.show-mobile .nav-submenu-link {
        position: relative;
        width: 100%;
        min-width: 0;
        max-width: none;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
        display: block;
        align-items: unset;
        padding: 0.55rem 0;
        border-radius: 0;
        border: none;
        background: transparent;
        box-shadow: none;
        font-size: 0.93rem;
        font-weight: 500;
        line-height: 1.4;
        min-height: 0;
        color: var(--dark-text);
        transition: color 0.24s ease, transform 0.24s ease;
    }

    .nav-container.show-mobile .nav-submenu-link::before {
        display: none;
    }

    .nav-container.show-mobile .nav-submenu-link::after {
        display: none;
    }

    .nav-container.show-mobile .nav-submenu-link:hover,
    .nav-container.show-mobile .nav-submenu-link:focus-visible {
        color: var(--dark-text);
        background: transparent;
        border-color: transparent;
        box-shadow: none;
        transform: translateX(4px);
    }

    .nav-container.show-mobile .nav-submenu-link.active {
        color: var(--primary-color);
        border-color: transparent;
        background: transparent;
        box-shadow: none;
        transform: none;
        font-weight: 600;
    }

    .nav-container.show-mobile .nav-submenu--mega .nav-submenu-link {
        min-width: 0;
        white-space: normal;
    }

    .nav-container.show-mobile .nav-menu > li:not(.nav-item--has-submenu) > a {
        display: block;
        padding: 16px 0;
        text-align: left;
        font-weight: 500;
    }
}

/* ── Мобильные extras: поиск и телефон внутри бургер-меню ── */

.nav-mobile-extras {
    display: none;
}

@media (max-width: 767px) {
    .header-topbar__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.45rem;
        padding: 8px 0;
    }

    .header-topbar__item {
        font-size: 0.86rem;
        white-space: normal;
        align-items: flex-start;
    }

    .header-topbar__title {
        font-size: 0.64rem;
    }

    .header-topbar__note {
        font-size: 0.72rem;
    }

    .header-topbar__item + .header-topbar__item {
        padding-left: 0;
    }

    .header-topbar__item + .header-topbar__item::before {
        display: none;
    }

    .header-topbar__phones {
        flex-wrap: wrap;
        gap: 0.3rem;
    }

    .header-topbar__phone {
        font-size: 0.86rem;
    }

    .header-topbar__copy,
    .header-topbar__text,
    .header-topbar__note {
        white-space: normal;
    }
}

@media (max-width: 1199px) {
    .nav-mobile-extras {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1.25rem;
        padding-top: 1.25rem;
    }

    .nav-mobile-info {
        gap: 0.9rem;
    }

    .nav-mobile-info__item {
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
    }

    .nav-mobile-info__title {
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--primary-color);
    }

    .nav-mobile-info__text,
    .nav-mobile-info__link {
        font-size: 0.95rem;
        line-height: 1.45;
        color: var(--dark-text);
        text-decoration: none;
    }

    .nav-mobile-info__link {
        width: fit-content;
        font-weight: 600;
    }

    .nav-mobile-info__link:hover {
        color: var(--primary-color);
    }

    .nav-mobile-search {
        display: flex;
        align-items: center;
        background: var(--gray-color);
        border: 1px solid var(--border-color);
        border-radius: 10px;
        overflow: hidden;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .nav-mobile-search:focus-within {
        border-color: rgba(var(--primary-color-rgb), 0.4);
        box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.08);
    }

    .nav-mobile-search .search-input {
        flex: 1;
        border: none;
        background: transparent;
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
        color: var(--dark-text);
        outline: none;
    }

    .nav-mobile-search .search-input::placeholder {
        color: #aaa;
    }

    .nav-mobile-search .search-btn {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        flex-shrink: 0;
        width: 60px;
        height: 60px;
        background: var(--primary-color);
        border: none;
        color: #fff;
        font-size: 1.05rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s ease;
    }

    .nav-mobile-search .search-btn .fa-solid {
        color: #fff;
    }

    .nav-mobile-search .search-btn:hover {
        background: var(--secondary-color);
    }

    .nav-mobile-phone {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
        background: rgba(var(--primary-color-rgb), 0.05);
        border: 1px solid rgba(var(--primary-color-rgb), 0.15);
        border-radius: 10px;
        text-decoration: none;
        color: var(--dark-text);
        transition: background 0.2s ease, border-color 0.2s ease;
    }

    .nav-mobile-phone:hover {
        background: rgba(var(--primary-color-rgb), 0.1);
        border-color: rgba(var(--primary-color-rgb), 0.3);
    }

    .nav-mobile-phone__icon {
        width: 40px;
        height: 40px;
        background: radial-gradient(circle at 30% 30%, #fff 0, rgba(232, 244, 253, 0.9) 40%, rgba(70, 130, 180, 0.15) 100%);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        color: var(--primary-color);
        font-size: 1rem;
        transition: background 0.2s ease;
    }

    .nav-mobile-phone:hover .nav-mobile-phone__icon {
        background: radial-gradient(circle at 30% 30%, #fff 0, rgba(218, 237, 252, 0.95) 40%, rgba(70, 130, 180, 0.25) 100%);
    }

    .nav-mobile-phone__text {
        font-size: 1rem;
        font-weight: 600;
        color: var(--dark-text);
        line-height: 1.3;
    }

    .nav-mobile-phone__sub {
        display: block;
        font-size: 0.78rem;
        font-weight: 400;
        color: #888;
    }
}

@media (max-width: 768px) {
    .mobile-search-box {
        display: block;
        width: 100%;
        margin: 15px 0;
    }

    .mobile-search-box .search-input {
        width: 100%;
    }

    .mobile-account-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px 15px;
        font-size: 14px;
        margin: 10px 0;
    }
}

.hero-section {
    padding: 60px 0 20px;
    background: var(--light-text);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: var(--accent-color);
    border-radius: 0 0 0 60px;
    z-index: 0;
}

.home-page .hero-section {
    min-height: 100vh;
    min-height: 100svh;
    padding: 0;
    background: #a7c1d5;
}

.home-page .hero-section::before {
    inset: 0 auto 0 0;
    width: min(50%, 760px);
    height: 100%;
    top: 0;
    right: auto;
    background: none;
    border-radius: 0;
    z-index: 1;
}

.home-page .hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(11, 34, 52, 0.02) 0%, rgba(11, 34, 52, 0.08) 100%),
        linear-gradient(90deg, rgba(11, 34, 52, 0) 0%, rgba(11, 34, 52, 0.03) 62%, rgba(11, 34, 52, 0.18) 100%);
    pointer-events: none;
    z-index: 1;
}

.home-page .hero-video-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.home-page .hero-video {
    position: absolute;
    top: 56%;
    left: 50%;
    width: auto;
    min-width: 100%;
    min-height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
    transform: translate(-50%, -50%) scaleX(-1) scale(1.02);
    pointer-events: none;
}

.home-page .hero-decor,
.home-page .hero-sea-decor,
.home-page .hero-image {
    display: none !important;
}

.home-page .hero-sea-decor {
    position: absolute;
    inset: 0;
    display: none !important;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(78px, 1fr));
    align-content: space-between;
    column-gap: clamp(10px, 1.6vw, 22px);
    row-gap: 14px;
    padding: 18px clamp(14px, 2.6vw, 34px) 22px;
    pointer-events: none;
    z-index: 1;
    mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.home-page .hero-sea-decor i {
    position: relative;
    display: grid;
    place-items: center;
    width: var(--hero-shell-width, clamp(48px, 4.6vw, 68px));
    height: var(--hero-shell-height, var(--hero-shell-width, clamp(48px, 4.6vw, 68px)));
    overflow: hidden;
    border-radius: var(--hero-shell-radius, 999px);
    line-height: 1;
    pointer-events: none;
    color: var(--hero-icon-color, rgba(var(--secondary-color-rgb), 0.7));
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 255, 255, 0.4) 100%),
        radial-gradient(circle at 26% 22%, rgba(var(--accent-color-rgb), 0.86) 0%, rgba(255, 255, 255, 0.08) 72%);
    border: 1px solid rgba(255, 255, 255, 0.86);
    box-shadow:
        0 12px 26px rgba(var(--primary-color-rgb), 0.09),
        0 2px 10px rgba(var(--secondary-color-rgb), 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.94),
        inset 0 -8px 16px rgba(var(--primary-color-rgb), 0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transform-origin: center;
    opacity: 0.96;
}

.home-page .hero-sea-decor i::after {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: inherit;
    background: radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.44), transparent 66%);
    opacity: 0.78;
    z-index: -1;
}

.home-page .hsd-hero--anchor-left-top {
    grid-row: 1;
    grid-column: 1;
    justify-self: start;
    align-self: start;
    font-size: clamp(32px, 3.8vw, 46px);
    --hero-shell-width: clamp(62px, 6.8vw, 82px);
    --hero-shell-height: clamp(62px, 6.8vw, 82px);
    --hero-shell-radius: 26px;
    --hero-icon-color: rgba(var(--secondary-color-rgb), 0.64);
    --hero-rotate: -10deg;
    animation: heroSeaDrift 11.5s ease-in-out infinite 0.2s;
}

.home-page .hsd-hero--binoculars-left {
    grid-row: 2;
    grid-column: 2;
    justify-self: center;
    align-self: center;
    font-size: clamp(20px, 2.6vw, 28px);
    --hero-shell-width: clamp(48px, 4.4vw, 60px);
    --hero-shell-height: clamp(48px, 4.4vw, 60px);
    --hero-shell-radius: 18px;
    --hero-icon-color: rgba(var(--primary-color-rgb), 0.64);
    --hero-rotate: -6deg;
    animation: heroSeaBob 8.4s ease-in-out infinite 0.4s;
}

.home-page .hsd-hero--wheel-upper-mid {
    grid-row: 1;
    grid-column: 4;
    justify-self: center;
    align-self: start;
    font-size: clamp(24px, 3vw, 34px);
    --hero-shell-width: clamp(54px, 5vw, 66px);
    --hero-shell-height: clamp(54px, 5vw, 66px);
    --hero-shell-radius: 999px;
    --hero-icon-color: rgba(var(--secondary-color-rgb), 0.64);
    --hero-rotate: 8deg;
    animation: heroSeaSpin 28s linear infinite;
}

.home-page .hsd-hero--compass-center {
    grid-row: 2;
    grid-column: 6;
    justify-self: center;
    align-self: center;
    font-size: clamp(28px, 3.4vw, 38px);
    --hero-shell-width: clamp(60px, 5.2vw, 72px);
    --hero-shell-height: clamp(60px, 5.2vw, 72px);
    --hero-shell-radius: 999px;
    --hero-icon-color: rgba(var(--primary-color-rgb), 0.64);
    --hero-rotate: 5deg;
    animation: heroSeaSpin 30s linear infinite reverse;
}

.home-page .hsd-hero--fish-upper-right {
    grid-row: 1;
    grid-column: 9;
    justify-self: center;
    align-self: center;
    font-size: clamp(22px, 2.8vw, 30px);
    --hero-shell-width: clamp(56px, 4.8vw, 68px);
    --hero-shell-height: clamp(56px, 4.8vw, 68px);
    --hero-shell-radius: 999px;
    --hero-icon-color: rgba(var(--primary-color-rgb), 0.62);
    --hero-scale-x: -1;
    --hero-rotate: -8deg;
    animation: heroSeaDrift 8.8s ease-in-out infinite 1.1s;
}

.home-page .hsd-hero--anchor-top-right {
    grid-row: 1;
    grid-column: 12;
    justify-self: end;
    align-self: start;
    font-size: clamp(34px, 4.2vw, 48px);
    --hero-shell-width: clamp(68px, 7vw, 88px);
    --hero-shell-height: clamp(68px, 7vw, 88px);
    --hero-shell-radius: 28px;
    --hero-icon-color: rgba(var(--secondary-color-rgb), 0.64);
    --hero-rotate: -8deg;
    animation: heroSeaSway 12s ease-in-out infinite 0.5s;
    transform-origin: center top;
}

.home-page .hsd-hero--lifebuoy-right-mid {
    grid-row: 2;
    grid-column: 10;
    justify-self: center;
    align-self: center;
    font-size: clamp(24px, 2.8vw, 32px);
    --hero-shell-width: clamp(54px, 5vw, 66px);
    --hero-shell-height: clamp(54px, 5vw, 66px);
    --hero-shell-radius: 999px;
    --hero-icon-color: rgba(var(--secondary-color-rgb), 0.6);
    --hero-rotate: 10deg;
    animation: heroSeaDrift 12.8s ease-in-out infinite 0.7s;
}

.home-page .hsd-hero--wave-left {
    grid-row: 3;
    grid-column: 1;
    justify-self: start;
    align-self: center;
    font-size: clamp(24px, 3vw, 34px);
    --hero-shell-width: clamp(64px, 6vw, 80px);
    --hero-shell-height: clamp(44px, 4vw, 54px);
    --hero-shell-radius: 999px;
    --hero-icon-color: rgba(var(--primary-color-rgb), 0.54);
    --hero-rotate: -4deg;
    animation: heroSeaBob 9.2s ease-in-out infinite 0.9s;
}

.home-page .hsd-hero--ship-center {
    grid-row: 4;
    grid-column: 4;
    justify-self: center;
    align-self: end;
    margin-bottom: calc(clamp(8px, 1vw, 16px) + 70px);
    font-size: clamp(28px, 3.5vw, 38px);
    --hero-shell-width: clamp(68px, 6.2vw, 86px);
    --hero-shell-height: clamp(52px, 4.8vw, 64px);
    --hero-shell-radius: 22px;
    --hero-icon-color: rgba(var(--secondary-color-rgb), 0.64);
    --hero-rotate: 4deg;
    animation: heroSeaBob 10.2s ease-in-out infinite 0.8s;
}

.home-page .hsd-hero--compass-right-lower {
    grid-row: 3;
    grid-column: 11;
    justify-self: center;
    align-self: center;
    font-size: clamp(22px, 2.8vw, 30px);
    --hero-shell-width: clamp(52px, 4.8vw, 64px);
    --hero-shell-height: clamp(52px, 4.8vw, 64px);
    --hero-shell-radius: 999px;
    --hero-icon-color: rgba(var(--primary-color-rgb), 0.58);
    --hero-rotate: -8deg;
    animation: heroSeaFloat 11.6s ease-in-out infinite 1.1s;
}

.home-page .hsd-hero--wave-bottom-right {
    grid-row: 4;
    grid-column: 11;
    justify-self: end;
    align-self: end;
    margin-bottom: 40px;
    font-size: clamp(24px, 3vw, 34px);
    --hero-shell-width: clamp(68px, 6.2vw, 82px);
    --hero-shell-height: clamp(48px, 4.2vw, 58px);
    --hero-shell-radius: 999px;
    --hero-icon-color: rgba(var(--primary-color-rgb), 0.54);
    --hero-rotate: -4deg;
    animation: heroSeaBob 9.4s ease-in-out infinite 1.4s;
}

@keyframes heroSeaBob {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(var(--hero-rotate, 0deg)) scaleX(var(--hero-scale-x, 1));
    }
    50% {
        transform: translate3d(0, -14px, 0) rotate(calc(var(--hero-rotate, 0deg) + 2.5deg)) scaleX(var(--hero-scale-x, 1));
    }
}

@keyframes heroSeaFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(var(--hero-rotate, 0deg)) scaleX(var(--hero-scale-x, 1));
    }
    50% {
        transform: translate3d(0, -12px, 0) rotate(calc(var(--hero-rotate, 0deg) + 3deg)) scaleX(var(--hero-scale-x, 1));
    }
}

@keyframes heroSeaDrift {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(var(--hero-rotate, 0deg)) scaleX(var(--hero-scale-x, 1));
    }
    35% {
        transform: translate3d(14px, -12px, 0) rotate(calc(var(--hero-rotate, 0deg) - 2.5deg)) scaleX(var(--hero-scale-x, 1));
    }
    70% {
        transform: translate3d(-12px, 9px, 0) rotate(calc(var(--hero-rotate, 0deg) + 3deg)) scaleX(var(--hero-scale-x, 1));
    }
}

@keyframes heroSeaSway {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(var(--hero-rotate, 0deg)) scaleX(var(--hero-scale-x, 1));
    }
    50% {
        transform: translate3d(0, -12px, 0) rotate(calc(var(--hero-rotate, 0deg) + 6deg)) scaleX(var(--hero-scale-x, 1));
    }
}

@keyframes heroSeaSpin {
    0% {
        transform: rotate(var(--hero-rotate, 0deg)) scaleX(var(--hero-scale-x, 1));
    }
    100% {
        transform: rotate(calc(var(--hero-rotate, 0deg) + 360deg)) scaleX(var(--hero-scale-x, 1));
    }
}

.hero-decor {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
}

.hero-decor--1 {
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    top: 22%;
    left: 5%;
    animation: decorFloat1 5s ease-in-out infinite;
}

.hero-decor--2 {
    width: 120px;
    height: 120px;
    border: 2px solid rgba(var(--primary-color-rgb), 0.25);
    top: 55%;
    left: 2%;
    animation: decorFloat2 7s ease-in-out infinite;
}

.hero-decor--3 {
    width: 10px;
    height: 10px;
    background: var(--secondary-color);
    top: 75%;
    left: 8%;
    animation: decorFloat1 4s ease-in-out infinite 1s;
}

.hero-decor--4 {
    width: 80px;
    height: 80px;
    border: 2px solid rgba(var(--primary-color-rgb), 0.15);
    border-radius: 16px;
    top: 15%;
    left: 12%;
    animation: decorSpin 12s linear infinite;
}

.hero-decor--5 {
    width: 14px;
    height: 14px;
    background: rgba(var(--primary-color-rgb), 0.35);
    top: 40%;
    left: 6%;
    animation: decorFloat2 6s ease-in-out infinite 2s;
}

.hero-decor--6 {
    width: 16px;
    height: 16px;
    background: var(--secondary-color);
    top: 18%;
    right: 4%;
    animation: decorFloat1 5.5s ease-in-out infinite 0.5s;
}

.hero-decor--7 {
    width: 100px;
    height: 100px;
    border: 2px solid rgba(var(--primary-color-rgb), 0.2);
    top: 60%;
    right: 3%;
    animation: decorFloat2 8s ease-in-out infinite 1s;
}

.hero-decor--8 {
    width: 60px;
    height: 60px;
    border: 2px solid rgba(var(--primary-color-rgb), 0.12);
    border-radius: 12px;
    top: 30%;
    right: 8%;
    animation: decorSpin 15s linear infinite reverse;
}

.hero-decor--9 {
    width: 12px;
    height: 12px;
    background: rgba(var(--primary-color-rgb), 0.4);
    top: 78%;
    right: 7%;
    animation: decorFloat1 4.5s ease-in-out infinite 1.5s;
}

@keyframes decorFloat1 {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-18px) scale(1.15); }
}

@keyframes decorFloat2 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(8px, -14px); }
    66% { transform: translate(-6px, -8px); }
}

@keyframes decorSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-section .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.home-page .hero-section .container {
    min-height: 100vh;
    min-height: 100svh;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    z-index: 2;
}

.hero-content {
    flex: 1;
    max-width: 560px;
    padding-bottom: 80px;
}

.home-page .hero-content {
    flex: 0 0 auto;
    width: min(100%, 596px);
    max-width: 596px;
    margin: 0;
    padding: clamp(36px, 4.6vw, 52px) clamp(28px, 3.6vw, 42px);
    position: relative;
    z-index: 2;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(var(--primary-color-rgb), 0.1);
    outline: 1px solid rgba(var(--primary-color-rgb), 0.08);
    outline-offset: -1px;
    box-shadow:
        0 48px 96px rgba(8, 32, 51, 0.34),
        0 22px 48px rgba(8, 32, 51, 0.22),
        0 8px 22px rgba(8, 32, 51, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(22px) saturate(142%);
    -webkit-backdrop-filter: blur(22px) saturate(142%);
}

.home-page .hero-content::before {
    content: '';
    position: absolute;
    inset: 18px -22px -28px 28px;
    border-radius: inherit;
    background: radial-gradient(circle at 22% 20%, rgba(var(--primary-color-rgb), 0.22) 0%, rgba(var(--secondary-color-rgb), 0.08) 40%, rgba(var(--secondary-color-rgb), 0) 72%);
    filter: blur(32px);
    opacity: 0.72;
    z-index: -1;
    pointer-events: none;
}

.home-page .hero-content::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.44) 0%, rgba(255, 255, 255, 0) 24%);
    pointer-events: none;
}

.home-page .hero-label {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.78rem;
    margin-bottom: 0.9rem;
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1.2;
    color: #173f60;
    background: linear-gradient(180deg, rgba(214, 229, 244, 0.96) 0%, rgba(197, 220, 239, 0.94) 100%);
    border: 1px solid rgba(var(--primary-color-rgb), 0.16);
    border-radius: 6px;
    box-shadow: none;
}

.home-page .hero-content h1 {
    color: #000;
    margin-bottom: 1.3rem;
    text-wrap: balance;
}

.home-page .hero-desc {
    max-width: 31rem;
    margin-bottom: 2.1rem;
    color: #4a4a4a;
}

.home-page .hero-buttons {
    width: 100%;
    max-width: 470px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.home-page .hero-buttons .btn {
    width: 100%;
    min-width: 0;
    min-height: 56px;
    padding: 14px 22px;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    flex: initial;
}

.home-page .hero-buttons .primary-btn {
    border: none;
    box-shadow: 0 4px 18px rgba(var(--primary-color-rgb), 0.32);
}

.home-page .hero-buttons .primary-btn:hover {
    box-shadow: 0 8px 28px rgba(var(--primary-color-rgb), 0.42);
}

.home-page .hero-buttons .secondary-btn {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid rgba(var(--primary-color-rgb), 0.3);
    box-shadow: none;
}

.home-page .hero-buttons .secondary-btn:hover {
    background: rgba(var(--primary-color-rgb), 0.05);
    color: var(--secondary-color);
    border-color: rgba(var(--primary-color-rgb), 0.55);
    box-shadow: none;
}

.hero-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
    color: var(--dark-text);
    line-height: 1.15;
    font-size: 2.8rem;
    font-weight: 700;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--dark-gray);
    margin-bottom: 2rem;
    max-width: 480px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-cta-sea-decor {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    min-width: 82px;
    min-height: 54px;
    padding: 12px 24px;
    border-radius: 999px;
    color: rgba(var(--primary-color-rgb), 0.68);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.56) 100%),
        radial-gradient(circle at 30% 24%, rgba(var(--accent-color-rgb), 0.8) 0%, rgba(255, 255, 255, 0.08) 76%);
    border: 1px solid rgba(255, 255, 255, 0.88);
    box-shadow:
        0 14px 30px rgba(var(--primary-color-rgb), 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.94),
        inset 0 -8px 14px rgba(var(--primary-color-rgb), 0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.hero-cta-sea-decor i {
    font-size: clamp(20px, 2.2vw, 28px);
    line-height: 1;
    animation: heroSeaFloat 10.8s ease-in-out infinite 0.2s;
}

.hero-trust-row {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-trust-row li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--dark-gray);
    font-weight: 500;
}

.hero-trust-row li i {
    color: var(--primary-color);
    font-size: 0.95rem;
}

.hero-image {
    flex: 1;
    position: relative;
    max-width: 620px;
    align-self: flex-end;
    z-index: 2;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
}

.hero-badge {
    position: absolute;
    z-index: 3;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 16px;
    padding: 12px 18px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.09), 0 1px 0 rgba(255,255,255,0.8) inset;
    display: flex;
    align-items: center;
    gap: 13px;
    animation: heroFloat 4s ease-in-out infinite;
    white-space: nowrap;
}

.hero-badge i {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    color: var(--light-text);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.3);
}

.hero-badge strong {
    display: block;
    font-size: 0.9rem;
    color: var(--dark-text);
    line-height: 1.3;
    font-weight: 700;
}

.hero-badge span {
    font-size: 0.73rem;
    color: var(--dark-gray);
    line-height: 1.3;
}

.hero-badge--top {
    top: 8%;
    right: -12px;
    animation-delay: 0s;
}

.hero-badge--right {
    top: 44%;
    right: -26px;
    animation-delay: 1.4s;
}

.hero-badge--bottom {
    bottom: 14%;
    left: -18px;
    animation-delay: 2.8s;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@media (max-width: 992px) {
    .hero-section {
        padding: 60px 0 16px;
    }

    .hero-section::before {
        width: 100%;
        height: 45%;
        top: auto;
        bottom: 0;
        border-radius: 40px 40px 0 0;
    }

    .home-page .hero-section::before {
        border-radius: 0;
    }

    .home-page .hero-section::before,
    .home-page .hero-section::after {
        content: none;
        display: none;
    }

    .home-page .hero-sea-decor {
        display: none;
    }

    .hero-section .container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .hero-content {
        max-width: 100%;
        padding-bottom: 0rem;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 0rem;
    }

    .hero-content h1 {
        font-size: 2.4rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-trust-row {
        justify-content: center;
    }

    .hero-image {
        max-width: 360px;
        margin: 0 auto;
    }

    .hero-badge {
        display: none;
    }

    .home-page .hero-sea-decor {
        grid-template-columns: repeat(7, minmax(0, 1fr));
        grid-template-rows: repeat(3, minmax(74px, 1fr));
        column-gap: 12px;
        row-gap: 12px;
        padding: 24px clamp(14px, 4vw, 28px) 26px;
    }

    .home-page .hsd-hero--anchor-left-top {
        grid-row: 1;
        grid-column: 1;
        justify-self: start;
        align-self: start;
    }

    .home-page .hsd-hero--wheel-upper-mid {
        grid-row: 1;
        grid-column: 3;
        justify-self: center;
    }

    .home-page .hsd-hero--compass-center {
        grid-row: 1;
        grid-column: 5;
        justify-self: center;
    }

    .home-page .hsd-hero--anchor-top-right {
        grid-row: 1;
        grid-column: 7;
        justify-self: end;
        align-self: start;
    }

    .home-page .hsd-hero--binoculars-left {
        grid-row: 2;
        grid-column: 2;
        justify-self: center;
    }

    .home-page .hsd-hero--lifebuoy-right-mid {
        grid-row: 2;
        grid-column: 6;
        justify-self: center;
    }

    .home-page .hsd-hero--ship-center {
        grid-row: 3;
        grid-column: 3;
        justify-self: center;
        align-self: end;
    }

    .home-page .hsd-hero--compass-right-lower {
        grid-row: 3;
        grid-column: 5;
        justify-self: center;
        align-self: end;
    }

    .home-page .hsd-hero--wave-left {
        grid-row: 3;
        grid-column: 1;
        justify-self: start;
        align-self: end;
    }

    .home-page .hsd-hero--wave-bottom-right {
        grid-row: 3;
        grid-column: 7;
        justify-self: end;
        align-self: end;
    }

    .home-page .hsd-hero--binoculars-left,
    .home-page .hsd-hero--wave-left {
        display: none;
    }

    .home-page .hsd-hero--fish-upper-right,
    .home-page .hsd-hero--lighthouse-right,
    .home-page .hsd-hero--lifebuoy-right {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding-bottom: 56px;
        overflow: visible;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-image {
        max-width: 320px;
    }

    .hero-image::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: -32px;
        height: 120px;
        background: var(--accent-color);
        border-radius: 40px 40px 0 0;
        z-index: 0;
    }

    .home-page .hero-section {
        padding-bottom: 24px;
        overflow: hidden;
    }

    .home-page .hero-image::after {
        content: none;
        display: none;
    }

    .hero-image img {
        position: relative;
        z-index: 1;
    }

    .hero-buttons {
        flex-direction: column;
        max-width: 320px;
        margin: -24px auto 0;
        gap: 0.9rem;
        position: relative;
        z-index: 2;
    }

    .hero-cta-sea-decor {
        display: flex;
        margin: 16px auto 0;
    }

    .hero-trust-row {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .home-page .hero-sea-decor {
        display: none;
    }

    .home-page .hsd-hero--anchor-left-top {
        grid-row: 1;
        grid-column: 1;
        justify-self: start;
    }

    .home-page .hsd-hero--wheel-upper-mid {
        grid-row: 1;
        grid-column: 2;
        justify-self: center;
    }

    .home-page .hsd-hero--compass-center {
        grid-row: 1;
        grid-column: 3;
        justify-self: center;
    }

    .home-page .hsd-hero--anchor-top-right {
        grid-row: 1;
        grid-column: 4;
        justify-self: end;
    }

    .home-page .hsd-hero--lifebuoy-right-mid {
        grid-row: 2;
        grid-column: 3;
        justify-self: center;
    }

    .home-page .hsd-hero--ship-center {
        grid-row: 2;
        grid-column: 1;
        justify-self: start;
        align-self: end;
    }

    .home-page .hsd-hero--wave-bottom-right {
        grid-row: 2;
        grid-column: 4;
        justify-self: end;
        align-self: end;
    }

    .home-page .hsd-hero--compass-center,
    .home-page .hsd-hero--binoculars-left,
    .home-page .hsd-hero--wave-left,
    .home-page .hsd-hero--lifebuoy-right-mid,
    .home-page .hsd-hero--compass-right-lower,
    .home-page .hsd-hero--fish-upper-right,
    .home-page .hsd-hero--lighthouse-right,
    .home-page .hsd-hero--lifebuoy-right {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }

    .hero-label {
        font-size: 0.8rem;
    }

    .home-page .hero-sea-decor {
        display: none;
    }

    .home-page .hsd-hero--anchor-left-top {
        grid-row: 1;
        grid-column: 1;
        justify-self: start;
    }

    .home-page .hsd-hero--wheel-upper-mid {
        grid-row: 1;
        grid-column: 2;
        justify-self: center;
    }

    .home-page .hsd-hero--anchor-top-right {
        grid-row: 1;
        grid-column: 3;
        justify-self: end;
    }

    .home-page .hsd-hero--wave-bottom-right {
        grid-row: 2;
        grid-column: 2;
        justify-self: center;
    }

    .home-page .hsd-hero--ship-center {
        grid-row: 2;
        grid-column: 1;
        justify-self: start;
        align-self: end;
    }

    .home-page .hsd-hero--binoculars-left,
    .home-page .hsd-hero--compass-center,
    .home-page .hsd-hero--wave-left,
    .home-page .hsd-hero--lifebuoy-right-mid,
    .home-page .hsd-hero--compass-right-lower,
    .home-page .hsd-hero--fish-upper-right,
    .home-page .hsd-hero--lighthouse-right,
    .home-page .hsd-hero--lifebuoy-right {
        display: none;
    }
}

@media (max-width: 992px) {
    .home-page .hero-section {
        min-height: 100vh;
        min-height: 100svh;
        padding: 0;
    }

    .home-page .hero-section::before,
    .home-page .hero-section::after {
        content: '';
        display: block;
        inset: 0;
    }

    .home-page .hero-section::before {
        inset: 0 auto 0 0;
        width: min(68%, 560px);
        height: 100%;
    }

    .home-page .hero-section .container {
        min-height: 100vh;
        min-height: 100svh;
        justify-content: center;
        gap: 0;
    }

    .home-page .hero-content {
        max-width: 620px;
        margin: 120px auto 88px;
        padding: 34px 28px;
        border-radius: 12px;
    }

    .home-page .hero-content::before {
        inset: 14px -16px -22px 20px;
        filter: blur(26px);
    }
}

@media (max-width: 768px) {
    .home-page .hero-section {
        min-height: 100vh;
        min-height: 100svh;
        padding: 0;
        overflow: hidden;
    }

    .home-page .hero-section::before,
    .home-page .hero-section::after {
        content: '';
        display: block;
    }

    .home-page .hero-section::before {
        inset: 0;
        width: 100%;
        height: 100%;
    }

    .home-page .hero-section .container {
        min-height: 100vh;
        min-height: 100svh;
    }

    .home-page .hero-content {
        margin: 104px auto 72px;
        padding: 28px 22px;
        border-radius: 12px;
    }

    .home-page .hero-content::before {
        inset: 12px -12px -18px 16px;
        filter: blur(20px);
        opacity: 0.64;
    }

    .home-page .hero-buttons {
        max-width: 100%;
        margin: 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .home-page .hero-content {
        margin: 96px auto 64px;
        padding: 24px 18px;
        border-radius: 12px;
    }

    .home-page .hero-buttons {
        grid-template-columns: 1fr;
    }
}

.home-page .home-sea-section {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.home-page .home-sea-section > .container {
    position: relative;
    z-index: 1;
}

.home-page .about-section.home-sea-section {
    background: var(--accent-color);
}

.home-page .home-doctors {
    padding-top: 100px;
}

.home-page .home-section-sea-decor {
    position: absolute;
    inset: 0;
    display: none;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(96px, 1fr));
    align-content: space-between;
    column-gap: clamp(16px, 2.8vw, 40px);
    row-gap: 18px;
    padding: 30px clamp(18px, 3.5vw, 48px) 38px;
    pointer-events: none;
    z-index: 0;
}

.home-page .home-section-sea-decor i {
    position: relative;
    display: block;
    line-height: 1;
    pointer-events: none;
    color: rgba(var(--primary-color-rgb), 0.06);
}

.home-page .hsd--anchor-lg {
    grid-row: 1;
    grid-column: 6;
    justify-self: end;
    align-self: start;
    font-size: clamp(64px, 9vw, 88px);
    transform: rotate(-8deg);
    color: rgba(var(--primary-color-rgb), 0.055);
}

.home-page .hsd--lighthouse {
    grid-row: 3;
    grid-column: 1;
    justify-self: start;
    align-self: end;
    font-size: clamp(50px, 6vw, 64px);
    transform: rotate(5deg);
    color: rgba(var(--primary-color-rgb), 0.07);
}

.home-page .hsd--ship {
    grid-row: 1;
    grid-column: 2;
    justify-self: center;
    align-self: start;
    font-size: clamp(34px, 4vw, 44px);
    transform: rotate(5deg);
}

.home-page .hsd--compass {
    grid-row: 1;
    grid-column: 5;
    justify-self: center;
    align-self: center;
    font-size: clamp(36px, 4.4vw, 50px);
    transform: rotate(15deg);
}

.home-page .hsd--anchor-sm {
    grid-row: 3;
    grid-column: 5;
    justify-self: center;
    align-self: center;
    font-size: clamp(34px, 4vw, 44px);
    transform: rotate(18deg);
    color: rgba(var(--primary-color-rgb), 0.05);
}

.home-page .hsd--wave {
    grid-row: 3;
    grid-column: 6;
    justify-self: end;
    align-self: end;
    font-size: clamp(48px, 5vw, 60px);
    color: rgba(var(--primary-color-rgb), 0.05);
}

.home-page .hsd--fish {
    grid-row: 2;
    grid-column: 2;
    justify-self: center;
    align-self: center;
    font-size: clamp(28px, 3.5vw, 36px);
    transform: scaleX(-1) rotate(-6deg);
}

.home-page .hsd--binoculars {
    grid-row: 1;
    grid-column: 1;
    justify-self: start;
    align-self: start;
    font-size: clamp(26px, 3.2vw, 34px);
    transform: rotate(-10deg);
    color: rgba(var(--primary-color-rgb), 0.07);
}

.home-page .hsd--lifebuoy {
    grid-row: 2;
    grid-column: 6;
    justify-self: end;
    align-self: center;
    font-size: clamp(30px, 3.8vw, 40px);
    transform: rotate(12deg);
    color: rgba(var(--primary-color-rgb), 0.06);
}

.home-page .hsd--ship-low {
    grid-row: 3;
    grid-column: 2;
    justify-self: center;
    align-self: center;
    font-size: clamp(28px, 3.4vw, 36px);
    transform: rotate(6deg);
    color: rgba(var(--primary-color-rgb), 0.06);
}

.home-page .hsd--anchor-left {
    grid-row: 2;
    grid-column: 1;
    justify-self: start;
    align-self: center;
    font-size: clamp(34px, 4vw, 44px);
    transform: rotate(-18deg);
    color: rgba(var(--primary-color-rgb), 0.055);
}

.home-page .hsd--wave-mid {
    grid-row: 2;
    grid-column: 4;
    justify-self: center;
    align-self: center;
    font-size: clamp(36px, 4.5vw, 48px);
    transform: rotate(-4deg);
    color: rgba(var(--primary-color-rgb), 0.05);
}

.home-page .hsd--compass-low {
    grid-row: 3;
    grid-column: 3;
    justify-self: center;
    align-self: end;
    font-size: clamp(28px, 3.5vw, 38px);
    transform: rotate(-10deg);
    color: rgba(var(--primary-color-rgb), 0.055);
}

.home-page .hsd--wheel-top {
    grid-row: 1;
    grid-column: 3;
    justify-self: center;
    align-self: start;
    font-size: clamp(28px, 3.4vw, 38px);
    transform: rotate(8deg);
    color: rgba(var(--primary-color-rgb), 0.065);
}

@media (max-width: 900px) {
    .home-page .home-section-sea-decor {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-template-rows: repeat(4, minmax(82px, 1fr));
        align-content: space-between;
        column-gap: clamp(12px, 3vw, 28px);
        row-gap: 12px;
        padding: 24px clamp(12px, 4vw, 28px) 34px;
    }

    .home-page .hsd--anchor-lg {
        grid-row: 1;
        grid-column: 4;
        justify-self: end;
        align-self: start;
        font-size: clamp(64px, 12vw, 82px);
    }

    .home-page .hsd--ship {
        grid-row: 1;
        grid-column: 2;
        justify-self: center;
        align-self: start;
        font-size: clamp(30px, 6vw, 42px);
    }

    .home-page .hsd--compass {
        grid-row: 1;
        grid-column: 3;
        justify-self: center;
        align-self: start;
        font-size: clamp(30px, 6vw, 42px);
    }

    .home-page .hsd--binoculars {
        grid-row: 1;
        grid-column: 1;
        justify-self: start;
        align-self: start;
        font-size: clamp(26px, 5vw, 34px);
    }

    .home-page .hsd--wheel-top {
        grid-row: 2;
        grid-column: 3;
        justify-self: center;
        align-self: center;
        font-size: clamp(28px, 5vw, 38px);
    }

    .home-page .hsd--anchor-left {
        grid-row: 2;
        grid-column: 1;
        justify-self: start;
        align-self: center;
        font-size: clamp(34px, 7vw, 46px);
    }

    .home-page .hsd--fish {
        grid-row: 2;
        grid-column: 2;
        justify-self: center;
        align-self: center;
        font-size: clamp(26px, 5vw, 34px);
    }

    .home-page .hsd--lifebuoy {
        grid-row: 2;
        grid-column: 4;
        justify-self: end;
        align-self: center;
        font-size: clamp(30px, 6vw, 40px);
    }

    .home-page .hsd--wave-mid {
        grid-row: 3;
        grid-column: 3;
        justify-self: center;
        align-self: center;
        font-size: clamp(32px, 6vw, 44px);
    }

    .home-page .hsd--lighthouse {
        grid-row: 3;
        grid-column: 1;
        justify-self: start;
        align-self: end;
        font-size: clamp(44px, 8vw, 58px);
    }

    .home-page .hsd--ship-low {
        grid-row: 3;
        grid-column: 2;
        justify-self: center;
        align-self: center;
        font-size: clamp(28px, 5vw, 38px);
    }

    .home-page .hsd--compass-low {
        grid-row: 3;
        grid-column: 4;
        justify-self: end;
        align-self: center;
        font-size: clamp(28px, 5vw, 38px);
    }

    .home-page .hsd--anchor-sm {
        grid-row: 4;
        grid-column: 1;
        justify-self: start;
        align-self: end;
        font-size: clamp(34px, 7vw, 46px);
    }

    .home-page .hsd--wave {
        grid-row: 4;
        grid-column: 4;
        justify-self: end;
        align-self: end;
        font-size: clamp(36px, 8vw, 50px);
    }
}

@media (max-width: 768px) {
    .home-page .home-section-sea-decor {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: repeat(5, minmax(68px, 1fr));
        row-gap: 10px;
        padding: 18px clamp(10px, 4vw, 22px) 28px;
    }

    .home-page .hsd--anchor-lg {
        grid-row: 1;
        grid-column: 1;
        justify-self: start;
        font-size: 56px;
    }

    .home-page .hsd--ship {
        grid-row: 1;
        grid-column: 2;
        justify-self: center;
        font-size: 28px;
    }

    .home-page .hsd--compass {
        grid-row: 1;
        grid-column: 3;
        justify-self: end;
        font-size: 30px;
    }

    .home-page .hsd--binoculars {
        grid-row: 2;
        grid-column: 1;
        justify-self: start;
        font-size: 24px;
    }

    .home-page .hsd--wheel-top {
        grid-row: 2;
        grid-column: 2;
        justify-self: center;
        font-size: 24px;
    }

    .home-page .hsd--lifebuoy {
        grid-row: 2;
        grid-column: 3;
        justify-self: end;
        font-size: 28px;
    }

    .home-page .hsd--anchor-left {
        grid-row: 3;
        grid-column: 1;
        justify-self: start;
        font-size: 28px;
    }

    .home-page .hsd--fish {
        grid-row: 3;
        grid-column: 2;
        justify-self: center;
        font-size: 24px;
    }

    .home-page .hsd--wave-mid {
        grid-row: 3;
        grid-column: 3;
        justify-self: end;
        font-size: 30px;
    }

    .home-page .hsd--lighthouse {
        grid-row: 4;
        grid-column: 1;
        justify-self: start;
        font-size: 38px;
    }

    .home-page .hsd--ship-low {
        grid-row: 4;
        grid-column: 2;
        justify-self: center;
        font-size: 24px;
    }

    .home-page .hsd--compass-low {
        grid-row: 4;
        grid-column: 3;
        justify-self: end;
        font-size: 26px;
    }

    .home-page .hsd--anchor-sm {
        grid-row: 5;
        grid-column: 1;
        justify-self: start;
        font-size: 28px;
    }

    .home-page .hsd--wave {
        grid-row: 5;
        grid-column: 3;
        justify-self: end;
        font-size: 34px;
    }
}

@media (max-width: 576px) {
    .home-page .home-section-sea-decor {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(7, minmax(56px, 1fr));
        row-gap: 8px;
        padding: 14px 10px 22px;
    }

    .home-page .hsd--anchor-lg {
        grid-row: 1;
        grid-column: 1;
        justify-self: start;
        font-size: clamp(52px, 18vw, 72px);
    }

    .home-page .hsd--ship {
        grid-row: 1;
        grid-column: 2;
        justify-self: end;
        font-size: 24px;
    }

    .home-page .hsd--binoculars {
        grid-row: 2;
        grid-column: 1;
        justify-self: start;
        font-size: 20px;
    }

    .home-page .hsd--compass {
        grid-row: 2;
        grid-column: 2;
        justify-self: end;
        font-size: 24px;
    }

    .home-page .hsd--anchor-left {
        grid-row: 3;
        grid-column: 1;
        justify-self: start;
        font-size: 24px;
    }

    .home-page .hsd--wheel-top {
        grid-row: 3;
        grid-column: 2;
        justify-self: end;
        font-size: 22px;
    }

    .home-page .hsd--fish {
        grid-row: 4;
        grid-column: 1;
        justify-self: start;
        font-size: 20px;
    }

    .home-page .hsd--lifebuoy {
        grid-row: 4;
        grid-column: 2;
        justify-self: end;
        font-size: 24px;
    }

    .home-page .hsd--lighthouse {
        grid-row: 5;
        grid-column: 1;
        justify-self: start;
        font-size: 34px;
    }

    .home-page .hsd--wave-mid {
        grid-row: 5;
        grid-column: 2;
        justify-self: end;
        font-size: 28px;
    }

    .home-page .hsd--ship-low {
        grid-row: 6;
        grid-column: 1;
        justify-self: start;
        font-size: 22px;
    }

    .home-page .hsd--compass-low {
        grid-row: 6;
        grid-column: 2;
        justify-self: end;
        font-size: 22px;
    }

    .home-page .hsd--anchor-sm {
        grid-row: 7;
        grid-column: 1;
        justify-self: start;
        font-size: 24px;
    }

    .home-page .hsd--wave {
        grid-row: 7;
        grid-column: 2;
        justify-self: end;
        font-size: 30px;
    }
}

.features-section {
    padding: 120px 0 60px;
    background-color: var(--light-text);
    position: relative;
    z-index: 3;
    margin-top: -60px;
    border-radius: 40px 40px 0 0;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
}

/* Планшеты: врач «вылезает» сильнее над блоком преимуществ */
@media (min-width: 769px) and (max-width: 1024px) {
    .features-section {
        margin-top: -70px;
    }
}

@media (max-width: 768px) {
    .features-section {
        margin-top: 0;
        padding-top: 72px;
        border-radius: 32px 32px 0 0;
    }
}

.features-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
    gap: 2.5rem;
    align-items: start;
}

.features-intro {
    max-width: 520px;
}






.features-intro h2 {
    margin-bottom: 0.75rem;
}

.features-intro p {
    margin-bottom: 1.25rem;
    font-size: 1.02rem;
    color: #4a4a4a;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.97rem;
    color: #4a4a4a;
}

.features-list i {
    color: var(--primary-color);
    margin-top: 3px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.feature-card {
    padding: 2rem;
    border-radius: 8px;
    background-color: var(--gray-color);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(70, 130, 180, 0.12);
    border-radius: 50%;
}

.feature-icon img {
    max-width: 35px;
}

.feature-card h3 {
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    font-weight: 700;
}

.feature-card p {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
}

@media (max-width: 992px) {
    .features-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .features-intro {
        max-width: 100%;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

.services-section {
    padding: 60px 0;
    background-color: var(--gray-color);
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--light-text);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 1.5rem;
}

.service-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.service-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.service-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.service-link:hover {
    color: var(--secondary-color);
}

.about-section {
    padding: 100px 0;
    background: #fff;
    position: relative;
}

.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: 4rem;
    max-width: 1120px;
    margin: 0 auto;
}

/* ── Image column ────────────────────────────────── */
.about-visual {
    position: relative;
}

.about-image {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    aspect-ratio: 4 / 3;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: none;
    transition: none;
}

.about-image:hover img {
    transform: none;
}

.about-stats {
    position: absolute;
    bottom: -28px;
    left: 24px;
    right: 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.about-stat {
    text-align: center;
    padding: 1.15rem 0.75rem;
    position: relative;
}

.about-stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: var(--border-color);
}

.about-stat strong {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--primary-color);
}

.about-stat span {
    display: block;
    margin-top: 0.25rem;
    color: var(--dark-gray);
    font-size: 0.82rem;
    font-weight: 500;
}

/* ── Text column ─────────────────────────────────── */
.about-text {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.about-lead {
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--dark-gray);
    margin-bottom: 2rem;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.25rem;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.15rem;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.about-feature:hover {
    border-color: rgba(var(--primary-color-rgb), 0.3);
    box-shadow: 0 4px 16px rgba(var(--primary-color-rgb), 0.08);
}

.about-feature .category-icon {
    margin: 0;
    margin-right: 1rem;
    flex-shrink: 0;
}

.about-feature .category-icon i {
    font-size: 1.35rem;
}

.about-feature strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 0.2rem;
}

.about-feature span {
    display: block;
    font-size: 0.88rem;
    color: var(--dark-gray);
    line-height: 1.5;
}

/* legacy selectors kept for compatibility */
.about-bg-shapes,
.about-image-decorations,
.image-overlay,
.about-badge,
.about-mission,
.about-content,
.about-text-card,
.about-highlights,
.about-image-container,
.about-stat-cards,
.about-stat-card,
.about-buttons {
    display: none;
}

@media (max-width: 992px) {
    .about-section {
        padding: 70px 0;
    }

    .home-page .home-doctors {
        padding-top: 70px;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

    .about-visual {
        max-width: 560px;
        margin: 0 auto;
        width: 100%;
    }

    .about-text {
        max-width: 100%;
        text-align: center;
    }

    .about-lead {
        max-width: 540px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 2rem;
    }

    .about-features {
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 2.25rem;
    }

    .about-feature {
        text-align: left;
    }

    .about-text .btn {
        display: inline-flex;
    }
}

@media (max-width: 576px) {
    .about-section {
        padding: 50px 0;
    }

    .home-page .home-doctors {
        padding-top: 50px;
    }

    .about-stats {
        left: 12px;
        right: 12px;
        bottom: -22px;
    }

    .about-stat strong {
        font-size: 1.3rem;
    }

    .about-stat span {
        font-size: 0.75rem;
    }

    .about-feature {
        padding: 0.85rem;
    }

    .about-text .btn {
        width: 100%;
        justify-content: center;
    }
}

.doctors-section {
    padding: 60px 0;
    background: var(--accent-color);
    overflow: hidden;
}

/* Слайдер врачей: стрелки позиционируются относительно 1200px-обёртки */
.doctors-slider {
    position: relative;
    margin: 0 auto 30px;
    max-width: 1288px; /* 1200px контент + 44px*2 под стрелки */
    padding: 0 44px;
    overflow: visible;
}

.doctors-container {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    transition: transform 0.3s ease-in-out;
    will-change: transform;
    padding: 20px 6px; /* отступ для теней карточек */
    margin-top: -20px; /* компенсируем padding */
    box-sizing: border-box;
    overflow: visible; /* тени карточек не обрезаются */
}

/* Маска клиппинга — только горизонтально */
.doctors-section {
    overflow: hidden;
}

/* Кнопки слайдера — рядом с карточками */
.doctors-slider .slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.doctors-slider .slider-nav.prev-doctor {
    left: 4px;
}

.doctors-slider .slider-nav.next-doctor {
    right: 4px;
}

.slider-nav {
    background-color: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 2;
    flex-shrink: 0;
}

.slider-nav:disabled {
    cursor: not-allowed;
}

.slider-nav:hover:not(:disabled) {
    background-color: var(--secondary-color);
}

/* Сохраняем вертикальное выравнивание при hover для кнопок врачей */
.doctors-slider .slider-nav:hover:not(:disabled) {
    transform: translateY(-50%);
}

.slider-dots {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--primary-color);
}

.licenses-section {
    padding: 60px 0;
    background-color: var(--accent-color);
}

.licenses-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.license-card {
    background-color: var(--light-text);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.license-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(var(--primary-color-rgb), 0.12);
}

.license-image {
    position: relative;
    overflow: hidden;
    background-color: #f5f7f9;
    padding: 16px;
}

.license-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    transition: opacity 0.3s ease;
}

.license-card:hover .license-image img {
    opacity: 0.85;
}

.license-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(var(--primary-color-rgb), 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.license-card:hover .license-overlay {
    opacity: 1;
}

.view-license-btn {
    background-color: var(--light-text);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.view-license-btn:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.license-title {
    padding: 14px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    text-align: center;
    border-top: 1px solid var(--border-color);
}


.licenses-action {
    text-align: center;
    margin-top: 30px;
}

.licenses-btn {
    font-size: 1.05rem;
    padding: 14px 28px;
    transition: transform 0.3s ease;
}

.licenses-btn:hover {
    transform: translateY(-3px);
}

.license-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    overflow: auto;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s;
    visibility: hidden;
}

.license-modal.show {
    display: flex;
    opacity: 1;
    visibility: visible;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.license-modal-content {
    position: relative;
    background-color: white;
    margin: auto;
    padding: 25px;
    border-radius: 8px;
    max-width: 80%;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.license-modal.show .license-modal-content {
    transform: scale(1);
}

.license-modal-close,
.license-zoom-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--accent-color);
    cursor: pointer;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.65);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    border: none;
    outline: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.license-zoom-btn {
    right: 70px;
}

.license-modal-close i,
.license-zoom-btn i {
    margin: 0;
    font-size: 18px;
    color: var(--light-text);
}

.license-modal-close:hover,
.license-zoom-btn:hover {
    background-color: rgba(0, 0, 0, 0.85);
    transform: translateY(-1px);
}

.license-modal img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: calc(90vh - 50px);
    margin: 0 auto;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.license-modal img.zoomed {
    max-width: none;
    max-height: none;
}

@media (max-width: 768px) {
    .licenses-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .licenses-container {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ── Instagram CTA ── */
.instagram-section {
    padding: 90px 0 0;
    
    overflow: hidden;
}

.instagram-card {
    display: flex;
    align-items: center;
    gap: 48px;
    overflow: hidden;
}

.instagram-text {
    flex: 1;
    min-width: 0;
    padding-bottom: 48px;
}

.instagram-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.instagram-label i {
    font-size: 1rem;
}

.instagram-text h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 12px;
    line-height: 1.3;
}

.instagram-text p {
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--dark-gray);
    margin-bottom: 28px;
    max-width: 460px;
}

.instagram-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    color: var(--light-text);
    background: var(--primary-color);
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.instagram-btn:hover {
    background: var(--secondary-color);
    color: var(--light-text);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-color-rgb), 0.3);
}

.instagram-btn i {
    font-size: 1.15rem;
}

.instagram-image {
    flex: 0 0 480px;
    display: flex;
    justify-content: center;
    align-self: flex-end;
    
}

.instagram-image img {
    width: 100%;
    max-width: 480px;
    height: auto;
    
}

@media (max-width: 992px) {
    .instagram-card {
        gap: 36px;
    }

    .instagram-image {
        flex: 0 0 360px;
    }
}

@media (max-width: 768px) {
    .instagram-section {
        padding: 60px 0 0;
    }

    .instagram-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 24px;
    }

    .instagram-text {
        padding-bottom: 0;
    }

    .instagram-text p {
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    .instagram-image {
        flex: none;
        width: 100%;
        max-width: 380px;
        margin: 0 auto -50px;
    }
}

@media (max-width: 480px) {
    .instagram-section {
        padding: 48px 0 0;
    }

    .instagram-text h2 {
        font-size: 1.4rem;
    }

    .instagram-image {
        max-width: 300px;
        margin: 0 auto -40px;
    }
}

.reviews-section {
    padding: 60px 0;
    background-color: var(--gray-color);
}

.reviews-slider {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviews-container {
    overflow: hidden;
    margin: 0 auto;
}

.review-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.review-row:last-child {
    margin-bottom: 0;
}

.review-card {
    flex: 1;
    background-color: var(--light-text);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
}

.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-author h4 {
    margin-bottom: 0.25rem;
    color: var(--dark-text);
    font-size: 1.1rem;
}

.review-stars {
    color: #ffc107;
    font-size: 1rem;
}

.star.half {
    position: relative;
    display: inline-block;
}

.star.half::before {
    content: '★';
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    overflow: hidden;
    color: #ffc107;
}

.review-text {
    color: #444;
    font-style: italic;
    line-height: 1.7;
    font-size: 0.95rem;
}

.form-success,
.success-message {
    background-color: rgba(40, 167, 69, 0.1);
    border: 1px solid var(--success-color);
    padding: 20px;
    border-radius: 6px;
    text-align: center;
    margin: 20px 0;
    color: #0d5c22;
    font-size: 18px;
    line-height: 1.5;
}

.appointment-section {
    background-color: var(--primary-color);
    padding: 60px 0;
    position: relative;
}

.appointment-section .section-header h2,
.appointment-section .section-header p {
    color: var(--light-text);
}

.appointment-section .section-header h2::after {
    background-color: var(--light-text);
}

.appointment-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
    align-items: stretch;
    min-height: 600px;
    flex-direction: column;
}

.appointment-form-container {
    flex: 1;
    min-width: 300px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.appointment-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.map-container {
    flex: 1;
    min-width: 300px;
    height: 592.23px;
    background: linear-gradient(to bottom right, #ffffff, #f5f7fa);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(70, 130, 180, 0.2);
    transform: translateY(-5px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.map-container:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.map-container h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.6rem;
    position: relative;
    padding-bottom: 10px;
}

.map-container h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.map-info {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.map-info p {
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
}

.map-info p:last-child {
    margin-bottom: 0;
}

.map-info i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
    margin-right: 10px;
}

.clinic-map {
    width: 100%;
    height: 370px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    flex-grow: 1;
    min-height: 300px;
}

.clinic-map:before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    z-index: -1;
    border-radius: 12px;
    opacity: 0.7;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(70, 130, 180, 0.2);
}

.form-group textarea {
    width: 100%;
    height: 120px;
    resize: vertical;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
}

.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 25px;
}

.form-consent input {
    margin-top: 5px;
}

.form-consent label {
    font-size: 0.9rem;
    color: var(--text-color);
}

.error {
    border-color: var(--error-color) !important;
}

input.error+label,
select.error+label,
textarea.error+label,
label.error {
    color: var(--error-color);
}

footer {
  background-color: #2c3e50;
  color: var(--light-text);
  padding: 80px 0 30px;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1.8fr;
  gap: 2.5rem 3rem;
  margin-bottom: 3rem;
}

.footer-col {
  min-width: 0;
}

.footer-logo {
  margin-bottom: 1.5rem;
}

.footer-logo a {
  display: inline-block;
}

.footer-logo img {
  height: 60px;
  width: auto;
  display: block;
}

.footer-description {
  color: #ccc;
  margin-bottom: 1.5rem;
  line-height: 1.7;
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--primary-color);
}

.social-link img {
  width: 20px;
  height: 20px;
}

.footer-col h4 {
  margin-bottom: 1.5rem;
  color: var(--light-text);
  font-size: 1.2rem;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin-bottom: 0.75rem;
}

.footer-menu a {
  color: #ccc;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  line-height: 1.8;
  text-decoration: none;
}

.footer-menu a:hover {
  color: var(--primary-color);
}

.footer-contacts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contacts li {
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  align-items: flex-start;
}

.footer-contacts .contact-label {
  flex: 0 0 auto;
  min-width: 0;
}

.footer-contacts li.footer-contact-hours {
  flex-direction: column;
  gap: 0.25rem;
}

.contact-label {
  font-weight: 600;
  color: var(--light-text);
}

.contact-value {
  color: #ccc;
  min-width: 0;
}

.contact-value a {
  color: #ccc;
  transition: all 0.3s ease;
  text-decoration: none;
}

.contact-value a:hover {
  color: var(--primary-color);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-bottom: 1.25rem;
  font-size: 0.82rem;
  color: #999;
}

.footer-contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2rem;
}

.footer-contact-phones {
  flex-direction: column;
  gap: 0.25rem;
}

.footer-phones {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-phones li a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-phones li a:hover {
  color: var(--primary-color);
}

.footer-phones-main {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-phones-main a {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--light-text);
}

.phone-note {
  font-size: 0.78rem;
  color: #888;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  color: #999;
  text-align: center;
}

.footer-bottom p {
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 24px;
}

.footer-bottom-links a {
  color: #ccc;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-bottom-links a:hover {
  color: var(--primary-color);
}

@media (max-width: 992px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 2rem;
  }

  .footer-col--contacts {
    grid-column: 1 / -1;
  }
}

@media (max-width: 576px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-contacts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
    :root {
        --section-padding: 56px 0;
    }

    .hero-section {
        padding: 70px 0;
    }

    .features-section,
    .services-section,
    .doctors-section,
    .licenses-section,
    .reviews-section,
    .appointment-section,
    .stats-section,
    .faq-section {
        padding: 56px 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .hero-section .container {
        flex-direction: column;
        gap: 1rem;
    }

    .appointment-container {
        gap: 20px;
        align-items: stretch;
    }

    /* Планшет: 2 карточки, стрелки рядом с контентом */
    .doctors-slider {
        max-width: 660px; /* ~300px*2 + gap + 44px*2 */
        padding: 0 44px;
    }

    .doctors-container {
        gap: 1.25rem;
        max-width: 560px;
    }
}


@media (max-width: 768px) {
    :root {
        --section-padding: 44px 0;
    }

    .hero-section {
        padding: 56px 0;
    }

    .features-section,
    .services-section,
    .doctors-section,
    .licenses-section,
    .reviews-section,
    .appointment-section,
    .stats-section,
    .faq-section {
        padding: 44px 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .mobile-buttons {
        width: 100%;
        margin: 15px 0;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .mobile-btn {
        width: 100%;
        margin: 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    /* Мобильный: 1 карточка, ограниченная ширина */
    .doctors-slider {
        max-width: 380px;
        padding: 0 44px;
    }

    .doctors-container {
        gap: 0;
        max-width: 100%;
    }

    .doctors-slider .slider-nav {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .doctors-slider .slider-nav.prev-doctor {
        left: 4px;
    }

    .doctors-slider .slider-nav.next-doctor {
        right: 4px;
    }

    .doctors-slider .slider-nav:hover:not(:disabled) {
        transform: translateY(-50%);
    }

    .review-row {
        flex-direction: column;
    }

    .appointment-container {
        flex-direction: column;
        align-items: stretch;
    }

    .appointment-form-container,
    .map-container {
        width: 100%;
        flex: none;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 32px 0;
    }

    .hero-section {
        padding: 44px 0;
    }

    .features-section,
    .services-section,
    .doctors-section,
    .licenses-section,
    .reviews-section,
    .appointment-section,
    .stats-section,
    .faq-section {
        padding: 32px 0;
    }

    .stats-grid {
        gap: 16px;
    }

    .stat-value {
        font-size: 2.25rem;
    }

    .faq-question {
        padding: 16px 18px;
        font-size: 0.95rem;
    }

    .faq-item.open .faq-answer {
        padding: 0 18px 16px;
    }

    .section-header {
        margin-bottom: 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero-buttons a {
        font-size: 1rem;
    }
}

@media (max-width: 1600px) {
    .container {
        max-width: 1200px;
    }

    .hero-text h1 {
        font-size: 60px;
    }

    .hero-text p {
        font-size: 24px;
    }

    .feature h3 {
        font-size: 48px;
    }

    .feature p {
        font-size: 36px;
    }

    .feature-image img {
        width: 400px;
        height: 400px;
    }

    .license {
        width: 300px;
        height: 450px;
    }

    .review-card {
        width: 500px;
    }
}

@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        height: auto;
        padding: 30px;
    }

    .hero-content {
        width: 100%;
        
    }

    .hero-image {
        position: relative;
        width: 100%;
    }

    .features-container {
        flex-direction: column;
    }

    .feature-image {
        margin: 30px 0;
    }

    .feature.doctors {
        margin-left: 0;
    }

    .services-row {
        flex-direction: column;
        gap: 20px;
    }

    .doctors-container {
        gap: 1.5rem;
    }

    .review-row {
        flex-direction: column;
        gap: 20px;
    }

    .review-card {
        width: 100%;
    }

    .consultation-form .form-row {
        flex-direction: column;
        gap: 20px;
    }

    .consultation-form input {
        width: 100%;
    }

    .footer-info {
        flex-direction: column;
        gap: 30px;
    }


    .footer-address {
        padding: 0;
    }

    .appointment-container {
        flex-direction: column;
        align-items: stretch;
    }

    .appointment-form-container,
    .map-container {
        width: 100%;
        flex: none;
    }
}




/* ─── Stats Section ─── */
.stats-section {
    padding: 72px 0;
    background: var(--primary-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.stat-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    font-size: 1.35rem;
    color: var(--light-text);
    margin: 0;
}

.stat-value {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--light-text);
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    line-height: 1.3;
}

/* ─── FAQ Section ─── */
.faq-section {
    padding: 90px 0;
    background: var(--light-bg);
}

.faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--light-text);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item:hover {
    border-color: rgba(var(--primary-color-rgb), 0.3);
}

.faq-item.open {
    border-color: rgba(var(--primary-color-rgb), 0.35);
    box-shadow: 0 4px 16px rgba(var(--primary-color-rgb), 0.08);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-text);
    text-align: left;
    transition: background-color 0.2s ease;
}

.faq-question:hover {
    background-color: rgba(var(--primary-color-rgb), 0.04);
}

.faq-item.open .faq-question {
    background-color: rgba(var(--primary-color-rgb), 0.05);
    color: var(--primary-color);
}

.faq-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: rgba(var(--primary-color-rgb), 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.25s ease, transform 0.3s ease;
}

.faq-icon i {
    font-size: 13px;
    color: var(--primary-color);
    margin: 0;
    transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
    background: var(--primary-color);
}

.faq-item.open .faq-icon i {
    color: var(--light-text);
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 24px;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 0 24px 20px;
}

.faq-answer p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
}

.faq-answer a {
    color: var(--primary-color);
    font-weight: 500;
}

.faq-answer a:hover {
    text-decoration: underline;
}

.text-shadow {
    text-shadow: var(--text-shadow);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: var(--error-color);
    background-color: rgba(220, 53, 69, 0.05);
}

.form-policy label.error {
    color: var(--error-color);
    border-color: var(--error-color);
}

.back-to-top {
    position: fixed;
    bottom: var(--back-to-top-bottom-offset, 20px);
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--light-text);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    border: none;
    outline: none;
    transform: translate3d(0, 0, 0);
    will-change: transform, opacity;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.back-to-top:focus {
    outline: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top i {
    font-size: 20px;
    color: var(--light-text);
}

.appointment-form button[type="submit"] {
    width: 30%;
    min-width: 200px;
    align-self: center;
    padding: 15px;
}

/* ─── Мобильный контейнер фильтра (табы → кастомный дропдаун) ─── */
.filter-select-wrap {
    display: none;
    margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
    .filter-select-wrap {
        display: block;
    }
}

/* ─── Кастомный дропдаун (переиспользуется на всех страницах) ─── */

.custom-select-wrap {
    position: relative;
    width: 100%;
    min-width: 0;
}

/* Скрытый нативный select внутри обёртки (общее правило) */
.custom-select-wrap .custom-hidden-select {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 46px;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

/* Кнопка-триггер */
.custom-select-trigger {
    display: block;
    width: 100%;
    height: 46px;
    line-height: 46px;
    padding: 0 2.5rem 0 1rem;
    box-sizing: border-box;
    border: 1px solid rgba(var(--primary-color-rgb), 0.25);
    border-radius: 10px;
    font: inherit;
    font-size: 1rem;
    background: #fafbfc;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234682b4' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.custom-select-trigger:hover {
    border-color: rgba(var(--primary-color-rgb), 0.4);
    background-color: var(--light-text);
}

.custom-select-wrap.is-open .custom-select-trigger {
    border-color: var(--primary-color);
    background-color: var(--light-text);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.12);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234682b4' d='M6 4l5 5H1z'/%3E%3C/svg%3E");
}

/* Раскрытый список */
.custom-select-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 50;
    max-height: 260px;
    overflow-y: auto;
    background: var(--light-text);
    border: 1px solid var(--primary-color);
    border-top: none;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 8px 24px rgba(var(--primary-color-rgb), 0.15);
    padding: 0.25rem 0;
    display: none;
}

.custom-select-wrap.is-open .custom-select-dropdown {
    display: block;
}

/* Пункт списка */
.custom-select-option {
    padding: 0.6rem 1rem;
    font-size: 1rem;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font: inherit;
}

.custom-select-option:hover {
    background: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
}

.custom-select-option.is-selected {
    background: rgba(var(--primary-color-rgb), 0.15);
    color: var(--primary-color);
    font-weight: 600;
}

/* Desktop: compensate top-offset so video covers the top edge (1025–1650px) */
@media (min-width: 1025px) and (max-width: 1650px) {
    .home-page .hero-video {
        min-height: 114%;
    }
}

/* Home Hero Responsive Fix */
@media (max-width: 1024px) {
    .home-page .hero-section {
        min-height: 100vh;
        min-height: 100svh;
        padding: 0;
    }

    .home-page .hero-video {
        top: 57%;
        left: 44%;
        min-width: 114%;
        min-height: 112%;
    }

    .home-page .hero-section .container {
        min-height: 100vh;
        min-height: 100svh;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 0;
        text-align: left;
        padding-top: clamp(88px, 11vw, 116px);
        padding-bottom: clamp(24px, 4vw, 36px);
    }

    .home-page .hero-content {
        width: min(100%, 640px);
        max-width: 640px;
        margin: 0;
        padding: 24px 22px;
    }

    .home-page .hero-content::before {
        inset: 14px -16px -20px 18px;
        filter: blur(24px);
        opacity: 0.66;
    }

    .home-page .hero-label,
    .home-page .hero-desc {
        margin-left: 0;
        margin-right: 0;
    }

    .home-page .hero-desc {
        margin-bottom: 1.6rem;
    }

    .home-page .hero-buttons {
        max-width: 480px;
        margin: 0;
    }

    .home-page .hero-buttons .btn {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .home-page .hero-video {
        top: 66%;
        left: 26%;
        min-width: 148%;
        min-height: 136%;
    }

    .home-page .hero-section .container {
        justify-content: center;
        min-height: 100vh;
        min-height: 100svh;
        padding-top: 70px;
        padding-right: 18px;
        padding-bottom: 18px;
        padding-left: 18px;
    }

    .home-page .hero-content {
        width: min(100%, 560px);
        max-width: 560px;
        margin: 0;
        padding: 16px 16px;
    }

    .home-page .hero-content::before {
        inset: 10px -6px -10px 10px;
        filter: blur(16px);
        opacity: 0.5;
    }

    .home-page .hero-content h1 {
        font-size: clamp(1.9rem, 6.4vw, 2.3rem);
        margin-bottom: 1rem;
    }

    .home-page .hero-desc {
        max-width: none;
        margin-bottom: 1.4rem;
        font-size: 0.98rem;
        line-height: 1.62;
    }

    .home-page .hero-buttons {
        max-width: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .home-page .hero-buttons .btn {
        min-height: 54px;
        padding: 12px 16px;
        white-space: normal;
        text-align: center;
    }

    .home-page .hero-label {
        font-size: 0.78rem;
        padding: 0.28rem 0.72rem;
    }
}

@media (max-width: 480px) {
    .home-page .hero-buttons {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .home-page .hero-buttons .btn {
        white-space: nowrap;
    }

    .home-page .hero-video {
        top: 70%;
        left: 18%;
        min-width: 176%;
        min-height: 148%;
    }

    .home-page .hero-section .container {
        justify-content: center;
        min-height: 100vh;
        min-height: 100svh;
        padding-top: 66px;
        padding-right: 14px;
        padding-bottom: 14px;
        padding-left: 14px;
    }

    .home-page .hero-content {
        width: 100%;
        max-width: none;
        padding: 15px 14px;
    }

    .home-page .hero-label {
        padding: 0.24rem 0.66rem;
        font-size: 0.74rem;
    }

    .home-page .hero-content h1 {
        font-size: 1.62rem;
    }

    .home-page .hero-desc {
        font-size: 0.93rem;
        margin-bottom: 1.2rem;
    }

    .home-page .hero-buttons .btn {
        min-height: 52px;
        font-size: 0.92rem;
    }
}
