.site-logo-img {
    width: 51px;
    height: auto;
    display: block;
}

.site-logo-fallback {
    width: 51px;
    height: 51px;
    font-size: 1.5rem;
}

@media (min-width: 1024px) {
    .site-logo-img {
        width: 81px;
    }

    .site-logo-fallback {
        width: 81px;
        height: 81px;
        font-size: 2rem;
    }
}

/* assets/css/style.css */
/* ===== БАЗОВЫЕ СТИЛИ И CSS-ПЕРЕМЕННЫЕ ===== */
:root {
    --primary: #0F766E;
    --primary-dark: #0a5d55;
    --primary-light: #14b8a6;
    --primary-soft: #e6fffa;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --shadow-sm: 0 10px 30px -10px rgba(15, 118, 110, 0.1);
    --shadow-md: 0 20px 40px -15px rgba(15, 118, 110, 0.2);
    --shadow-lg: 0 30px 60px -20px rgba(15, 118, 110, 0.3);
    --space-1: 0.5rem;
    --space-2: 1rem;
    --space-3: 1.5rem;
    --space-4: 2rem;
    --space-6: 3rem;
    --section-y: var(--space-6);
    --container-max: 80rem;
    --modal-z: 10002;
    --header-offset: 4rem;
    --hero-top-gap: 0.125rem;
}

@media (min-width: 640px) {
    :root {
        --hero-top-gap: 0.25rem;
    }
}

@media (min-width: 1024px) {
    :root {
        --header-offset: 5rem;
        --hero-top-gap: 0.375rem;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-offset) + var(--hero-top-gap));
    max-width: 100%;
    overflow-x: clip;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    max-width: 100%;
    overflow-x: clip;
    color: var(--text-dark);
    background-color: #fafafa;
    line-height: 1.6;
}

#main-header {
    width: 100%;
    max-width: 100%;
}

/* ===== УТИЛИТЫ ===== */
.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== КНОПКИ ===== */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    font-weight: 600;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -10px rgba(15, 118, 110, 0.4);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    background: transparent;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Единый акцент для CTA-кнопок */
button[type="submit"],
.btn-primary,
.site-header-cta-btn,
.mobile-menu-cta {
    box-shadow: 0 10px 24px -14px rgba(15, 118, 110, 0.55);
    min-height: 48px;
}

button[type="submit"]:hover,
.btn-primary:hover,
.site-header-cta-btn:hover,
.mobile-menu-cta:hover {
    transform: translateY(-1px);
}

/* ===== КАРТОЧКИ ===== */
.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(15, 118, 110, 0.25);
}

/* ===== ФОНОВЫЕ ЭЛЕМЕНТЫ ===== */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.22;
    animation: float 18s infinite ease-in-out;
    pointer-events: none;
    z-index: 0;
}

.blob-teal { background: radial-gradient(circle, #14b8a6 0%, transparent 70%); }
.blob-emerald { background: radial-gradient(circle, #059669 0%, transparent 70%); }
.blob-mint { background: radial-gradient(circle, #5eead4 0%, transparent 70%); }
.blob-purple { background: radial-gradient(circle, #a78bfa 0%, transparent 70%); }
.blob-orange { background: radial-gradient(circle, #fb923c 0%, transparent 70%); }
.blob-red { background: radial-gradient(circle, #f87171 0%, transparent 70%); }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -40px) scale(1.1); }
    66% { transform: translate(-20px, 30px) scale(0.9); }
}

/* ===== FLIP-КАРТОЧКИ (компактная адаптивная версия) ===== */
.flip-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.flip-grid--quad {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.flip-card {
    background-color: transparent;
    aspect-ratio: 4 / 3;
    min-height: 0;
    perspective: 900px;
    cursor: pointer;
    width: 100%;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    border-radius: 0.85rem;
    box-shadow: var(--shadow-sm);
}

.flip-card.flipped .flip-card-inner,
.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

@media (max-width: 1023px) {
    .flip-card:hover .flip-card-inner {
        transform: none;
    }
    .flip-card.flipped .flip-card-inner {
        transform: rotateY(180deg);
    }
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 0.85rem;
    padding: 0.55rem 0.45rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.flip-card-front {
    background: linear-gradient(135deg, #0F766E, #14b8a6);
    color: white;
}

.flip-card-front svg {
    width: 1.35rem;
    height: 1.35rem;
    margin-bottom: 0.3rem;
    stroke: white;
    flex-shrink: 0;
}

.flip-card-front h3 {
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.flip-card-back {
    background: linear-gradient(135deg, #0F766E, #0a5d55);
    color: white;
    transform: rotateY(180deg);
    gap: 0.25rem;
}

.flip-card-back .badge {
    display: inline-block;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.12rem 0.4rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.18);
    text-decoration: none;
    line-height: 1.2;
}

.flip-card-back p {
    font-size: 0.58rem;
    margin-bottom: 0.2rem;
    line-height: 1.28;
    padding: 0 0.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.flip-card-back a,
.flip-card-back span:not(.badge) {
    font-size: 0.62rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* 480px+ */
@media (min-width: 480px) {
    .flip-grid {
        gap: 0.625rem;
    }

    .flip-card-front,
    .flip-card-back {
        padding: 0.6rem 0.5rem;
    }

    .flip-card-front svg {
        width: 1.45rem;
        height: 1.45rem;
    }

    .flip-card-front h3 {
        font-size: 0.76rem;
    }

    .flip-card-back p {
        font-size: 0.62rem;
    }
}

/* 640px+ */
@media (min-width: 640px) {
    .flip-grid {
        gap: 0.75rem;
    }

    .flip-card {
        aspect-ratio: 5 / 4;
    }

    .flip-card-front svg {
        width: 1.55rem;
        height: 1.55rem;
        margin-bottom: 0.35rem;
    }

    .flip-card-front h3 {
        font-size: 0.8rem;
    }

    .flip-card-back .badge {
        font-size: 0.58rem;
    }

    .flip-card-back p {
        font-size: 0.65rem;
        -webkit-line-clamp: 5;
    }
}

/* 768px+ */
@media (min-width: 768px) {
    .flip-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.8rem;
    }

    .flip-grid--quad {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .flip-card-inner {
        border-radius: 0.95rem;
    }

    .flip-card-front,
    .flip-card-back {
        border-radius: 0.95rem;
        padding: 0.65rem 0.55rem;
    }

    .flip-card-front svg {
        width: 1.65rem;
        height: 1.65rem;
    }

    .flip-card-front h3 {
        font-size: 0.84rem;
    }

    .flip-card-back p {
        font-size: 0.68rem;
    }
}

/* 1024px+ */
@media (min-width: 1024px) {
    .flip-grid {
        gap: 0.875rem;
    }

    .flip-grid--quad {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .flip-card {
        aspect-ratio: 5 / 4;
    }

    .flip-card-front svg {
        width: 1.75rem;
        height: 1.75rem;
    }

    .flip-card-front h3 {
        font-size: 0.88rem;
    }

    .flip-card-back p {
        font-size: 0.7rem;
    }
}

/* 1440px+ */
@media (min-width: 1440px) {
    .flip-grid {
        gap: 1rem;
    }

    .flip-card-front,
    .flip-card-back {
        padding: 0.75rem 0.65rem;
    }

    .flip-card-front h3 {
        font-size: 0.92rem;
    }

    .flip-card-back p {
        font-size: 0.72rem;
    }
}

/* 320px — ультракомпакт */
@media (max-width: 374px) {
    .flip-grid {
        gap: 0.375rem;
    }

    .flip-card {
        aspect-ratio: 3 / 2;
    }

    .flip-card-inner {
        border-radius: 0.7rem;
    }

    .flip-card-front,
    .flip-card-back {
        border-radius: 0.7rem;
        padding: 0.45rem 0.35rem;
    }

    .flip-card-front svg {
        width: 1.15rem;
        height: 1.15rem;
        margin-bottom: 0.2rem;
    }

    .flip-card-front h3 {
        font-size: 0.64rem;
    }

    .flip-card-back .badge {
        font-size: 0.5rem;
        padding: 0.1rem 0.3rem;
    }

    .flip-card-back p {
        font-size: 0.54rem;
        -webkit-line-clamp: 3;
    }
}

/* --- Главная: компактные карточки, крупный текст --- */
.flip-grid--services .flip-card {
    aspect-ratio: 8 / 5;
}

.flip-grid--services .flip-card-front,
.flip-grid--services .flip-card-back {
    padding: 0.5rem 0.45rem;
}

.flip-grid--services .flip-card-front svg {
    width: 1.5rem;
    height: 1.5rem;
    margin-bottom: 0.35rem;
}

.flip-grid--services .flip-card-front h3 {
    font-size: 0.84rem;
    line-height: 1.28;
    letter-spacing: -0.01em;
}

.flip-grid--services .flip-card-back p {
    font-size: 0.72rem;
    line-height: 1.38;
    -webkit-line-clamp: 3;
}

.flip-grid--services .flip-card-back a {
    font-size: 0.76rem;
    margin-top: 0.15rem;
}

@media (min-width: 480px) {
    .flip-grid--services .flip-card {
        aspect-ratio: 7 / 4;
    }

    .flip-grid--services .flip-card-front h3 {
        font-size: 0.9rem;
    }

    .flip-grid--services .flip-card-back p {
        font-size: 0.76rem;
    }
}

@media (min-width: 640px) {
    .flip-grid--services .flip-card {
        aspect-ratio: 5 / 3;
    }

    .flip-grid--services .flip-card-front svg {
        width: 1.65rem;
        height: 1.65rem;
    }

    .flip-grid--services .flip-card-front h3 {
        font-size: 0.96rem;
    }

    .flip-grid--services .flip-card-back p {
        font-size: 0.8rem;
    }

    .flip-grid--services .flip-card-back a {
        font-size: 0.82rem;
    }
}

@media (min-width: 768px) {
    .flip-grid--services {
        gap: 0.7rem;
    }

    .flip-grid--services .flip-card-front h3 {
        font-size: 1rem;
    }

    .flip-grid--services .flip-card-back p {
        font-size: 0.82rem;
        -webkit-line-clamp: 4;
    }
}

@media (min-width: 1024px) {
    .flip-grid--services .flip-card {
        aspect-ratio: 5 / 3;
    }

    .flip-grid--services .flip-card-front svg {
        width: 1.75rem;
        height: 1.75rem;
    }

    .flip-grid--services .flip-card-front h3 {
        font-size: 1.05rem;
    }

    .flip-grid--services .flip-card-back p {
        font-size: 0.85rem;
    }
}

@media (min-width: 1440px) {
    .flip-grid--services {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.8rem;
    }

    .flip-grid--services .flip-card {
        aspect-ratio: 8 / 5;
    }

    .flip-grid--services .flip-card-front h3 {
        font-size: 1.08rem;
    }
}

@media (max-width: 374px) {
    .flip-grid--services .flip-card {
        aspect-ratio: 7 / 4;
    }

    .flip-grid--services .flip-card-front h3 {
        font-size: 0.78rem;
    }

    .flip-grid--services .flip-card-back p {
        font-size: 0.68rem;
    }
}

/* --- ХАССП / Обучение: крупные карточки 2×2 --- */
.flip-grid--quad {
    gap: 0.625rem;
}

.flip-grid--quad .flip-card {
    aspect-ratio: 1 / 1;
    min-height: 138px;
}

.flip-grid--quad .flip-card-inner {
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
}

.flip-grid--quad .flip-card-front,
.flip-grid--quad .flip-card-back {
    border-radius: 1rem;
    padding: 0.75rem 0.65rem;
}

.flip-grid--quad .flip-card-front svg {
    width: 1.85rem;
    height: 1.85rem;
    margin-bottom: 0.45rem;
}

.flip-grid--quad .flip-card-front h3 {
    font-size: 0.88rem;
    line-height: 1.3;
    text-align: center;
}

.flip-grid--quad .flip-card-back .badge {
    font-size: 0.65rem;
    padding: 0.18rem 0.5rem;
    margin-bottom: 0.2rem;
}

.flip-grid--quad .flip-card-back p {
    font-size: 0.74rem;
    line-height: 1.4;
    -webkit-line-clamp: 5;
    padding: 0 0.35rem;
    text-align: center;
}

@media (min-width: 480px) {
    .flip-grid--quad {
        gap: 0.75rem;
    }

    .flip-grid--quad .flip-card {
        min-height: 155px;
    }

    .flip-grid--quad .flip-card-front h3 {
        font-size: 0.92rem;
    }

    .flip-grid--quad .flip-card-back p {
        font-size: 0.78rem;
    }
}

@media (min-width: 640px) {
    .flip-grid--quad .flip-card {
        aspect-ratio: 5 / 4;
        min-height: 172px;
    }

    .flip-grid--quad .flip-card-front svg {
        width: 2rem;
        height: 2rem;
    }

    .flip-grid--quad .flip-card-front h3 {
        font-size: 0.96rem;
    }

    .flip-grid--quad .flip-card-back p {
        font-size: 0.8rem;
    }
}

@media (min-width: 768px) {
    .flip-grid--quad {
        gap: 0.875rem;
    }

    .flip-grid--quad .flip-card {
        min-height: 188px;
    }

    .flip-grid--quad .flip-card-front svg {
        width: 2.1rem;
        height: 2.1rem;
    }

    .flip-grid--quad .flip-card-front h3 {
        font-size: 1rem;
    }

    .flip-grid--quad .flip-card-back .badge {
        font-size: 0.7rem;
    }

    .flip-grid--quad .flip-card-back p {
        font-size: 0.82rem;
    }
}

@media (min-width: 1024px) {
    .flip-grid--quad {
        gap: 1rem;
    }

    .flip-grid--quad .flip-card {
        aspect-ratio: 1 / 1;
        min-height: 200px;
    }

    .flip-grid--quad .flip-card-front,
    .flip-grid--quad .flip-card-back {
        padding: 0.9rem 0.75rem;
    }

    .flip-grid--quad .flip-card-front svg {
        width: 2.25rem;
        height: 2.25rem;
        margin-bottom: 0.5rem;
    }

    .flip-grid--quad .flip-card-front h3 {
        font-size: 1.05rem;
    }

    .flip-grid--quad .flip-card-back p {
        font-size: 0.85rem;
        -webkit-line-clamp: 6;
    }
}

@media (min-width: 1280px) {
    .flip-grid--quad .flip-card {
        min-height: 215px;
    }
}

@media (max-width: 374px) {
    .flip-grid--quad .flip-card {
        min-height: 128px;
    }

    .flip-grid--quad .flip-card-front svg {
        width: 1.6rem;
        height: 1.6rem;
    }

    .flip-grid--quad .flip-card-front h3 {
        font-size: 0.8rem;
    }

    .flip-grid--quad .flip-card-back p {
        font-size: 0.68rem;
    }
}

/* Bitrix24 chat widget — поверх плавающих кнопок, не перекрывается модалками */
.b24-widget-button-wrapper,
.b24-widget-button-position-fixed,
.bx-livechat-wrapper {
    z-index: 10050 !important;
}

.b24-widget-button-position-bottom-left,
.b24-widget-button-wrapper.b24-widget-button-position-bottom-left {
    left: 16px !important;
    bottom: calc(16px + env(safe-area-inset-bottom)) !important;
}

@media (max-width: 640px) {
    .b24-widget-button-position-bottom-left,
    .b24-widget-button-wrapper.b24-widget-button-position-bottom-left {
        left: 12px !important;
        bottom: calc(12px + env(safe-area-inset-bottom)) !important;
    }
}

/* Красивые таблицы: сравнения и общие табличные блоки */
table {
    border-collapse: separate;
    border-spacing: 0;
}

.comparison-table {
    width: 100%;
    min-width: 640px;
    background: #ffffff;
    border: 1px solid #d1fae5;
    border-radius: 1rem;
    overflow: hidden;
}

@media (min-width: 768px) {
    .comparison-table {
        min-width: 0;
    }
}

.comparison-table thead th {
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.11), rgba(20, 184, 166, 0.08));
    color: #0f172a;
    font-weight: 700;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #ccfbf1;
}

.comparison-table tbody td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #ecfeff;
    vertical-align: middle;
}

.comparison-table tbody tr:nth-child(even) {
    background: rgba(240, 253, 250, 0.45);
}

.comparison-table tbody tr:hover {
    background: rgba(204, 251, 241, 0.45);
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

/* ===== STEP-КАРТОЧКИ ===== */
.step-card {
    position: relative;
    overflow: hidden;
    border-top: 4px solid transparent;
    transition: all 0.3s;
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
}

.step-card:hover {
    border-top-color: var(--primary);
    transform: translateY(-4px);
}

.step-number {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* ===== FAQ ===== */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-content.active,
.faq-item.active .faq-content {
    max-height: 800px;
}

.faq-item {
    border: 2px solid #f1f5f9;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: border-color 0.3s;
    background: white;
}

.faq-item:hover {
    border-color: var(--primary);
}

.faq-header,
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem;
    text-align: left;
    background: white;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
    font: inherit;
}

.faq-header:hover,
.faq-question:hover {
    background: #f8fafc;
}

.faq-header span,
.faq-question span {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.4;
}

.faq-header svg,
.faq-question svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    color: var(--primary);
    transition: transform 0.3s;
}

.faq-item.active .faq-header svg,
.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-content-inner {
    padding: 0 1.5rem 1.25rem;
    color: #52525b;
    font-size: 0.95rem;
    line-height: 1.65;
}

.faq-answer {
    padding: 0 1.5rem;
    background: #f8fafc;
}

.faq-answer p {
    padding: 0 0 1.25rem 0;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.category-tab.active {
    background: rgba(15, 118, 110, 0.1);
    color: #0F766E;
    font-weight: 600;
}

/* ===== АНИМАЦИИ ===== */
.animate-pulse-slow {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.touch-feedback {
    transition: transform 0.2s;
}

.touch-feedback:active {
    transform: scale(0.97);
}

/* ===== ВИДЕО-КОНТЕЙНЕР ===== */
.video-container {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    cursor: pointer;
    aspect-ratio: 16/9;
}

.video-placeholder {
    transition: opacity 0.3s;
}

.video-container:hover .video-placeholder {
    opacity: 0.8;
}

.play-button {
    transition: transform 0.3s;
}

.video-container:hover .play-button {
    transform: scale(1.1);
}

/* Компактный видеоплеер (страница «Преимущества») */
.video-player-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 280px;
    background: #18181b;
}

@media (min-width: 640px) {
    .video-player-wrapper {
        max-height: 320px;
    }
}

.video-player-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-player-wrapper .play-button,
.video-player-wrapper .pause-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 9999px;
    background: rgba(15, 118, 110, 0.92);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.video-player-wrapper .play-button svg,
.video-player-wrapper .pause-button svg {
    width: 1.5rem;
    height: 1.5rem;
}

.video-player-wrapper .video-time {
    position: absolute;
    left: 0.75rem;
    bottom: 2.5rem;
    z-index: 2;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.75rem;
}

.video-player-wrapper .volume-control {
    position: absolute;
    right: 0.75rem;
    bottom: 2.5rem;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    background: rgba(0, 0, 0, 0.55);
}

.video-player-wrapper .volume-control input {
    width: 4rem;
}

.video-player-wrapper .video-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    height: 0.35rem;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
}

.video-player-wrapper .video-progress-bar {
    height: 100%;
    width: 0;
    background: #14b8a6;
    transition: width 0.1s linear;
}

/* ===== ПРОМО-БЕЙДЖИ В УГЛУ КАРТОЧЕК ===== */
/* На ряде страниц бейджи с отрицательными top/right и поворотом обрезались в карточке. */
[class*="absolute"][class*="bg-amber-400"][class*="-right-3"],
[class*="absolute"][class*="bg-amber-400"][class*="-right-4"] {
    right: 0.5rem !important;
    max-width: calc(100% - 1rem);
    white-space: normal;
    line-height: 1.2;
    text-align: center;
}

[class*="absolute"][class*="bg-amber-400"][class*="-top-3"] {
    top: 0.5rem !important;
}

[class*="absolute"][class*="bg-amber-400"][class*="-top-4"] {
    top: 0.5rem !important;
}

[class*="absolute"][class*="bg-amber-400"][class*="rotate-6"] {
    transform: none !important;
}

/* ===== МОДАЛЬНЫЕ ОКНА ===== */
.modal-content {
    animation: modalAppear 0.3s ease;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ===== SWIPER КАРУСЕЛЬ ===== */
.swiper {
    width: 100%;
    height: 100%;
    padding-bottom: 3rem !important;
}

.swiper-slide {
    height: auto;
}

.swiper-pagination-bullet {
    background: var(--primary) !important;
    opacity: 0.3 !important;
    width: 10px !important;
    height: 10px !important;
}

.swiper-pagination-bullet-active {
    opacity: 1 !important;
    background: var(--primary) !important;
}

/* ===== КАРТОЧКИ ПРЕИМУЩЕСТВ ===== */
.advantage-card {
    position: relative;
    overflow: hidden;
    text-align: center;
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -20px rgba(15, 118, 110, 0.3);
}

.advantage-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.advantage-card:hover::after {
    transform: translateX(100%);
}

/* Аккордеон FAQ (details/summary) */
details {
    transition: all 0.3s ease;
}

details[open] {
    background: #f8fafc;
}

details summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
}

details summary::-webkit-details-marker {
    display: none;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .advantage-card {
        padding: 1.5rem;
    }
}

@media (max-width: 640px) {
    .btn-primary, .btn-outline {
        width: 100%;
    }

    .step-card {
        padding: 1.25rem;
    }
}

/* ===== MOBILE UX TUNING ===== */
@media (max-width: 640px) {
    /* CTA-кнопки с min-w из разметки не должны ломать маленькие экраны */
    a[class*="min-w-\\[200px\\]"],
    a[class*="min-w-\\[220px\\]"],
    button[class*="min-w-\\[200px\\]"],
    button[class*="min-w-\\[220px\\]"] {
        min-width: 0 !important;
        width: 100% !important;
    }

    /* Небольшой отступ между hero-кнопками на мобильных */
    #main-content > section:first-child .flex.flex-col.sm\\:flex-row {
        gap: 0.75rem;
    }

    /* Модалки: комфортнее как нижний лист, без обрезки по safe area */
    .modal-overlay {
        align-items: flex-end !important;
        padding: 0.5rem;
        padding-bottom: calc(0.5rem + env(safe-area-inset-bottom));
    }

    .modal-overlay > div {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 92dvh !important;
        border-bottom-left-radius: 0.75rem;
        border-bottom-right-radius: 0.75rem;
    }

    /* Чуть легче фоновые blob-элементы на маленьких экранах */
    .blob {
        filter: blur(44px);
        opacity: 0.16;
    }

    /* Mobile performance: уменьшаем дорогие эффекты и перерисовки */
    .blob,
    .animate-float,
    .animate-float-delayed,
    .animate-float-bg,
    .animate-float-simple {
        animation: none !important;
    }

    .shadow-2xl,
    .hover\:shadow-2xl:hover,
    .shadow-xl {
        box-shadow: 0 8px 24px -18px rgba(15, 118, 110, 0.28) !important;
    }

    .backdrop-blur-sm,
    .backdrop-blur-md,
    .backdrop-blur {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
}

/* Быстрее первый рендер на мобильных: отложенная отрисовка ниже первого экрана */
@media (max-width: 767px) {
    #main-content > section:not(:first-child) {
        content-visibility: auto;
        contain-intrinsic-size: 1px 900px;
    }
}

/* ===== ПЕЧАТЬ ===== */
@media print {
    .header,
    .footer,
    .btn-primary,
    .btn-outline,
    .video-container {
        display: none !important;
    }
}

/* ===== МОДАЛЬНЫЕ ОКНА - АНИМАЦИЯ ===== */
.modal-appear {
    animation: modalAppear 0.3s ease forwards;
}

/* ===== НАВИГАЦИЯ ===== */
#main-header .nav-link.active,
#main-header .mobile-link.active,
#main-header nav a.active {
    color: #0F766E;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
}

body.menu-open {
    overflow: hidden;
}

#site-header-mount,
#header {
    overflow: visible;
    position: relative;
    z-index: 50;
    min-height: 0;
    height: 0;
}

/* ===== Мобильное меню (без Tailwind — компонент грузится динамически) ===== */
#mobile-menu-root {
    position: fixed;
    inset: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    pointer-events: none;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    contain: layout paint;
}

#mobile-menu-root > * {
    pointer-events: auto;
}

#mobile-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(24, 24, 27, 0.55);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

#mobile-backdrop.is-open {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#mobile-drawer,
#mobile-menu {
    box-sizing: border-box;
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: min(88%, 22rem);
    max-width: 22rem;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    z-index: 10001;
    background: #ffffff;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    transform: translate3d(100%, 0, 0);
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s ease;
    overflow: hidden;
    pointer-events: none;
    min-height: 0;
}

@media (max-width: 640px) {
    #mobile-drawer,
    #mobile-menu {
        width: 100%;
        max-width: 100%;
    }
}

@supports (height: 100svh) {
    #mobile-drawer,
    #mobile-menu {
        height: 100svh;
        max-height: 100svh;
    }
}

#mobile-drawer.is-open,
#mobile-menu.is-open {
    display: flex;
    transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto;
}

#mobile-drawer:not(.is-open),
#mobile-menu:not(.is-open) {
    pointer-events: none;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    padding: 1rem 1rem;
    border-bottom: 1px solid #f4f4f5;
}

.mobile-menu-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #18181b;
}

.mobile-menu-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border: none;
    background: transparent;
    color: #71717a;
    border-radius: 0.5rem;
    cursor: pointer;
}

.mobile-menu-close-btn:hover {
    color: #0F766E;
    background: #f4f4f5;
}

.mobile-menu-body {
    flex: 1 1 0;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: scroll;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 0.75rem 1rem 1rem;
    touch-action: pan-y;
}

.mobile-section-label {
    margin: 0.75rem 0 0.35rem;
    padding: 0 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #a1a1aa;
}

.mobile-section-label--spaced {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f4f4f5;
}

.mobile-menu-footer {
    flex-shrink: 0;
    padding: 1rem;
    border-top: 1px solid #f4f4f5;
    background: #fff;
}

.mobile-menu-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    background: #f4f4f5;
    color: #18181b;
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
    border-radius: 0.75rem;
}

.mobile-menu-cta {
    display: block;
    width: 100%;
    padding: 0.875rem 1rem;
    border: none;
    border-radius: 0.75rem;
    background: linear-gradient(to right, #0F766E, #14b8a6);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
}

.mobile-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.75rem;
    color: #3f3f46;
    font-weight: 500;
    text-decoration: none;
    border-radius: 0.75rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.mobile-link:hover,
.mobile-link:focus-visible {
    color: #0F766E;
    background: rgba(15, 118, 110, 0.08);
}

.mobile-accordion-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    padding: 0.75rem;
    border: none;
    background: transparent;
    color: #3f3f46;
    font-weight: 500;
    font-size: 1rem;
    text-align: left;
    border-radius: 0.75rem;
    cursor: pointer;
}

.mobile-accordion-btn:hover {
    color: #0F766E;
    background: rgba(15, 118, 110, 0.08);
}

@media (min-width: 1024px) {
    #mobile-drawer,
    #mobile-menu,
    #mobile-backdrop {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: none !important;
    }
}

.mobile-sublink {
    display: block;
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    color: #52525b;
    border-radius: 0.5rem;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.mobile-sublink:hover,
.mobile-sublink:focus-visible {
    color: #0F766E;
    background-color: rgba(15, 118, 110, 0.08);
}

.mobile-sublink--accent {
    color: #b45309;
    font-weight: 600;
    background-color: rgba(251, 191, 36, 0.12);
}

.mobile-sublink--primary {
    color: #0f766e;
    font-weight: 700;
    background: linear-gradient(90deg, rgba(20, 184, 166, 0.14), rgba(15, 118, 110, 0.08));
    border: 1px solid rgba(20, 184, 166, 0.25);
}

.mobile-sublink--primary:hover,
.mobile-sublink--primary:focus-visible {
    color: #0b5f59;
    background: linear-gradient(90deg, rgba(20, 184, 166, 0.2), rgba(15, 118, 110, 0.12));
}

.mobile-sublink--accent:hover {
    color: #92400e;
    background-color: rgba(251, 191, 36, 0.2);
}

/* Аккордеон услуг — max-height, чтобы не обрезать пункты во flex-контейнере */
.mobile-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.32s ease;
}

.mobile-accordion-content.is-open,
.mobile-accordion-btn[aria-expanded="true"] + .mobile-accordion-content {
    max-height: 32rem;
}

.mobile-accordion-inner {
    overflow: visible;
    padding-bottom: 0.25rem;
}

.mobile-accordion-btn[aria-expanded="true"] .accordion-arrow {
    transform: rotate(180deg);
}

/* Десктопный dropdown услуг */
@media (hover: hover) {
    #services-dropdown-wrapper:hover #services-dropdown,
    #services-dropdown-wrapper:focus-within #services-dropdown,
    #services-dropdown:hover {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
    }

    #services-dropdown-wrapper:hover .dropdown-arrow,
    #services-dropdown-wrapper:focus-within .dropdown-arrow {
        transform: rotate(180deg);
    }

    #about-dropdown-wrapper:hover #about-dropdown,
    #about-dropdown-wrapper:focus-within #about-dropdown,
    #about-dropdown:hover {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
    }

    #about-dropdown-wrapper:hover .dropdown-arrow,
    #about-dropdown-wrapper:focus-within .dropdown-arrow {
        transform: rotate(180deg);
    }
}

/* Шапка: навигация и CTA без наложений */
.site-header-nav {
    display: none;
}

#header-contact-cta,
.site-header-cta {
    display: none;
}

.mobile-menu-trigger {
    display: flex;
}

#main-header {
    box-shadow: 0 8px 26px -20px rgba(15, 118, 110, 0.35);
}

#main-header .nav-link {
    transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

#main-header .nav-link:hover {
    background-color: rgba(15, 118, 110, 0.08);
    color: #0F766E;
}

#main-header [role="menu"] a[role="menuitem"] {
    transition: background-color 0.2s ease, color 0.2s ease;
}

#main-header [role="menu"] a[role="menuitem"]:hover {
    color: #0F766E;
}

@media (min-width: 1024px) {
    .site-header-nav {
        display: flex !important;
        flex: 1 1 auto;
        min-width: 0;
        align-items: center;
        margin-left: 1rem;
        overflow: visible !important;
        white-space: nowrap;
    }

    #header-contact-cta,
    .site-header-cta {
        display: flex !important;
        flex-shrink: 0;
        align-items: center;
        gap: 0.75rem;
        margin-left: 1rem;
    }

    .mobile-menu-trigger {
        display: none !important;
    }

    .site-header-phone {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        white-space: nowrap;
    }

    .site-header-phone__link {
        font-size: 0.875rem;
        font-weight: 700;
        color: #18181b;
        text-decoration: none;
        transition: color 0.2s ease;
    }

    .site-header-phone__link:hover {
        color: #0F766E;
    }

    .site-header-phone__hours {
        font-size: 0.75rem;
        color: #71717a;
    }

    .site-header-cta-btn {
        flex-shrink: 0;
        background: #0F766E;
        color: #fff;
        padding: 0.625rem 1.25rem;
        border-radius: 9999px;
        font-weight: 600;
        font-size: 0.875rem;
        border: none;
        cursor: pointer;
        white-space: nowrap;
        transition: box-shadow 0.3s ease, transform 0.2s ease;
    }

    .site-header-cta-btn:hover {
        box-shadow: 0 10px 15px -3px rgb(20 184 166 / 0.3);
        transform: translateY(-1px);
    }

    .site-header-cta-btn:active {
        transform: scale(0.97);
    }
}

@media (min-width: 1024px) and (max-width: 1439px) {
    #main-header .site-header-nav .nav-link,
    #main-header [role="menubar"] .nav-link {
        padding-left: 0.55rem;
        padding-right: 0.55rem;
        font-size: 0.8rem;
    }

    .site-header-phone {
        display: flex !important;
    }

    .site-header-phone__link {
        font-size: 0.75rem;
    }

    .site-header-phone__hours {
        font-size: 0.68rem;
        line-height: 1.1;
    }

    .site-header-cta-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
}

@media (min-width: 1024px) and (max-width: 1180px) {
    #main-header .site-header-nav .nav-link,
    #main-header [role="menubar"] .nav-link {
        padding-left: 0.45rem;
        padding-right: 0.45rem;
        font-size: 0.76rem;
    }
}

.services-dropdown-panel {
    top: 100%;
}

.services-group-title {
    margin: 0.15rem 0.4rem 0.5rem;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #a1a1aa;
}

.services-grid-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
}

.services-mega-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.42rem;
}

#services-dropdown > div {
    overflow: hidden;
}

.service-link-premium,
.service-link-clean {
    display: block;
    border-radius: 0.85rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.service-link-premium {
    padding: 0.68rem 0.72rem;
    border: 1px solid rgba(15, 118, 110, 0.15);
    background: linear-gradient(135deg, rgba(240, 253, 250, 0.9), rgba(250, 250, 250, 0.96));
}

.service-link-premium--primary {
    background: linear-gradient(135deg, rgba(204, 251, 241, 0.9), rgba(236, 253, 245, 0.95));
}

.service-link-premium:hover,
.service-link-premium:focus-visible {
    border-color: rgba(15, 118, 110, 0.28);
    box-shadow: 0 10px 20px -18px rgba(15, 118, 110, 0.5);
    transform: translateY(-1px);
}

.service-link-premium__title {
    display: block;
    font-size: 0.84rem;
    font-weight: 700;
    color: #27272a;
    margin-bottom: 0.1rem;
    line-height: 1.2;
}

.service-link-premium__desc {
    display: block;
    font-size: 0.68rem;
    color: #71717a;
    line-height: 1.25;
}

.service-link-clean {
    padding: 0.52rem 0.56rem;
    border: 1px solid rgba(228, 228, 231, 0.95);
    background: #fff;
}

.service-link-clean:hover,
.service-link-clean:focus-visible {
    border-color: rgba(20, 184, 166, 0.34);
    background: rgba(240, 253, 250, 0.64);
}

.service-link-clean__title {
    display: block;
    font-size: 0.77rem;
    font-weight: 600;
    color: #3f3f46;
    line-height: 1.2;
    overflow-wrap: anywhere;
    word-break: normal;
}

.service-link-clean__desc {
    display: block;
    margin-top: 0.08rem;
    font-size: 0.65rem;
    color: #a1a1aa;
    line-height: 1.25;
}

.service-link-clean--compact {
    padding: 0.5rem 0.56rem;
}

.service-link-clean--compact .service-link-clean__title {
    font-size: 0.73rem;
    line-height: 1.2;
}

.service-link-clean--highlight {
    border-color: rgba(20, 184, 166, 0.28);
    background: linear-gradient(90deg, rgba(240, 253, 250, 0.95), rgba(250, 250, 250, 0.98));
}

.service-link-clean--highlight .service-link-clean__title {
    color: #0f766e;
    font-weight: 700;
}

@media (max-width: 1279px) {
    .services-grid-two {
        grid-template-columns: 1fr;
    }

    .services-mega-grid {
        grid-template-columns: 1fr;
    }
}

#services-dropdown,
#about-dropdown {
    z-index: 80 !important;
}

#services-menu-button[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

/* Отступ под фиксированный header + небольшой зазор до контента */
#main-content {
    scroll-margin-top: calc(var(--header-offset) + var(--hero-top-gap));
    padding-top: calc(var(--header-offset) + var(--hero-top-gap));
}

/* Первый блок — зазор уже учтён в #main-content */
#main-content > section:first-child {
    padding-top: 0 !important;
    margin-top: 0;
}

#main-content > section:first-child .grid {
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    #main-content > section:first-child .grid {
        gap: 2rem;
    }
}

#main-content > section:first-child article > .inline-flex:first-child {
    margin-bottom: 0.875rem !important;
}

#main-content > section:first-child article > h1:first-of-type {
    margin-top: 0;
    margin-bottom: 1.125rem !important;
}

#main-content > section:first-child article > p:first-of-type {
    margin-bottom: 1.5rem !important;
}

#main-content > section:first-child header {
    margin-bottom: 1rem !important;
}

#main-content > section:first-child .logo-img {
    height: 3rem;
}

#main-content > section:first-child aside {
    gap: 1.25rem;
}

#main-content > section:first-child aside article .p-6 {
    padding: 1.5rem 1.75rem 1.75rem;
}

#main-content > section:first-child aside article h2 {
    margin-bottom: 0.5rem;
}

#main-content > section:first-child aside article p {
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    #main-content > section:first-child .logo-img {
        height: 3.5rem;
    }
}

@media (min-width: 1024px) {
    #main-content > section:first-child .logo-img {
        height: 4rem;
    }
}

/* Главная: hero — умеренные вертикальные отступы */
#main-content > section:first-child:not(.section-padding) {
    padding-bottom: 1.5rem !important;
}

@media (min-width: 640px) {
    #main-content > section:first-child:not(.section-padding) {
        padding-bottom: 2rem !important;
    }
}

@media (min-width: 1024px) {
    #main-content > section:first-child:not(.section-padding) {
        padding-bottom: 2.5rem !important;
    }
}

/* Внутренние страницы: hero с section-padding — меньше нижний отступ */
#main-content > section:first-child.section-padding {
    padding-bottom: var(--space-3) !important;
}

@media (min-width: 640px) {
    #main-content > section:first-child.section-padding {
        padding-bottom: var(--space-4) !important;
    }
}

/* ===== ПОЯВЛЕНИЕ КОНТЕНТА ПОСЛЕ ЗАГРУЗКИ ХЕДЕРА ===== */
main,
footer,
.modal-overlay {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

body.header-loaded main,
body.header-loaded footer,
body.header-loaded .modal-overlay {
    opacity: 1;
}

/* ===== SCROLL REVEAL (Intersection Observer + rAF) ===== */
.scroll-reveal {
    --reveal-delay: 0ms;
    --reveal-duration: 760ms;
    --reveal-distance: 28px;
    --reveal-ease: cubic-bezier(0.22, 1, 0.36, 1);
    transition:
        opacity var(--reveal-duration) var(--reveal-ease) var(--reveal-delay),
        transform var(--reveal-duration) var(--reveal-ease) var(--reveal-delay);
    backface-visibility: hidden;
    transform-origin: 50% 70%;
}

/* will-change только пока элемент ждёт появления; после показа — auto */
.scroll-reveal.scroll-reveal-pending {
    opacity: 0;
    pointer-events: none;
    will-change: opacity, transform;
}

.scroll-reveal.reveal-fade-up.scroll-reveal-pending {
    transform: translate3d(0, var(--reveal-distance), 0) scale3d(0.985, 0.985, 1);
}

.scroll-reveal.reveal-fade-down.scroll-reveal-pending {
    transform: translate3d(0, calc(var(--reveal-distance) * -1), 0) scale3d(0.99, 0.99, 1);
}

.scroll-reveal.reveal-fade-left.scroll-reveal-pending {
    transform: translate3d(var(--reveal-distance), 0, 0) scale3d(0.99, 0.99, 1);
}

.scroll-reveal.reveal-fade-right.scroll-reveal-pending {
    transform: translate3d(calc(var(--reveal-distance) * -1), 0, 0) scale3d(0.99, 0.99, 1);
}

.scroll-reveal.reveal-zoom-in.scroll-reveal-pending {
    transform: scale3d(0.935, 0.935, 1) translate3d(0, calc(var(--reveal-distance) * 0.4), 0);
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
    pointer-events: auto;
    will-change: auto;
}

/* ===== КАРТОЧКИ — РАВНАЯ ВЫСОТА ===== */
.grid.items-stretch > .card-hover,
.grid.items-stretch > .step-card,
.grid.items-stretch > .pricing-card,
.grid.items-stretch > .doc-card,
.grid.items-stretch > .project-card,
.grid.items-stretch > .topic-card,
.grid.items-stretch > .inspection-card,
.grid.items-stretch > .advantage-card,
.grid.items-stretch > article {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-body-grow {
    flex-grow: 1;
}

/* ===== ФОРМЫ ===== */
.form-input {
    transition: all 0.2s ease;
}

.form-input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.2);
}

.form-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.form-success-message {
    animation: fadeInUp 0.5s ease-out;
}

.form-error-message {
    animation: shake 0.5s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* ===== МОДАЛЬНЫЕ ОКНА ===== */
.modal-overlay {
    z-index: var(--modal-z);
}

.modal {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.modal:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

/* ===== BLOBS / FLOAT ===== */
@keyframes float-simple {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-float {
    animation: float 12s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float 12s ease-in-out infinite;
    animation-delay: 2s;
}

.animate-float-bg {
    animation: float 12s ease-in-out infinite;
}

.animate-float-simple {
    animation: float-simple 3s ease-in-out infinite;
}

/* ===== STAT CARDS ===== */
.stat-card {
    background: white;
    border-radius: 1rem;
    padding: var(--space-2);
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-value,
.stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ===== ВИЗУАЛЬНЫЙ ПОЛИШ ===== */
.card-hover,
.step-card,
.stat-card,
.pricing-card {
    border: 1px solid rgba(15, 118, 110, 0.08);
}

.step-card:hover,
.pricing-card:hover {
    box-shadow: 0 22px 42px -22px rgba(15, 118, 110, 0.35);
}

details {
    border: 1px solid rgba(15, 118, 110, 0.1);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

details:hover {
    border-color: rgba(15, 118, 110, 0.22);
}

details[open] {
    box-shadow: 0 14px 28px -24px rgba(15, 118, 110, 0.5);
}

details > summary {
    list-style: none;
    position: relative;
    padding-right: 1.5rem;
}

details > summary::-webkit-details-marker {
    display: none;
}

details > summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 0;
    font-weight: 700;
    color: #0F766E;
    transition: transform 0.2s ease;
}

details[open] > summary::after {
    transform: rotate(45deg);
}

/* В FAQ оставляем только индикатор "+" из summary::after */
details > summary svg {
    display: none !important;
}

/* ===== CASES PAGE ===== */
.project-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.2);
}

.project-card:hover .project-image img {
    transform: scale(1.08);
}

.project-image {
    overflow: hidden;
    position: relative;
}

.project-image img {
    transition: transform 0.7s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-section {
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, #0F766E 0%, #0d9488 50%, #14b8a6 100%);
    overflow: hidden;
}

.hero-section .hero-content {
    position: relative;
    z-index: 10;
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-light)) !important;
    color: white !important;
}

.review-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    min-height: 220px;
}

.review-card:hover {
    transform: translateY(-4px);
}

.reviews-swiper .swiper-slide {
    height: auto;
    display: flex;
}

.reviews-swiper .review-card {
    flex: 1;
}

.reviews-swiper .review-card p {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Выделенный отзыв — полная ширина */
.review-featured {
    position: relative;
    margin-top: 2.5rem;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.06) 100%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 1.75rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.review-featured::before {
    content: '\201C';
    position: absolute;
    top: -0.25rem;
    left: 1.25rem;
    font-size: 7rem;
    line-height: 1;
    font-family: Georgia, 'Times New Roman', serif;
    color: rgba(255, 255, 255, 0.12);
    pointer-events: none;
    user-select: none;
}

.review-featured__inner {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1.5rem;
    align-items: start;
}

@media (min-width: 768px) {
    .review-featured {
        padding: 2.5rem 3rem;
    }

    .review-featured__inner {
        grid-template-columns: auto 1fr;
        gap: 2rem;
    }
}

.review-featured__avatar {
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff 0%, #ccfbf1 100%);
    color: #0F766E;
    font-size: 2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.review-featured__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #ecfdf5;
    margin-bottom: 0.75rem;
}

.review-featured__name {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.15rem;
}

.review-featured__role {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0.75rem;
}

.review-featured__stars {
    color: #fbbf24;
    font-size: 1.1rem;
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
}

.review-featured__text {
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.92);
    max-width: 65ch;
}

@media (min-width: 1024px) {
    .review-featured__text {
        font-size: 1.125rem;
        line-height: 1.8;
    }
}

/* ===== INSPECTION BLOCK (главная) ===== */
.inspection-block {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding: var(--space-6);
    background: white;
    border-radius: 2rem;
    box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
    .inspection-block {
        padding: var(--space-4) var(--space-3);
    }
}

/* ===== LOGO ===== */
.logo-img {
    height: 4rem;
    width: auto;
    object-fit: contain;
}

@media (min-width: 640px) {
    .logo-img { height: 5rem; }
}

@media (min-width: 1024px) {
    .logo-img { height: 6rem; }
}

.logo-fallback {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    width: 10rem;
    height: 4rem;
}

/* ===== VIDEO / MUTE ===== */
video {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.mute-toggle {
    transition: all 0.3s ease;
}

.mute-toggle:hover {
    transform: scale(1.05);
}

.gradient-border {
    position: relative;
    border: double 1px transparent;
    border-radius: 1.5rem;
    background-image: linear-gradient(white, white),
        linear-gradient(135deg, var(--primary), var(--primary-light));
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.sidebar-title {
    margin: 0;
}

/* ===== СЕКЦИИ — ЕДИНЫЕ ОТСТУПЫ ===== */
.section-padding {
    padding-top: var(--space-4);
    padding-bottom: var(--space-4);
}

@media (min-width: 640px) {
    .section-padding {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}

@media (min-width: 1024px) {
    .section-padding {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

.section-x {
    padding-left: var(--space-2);
    padding-right: var(--space-2);
}

@media (min-width: 640px) {
    .section-x {
        padding-left: var(--space-3);
        padding-right: var(--space-3);
    }
}

@media (min-width: 1024px) {
    .section-x {
        padding-left: var(--space-4);
        padding-right: var(--space-4);
    }
}

.modal-close-btn {
    line-height: 1;
    min-width: 2.5rem;
    min-height: 2.5rem;
}

.modal-close-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 0.5rem;
}

.grid.items-stretch > .pricing-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

aside.items-stretch > article {
    height: 100%;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible,
.flip-card:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}


/* ===== UI ICONS ===== */
.ui-icon {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    vertical-align: -0.2em;
    flex-shrink: 0;
}

.ui-icon.text-sm, .text-sm .ui-icon { width: 1rem; height: 1rem; }
.ui-icon.text-xs, .text-xs .ui-icon { width: 0.875rem; height: 0.875rem; }
.ui-icon.text-lg, .text-lg .ui-icon { width: 1.5rem; height: 1.5rem; }
.ui-icon.text-2xl, .text-2xl .ui-icon { width: 2rem; height: 2rem; }
.ui-icon.ui-icon-star { width: 1.125rem; height: 1.125rem; }

.star-rating {
    display: inline-flex;
    gap: 0.125rem;
    color: #fbbf24;
}

/* ===== СТРАНИЦА КОМАНДЫ ===== */
.team-expert-card {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background: #fff;
    border: 1px solid #f4f4f5;
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 10px 30px -15px rgba(15, 118, 110, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.team-expert-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -15px rgba(15, 118, 110, 0.18);
}

.team-expert-card--lead {
    flex-direction: row;
    align-items: flex-start;
    padding: 1.75rem;
    background: linear-gradient(135deg, #f0fdfa 0%, #fff 50%, #ecfdf5 100%);
    border-color: #99f6e4;
}

@media (max-width: 767px) {
    .team-expert-card--lead {
        flex-direction: column;
    }
}

.team-expert-card__avatar {
    flex-shrink: 0;
    width: 5.9rem;
    height: 5.9rem;
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #0F766E, #14b8a6);
    box-shadow: 0 8px 20px -8px rgba(15, 118, 110, 0.5);
}

.team-expert-card__avatar--lg {
    width: 7.2rem;
    height: 7.2rem;
    font-size: 2rem;
    border-radius: 1.25rem;
}

.team-expert-card__avatar--teal { background: linear-gradient(135deg, #2dd4bf, #0d9488); }
.team-expert-card__avatar--emerald { background: linear-gradient(135deg, #34d399, #059669); }
.team-expert-card__avatar--blue { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.team-expert-card__avatar--amber { background: linear-gradient(135deg, #fbbf24, #d97706); }
.team-expert-card__avatar--violet { background: linear-gradient(135deg, #a78bfa, #7c3aed); }

.team-expert-card__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
    display: block;
}

.team-expert-card__body {
    flex: 1;
    min-width: 0;
}

.team-expert-card__badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #0F766E;
    background: #ccfbf1;
    border-radius: 9999px;
}

.team-expert-card__name {
    font-size: 1.25rem;
    font-weight: 800;
    color: #18181b;
    margin-bottom: 0.25rem;
}

.team-expert-card--lead .team-expert-card__name {
    font-size: 1.5rem;
}

.team-expert-card__role {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0F766E;
    margin-bottom: 0.75rem;
}

.team-expert-card__bio {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #52525b;
    margin-bottom: 1rem;
}

.team-expert-card__list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.team-expert-card__list li {
    font-size: 0.8125rem;
    color: #3f3f46;
    padding-left: 1.25rem;
    position: relative;
}

.team-expert-card__list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #0F766E;
    font-weight: 700;
}

.team-expert-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: auto;
}

.team-expert-card__tags span {
    padding: 0.25rem 0.625rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #0f766e;
    background: #f0fdfa;
    border-radius: 0.5rem;
}

/* Project cards — равная высота контента */
.project-card .p-6 {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.project-card .card-body-grow {
    flex-grow: 1;
}

.pricing-card .pricing-features {
    flex-grow: 1;
}

.pricing-card > button,
.pricing-card > .mt-auto {
    margin-top: auto;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .scroll-reveal,
    .scroll-reveal.scroll-reveal-pending {
        opacity: 1;
        transform: none;
    }
}

