:root {
    --bg-dark: #121212;
    --bg-card: #1a1a1a;
    --text-light: #f0f0f0;
    --text-muted: #888888;
    --accent-color: #d92641;
    --accent-color-rgb: 217, 38, 65;
    --accent-color-shadow: rgba(222, 35, 47, 0.6);
    --accent-color-light: #ed4e56;
    --border-color: rgba(255, 255, 255, 0.1);
    --mouse-x: 50%;
    --mouse-y: 50%;
    --font-body: 'JetBrains Mono', monospace;
    --font-heading: 'Jura', sans-serif;
}
html {
    scroll-behavior: smooth;
}
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--accent-color); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-color-light); }
body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--text-light);
    overflow-x: hidden;
    background-color: var(--bg-dark);
}
h1, h2, .font-heading { font-family: var(--font-heading); font-weight: 600; }

/* --- Logo Styles --- */
#logo-container {
    display: flex;
    align-items: center;
}

/* Header logo - SVG via mask for accent color */
.header-logo {
    height: 72px !important;
    width: 140px !important; /* aspect ratio ~1.9:1 for insider-logo */
    margin-bottom: 1.5rem !important;
    display: block !important;
    opacity: 0.5 !important;
    background-color: #d92641 !important; /* var(--accent-color) - цвет линии .line-v */
    -webkit-mask: url('../logo/insider-logo.svg') no-repeat center;
    mask: url('../logo/insider-logo.svg') no-repeat center;
    -webkit-mask-size: contain;
    mask-size: contain;
    transition: opacity 0.3s ease;
}

.header-logo:hover {
    opacity: 0.8 !important;
}

/* --- Age mark (436-ФЗ), одна строка с копирайтом в футере --- */
.footer-meta-sep {
    color: rgba(255, 255, 255, 0.22);
}
.age-inline {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.68rem;
    letter-spacing: 0.07em;
    color: rgba(240, 240, 240, 0.42);
    white-space: nowrap;
}

/* Hero Logo */
.hero-logo {
    height: 20vw;
    max-height: 400px;
    min-height: 200px;
    width: auto;
    display: block;
    object-fit: contain;
    opacity: 0.4;
}

.hero-logo path {
    fill: var(--text-light);
    transition: fill 0.3s ease;
}

/* --- Navigation Styles --- */
nav {
    width: 100%;
}
.nav-link {
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    position: relative;
    padding-bottom: 4px;
    cursor: pointer;
    transition: color 0.3s ease;
}
.nav-link:hover {
    color: var(--text-light);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu - полностью скрыт */
.mobile-menu-toggle {
    display: none !important;
}

.mobile-nav {
    display: none !important;
}

.mobile-nav-overlay {
    display: none !important;
}

#background-wrapper {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1; overflow: hidden;
}
@keyframes slow-zoom {
    from { transform: scale(1) translate(var(--parallax-x, 0px), var(--parallax-y, 0px)); }
    to   { transform: scale(1.05) translate(var(--parallax-x, 0px), var(--parallax-y, 0px)); }
}
.background-slide {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover; background-position: center center;
    will-change: transform, opacity;
    transition: opacity 2s ease-in-out;
    opacity: 0;
    --parallax-x: 0px; --parallax-y: 0px;
    transform: scale(1) translate(var(--parallax-x), var(--parallax-y));
}
.background-slide.visible {
    opacity: 1;
    animation: slow-zoom 24s linear forwards;
}
#darkness-overlay {
    position: absolute; 
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle 450px at var(--mouse-x) var(--mouse-y), rgba(18, 18, 18, 0.55) 0%, rgba(18, 18, 18, 0.9) 100%);
    z-index: 1;
    pointer-events: none;
}
.btn-primary {
    position: relative;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    cursor: pointer;
    z-index: 1;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.2s ease;
}
.btn-primary .btn-text {
    position: relative;
    z-index: 2;
}
.btn-primary:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}
.btn-primary:not(:disabled):hover {
    border-color: var(--accent-color);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5), 0 0 20px -5px rgba(var(--accent-color-rgb), 0.3);
    transform: translateY(-2px);
}
.fade-in-up { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in-up.visible { opacity: 1; transform: translateY(0); }

/* Decorative Lines */
.line-v {
    position: absolute; top: 0; left: -3rem; width: 1px;
    background-color: var(--accent-color);
    animation: grow-height 1.5s 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    height: 0;
}
 .line-h {
    position: absolute; left: -100vw; top: 55%; height: 1px;
    background-color: var(--accent-color);
    animation: grow-width 1.5s 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    width: 0;
}
@keyframes grow-height { from { height: 0; } to { height: 250px; } }
@keyframes grow-width { from { width: 0; } to { width: calc(100vw - 25vw - 42rem + 100px); } }

/* Hero Section Specifics */
/* .giant-text removed - now using SVG logo */

.slogan-style {
    color: var(--text-muted);
    font-family: var(--font-heading);
}

/* Desktop: скрываем слоган */
#hero-slogan {
    display: none;
}

/* Desktop: сдвигаем информационный блок ниже */
.hero-content-wrapper {
    top: 55% !important;
    right: clamp(2rem, 25vw, 25vw) !important;
    max-width: clamp(400px, 50vw, 672px) !important;
    width: auto !important;
}

/* Hero content wrapper - Desktop glass style */
.hero-content-wrapper > div {
    background: rgba(255, 255, 255, 0.02) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37) !important;
    border-radius: 8px;
}

#leak-effect-canvas {
    display: none; /* Leak effect disabled */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}


/* --- Investigation Board Styles --- */
#investigation-board {
    position: relative;
    height: 140vh; /* Increased height for 6 items */
    width: 100%;
}

#board-svg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
}

.service-path {
    stroke: var(--accent-color);
    stroke-opacity: 0.7;
    stroke-width: 1.5px;
    fill: none;
    transition: stroke 0.3s ease, stroke-opacity 0.3s ease;
}
.service-card:hover ~ #board-svg .service-path {
    stroke-opacity: 0.3;
}
.service-card:hover ~ #board-svg .service-path.highlight,
.service-card:hover ~ #board-svg .service-path.highlight-exit {
    stroke: var(--accent-color-light);
    stroke-opacity: 1;
    stroke-width: 2px;
}

.service-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    will-change: transform, box-shadow;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    cursor: pointer;
    position: absolute;
    z-index: 10;
    opacity: 0;
    border-radius: 8px;
}
.service-card.visible {
    opacity: 1;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.service-card:hover {
    transform: translateY(-5px) scale(1.03) !important; /* Use important to override inline style */
    box-shadow: 0 0 30px -5px var(--accent-color-shadow);
    z-index: 11;
}

.service-card-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.service-card-icon img {
    transition: filter 0.4s ease;
    filter: invert(70%) brightness(0.8);
}

.service-card:hover .service-card-icon img {
    filter: invert(29%) sepia(36%) saturate(4577%) hue-rotate(331deg) brightness(88%) contrast(93%);
}

.service-card-icon.left { left: -20px; }
.service-card-icon.right { right: -20px; }

/* На мобильных иконки всегда по центру */
@media (max-width: 768px) {
    .service-card-icon.left,
    .service-card-icon.right {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
    }
}


/* Contacts Section - Desktop */
#hero {
    position: relative;
    min-height: 80vh;
    padding: 4rem 0;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

/* Колонка со слоганом и отзывами */
#reviews-column {
    flex: 0 0 55%;
    max-width: 55%;
    padding-left: 2rem;
    display: block !important;
    flex-direction: column !important;
}

/* Показываем форму обратной связи в колонке на desktop */
#reviews-column #client-list {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Якорь для плавной прокрутки к форме обратной связи */
#form {
    scroll-margin-top: 10rem;
}

/* Кнопка "Связаться с нами" под hero-desc — те же эффекты, что у "Отправить заявку" (contact-form-submit) */
.hero-contact-btn {
    display: inline-block;
    padding: clamp(0.875rem, 1vw, 1rem) clamp(1.25rem, 1.5vw, 1.5rem);
    font-size: clamp(0.85rem, 0.95vw, 0.95rem);
    text-decoration: none;
    color: var(--text-light);
    background: rgba(217, 38, 65, 0.2);
    border: 1px solid rgba(217, 38, 65, 0.5);
    border-radius: 8px;
    font-family: var(--font-body);
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
}
.hero-contact-btn:visited {
    color: var(--text-light);
}
.hero-contact-btn:hover {
    background: rgba(217, 38, 65, 0.3);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(217, 38, 65, 0.4);
}

/* Desktop: форма в hero, мобильная форма скрыта */
#hero-form-mobile-wrapper {
    display: none;
}

/* Форма обратной связи в блоке client-list */
.contact-form-inline-main {
    display: flex;
    flex-direction: column;
    gap: clamp(0.75rem, 1vw, 1rem);
    padding: clamp(1.5rem, 2vw, 2rem);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    max-width: 100%;
    margin-top: clamp(1.5rem, 2vw, 2rem);
}


/* Скрываем старый заголовок в секции contacts на desktop */
#hero > div.relative:first-child,
#contacts-title {
    display: none !important;
}

/* Скрываем мобильную секцию отзывов на desktop */
#hero-mobile {
    display: none;
}

/* FORM SECTION — форма в конце страницы, расширена и отцентрирована */
#form.form-section {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
#form .form-section-inner {
    width: 100%;
    max-width: 42rem;
    margin: 0 auto;
}
#form .hero-form-container,
#form .contact-form-inline-main {
    width: 100%;
    max-width: 100%;
}
#form .form-intro {
    color: var(--text-muted);
}
#form .form-social-block {
    width: 100%;
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
    padding-top: clamp(2rem, 4vw, 2.75rem);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}
#form .form-social-block #social-networks-title {
    margin-top: 0;
    margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
}

/* Client Reviews Section */
#client-reviews {
    padding: 4rem 0;
}

#client-reviews-title {
    font-family: var(--font-heading);
    color: var(--text-light);
    margin-bottom: 2rem;
}

.client-card-container { position: relative; }
.client-card { position: relative; background: rgba(255, 255, 255, 0.02); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.1); transition: border-color 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37); border-radius: 8px; }
.client-card:hover { z-index: 20; }
.client-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.client-card:hover::after {
    width: 100%;
}
/* Родительский контейнер фотографии на desktop */
#hero > .absolute {
    position: relative !important;
    flex: 0 0 40%;
    max-width: 40%;
    height: auto !important;
    align-self: stretch;
}

/* Цитата hero-quote — над подписью на desktop */
.hero-quote-overlay {
    font-size: 1.1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.52);
    line-height: 1.4;
}

.agency-head-image {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: cover;
    object-position: center top;
    -webkit-mask-image: linear-gradient(to top, transparent 5%, black 40%), linear-gradient(to left, transparent 5%, black 40%);
    mask-image: linear-gradient(to top, transparent 5%, black 40%), linear-gradient(to left, transparent 5%, black 40%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
}

/* Modal Styles */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 100;
    display: flex; justify-content: center; align-items: center;
    background-color: rgba(18, 18, 18, 0.5);
    backdrop-filter: blur(8px);
    opacity: 0; pointer-events: none;
    transition: opacity 0.4s ease;
    box-sizing: border-box;
    overflow: hidden;
}
.modal-overlay.visible { opacity: 1; pointer-events: auto; }
.modal-content {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    width: 90%; max-width: 600px;
    max-height: 80vh;
    display: flex; flex-direction: column;
    transform: scale(0.95);
    transition: transform 0.4s ease;
    overflow: hidden;
    box-sizing: border-box;
    border-radius: 8px;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: -1;
    border-radius: 8px;
}

.modal-content > * {
    position: relative;
    z-index: 1;
}
.modal-overlay.visible .modal-content { transform: scale(1); }
.modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex; justify-content: space-between; align-items: center;
    flex-shrink: 0;
}
.modal-title { font-family: var(--font-heading); font-size: 1.5rem; color: var(--accent-color); }
.modal-close-btn {
    background: transparent; border: none; font-size: 2rem;
    color: var(--text-muted); cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}
.modal-close-btn:hover { color: var(--text-light); transform: rotate(90deg); }
.modal-body { overflow-y: auto; padding: 1.5rem; line-height: 1.8; }
.service-accordion-item { border-bottom: 1px solid var(--border-color); }
.service-accordion-item:last-child { border-bottom: none; }
.service-accordion-header {
    padding: 1rem 0;
    cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    color: var(--text-light);
    transition: color 0.3s ease;
}
.service-accordion-header:hover { color: var(--accent-color-light); }
.service-accordion-header h4 { font-family: var(--font-heading); font-size: 1.1rem; }
.accordion-arrow { transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.service-accordion-item.open .accordion-arrow { transform: rotate(180deg); }
.service-accordion-content {
    max-height: 0; overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), padding 0.4s ease;
}
.service-accordion-content p { color: var(--text-muted); font-size: 0.9rem; padding-bottom: 1rem; }
.service-accordion-item.open .service-accordion-content { max-height: 200px; }

/* Form Styles */
.form-input, .form-textarea, .form-select {
    width: 100%;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-select {
    cursor: pointer;
    appearance: none;
    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='%23888888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}
.form-select option {
    background: var(--bg-card);
    color: var(--text-light);
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 10px -2px var(--accent-color);
}
.form-input.field-error, .form-textarea.field-error, .form-select.field-error {
    border-color: var(--accent-color);
    background-color: rgba(var(--accent-color-rgb), 0.05);
}
.field-error-message {
    color: var(--accent-color);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: block;
}

/* Honeypot field - hidden from users */
.honeypot-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.form-textarea {
    min-height: 120px;
    resize: vertical;
}
.form-success-message {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--bg-card);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center;
    padding: 2rem;
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.form-success-message.visible {
    opacity: 1;
    pointer-events: auto;
    animation: formSuccessReveal 0.5s ease-out;
}
@keyframes formSuccessReveal {
    0% { transform: scale(0.95); }
    100% { transform: scale(1); }
}
.form-success-message.visible::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 1rem;
    background: rgba(var(--accent-color-rgb), 0.2);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    font-size: 1.75rem;
    color: var(--accent-color);
    font-weight: bold;
}

/* Inline form success overlay */
.form-success-inline {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(26, 26, 26, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.form-success-inline.visible {
    opacity: 1;
    pointer-events: auto;
}
.form-success-inline-content {
    text-align: center;
    padding: 2rem;
    animation: successPopIn 0.5s ease-out;
}
@keyframes successPopIn {
    0% { opacity: 0; transform: scale(0.9); }
    70% { transform: scale(1.02); }
    100% { opacity: 1; transform: scale(1); }
}
.form-success-inline .form-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    background: rgba(var(--accent-color-rgb), 0.2);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--accent-color);
    font-weight: bold;
}
.contact-form-inline-main {
    position: relative;
}

/* Notification Toast Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 300px;
    max-width: 500px;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    z-index: 1000;
    opacity: 0;
    transform: translateX(400px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notification-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.notification-message {
    color: var(--text-light);
    line-height: 1.5;
}

.notification-error {
    border-left: 4px solid var(--accent-color);
}

.notification-success {
    border-left: 4px solid #28a745;
}

.notification-info {
    border-left: 4px solid #17a2b8;
}

/* Contact Form Inline - Desktop */
#contact-links {
    max-width: clamp(320px, 28vw, 450px);
}

/* Inline Contact Form - Desktop */
#contact-form-inline {
    display: flex;
    flex-direction: column;
    gap: clamp(0.75rem, 1vw, 1rem);
    padding: clamp(1rem, 1.5vw, 1.5rem);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.contact-form-input,
.contact-form-textarea {
    width: 100%;
    font-size: clamp(0.8rem, 0.9vw, 0.9rem);
    padding: clamp(0.75rem, 0.9vw, 0.9rem) clamp(0.875rem, 1vw, 1rem);
    background: rgba(26, 26, 26, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-light);
    font-family: 'JetBrains Mono', monospace;
    transition: border-color 0.3s ease;
}

.contact-form-input::placeholder,
.contact-form-textarea::placeholder {
    color: var(--text-muted);
}

.contact-form-input:focus,
.contact-form-textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.contact-form-textarea {
    min-height: clamp(120px, 14vw, 160px);
    resize: vertical;
}

.contact-form-submit {
    width: 100%;
    font-size: clamp(0.85rem, 0.95vw, 0.95rem);
    padding: clamp(0.875rem, 1vw, 1rem) clamp(1.25rem, 1.5vw, 1.5rem);
    background: rgba(217, 38, 65, 0.2);
    border: 1px solid rgba(217, 38, 65, 0.5);
    border-radius: 8px;
    color: var(--text-light);
    font-family: var(--font-body);
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form-submit:hover {
    background: rgba(217, 38, 65, 0.3);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(217, 38, 65, 0.4);
}

.contact-form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== FORM TABS ===== */
.form-tabs {
    position: relative;
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
    gap: 0;
}

/* Sliding underline indicator */
.form-tabs::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50%;
    height: 2px;
    background-color: var(--accent-color);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(0);
}

.form-tabs.tab-2-active::after {
    transform: translateX(100%);
}

.form-tab-btn {
    flex: 1;
    padding: 0.7rem 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.25s ease;
}

.form-tab-btn:hover {
    color: var(--text-light);
}

.form-tab-btn.active {
    color: var(--text-light);
}

.form-tab-panel {
    display: none;
}

.form-tab-panel.active {
    display: block;
}

/* Telegram bot panel */
.tg-bot-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 0 0.5rem;
    text-align: center;
}

.tg-bot-description {
    color: var(--text-muted);
    line-height: 1.65;
    font-size: 0.9rem;
    max-width: 36rem;
}

.tg-bot-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.875rem 2rem;
    background: #1a8dc2;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.875rem;
    letter-spacing: 0.06em;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.tg-bot-btn:hover {
    background: #1679a8;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26, 141, 194, 0.35);
}

.tg-bot-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex-shrink: 0;
}

.tg-bot-note {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.9;
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    width: 100%;
}

.tg-bot-note strong {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

/* Social Networks (внутри #form) */
#form-social-block {
    background: transparent;
}

#social-contacts {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
    width: 100%;
    max-width: 22.5rem;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

.social-contact-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    width: 100%;
    min-height: 3.25rem;
    padding: 0.7rem 1.1rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
}

.social-contact-link img {
    flex-shrink: 0;
    width: clamp(28px, 4vw, 36px);
    height: clamp(28px, 4vw, 36px);
    object-fit: contain;
    filter: invert(70%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-contact-label {
    flex: 1;
    font-size: clamp(0.9rem, 1.2vw, 1.05rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    text-align: left;
}

.social-contact-link:hover {
    background: rgba(217, 38, 65, 0.15);
    transform: translateX(6px);
    box-shadow: 0 16px 48px rgba(217, 38, 65, 0.3);
    border-color: rgba(217, 38, 65, 0.8);
}

.social-contact-link:hover img {
    filter: invert(70%) brightness(1.4);
}

.social-contact-link:hover .social-contact-label {
    color: rgba(255, 255, 255, 0.95);
}

/* Адаптивные размеры для контактных ссылок на разных экранах */
@media (min-width: 769px) and (max-width: 1024px) {
    #contact-links a {
        padding: clamp(0.875rem, 1.8vw, 1.25rem) clamp(1.25rem, 2.5vw, 1.75rem);
        font-size: clamp(0.8rem, 1.3vw, 0.95rem);
    }
}

@media (min-width: 1025px) and (max-width: 1440px) {
    #contact-links a {
        padding: clamp(1rem, 1.5vw, 1.5rem) clamp(1.5rem, 2vw, 2rem);
        font-size: clamp(0.9rem, 1.1vw, 1rem);
    }
}

@media (min-width: 1441px) {
    #contact-links a {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

/* Адаптивное позиционирование Hero блока */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-content-wrapper {
        right: clamp(1.5rem, 20vw, 20vw) !important;
        max-width: clamp(350px, 55vw, 600px) !important;
    }
}

@media (min-width: 1025px) and (max-width: 1440px) {
    .hero-content-wrapper {
        right: clamp(2rem, 25vw, 25vw) !important;
        max-width: clamp(450px, 50vw, 650px) !important;
    }
}

@media (min-width: 1441px) {
    .hero-content-wrapper {
        right: 25vw !important;
        max-width: 672px !important;
    }
}

/* --- MOBILE STYLES --- */
@media (max-width: 768px) {
    /* Переупорядочиваем блоки: услуги -> фото -> форма -> отзывы -> контакты внизу */
    .relative.max-w-7xl.mx-auto {
        display: flex;
        flex-direction: column;
    }
    #hero-container { order: 1; }
    #services-container { order: 2; }
    #form { order: 3; }
    .site-footer { order: 4; }
    
    html, body {
        overflow-x: hidden;
        max-width: 100%;
        width: 100%;
    }
    
    body {
        padding: 1.5rem 2.5%;
    }

    /* --- HEADER MOBILE --- */
    header {
        margin-bottom: 3rem;
        position: relative;
    }
    
    .header-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-bottom: 0;
    }
    
    #logo-container {
        z-index: 100;
    }
    
    .header-logo {
        height: 54px !important;
        width: 105px !important;
        margin-bottom: 0.5rem;
        opacity: 0.5 !important;
    }
    
    .hero-logo {
        height: 30vw;
        max-height: 300px;
        min-height: 150px;
        opacity: 0.4;
    }
    
    /* Desktop navigation - hidden on mobile */
    .desktop-nav {
        display: none;
    }
    
    /* Mobile Menu Button (Burger) - скрыт */
    .mobile-menu-toggle {
        display: none !important;
        width: 44px;
        height: 44px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        z-index: 101;
        position: relative;
        transition: transform 0.3s ease;
    }
    
    .mobile-menu-toggle span {
        width: 100%;
        height: 2px;
        background-color: var(--text-light);
        border-radius: 2px;
        transition: all 0.3s ease;
        transform-origin: center;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }
    
    /* Mobile Navigation Menu */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        z-index: 99;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .mobile-nav-overlay.active {
        display: block;
        opacity: 1;
    }
    
    .mobile-nav {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        background: var(--bg-card);
        border-left: 1px solid var(--border-color);
        padding: 5rem 2rem 2rem;
        z-index: 100;
        transition: right 0.3s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
        overflow-y: auto;
    }
    
    .mobile-nav.active {
        right: 0;
    }
    
    .mobile-nav-link {
        display: block;
        padding: 1rem 0;
        font-size: 1.2rem;
        color: var(--text-light);
        text-decoration: none;
        border-bottom: 1px solid var(--border-color);
        transition: color 0.3s ease, padding-left 0.3s ease;
        -webkit-tap-highlight-color: rgba(217, 38, 65, 0.2);
    }
    
    .mobile-nav-link:active {
        background-color: rgba(217, 38, 65, 0.1);
        padding-left: 0.5rem;
    }
    
    .mobile-nav-link:last-child {
        border-bottom: none;
    }

    /* --- HERO MOBILE --- */
    section.relative.h-\[60vh\],
    section.relative.h-\[75vh\] {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 50vh;
        height: auto;
        padding: 2rem 0;
        margin-bottom: 2rem;
    }

    #hero-title {
        position: static !important;
        transform: none !important;
        order: 1;
        width: 100%;
        text-align: center;
        font-size: clamp(4rem, 20vw, 8rem);
        line-height: 0.9;
        margin: 0;
        margin-bottom: 1.5rem;
        color: rgba(0, 0, 0, 0.4) !important;
        padding: 0;
    }

    #hero-slogan {
        display: none !important; /* Скрываем слоган на мобильных */
    }
    
    .hero-content-wrapper {
        position: static !important;
        transform: none !important;
        order: 3;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        top: auto !important;
        right: auto !important;
    }
    
    .hero-content-wrapper > div {
        padding: 1.5rem;
        margin: 0 auto;
        max-width: 600px;
        background: rgba(255, 255, 255, 0.02) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 8px;
        box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    }
    
    #hero-desc {
        text-align: center;
        font-size: 0.95rem;
        line-height: 1.7;
        margin: 0;
    }
    
    .hero-content-wrapper .mt-8 {
        text-align: center;
        margin-top: 1.5rem;
    }
    
    .line-h {
        display: none !important;
    }

    .btn-primary {
        min-height: 44px;
        padding: 0.875rem 1.75rem;
        -webkit-tap-highlight-color: rgba(217, 38, 65, 0.2);
        border-radius: 8px;
    }

    /* Анимация для мобильных - изменение border и небольшое масштабирование */
    .btn-primary:active {
        transform: scale(0.96);
        border-color: var(--accent-color);
        box-shadow: 0 5px 20px 0 rgba(0, 0, 0, 0.3), 0 0 15px -5px rgba(var(--accent-color-rgb), 0.2);
        transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    }
    
    .btn-primary:not(:active) {
        transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    }

    /* --- SERVICES MOBILE --- */
    #services {
        padding: 2rem 0;
    }
    
    #services-title {
        text-align: center;
        font-size: 2.5rem;
        margin-bottom: 2rem;
        padding: 0;
    }

    #investigation-board {
        position: relative;
        display: flex;
        flex-direction: column;
        height: auto;
        gap: 2rem;
        padding: 0;
        align-items: center;
        width: 100%;
        max-width: 100%;
    }

    .service-card {
        position: relative;
        width: 100%;
        max-width: 100%;
        transform: none !important;
        opacity: 0;
        padding: 1.5rem;
        padding-bottom: 4.5rem;
        margin: 0 auto;
        border-radius: 8px;
        -webkit-tap-highlight-color: rgba(217, 38, 65, 0.1);
        box-sizing: border-box;
        z-index: 3;
        background: rgba(255, 255, 255, 0.02);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    }
    
    .service-card.mobile-visible {
        opacity: 1;
    }
    
    .service-card:active {
        transform: translateY(-2px) scale(0.98) !important;
        box-shadow: 0 5px 15px -5px var(--accent-color-shadow);
    }
    
    /* SVG для мобильных - показываем и позиционируем */
    #board-svg {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: 1;
    }

    .service-card-icon {
        position: absolute !important;
        top: auto !important;
        bottom: 1.25rem !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        right: auto !important;
        width: 40px !important;
        height: 40px !important;
        z-index: 4;
    }
    
    /* Убираем отступы для контента карточки на мобильных */
    .service-card > .relative {
        padding-right: 0 !important;
        padding-left: 0 !important;
        text-align: center;
    }
    
    /* Стили для мобильных путей между иконками */
    .service-path.mobile-path {
        stroke-width: 2px;
        stroke-opacity: 0.6;
        transition: stroke-opacity 0.3s ease;
    }
    
    /* Центрируем текст в карточках на мобильных */
    .service-card h3 {
        text-align: center;
    }
    
    .service-card p {
        text-align: center;
    }

    /* --- CONTACTS MOBILE --- */
    #hero {
        padding: 2rem 0 !important;
        position: relative;
        min-height: auto;
        overflow: visible;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    
    /* Блок с заголовком скрыт — слоган перенесён над фотографию */
    #hero > div.relative:first-child {
        display: none !important;
    }
    
    /* Скрываем новую колонку отзывов на мобильных */
    #reviews-column {
        display: none !important;
    }
    
    /* Первый div с заголовком */
    #hero > .relative:first-child {
        padding: 0 !important;
        margin: 0 0 2rem 0 !important;
        width: 100%;
    }
    
    /* Слоган перенесён над фотографию (в contacts-slogan-mobile), скрываем дубликат */
    #hero-title {
        display: none !important;
    }
    
    /* Mobile: форма в hero (мобильная версия), desktop-форма в hero скрыта */
    #hero-form-container {
        display: none !important;
    }
    #hero-form-mobile-wrapper {
        display: block !important;
    }

    /* FORM SECTION — мобильная версия */
    #form.form-section {
        padding: 2rem 0 1.25rem;
    }
    #form .form-section-inner {
        padding: 0;
        max-width: 100%;
    }
    #form .form-intro {
        margin-bottom: 1.5rem;
        padding: 0;
    }
    #form .form-intro p {
        font-size: 0.9375rem;
        line-height: 1.6;
    }
    #form .form-social-block {
        margin-top: 2rem;
        padding-top: 2rem;
    }
    #form .form-social-block #social-networks-title {
        margin-bottom: 1.125rem;
    }

    /* Hero на мобильных: показываем hero-mobile (вверху), скрываем desktop hero */
    #hero-container > section#hero {
        display: none !important;
    }
    #hero-mobile {
        display: block !important;
        padding: 0 0 2rem 0;
        position: relative;
        min-height: auto;
        overflow: visible;
        margin-top: 0;
    }
    
    /* Заголовок «Доверие — наш главный актив» в hero-mobile */
    #hero-title-mobile {
        display: block !important;
    }
    
    /* Показываем карточки отзывов в новой секции */
    #hero-mobile #client-list-mobile {
        display: block !important;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
    
    /* Контейнер для фотографии — position relative для overlay слогана */
    #photo-container-mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-top: 2rem;
        order: 1;
        position: relative;
    }
    
    /* Цитата — overlay слева от фото (mobile) */
    .contacts-slogan-mobile {
        position: absolute;
        left: 0;
        top: 12%;
        font-size: 1.3rem;
        font-weight: 400;
        color: rgba(255, 255, 255, 0.52);
        line-height: 1.3;
        max-width: 38%;
        z-index: 5;
        pointer-events: none;
    }
    
    /* Порядок: slogan (1) -> фото (2) -> desc (3) -> button (4) -> отзывы (5) */
    .hero-mobile-inner {
        display: flex;
        flex-direction: column;
    }
    #hero-title-mobile {
        order: 1;
    }
    #photo-container-mobile {
        order: 2;
    }
    #contacts-desc-mobile {
        order: 3;
        width: 100%;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
    #hero-contact-btn-mobile {
        order: 4;
    }
    /* Форма в hero на мобильных */
    #hero-form-mobile-wrapper {
        width: 100%;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
    .contact-form-mobile-inline.contact-form-inline-main {
        padding: 1.25rem;
        gap: 0.875rem;
        position: relative;
    }
    #client-list-mobile {
        order: 5;
    }

    /* Второй div - контейнер для фотографии агентства и контактов - скрываем на мобильных */
    #hero > .absolute {
        display: none !important;
    }
    
    /* Форма обратной связи - скрываем на мобильных */
    #contact-links {
        display: none !important;
    }

    /* Скрываем оригинальную подпись на мобильных (она дублируется) */
    #hero > .absolute > div.relative {
        display: none !important;
    }
    
    #hero > .absolute > div.relative > div:last-child {
        display: none !important;
    }
    
    #signature-name,
    #signature-title {
        display: none !important;
    }
    
    /* Контейнер для фотографии, подписи и контактов - по центру */
    #contacts-photo-wrapper {
        order: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        gap: 0;
    }
    
    /* Обертка для фотографии с overlay-подписью */
    #contacts-photo-wrapper > .photo-with-overlay,
    .photo-with-overlay {
        position: relative;
        width: 90%;
        max-width: 500px;
        margin: 0 auto 1.5rem auto;
        display: block;
    }
    
    /* Фотография главы агентства - по центру на mobile */
    #hero > .absolute > img.agency-head-image,
    #contacts-photo-wrapper > img.agency-head-image,
    #contacts-photo-wrapper > .photo-with-overlay > img.agency-head-image {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        max-height: 450px;
        margin: 0 0 0 35px !important;
        padding: 0 !important;
        display: block !important;
        object-fit: contain;
        /* Градиентная маска - уменьшенный эффект на 50% для mobile */
        /* Десктопная: transparent 5%, black 40% */
        /* Мобильная: transparent 15%, black 30% - уменьшено на 50% */
        -webkit-mask-image: linear-gradient(to top, transparent 15%, black 30%), linear-gradient(to left, transparent 15%, black 30%);
        -webkit-mask-composite: source-in !important;
        mask-image: linear-gradient(to top, transparent 15%, black 30%), linear-gradient(to left, transparent 15%, black 30%);
        mask-composite: intersect !important;
    }
    
    /* Мобильная подпись - overlay поверх фотографии снизу */
    #contacts-mobile-signature {
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        display: flex !important;
        flex-direction: column;
        align-items: center;
        text-align: center !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        padding: 1rem !important;
        margin: 0 !important;
        background: transparent !important;
        z-index: 10;
        box-sizing: border-box;
    }
    
    #contacts-mobile-signature p:first-child {
        font-size: 1.5rem !important;
        font-weight: 600 !important;
        margin-bottom: 0.25rem !important;
        color: var(--text-light);
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
        white-space: nowrap !important;
        width: auto !important;
        max-width: 100% !important;
        overflow: visible !important;
    }
    
    #contacts-mobile-signature p {
        text-align: center !important;
        width: auto !important;
        max-width: 100% !important;
        margin: 0;
        padding: 0 !important;
    }
    
    #contacts-mobile-signature p:last-child {
        font-size: 0.9rem !important;
        color: var(--text-muted);
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
    }
    
    #contacts-mobile-signature p {
        text-align: center !important;
        width: 100%;
        margin: 0;
        padding: 0 !important;
    }
    
    .client-card {
        width: 100%;
        max-width: 100%;
        position: static;
        height: auto;
        padding: 1rem;
        margin: 0;
        margin-bottom: 1rem;
        -webkit-tap-highlight-color: rgba(217, 38, 65, 0.1);
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
    }
    
    .client-card:active {
        transform: scale(0.98);
    }

    .client-card .client-card-text {
        display: block;
    }

    .client-card img {
        width: 3rem;
        height: 3rem;
        flex-shrink: 0;
    }
    
    .client-card-click-icon {
        display: none;
    }
    
    #client-list {
        width: 100%;
        max-width: 100%;
    }

    /* --- MODALS MOBILE --- */
    .modal-overlay {
        padding: 0.75rem;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        left: 0;
        right: 0;
    }
    
    .modal-content {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        max-height: calc(100vh - 1.5rem);
        margin: 0;
        transform: scale(1);
        border-radius: 12px;
        display: flex;
        flex-direction: column;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-sizing: border-box;
        overflow: hidden;
        position: relative;
        background: rgba(255, 255, 255, 0.02) !important;
        box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
        isolation: isolate;
    }
    
    .modal-content::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.02);
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        z-index: 0;
        border-radius: 12px;
        pointer-events: none;
        will-change: backdrop-filter;
    }
    
    .modal-header,
    .modal-body {
        position: relative;
        z-index: 1;
        isolation: isolate;
        transform: translateZ(0);
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    .modal-header {
        padding: 0.875rem 0.75rem;
        position: sticky;
        top: 0;
        background: transparent;
        z-index: 2;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        flex-shrink: 0;
        border-radius: 12px 12px 0 0;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
    }
    
    .modal-title {
        font-size: 1.1rem;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
        padding-right: 0.5rem;
    }
    
    .modal-close-btn {
        font-size: 1.75rem;
        padding: 0.25rem;
        min-width: 32px;
        min-height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        -webkit-tap-highlight-color: rgba(217, 38, 65, 0.2);
        flex-shrink: 0;
    }
    
    .modal-close-btn:active {
        transform: rotate(90deg) scale(0.95);
    }
    
    .modal-body {
        padding: 0.875rem 0.75rem 1rem;
        font-size: 0.9rem;
        line-height: 1.6;
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        min-height: 0;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
    }
    
    /* Форма на мобильных - переопределяем Tailwind классы */
    #contact-form.flex.flex-col.gap-6 {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.875rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    #contact-form > div {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.375rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    #contact-form label.block {
        display: block !important;
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.25rem !important;
        width: 100% !important;
        max-width: 100% !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        box-sizing: border-box !important;
    }
    
    .form-input, 
    .form-textarea,
    .form-select {
        padding: 0.625rem 0.75rem !important;
        font-size: 0.875rem !important;
        border-radius: 4px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        border: 1px solid var(--border-color) !important;
    }
    
    .form-textarea {
        min-height: 90px !important;
        max-height: 150px !important;
        resize: vertical !important;
    }
    
    .form-input:focus, 
    .form-textarea:focus,
    .form-select:focus {
        box-shadow: 0 0 6px -2px var(--accent-color) !important;
        outline: none !important;
    }
    
    /* Кнопка отправки формы */
    #contact-submit-btn {
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 0.25rem !important;
        padding: 0.75rem 1rem !important;
        box-sizing: border-box !important;
    }
    
    #contact-form .text-right {
        text-align: center !important;
        margin-top: 0.25rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    #contact-form .text-right .btn-primary {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .service-accordion-header {
        padding: 0.75rem 0;
        font-size: 0.95rem;
        -webkit-tap-highlight-color: rgba(217, 38, 65, 0.1);
    }
    
    .service-accordion-header:active {
        color: var(--accent-color-light);
    }
    
    .service-accordion-content p {
        font-size: 0.85rem;
        padding-bottom: 0.75rem;
        line-height: 1.6;
    }
    
    .service-accordion-item.open .service-accordion-content {
        max-height: 300px;
    }
    
    /* Сообщение об успехе */
    .form-success-message {
        padding: 2rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .form-success-message h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    
    /* --- SOCIAL CONTACTS MOBILE --- */
    #social-contacts {
        max-width: 100%;
        padding: 0 0.5rem;
    }
    
    .social-contact-link {
        min-height: 56px;
        padding: 0.65rem 1rem;
        border-radius: 14px;
    }
    
    .social-contact-link img {
        width: 28px;
        height: 28px;
    }
    
    .social-contact-label {
        font-size: 0.9rem;
    }
    
    .social-contact-link:active {
        transform: scale(0.98);
        background: rgba(217, 38, 65, 0.2);
        border-color: rgba(217, 38, 65, 0.9);
    }
    
    /* --- DECORATIVE ELEMENTS MOBILE --- */
    .line-v, 
    .line-h, 
    #leak-effect-canvas {
        display: none;
    }
    
    /* --- TOUCH OPTIMIZATIONS --- */
    * {
        -webkit-tap-highlight-color: rgba(217, 38, 65, 0.1);
    }
    
    a, button {
        touch-action: manipulation;
    }
    
    /* --- SCROLLBAR MOBILE --- */
    ::-webkit-scrollbar {
        width: 4px;
    }
}

/* --- Footer & legal --- */
.site-footer {
    margin-top: 1.5rem;
    padding: 1.75rem 0 1.25rem;
    border-top: 1px solid var(--border-color);
}
.site-footer-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
    padding-inline: 1rem;
}
.site-footer-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.75rem 2.5rem;
    align-items: start;
    width: 100%;
}
.site-footer-col-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    min-width: 0;
}
.site-footer-copy-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
}
.site-footer-copy-line {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
    opacity: 0.9;
    letter-spacing: 0.04em;
    line-height: 1.5;
    text-align: left;
}
.site-footer-copy-line .site-footer-link {
    letter-spacing: 0.04em;
}
.site-footer-copy-age {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
    opacity: 0.9;
    letter-spacing: 0.04em;
    line-height: 1.45;
}
.site-footer-copy-age .age-inline {
    vertical-align: 0.05em;
}
.site-footer-nav {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0.55rem 1.25rem;
    width: 100%;
    max-width: 20rem;
    text-align: left;
}
.site-footer-requisites {
    min-width: 0;
}
.site-footer-link {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 0.02em;
    line-height: 1.4;
    transition: color 0.2s ease;
}
.site-footer-link:hover {
    color: var(--accent-color-light);
}

#footer-requisites {
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
}
.site-footer-requisites-inner {
    margin: 0 0 0 auto;
    max-width: 22rem;
    text-align: right;
    overflow-wrap: anywhere;
}
.site-footer-req-line {
    font-size: 0.875rem;
    line-height: 1.45;
    letter-spacing: 0.02em;
    color: var(--text-muted);
    margin: 0 0 0.35rem;
}
.site-footer-req-line:last-child {
    margin-bottom: 0;
}
.site-footer-req-name {
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.45rem;
}
.site-footer-req-mail {
    font-size: inherit;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 0.02em;
    line-height: 1.4;
    transition: color 0.2s ease;
    border-bottom: none;
}
.site-footer-req-mail:hover {
    color: var(--accent-color-light);
}

@media (max-width: 640px) {
    .site-footer-inner {
        padding-inline: 0.75rem;
    }
    .site-footer-main {
        grid-template-columns: 1fr;
        gap: 1.35rem;
    }
    .site-footer-nav {
        max-width: none;
        align-items: flex-start;
        text-align: left;
    }
    .site-footer-requisites-inner {
        margin: 0;
        max-width: none;
        text-align: left;
    }
}

.legal-page-body {
    min-height: 100vh;
    background-color: var(--bg-dark);
    color: var(--text-light);
    margin: 0;
    padding: 2rem 1.25rem 4rem;
}
.legal-page-inner {
    max-width: 42rem;
    margin: 0 auto;
}
.legal-back-link {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 2rem;
    transition: color 0.2s ease;
}
.legal-back-link:hover {
    color: var(--accent-color-light);
}
.legal-doc {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-light);
}
.legal-doc h1 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.75rem;
    margin: 0 0 0.5rem;
    color: var(--text-light);
    line-height: 1.25;
}
.legal-doc-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0 0 2rem;
}
.legal-doc h2 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.15rem;
    margin: 2rem 0 0.75rem;
    color: rgba(240, 240, 240, 0.95);
}
.legal-doc p {
    margin: 0 0 1rem;
    color: var(--text-muted);
}
.legal-doc a {
    color: var(--accent-color-light);
    text-decoration: none;
    border-bottom: 1px solid rgba(237, 78, 86, 0.35);
    transition: border-color 0.2s, color 0.2s;
}
.legal-doc a:hover {
    color: var(--text-light);
    border-bottom-color: var(--accent-color);
}
.legal-doc-list {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
    color: var(--text-muted);
}
.legal-doc-list li {
    margin-bottom: 0.5rem;
}

/* --- PD consent checkbox (forms) --- */
.form-consent-block {
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
}
.form-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    cursor: pointer;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-muted);
    user-select: none;
}
.form-consent-checkbox {
    margin-top: 0.2rem;
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    accent-color: var(--accent-color);
    cursor: pointer;
}
.form-consent-text .form-consent-link,
.form-consent-label .form-consent-link {
    color: var(--accent-color-light);
    text-decoration: none;
    border-bottom: 1px solid rgba(237, 78, 86, 0.4);
}
.form-consent-label .form-consent-link:hover {
    color: var(--text-light);
    border-bottom-color: var(--accent-color);
}
#contact-form .btn-primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

/* --- Cookie banner --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0));
    display: flex;
    justify-content: center;
    pointer-events: none;
}
.cookie-banner[hidden] {
    display: none !important;
}
.cookie-banner-panel {
    pointer-events: auto;
    max-width: 40rem;
    width: 100%;
    background: rgba(26, 26, 26, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1rem 1.25rem 1.25rem;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
}
.cookie-banner-text {
    font-size: 0.8rem;
    line-height: 1.55;
    color: var(--text-muted);
    margin: 0 0 1rem;
}
.cookie-banner-text a {
    color: var(--accent-color-light);
    text-decoration: none;
    border-bottom: 1px solid rgba(237, 78, 86, 0.4);
}
.cookie-banner-text a:hover {
    color: var(--text-light);
}
.cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
}
.cookie-banner-btn {
    font-size: 0.85rem;
    padding: 0.5rem 1.25rem;
    min-height: auto;
}


