/* ========================================
   ESKIZZ - ТЕМА ДЛЯ GHOST CMS
   По макету с цветовой схемой
   ======================================== */

/* === VARIABLES - Цветовая палитра по ТЗ === */
:root {
    /* Основные цвета по ТЗ */
    --color-primary: #d3b994;           /* Primary Accent (CTA / Важные кнопки) - Беж */
    --color-secondary: #4dc1cb;         /* Secondary Brand (Footer / Elements) - Бирюза */
    --color-highlight: #EDCEA9;         /* Highlight / Backgrounds (Фон блоков) */
    --color-icon: #FECB03;              /* Icon / Attention (Иконки / Детали) */
    --color-gray: #E6E6E6;              /* Base Gray (Фон секций / Границы) */
    --color-text: #2D3748;              /* Базовый текст */
    --color-white: #FFFFFF;             /* Базовый белый */
    
    /* Hover состояния */
    --color-primary-dark: #c0a072;      /* Беж темнее для hover */
    --color-secondary-dark: #3ba6af;    /* Бирюза темнее для hover */
    
    /* Типографика */
    --font-heading: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Размеры шрифтов */
    --text-xs: clamp(0.75rem, 1.5vw, 0.875rem);
    --text-sm: clamp(0.875rem, 1.75vw, 1rem);
    --text-base: clamp(1rem, 2vw, 1.125rem);
    --text-lg: clamp(1.125rem, 2.25vw, 1.25rem);
    --text-xl: clamp(1.25rem, 2.5vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 3vw, 2rem);
    --text-3xl: clamp(1.875rem, 3.75vw, 2.5rem);
    --text-4xl: clamp(2.25rem, 4.5vw, 3.5rem);
    
    /* Spacing */
    --spacing-xs: clamp(0.5rem, 1vw, 0.75rem);
    --spacing-sm: clamp(0.75rem, 1.5vw, 1rem);
    --spacing-md: clamp(1rem, 2vw, 1.5rem);
    --spacing-lg: clamp(1.5rem, 3vw, 2.5rem);
    --spacing-xl: clamp(2rem, 4vw, 4rem);
    --spacing-xxl: clamp(3rem, 6vw, 6rem);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --radius-pill: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 24px rgba(0, 0, 0, 0.12);
    
    /* Transitions */
    --transition: all 0.3s ease;
    
    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1010;
    --z-fixed: 1020;
    --z-modal: 1030;
}

/* === RESET & BASE === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p {
    margin-bottom: var(--spacing-sm);
    line-height: 1.7;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary-dark);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

ul, ol {
    list-style: none;
}

/* === LAYOUT === */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--spacing-lg);
    }
}

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
}

/* === BUTTONS - FlowButton Style === */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.875rem 2rem;
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    border: 1.5px solid rgba(51, 51, 51, 0.4);
    border-radius: 100px;
    background-color: transparent;
    cursor: pointer;
    overflow: hidden;
    text-decoration: none;
    white-space: nowrap;
    transition: all 600ms cubic-bezier(0.23, 1, 0.32, 1);
}

.btn:hover {
    border-color: transparent;
    border-radius: 12px;
}

.btn:active {
    transform: scale(0.95);
}

/* Button Text */
.btn-text {
    position: relative;
    z-index: 1;
    transform: translateX(-0.75rem);
    transition: all 800ms ease-out;
}

.btn:hover .btn-text {
    transform: translateX(0.75rem);
}

/* Left Arrow */
.btn::before {
    content: '';
    position: absolute;
    left: -25%;
    width: 1rem;
    height: 1rem;
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23111111" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cline x1="5" y1="12" x2="19" y2="12"%3E%3C/line%3E%3Cpolyline points="12 5 19 12 12 19"%3E%3C/polyline%3E%3C/svg%3E');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 9;
    transition: all 800ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn:hover::before {
    left: 1rem;
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cline x1="5" y1="12" x2="19" y2="12"%3E%3C/line%3E%3Cpolyline points="12 5 19 12 12 19"%3E%3C/polyline%3E%3C/svg%3E');
}

/* Right Arrow */
.btn::after {
    content: '';
    position: absolute;
    right: 1rem;
    width: 1rem;
    height: 1rem;
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23111111" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cline x1="5" y1="12" x2="19" y2="12"%3E%3C/line%3E%3Cpolyline points="12 5 19 12 12 19"%3E%3C/polyline%3E%3C/svg%3E');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 9;
    transition: all 800ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn:hover::after {
    right: -25%;
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cline x1="5" y1="12" x2="19" y2="12"%3E%3C/line%3E%3Cpolyline points="12 5 19 12 12 19"%3E%3C/polyline%3E%3C/svg%3E');
}

/* Expanding Circle Effect */
.btn-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1rem;
    height: 1rem;
    background-color: #111111;
    border-radius: 50%;
    opacity: 0;
    transition: all 800ms cubic-bezier(0.19, 1, 0.22, 1);
    pointer-events: none;
}

.btn:hover .btn-circle {
    width: 220px;
    height: 220px;
    opacity: 1;
}

/* Primary Button - Беж CTA */
.btn-primary {
    color: #111111;
    border-color: rgba(211, 185, 148, 0.6);
}

.btn-primary .btn-circle {
    background-color: var(--color-primary);
}

.btn-primary:hover {
    color: var(--color-white);
}

/* Secondary Button - Бирюза */
.btn-secondary {
    color: #111111;
    border-color: rgba(77, 193, 203, 0.6);
}

.btn-secondary .btn-circle {
    background-color: var(--color-secondary);
}

.btn-secondary:hover {
    color: var(--color-white);
}

/* Outline Button */
.btn-outline {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline .btn-circle {
    background-color: var(--color-primary);
}

.btn-outline:hover {
    color: var(--color-white);
}

/* Button Sizes */
.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.btn-block .btn-text {
    transform: translateX(0);
}

.btn-block:hover .btn-text {
    transform: translateX(0.25rem);
}

/* Header Button - Заполненная кнопка для visibility */
.btn-header {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
    padding: 0.75rem 2rem;
}

.btn-header::before {
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cline x1="5" y1="12" x2="19" y2="12"%3E%3C/line%3E%3Cpolyline points="12 5 19 12 12 19"%3E%3C/polyline%3E%3C/svg%3E');
}

.btn-header::after {
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cline x1="5" y1="12" x2="19" y2="12"%3E%3C/line%3E%3Cpolyline points="12 5 19 12 12 19"%3E%3C/polyline%3E%3C/svg%3E');
}

.btn-header .btn-circle {
    background-color: var(--color-primary-dark);
}

.btn-header:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

/* === TOP BAR - Бирюза #4dc1cb === */
.top-bar {
    background-color: var(--color-secondary);
    padding: 0.5rem 0;
    font-size: var(--text-sm);
}

@media (max-width: 767px) {
    .top-bar {
        display: none;
    }
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-message {
    color: var(--color-white);
    font-weight: 500;
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.top-bar-link {
    color: var(--color-white);
    font-weight: 500;
    transition: var(--transition);
}

.top-bar-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

.top-bar-divider {
    color: rgba(255, 255, 255, 0.5);
}

/* === HEADER - Белый === */
.site-header {
    background-color: var(--color-white);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    gap: var(--spacing-md);
    height: 72px;
}

@media (max-width: 768px) {
    .header-wrapper {
        height: 64px;
        padding: 0 1rem;
    }
}

/* Logo */
.header-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    min-width: 120px;
}

.header-logo .logo-text {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.header-logo .logo-image {
    height: 60px;
    width: auto;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

@media (max-width: 768px) {
    .header-logo .logo-image {
        height: 48px;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.75rem;
    z-index: var(--z-dropdown);
    min-width: 44px;
    min-height: 44px;
}

@media (max-width: 1023px) {
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 28px;
}

.hamburger-icon span {
    display: block;
    height: 3px;
    background-color: var(--color-text);
    border-radius: 3px;
    transition: var(--transition);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-icon span:first-child {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-icon span:last-child {
    transform: translateY(-7px) rotate(-45deg);
}

/* Desktop Navigation */
.header-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

@media (max-width: 1023px) {
    .header-nav {
        display: none;
    }
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: var(--color-text);
    font-weight: 500;
    font-size: var(--text-base);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--color-primary);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

@media (max-width: 1023px) {
    .header-actions {
        display: none;
    }
}

/* === MOBILE MENU === */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(180deg, #FFFFFF 0%, #F9FAFB 100%);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (min-width: 1024px) {
    .mobile-menu {
        display: none;
    }
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: var(--spacing-xl) var(--spacing-lg);
    padding-top: 5rem;
    padding-bottom: max(var(--spacing-xl), env(safe-area-inset-bottom, 1.5rem));
}

.mobile-nav-menu {
    padding: 0;
    margin: 0;
    flex: 1;
}

.mobile-nav-menu li {
    border-bottom: 1px solid #E5E7EB;
}

.mobile-nav-menu li:last-child {
    border-bottom: none;
}

.mobile-nav-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0.5rem;
    color: var(--color-text);
    font-size: 1.0625rem;
    font-weight: 600;
    font-family: var(--font-heading);
    line-height: 1.4;
    min-height: 60px;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-nav-menu a::after {
    content: '→';
    font-size: 1.25rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: var(--color-secondary);
}

.mobile-nav-menu a:hover {
    color: var(--color-secondary);
    padding-left: 1rem;
    background: linear-gradient(90deg, rgba(77, 193, 203, 0.05) 0%, transparent 100%);
}

.mobile-nav-menu a:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.mobile-menu-cta {
    margin-top: var(--spacing-xl);
    padding: 0 0.5rem;
}

.mobile-menu-footer {
    margin-top: auto;
    padding-top: var(--spacing-xl);
    text-align: center;
    border-top: 2px solid #E5E7EB;
}

.mobile-menu-auth {
    margin-top: 0;
    text-align: center;
    font-size: 1.0625rem;
    padding: 1.5rem 0;
    background: linear-gradient(135deg, rgba(77, 193, 203, 0.08) 0%, rgba(211, 185, 148, 0.08) 100%);
    border-radius: 12px;
    margin: 1rem 0.5rem;
}

.mobile-menu-auth a {
    color: var(--color-secondary);
    font-weight: 700;
    font-size: 1.0625rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-menu-auth a::before {
    content: '👤';
    margin-right: 0.375rem;
    font-size: 1rem;
}

.mobile-menu-auth a:hover {
    color: var(--color-primary);
    transform: scale(1.05);
}

.mobile-menu-auth span {
    color: var(--color-text);
    margin: 0 1rem;
    font-weight: 400;
    opacity: 0.5;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: calc(var(--z-fixed) - 1);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Кнопка закрытия мобильного меню */
.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    color: var(--color-text);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: color 0.3s ease;
}

.mobile-menu-close:hover {
    color: var(--color-primary);
}

.advantage-item-hero h3 {
    font-size: var(--text-sm);
    font-weight: 500;
    line-height: 1.5;
    color: var(--color-text);
    margin: 0;
}

/* === HERO BANNER SECTION === */
.hero-banner {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    background-image: url('../images/hero-banner.jpg?v=20260110-2230');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero-banner {
        min-height: 400px;
        background-image: url('../images/hero-banner-mobile.jpg?v=20260110-2230');
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: var(--spacing-xxl) 0;
    text-align: center;
}

.hero-text {
    max-width: 600px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-text);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
}

/* === PATTERN SECTION - Обёртка с паттерном === */
.pattern-section {
    position: relative;
    background-color: var(--color-white);
    background-image: url('../images/services-pattern.svg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: var(--spacing-lg) 0;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* === SERVICES SECTION - 2 Карточки === */
.services-section {
    padding: var(--spacing-md) 0 var(--spacing-xl) 0;
    position: relative;
    z-index: 1;
}

.services-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .services-wrapper {
        grid-template-columns: 1fr;
    }
}

.service-item {
    background: #E9ECEF;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    min-height: 220px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.3) 100%);
    pointer-events: none;
}

.service-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.service-item h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 1;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.btn-service {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    font-size: 0.9375rem;
    border: 1.5px solid var(--color-secondary);
    border-radius: 100px;
    background-color: var(--color-secondary);
    color: var(--color-white);
    cursor: pointer;
    overflow: hidden;
    text-decoration: none;
    transition: all 600ms cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1;
}

.btn-service:hover {
    border-color: var(--color-secondary-dark);
    background-color: var(--color-secondary-dark);
    border-radius: 12px;
    color: var(--color-white);
}

.btn-service:active {
    transform: scale(0.95);
}

/* Button Text */
.btn-service .btn-text {
    position: relative;
    z-index: 1;
    transform: translateX(-0.75rem);
    transition: all 800ms ease-out;
}

.btn-service:hover .btn-text {
    transform: translateX(0.75rem);
}

/* Left Arrow */
.btn-service::before {
    content: '';
    position: absolute;
    left: -25%;
    width: 1rem;
    height: 1rem;
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cline x1="5" y1="12" x2="19" y2="12"%3E%3C/line%3E%3Cpolyline points="12 5 19 12 12 19"%3E%3C/polyline%3E%3C/svg%3E');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 9;
    transition: all 800ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-service:hover::before {
    left: 1rem;
}

/* Right Arrow */
.btn-service::after {
    content: '';
    position: absolute;
    right: 1rem;
    width: 1rem;
    height: 1rem;
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cline x1="5" y1="12" x2="19" y2="12"%3E%3C/line%3E%3Cpolyline points="12 5 19 12 12 19"%3E%3C/polyline%3E%3C/svg%3E');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 9;
    transition: all 800ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-service:hover::after {
    right: -25%;
}

/* Expanding Circle */
.btn-service .btn-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1rem;
    height: 1rem;
    background-color: var(--color-secondary-dark);
    border-radius: 50%;
    opacity: 0;
    transition: all 800ms cubic-bezier(0.19, 1, 0.22, 1);
    pointer-events: none;
}

.btn-service:hover .btn-circle {
    width: 220px;
    height: 220px;
    opacity: 1;
}
    height: 1rem;
    background-color: var(--color-secondary);
    border-radius: 50%;
    opacity: 0;
    transition: all 800ms cubic-bezier(0.19, 1, 0.22, 1);
    pointer-events: none;
}

.btn-service:hover .btn-circle {
    width: 220px;
    height: 220px;
    opacity: 1;
}

/* === ABOUT SECTION - О нас со слайдером === */
.about-section {
    padding: var(--spacing-lg) 0 var(--spacing-xl) 0;
    position: relative;
    z-index: 1;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

@media (max-width: 992px) {
    .about-wrapper {
        grid-template-columns: 1fr;
    }
    
    .about-slider {
        display: none;
    }
    
    .about-content {
        width: 100%;
        max-width: 100%;
        padding: var(--spacing-lg) var(--spacing-md);
    }
}

.about-slider {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: var(--color-gray);
    min-height: 350px;
    cursor: grab;
    user-select: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.about-slider:active {
    cursor: grabbing;
}

.slider-track {
    position: relative;
    width: 100%;
    height: 350px;
}

.slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.slider-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slider-slide img {
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    box-sizing: border-box;
}

/* Точки навигации */
.slider-dots {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.slider-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.slider-dot.active {
    background-color: var(--color-icon);
    transform: scale(1.2);
}

/* Слайдер стрелки - жёлтые */
.slider-nav {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.slider-arrow {
    width: 36px;
    height: 36px;
    background-color: var(--color-icon);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.slider-arrow svg {
    width: 18px;
    height: 18px;
    stroke: var(--color-text);
    stroke-width: 2.5;
}

.slider-arrow:hover {
    background-color: #E5B703;
    transform: scale(1.05);
}

.about-content {
    padding: var(--spacing-md);
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
}

/* Контентные слайды */
.about-content-slide {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    width: 100%;
    max-width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease, transform 0.6s ease;
    padding: var(--spacing-md);
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.about-content-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%);
}

@media (max-width: 992px) {
    .about-content {
        min-height: 380px;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: var(--spacing-md) 0;
        background: none;
    }
    
    .about-content {
        min-height: auto;
        padding: 0;
        overflow-x: hidden;
        display: block;
    }
    
    .about-content-slide {
        position: relative;
        top: auto;
        transform: none;
        padding: var(--spacing-lg) 0;
        max-width: 100%;
        overflow-x: hidden;
        display: none;
    }
    
    .about-content-slide.active {
        transform: none;
        display: block;
    }
}

/* Желтый лейбл */
.about-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #2D3748;
    background-color: var(--color-icon);
    padding: 0.375rem 0.875rem;
    border-radius: 4px;
    letter-spacing: 1.5px;
    margin-bottom: var(--spacing-md);
    min-width: 200px;
    text-align: center;
}

@media (max-width: 768px) {
    .about-label {
        font-size: 0.625rem;
        padding: 0.25rem 0.625rem;
        margin-bottom: var(--spacing-sm);
        min-width: auto;
        display: inline-block;
        letter-spacing: 1px;
    }
}

.about-content-slide h2 {
    color: #2D3748;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

@media (max-width: 768px) {
    .about-content-slide h2 {
        font-size: 1.5rem;
        margin-bottom: var(--spacing-md);
        line-height: 1.3;
        color: var(--color-text);
    }
}

.about-content-slide p {
    color: #4A5568;
    font-size: var(--text-base);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

@media (max-width: 768px) {
    .about-content-slide p {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: var(--spacing-md);
        color: #4A5568;
    }
}

/* Маркеры списка - жёлтые */
.about-list {
    padding: 0;
    margin: 0;
    max-width: 100%;
    overflow-x: hidden;
}

.about-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 1rem;
    color: #4A5568;
    line-height: 1.6;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

@media (max-width: 768px) {
    .about-list li {
        padding-left: 1.5rem;
        margin-bottom: 0.875rem;
        font-size: 1rem;
        line-height: 1.6;
    }
}

.about-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 10px;
    height: 10px;
    background-color: var(--color-icon);
    border-radius: 50%;
}

@media (max-width: 768px) {
    .about-list li::before {
        width: 8px;
        height: 8px;
        top: 0.35rem;
    }
}

.about-list li strong {
    color: #2D3748;
}

/* === BOTTOM PATTERN SECTION - Обёртка с паттерном (диван) === */
.bottom-pattern-section {
    position: relative;
    width: 100%;
    overflow-x: hidden;
    max-width: 100%;
    background-color: var(--color-white);
    background-image: url('../images/bottom-pattern.svg');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
}

/* === INFOGRAPHIC SECTION - Инфографика с пиктограммами === */
.infographic-section {
    padding: var(--spacing-xxl) 0;
    background-color: var(--color-gray);
    position: relative;
    z-index: 1;
}

.infographic-title {
    text-align: center;
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--spacing-xl);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.infographic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--spacing-lg);
}

@media (max-width: 768px) {
    .infographic-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .infographic-grid {
        grid-template-columns: 1fr;
    }
}

.infographic-item {
    text-align: center;
    padding: var(--spacing-lg);
}

.infographic-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-white);
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.infographic-icon svg {
    width: 40px;
    height: 40px;
    color: var(--color-primary);
}

.infographic-item:nth-child(even) .infographic-icon svg {
    color: var(--color-icon);
}

.infographic-item:hover .infographic-icon {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.infographic-item h4 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
}

/* === PRICING SECTION - Тарифы === */
.pricing-section {
    padding: var(--spacing-xxl) 0;
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--spacing-xl);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

.pricing-card {
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

/* Боковые карточки - серые */
.pricing-blue,
.pricing-green {
    background-color: #E9ECEF;
}

/* Центральная карточка - белая с жёлтой границей */
.pricing-white {
    background-color: #FFFFFF;
    border: 3px solid var(--color-icon);
    position: relative;
}

.pricing-white::before {
    content: 'Популярный';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-icon);
    color: var(--color-text);
    padding: 0.25rem 1rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.pricing-card h3 {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.pricing-price {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-lg);
    white-space: nowrap;
}

.pricing-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    transition: var(--transition);
}

.pricing-link:hover {
    color: var(--color-secondary);
    transform: translateX(4px);
}

/* === ROOMS SECTION === */
.rooms-section {
    padding: var(--spacing-xxl) 0;
    background-color: var(--color-white);
}

.rooms-section .section-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.rooms-carousel {
    position: relative;
    overflow: hidden;
}

.rooms-track {
    display: flex;
    gap: var(--spacing-md);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: var(--spacing-md);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.rooms-track::-webkit-scrollbar {
    display: none;
}

.room-card {
    flex: 0 0 200px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--color-white);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    text-decoration: none;
    border: 2px solid transparent;
}

.room-card:hover {
    border-color: var(--color-secondary);
    box-shadow: var(--shadow-md);
}

.room-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
}

.room-icon svg {
    color: var(--color-text);
    transition: var(--transition);
}

.room-card:hover .room-icon svg {
    color: var(--color-secondary);
}

.room-label {
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--color-text);
    margin: 0;
}

@media (min-width: 1024px) {
    .rooms-track {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: var(--spacing-lg);
        overflow-x: visible;
    }
    
    .room-card {
        flex: 1;
    }
}

/* === COMPLEXITY SECTION === */
.complexity-section {
    padding: var(--spacing-xxl) 0;
    background-color: var(--color-gray);
}

.complexity-section .section-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.complexity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--spacing-md);
}

.complexity-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-decoration: none;
}

.complexity-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.complexity-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
}

.complexity-icon svg {
    color: var(--color-icon);
    width: 48px;
    height: 48px;
    transition: var(--transition);
}

.complexity-card:hover .complexity-icon svg {
    color: var(--color-primary);
    transform: scale(1.05);
}

.complexity-label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text);
    margin: 0;
    line-height: 1.4;
}

/* === BLOG SECTION === */
.blog-section {
    padding: var(--spacing-xxl) 0;
    background-color: var(--color-white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.blog-card {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--color-gray);
}

.blog-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.blog-image {
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.03);
}

.blog-content {
    padding: var(--spacing-md);
}

.blog-meta {
    font-size: 0.875rem;
    color: rgba(45, 55, 72, 0.6);
    margin-bottom: var(--spacing-sm);
}

.blog-title {
    margin-bottom: var(--spacing-sm);
}

.blog-title a {
    color: var(--color-text);
}

.blog-title a:hover {
    color: var(--color-primary);
}

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--color-secondary);
    font-weight: 600;
    font-size: 0.9375rem;
}

.blog-link:hover {
    color: var(--color-secondary-dark);
}

.blog-more {
    text-align: center;
    margin-top: var(--spacing-xl);
}

.btn-link {
    background: none;
    border: none;
    color: var(--color-primary);
    font-weight: 600;
    font-size: var(--text-base);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-link:hover {
    color: var(--color-primary-dark);
}

/* === CONTACTS SECTION === */
.contacts-section {
    padding: var(--spacing-xxl) 0 var(--spacing-lg) 0;
    position: relative;
    z-index: 1;
}

.contacts-title {
    text-align: center;
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--spacing-xl);
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .contacts-grid {
        grid-template-columns: 1fr;
    }
}

.contact-card {
    background-color: var(--color-gray);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    text-align: center;
}

/* === FOOTER - Modern Design (Footer7 Style) === */
.site-footer {
    background-color: var(--color-white);
    color: var(--color-text);
    border-top: 1px solid var(--color-gray);
}

.footer-main {
    padding: var(--spacing-xxl) 0 var(--spacing-xl) 0;
}

/* Footer Wrapper - 2 колонки: компания + меню */
.footer-wrapper {
    display: flex;
    justify-content: space-between;
    gap: var(--spacing-xxl);
}

@media (max-width: 992px) {
    .footer-wrapper {
        flex-direction: column;
        gap: var(--spacing-xl);
    }
}

/* Footer Company - слева */
.footer-company {
    flex: 0 0 40%;
    max-width: 500px;
}

@media (max-width: 992px) {
    .footer-company {
        max-width: 100%;
    }
}

/* Footer Logo с заголовком */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: var(--spacing-md);
}

.footer-logo img {
    height: 60px;
    width: auto;
}

.footer-logo-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}

/* Footer Description */
.footer-description {
    font-size: 0.875rem;
    color: rgba(45, 55, 72, 0.7);
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
    max-width: 70%;
}

@media (max-width: 992px) {
    .footer-description {
        max-width: 100%;
    }
}

/* Footer Contacts */
.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: var(--spacing-lg);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: rgba(45, 55, 72, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact-item:hover {
    color: var(--color-primary);
}

.footer-contact-item svg {
    flex-shrink: 0;
    color: var(--color-secondary);
}

/* Footer Social */
.footer-social {
    display: flex;
    gap: 1.5rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-gray);
    color: var(--color-text);
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--color-secondary);
    color: var(--color-white);
    transform: translateY(-2px);
}

/* Footer Menu Grid - справа */
.footer-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg) var(--spacing-xl);
    flex: 1;
}

@media (max-width: 768px) {
    .footer-menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .footer-menu-grid {
        grid-template-columns: 1fr;
    }
}

.footer-col-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.footer-links {
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: rgba(45, 55, 72, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-primary);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid var(--color-gray);
    padding: var(--spacing-lg) 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
}

@media (max-width: 768px) {
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

.footer-copyright {
    font-size: 0.75rem;
    color: rgba(45, 55, 72, 0.6);
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

@media (max-width: 768px) {
    .footer-legal {
        flex-direction: column;
        gap: 0.5rem;
    }
}

.footer-legal a {
    font-size: 0.75rem;
    color: rgba(45, 55, 72, 0.6);
    text-decoration: none;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--color-primary);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--color-secondary);
    color: var(--color-white);
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(77, 193, 203, 0.3);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--color-secondary-dark);
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(77, 193, 203, 0.4);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
    }
}

/* === COOKIE CONSENT === */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--color-white);
    color: var(--color-text);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 420px;
    z-index: 10000;
    transform: translateY(120%);
    opacity: 0;
    transition: var(--transition);
    border: 1px solid var(--color-gray);
}

.cookie-consent.show {
    transform: translateY(0);
    opacity: 1;
}

.cookie-consent-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.cookie-consent-text p {
    margin: 0;
    font-size: var(--text-sm);
    line-height: 1.6;
    color: rgba(45, 55, 72, 0.8);
}

.cookie-consent-text p:first-child {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: var(--text-base);
    color: var(--color-text);
}

.cookie-consent-btn {
    background: var(--color-secondary);
    color: var(--color-white);
    font-weight: 600;
    font-size: var(--text-sm);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.cookie-consent-btn:hover {
    background: var(--color-secondary-dark);
}

@media (max-width: 768px) {
    .cookie-consent {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* === GHOST EDITOR CLASSES === */
.kg-width-wide {
    position: relative;
    width: 85vw;
    min-width: 100%;
}

.kg-width-full {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* ========================================
   МОДАЛЬНОЕ ОКНО СОТРУДНИЧЕСТВА
   ======================================== */

.collab-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.collab-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.collab-modal {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.collab-modal-overlay.active .collab-modal {
    transform: scale(1) translateY(0);
}

.collab-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #6b7280;
}

.collab-modal-close:hover {
    background: #e5e7eb;
    color: #374151;
}

/* Шаги */
.collab-step {
    display: none;
}

.collab-step.active {
    display: block;
    animation: collabFadeIn 0.3s ease;
}

@keyframes collabFadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.collab-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    text-align: center;
    margin-bottom: 12px;
    line-height: 1.3;
}

.collab-desc {
    font-size: 1rem;
    color: #6b7280;
    text-align: center;
    margin-bottom: 28px;
}

/* Кнопка назад */
.collab-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: #6b7280;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 8px 0;
    margin-bottom: 16px;
    transition: color 0.2s ease;
}

.collab-back:hover {
    color: var(--color-text);
}

/* Опции выбора */
.collab-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

.collab-option {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 20px 24px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.collab-option:hover {
    border-color: var(--color-icon);
    background: #fffbeb;
}

.collab-option-icon {
    width: 48px;
    height: 48px;
    background: var(--color-icon);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-text);
}

.collab-option-text {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
}

.collab-option-arrow {
    color: #9ca3af;
    transition: transform 0.2s ease;
}

.collab-option:hover .collab-option-arrow {
    transform: translateX(4px);
    color: var(--color-text);
}

/* Форма */
.collab-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.collab-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.collab-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
}

.collab-label .required {
    color: var(--color-cta);
}

.collab-input,
.collab-textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--color-text);
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    transition: all 0.2s ease;
    outline: none;
}

.collab-input:focus,
.collab-textarea:focus {
    border-color: var(--color-icon);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(254, 203, 3, 0.2);
}

.collab-input::placeholder,
.collab-textarea::placeholder {
    color: #9ca3af;
}

.collab-textarea {
    resize: vertical;
    min-height: 100px;
}

.collab-submit {
    width: 100%;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: var(--color-cta);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.collab-submit:hover {
    background: #e03610;
    transform: translateY(-1px);
}

/* Успех */
.collab-success-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.collab-step-success .collab-title {
    color: var(--color-price);
}

/* Мобильные стили */
@media (max-width: 480px) {
    .collab-modal {
        padding: 24px;
        border-radius: 12px;
    }
    
    .collab-title {
        font-size: 1.25rem;
    }
    
    .collab-option {
        padding: 16px;
    }
    
    .collab-option-icon {
        width: 40px;
        height: 40px;
    }
    
    .collab-option-text {
        font-size: 1rem;
    }
}

/* Загрузка файла */
.collab-file-upload {
    position: relative;
}

.collab-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}

.collab-file-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6b7280;
}

.collab-file-label:hover {
    border-color: var(--color-icon);
    background: #fffbeb;
    color: var(--color-text);
}

.collab-file-name {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--color-price);
}

/* Чекбокс согласия */
.collab-checkbox-group {
    margin-top: 8px;
}

.collab-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.4;
}

.collab-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.collab-checkbox-custom {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    background: #fff;
    transition: all 0.2s ease;
    position: relative;
    margin-top: 1px;
}

.collab-checkbox-label input[type="checkbox"]:checked + .collab-checkbox-custom {
    background: var(--color-price);
    border-color: var(--color-price);
}

.collab-checkbox-label input[type="checkbox"]:checked + .collab-checkbox-custom::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.collab-checkbox-text a {
    color: var(--color-cta);
    text-decoration: underline;
}

.collab-checkbox-text a:hover {
    text-decoration: none;
}

/* ========================================
   ЮРИДИЧЕСКИЕ СТРАНИЦЫ (Privacy, Terms)
   ======================================== */

.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-xl) 0;
}

.legal-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
    text-align: center;
}

.legal-updated {
    text-align: center;
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: var(--spacing-xl);
}

.legal-content {
    background: #fff;
    border-radius: 16px;
    padding: var(--spacing-xl);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.legal-section {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid #e5e7eb;
}

.legal-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.legal-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 12px;
}

.legal-section p {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 12px;
}

.legal-section ul {
    margin: 12px 0;
    padding-left: 24px;
}

.legal-section li {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 8px;
}

.legal-section a {
    color: var(--color-cta);
    text-decoration: underline;
}

.legal-section a:hover {
    text-decoration: none;
}

@media (max-width: 768px) {
    .legal-content {
        padding: var(--spacing-lg);
    }
}

