/* Base styles */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #1e293b;
    --secondary-dark: #0f172a;
    --text-light: #f8fafc;
    --text-dark: #1e293b;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    color: var(--text-dark);
    background: linear-gradient(to bottom right, var(--gray-100), var(--gray-200));
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header styles */
header.header {
    background: var(--gray-900) !important;
    background: linear-gradient(to right, var(--gray-900), var(--gray-800)) !important;
    color: var(--text-light);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 999;
}

.header .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    background: inherit;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-light);
}

.logo-image {
    height: 2rem;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    border-radius: 4px;
}

.logo:hover .logo-image {
    transform: scale(1.05);
}

.logo-text {
    display: block;
}

.logo-title {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: -0.025em;
    background: linear-gradient(to right, white, #bfdbfe);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.875rem;
    color: var(--gray-300);
    line-height: 1.2;
}

@media (min-width: 640px) {
    .logo-text {
        display: block;
    }

    .logo-title {
        font-size: 1.5rem;
        font-weight: bold;
        letter-spacing: -0.025em;
        background: linear-gradient(to right, white, #bfdbfe);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        line-height: 1.2;
    }

    .logo-subtitle {
        font-size: 0.875rem;
        color: var(--gray-300);
        line-height: 1.2;
    }
}

@media (max-width: 1023px) {
    header.header {
        position: sticky;
        top: 0;
    }

    .header .header-content {
        padding: 0.75rem 1rem;
        position: relative;
        justify-content: space-between;
        align-items: center;
        background: var(--gray-900);
        background: linear-gradient(to right, var(--gray-900), var(--gray-800));
    }

    .logo {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        max-width: calc(100% - 60px);
    }

    .logo-title {
        font-size: 1.25rem;
        font-weight: bold;
        letter-spacing: -0.025em;
        background: linear-gradient(to right, white, #bfdbfe);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        line-height: 1.2;
    }

    .logo-subtitle {
        font-size: 0.875rem;
        color: var(--gray-300);
        line-height: 1.2;
        display: block;
    }

    .logo-text {
        display: block;
    }

    .mobile-menu-button {
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        z-index: 1001;
        background: none;
        border: none;
        padding: 0.75rem;
        margin-left: 0.5rem;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        transition: all 0.3s ease;
        -webkit-tap-highlight-color: transparent;
        flex-shrink: 0;
    }

    .menu-icon span {
        background: var(--text-light);
    }

    .mobile-menu-button:hover .menu-icon span {
        background: var(--gray-300);
    }

    .mobile-menu-button.active .menu-icon span {
        background: var(--text-light);
    }

    .close-menu-button {
        display: none !important;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        position: absolute;
    }
}

@media (max-width: 767px) {
    header.header {
        position: sticky;
        top: 0;
        z-index: 999;
        background: var(--gray-900) !important;
        background: linear-gradient(to right, var(--gray-900), var(--gray-800)) !important;
    }

    .header .header-content {
        padding: 0.75rem 1rem;
    }

    /* Масштабирование заголовков */
    h1 {
        font-size: 1.75rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    h3 {
        font-size: 1.25rem !important;
    }

    /* Корректировка размеров кнопок для тач-интерфейса */
    button, 
    .button,
    .nav-link,
    .footer-link,
    .social-link {
        min-height: 44px;
        min-width: 44px;
        padding: 0.75rem 1rem;
        touch-action: manipulation;
    }

    /* Увеличиваем область касания только для кнопок-действий, не для текстовых ссылок */
    .contact-link,
    .footer-link,
    .back-button,
    .primary-button,
    .secondary-button,
    .cta-button,
    .cta-button-primary,
    .cta-button-secondary,
    .submit-button {
        padding: 0.75rem 1rem;
        margin: 0.25rem 0;
    }

    /* Корректировка размера шрифта для лучшей читаемости */
    body {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Оптимизация отступов */
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    .page-header {
        margin: 2rem 0;
    }

    .page-header h1 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    /* Корректировка размеров логотипа */
    .logo-image {
        height: 2rem;
    }

    .logo-title {
        font-size: 1.125rem;
    }

    .logo-subtitle {
        font-size: 0.75rem;
    }

    /* Оптимизация навигации */
    .nav-list {
        gap: 0.5rem;
    }

    .nav-link {
        font-size: 1rem;
        padding: 0.75rem 1rem;
        width: 100%;
        text-align: center;
    }

    /* Оптимизация кнопок в футере */
    .footer-link,
    .social-link {
        padding: 0.75rem;
        margin: 0.25rem;
        display: flex;
        align-items: center;
    }

    .footer-contact-item {
        padding: 0.75rem;
    }

    .footer-contact-item i {
        font-size: 1.25rem;
    }
}

/* Дополнительные оптимизации для очень маленьких экранов */
@media (max-width: 359px) {
    .logo-title {
        font-size: 1rem;
    }

    .logo-subtitle {
        font-size: 0.7rem;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }

    h1 {
        font-size: 1.5rem !important;
    }

    h2 {
        font-size: 1.25rem !important;
    }

    h3 {
        font-size: 1.125rem !important;
    }
}

.contact-info {
    display: none;
}

@media (min-width: 768px) {
    .contact-info {
        display: flex;
        gap: 0.25rem;
    }

    .contact-link {
        display: flex;
        align-items: center;
        gap: 0.25rem;
        color: var(--text-light);
        text-decoration: none;
        font-size: 0.875rem;
        font-weight: 500;
        line-height: 1.2;
        transition: color 0.3s ease;
    }

    .contact-link:hover {
        color: var(--primary-light);
    }

    .contact-link i {
        color: var(--primary-light);
        transition: transform 0.3s ease;
    }

    .contact-link:hover i {
        transform: scale(1.1);
    }
}

/* Mobile menu button styles */
.mobile-menu-button {
    display: none;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1001;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.75rem;
    margin-left: 0.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.menu-icon {
    width: 24px;
    height: 18px;
    position: relative;
    transform: rotate(0deg);
    transition: .5s ease-in-out;
}

.menu-icon span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--text-light);
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.menu-icon span:nth-child(1) {
    top: 0px;
}

.menu-icon span:nth-child(2) {
    top: 8px;
}

.menu-icon span:nth-child(3) {
    top: 16px;
}

.mobile-menu-button.active .menu-icon span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
}

.mobile-menu-button.active .menu-icon span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.mobile-menu-button.active .menu-icon span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
}

@media (max-width: 1023px) {
    .mobile-menu-button {
        display: flex;
    }

    .contact-info {
        display: none;
    }
}

/* Navigation styles */
.main-nav {
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

@media (max-width: 1023px) {
    .header .header-content {
        padding: 1rem;
        position: relative;
        justify-content: space-between;
        align-items: center;
        background: none;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: none;
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        display: flex !important;
        align-items: center;
        justify-content: center;
        pointer-events: none;
    }

    .main-nav::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.95);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    .main-nav.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .main-nav.active::before {
        opacity: 1;
        pointer-events: auto;
    }

    .nav-list {
        position: relative;
        z-index: 1;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        padding: 2rem;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        background: transparent;
    }

    .nav-link {
        color: white;
        font-size: 1.2rem;
        position: relative;
        padding: 0.75rem 1.5rem;
        width: 100%;
        text-align: center;
        border-radius: 0.5rem;
        transition: all 0.3s ease;
        background: transparent;
    }
}

/* Additional Mobile Optimizations */
@media (max-width: 767px) {
    .container {
        padding: 0 1rem;
    }

    .header .header-content {
        padding: 0.75rem 1rem;
    }

    .logo-subtitle {
        display: none;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 0.75rem;
    }
}

/* Гарантируем минимальный touch target для всех кнопок-действий на любых экранах */
.primary-button,
.secondary-button,
.cta-button,
.cta-button-primary,
.cta-button-secondary,
.submit-button,
.back-button,
.contact-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-list {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
    padding: 1rem 0;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #bfdbfe;
    background-color: rgba(59, 130, 246, 0.2);
    transform: scale(1.05);
}

.nav-link.active {
    color: #bfdbfe;
    background-color: rgba(59, 130, 246, 0.3);
    font-weight: 700;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background-color: #bfdbfe;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Hero section styles */
.hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 3rem 0;
}

.hero-text {
    text-align: center;
    color: var(--text-light);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    color: var(--text-light);
    text-decoration: none;
    padding: 1.25rem 2.5rem;
    border-radius: 1rem;
    font-weight: bold;
    font-size: 1.125rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: scale(1.05);
    background: linear-gradient(to right, var(--primary-dark), var(--primary-dark));
}

.cta-button i {
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: translateX(0.25rem);
}

.gradient-text-1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #93c5fd, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gradient-text-2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #bfdbfe, #93c5fd, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .gradient-text-1 {
        font-size: 3rem;
    }

    .gradient-text-2 {
        font-size: 2.5rem;
    }
}

.divider {
    width: 8rem;
    height: 0.25rem;
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    margin: 2rem auto;
    border-radius: 9999px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.75;
    background: linear-gradient(to right, var(--gray-100), white, var(--gray-100));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@media (min-width: 768px) {
    .subtitle {
        font-size: 1.5rem;
    }
}

/* About section styles */
.about {
    padding: 4rem 0;
    background-color: white;
}

.section-title {
    text-align: center;
    font-size: 2.25rem;
    font-weight: bold;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.about-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.about-card {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.about-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.card-content {
    padding: 1.5rem 2rem;
}

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

.card-content p {
    margin-bottom: 1.5rem;
    color: var(--gray-700);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.card-header i {
    color: var(--primary);
    font-size: 2rem;
}

.card-header h3 {
    font-size: 1.5rem;
    color: var(--gray-900);
}

.directions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.direction h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.direction ul {
    list-style: none;
    padding-left: 1rem;
}

.direction li {
    color: var(--gray-700);
    margin-bottom: 0.25rem;
}

.direction li::before {
    content: '•';
    color: var(--primary);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Advantages styles */
.advantages {
    margin-bottom: 4rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.875rem;
    margin-bottom: 2rem;
}

.advantages-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.advantage-card {
    text-align: center;
    padding: 1.5rem;
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.advantage-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.icon-circle {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(to bottom right, var(--primary-light), var(--primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.advantage-card h4 {
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.advantage-card p {
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* Services styles */
.services-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.service-card {
    text-align: center;
    padding: 1.5rem;
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Animations */
@keyframes pulse {
    0% {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) scale(1.5);
        opacity: 0.5;
    }
    100% {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }
}

.fade-in-left {
    animation: fadeInLeft 1s ease-out;
}

.fade-in-right {
    animation: fadeInRight 1s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Footer styles */
.footer {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    color: var(--text-light);
    padding: 6rem 0 2rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, 
        transparent 0%, 
        var(--primary-light) 50%, 
        transparent 100%
    );
}

.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at top right,
        rgba(59, 130, 246, 0.1),
        transparent 50%
    );
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 4rem;
    }
}

.footer-column h3 {
    color: var(--primary-light);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 2rem;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.footer-column:hover h3::after {
    width: 3rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-link {
    color: var(--gray-300);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

.footer-link i {
    font-size: 0.875rem;
    color: var(--primary-light);
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-light);
    transform: translateX(10px);
}

.footer-link:hover i {
    transform: scale(1.2);
}

.footer-contact-info {
    color: var(--gray-300);
    margin-bottom: 1.5rem;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.footer-contact-item:hover {
    background: rgba(59, 130, 246, 0.1);
}

.footer-contact-item i {
    color: var(--primary-light);
    margin-top: 0.25rem;
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.footer-contact-item:hover i {
    transform: scale(1.2);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 0;
}

.social-link i {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.social-link:hover::before {
    transform: translateY(0);
}

.social-link:hover i {
    color: white;
    transform: scale(1.2);
}

.footer-bottom {
    position: relative;
    border-top: 1px solid rgba(203, 213, 225, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: var(--gray-400);
    font-size: 0.875rem;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 1px;
    background: linear-gradient(to right, 
        transparent 0%, 
        var(--primary-light) 50%, 
        transparent 100%
    );
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

.footer-bottom a {
    color: var(--primary-light);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.footer-bottom a:hover {
    color: white;
    background: rgba(59, 130, 246, 0.1);
}

/* Показываем кнопку только на мобильных устройствах */
@media screen and (max-width: 1023px) {
    .main-nav.active button.close-menu-button {
        display: flex !important;
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        position: absolute;
        top: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
        background: none;
        border: none;
        color: white;
        font-size: 2rem;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        z-index: 1002;
        transition: all 0.3s ease;
    }

    .main-nav.active button.close-menu-button:hover {
        color: var(--primary);
        transform: rotate(90deg);
    }
}

@media screen and (min-width: 1024px) {
    button.close-menu-button {
        display: none !important;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        position: absolute;
    }
}

/* Scroll to Top Button (CSP-friendly) */
.scroll-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    font-size: 1.5rem;
}
.scroll-top-btn.hovered {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.scroll-top-btn i {
    pointer-events: none;
}

#cookieNotice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: var(--gray-900);
    color: var(--text-light);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
}

.cookie-notice {
    padding: 1rem 1rem;
}

.cookie-notice-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-notice-content p {
    flex: 1 1 280px;
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
}

.cookie-notice-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.cookie-accept-btn,
.cookie-reject-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    cursor: pointer;
    border: none;
    min-height: 44px;
}

.cookie-accept-btn {
    background: var(--primary);
    color: white;
}

.cookie-accept-btn:hover {
    background: var(--primary-dark);
}

.cookie-reject-btn {
    background: transparent;
    color: var(--gray-300);
    border: 1px solid var(--gray-600);
}

.cookie-policy-link {
    color: var(--primary-light);
    text-decoration: none;
    font-size: 0.8125rem;
    width: 100%;
    flex-basis: 100%;
}

.cookie-policy-link:hover {
    text-decoration: underline;
} 