:root {
    --primary: #2B2D42;
    --secondary: #8D99AE;
    --light: #EDF2F4;
    --accent: #EF233C;
    --accent-dark: #D80032;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Оптимизации за производителност */
html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--light);
    color: var(--primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Оптимизация за изображения */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Оптимизация за анимации */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Навигация */
.navbar {
    background: linear-gradient(90deg, #8D99AE 0%, #2B2D42 60%);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background 0.4s cubic-bezier(.4,0,.2,1);
    border-bottom: none;
}

.navbar::after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #660018 0%, #D80032 100%);
    pointer-events: none;
    z-index: 2;
}

.navbar.scrolled {
    opacity: 0.85;
    transition: opacity 0.3s;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    color: var(--light);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    transition: color 0.3s ease;
}

.logo:hover {
    color: var(--accent);
}

/* Hamburger меню */
.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background-color: var(--light);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--accent);
}

.nav-menu a.active, .nav-menu a.active:visited {
    color: #D80032;
    font-weight: 700;
    text-shadow: 0 2px 16px rgba(216,0,50,0.38), 0 0px 8px rgba(216,0,50,0.22);
    background: none;
    border: none;
    border-radius: 0;
    transition: color 0.2s, text-shadow 0.2s;
}

/* Dropdown меню */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% - 3px);
    left: 0;
    background-color: var(--primary);
    min-width: 250px;
    padding: 1rem 0;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1002;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    padding: 0.5rem 1.5rem;
    display: block;
    color: var(--light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: var(--accent);
    color: var(--light);
}

/* Hero секция */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    margin-top: 60px;
}

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

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(43, 45, 66, 0.65), rgba(43, 45, 66, 0.65));
    z-index: 2;
}

.hero-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

.hero-content-left {
    flex: 1 1 60%;
    text-align: left;
    color: var(--light);
    padding-left: 2rem;
    padding-right: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-width: 0;
}

.hero-logo-right {
    flex: 1 1 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.hero-logo {
    max-width: 480px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    filter: drop-shadow(0 4px 24px rgba(43,45,66,0.10)) drop-shadow(0 0 18px rgba(255,255,255,0.22));
    animation: fadeInUp 1.2s cubic-bezier(.4,0,.2,1), heroLogoFloat 7s ease-in-out infinite;
}

.hero-content-left h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(100deg, #EF233C 10%, #D80032 60%, #660018 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.1;
    animation: fadeInUp 1s cubic-bezier(.4,0,.2,1);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--accent);
    color: var(--light);
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
}

.cta-button:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroLogoFloat {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

/* Responsive дизайн */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: row;
        padding: 0 1rem;
        position: relative;
    }

    .hamburger-menu {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background: linear-gradient(135deg, #2B2D42 0%, #8D99AE 100%);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding-top: 80px;
        height: 100vh;
        z-index: 1000;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .nav-menu a {
        font-size: 1.1rem;
        padding: 0.5rem 1rem;
        display: block;
    }

    .dropdown {
        position: relative;
    }
    .dropdown-menu {
        display: block;
        position: absolute;
        left: 0;
        top: 100%;
        width: 100%;
        max-width: 100vw;
        max-height: 60vh;
        overflow-y: auto;
        overflow-x: hidden;
        margin: 0 auto;
        background: rgba(43, 45, 66, 0.97);
        border-radius: 12px;
        box-shadow: 0 2px 16px rgba(0,0,0,0.13);
        z-index: 2000;
        padding: 1.2rem 0 1.2rem 0;
        transition: max-height 0.3s cubic-bezier(.4,0,.2,1), opacity 0.2s;
        opacity: 0;
        max-height: 0;
    }
    .dropdown.active .dropdown-menu {
        opacity: 1;
        max-height: 60vh;
        transition: max-height 0.4s cubic-bezier(.4,0,.2,1), opacity 0.2s;
    }

    .dropdown > a::after {
        content: '\25BC';
        display: inline-block;
        margin-left: 8px;
        font-size: 0.7em;
        transition: transform 0.2s;
    }

    .dropdown.active > a::after {
        transform: rotate(180deg);
    }

    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .hero-flex {
        padding: 1rem;
    }

    .hero-content-left {
        padding: 0 0.5rem;
    }

    .hero-logo {
        max-width: 200px;
    }

    .hero-logo-right {
        display: none;
    }

    .footer-logo {
        margin-left: auto;
        margin-right: auto;
        display: block;
    }

    .sales-cards-row {
        flex-direction: column !important;
        align-items: center;
        gap: 1.5rem !important;
    }
    .sales-card-box {
        width: 95%;
        min-width: 260px;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 900px) {
    .hero-flex {
        flex-direction: column-reverse;
        justify-content: center;
        align-items: center;
        padding: 2rem 0;
    }
    .hero-content-left {
        text-align: center;
        align-items: center;
        padding: 0 1rem;
    }
    .hero-logo-right {
        margin-bottom: 2rem;
    }
    .hero-logo {
        max-width: 320px;
    }
    .hero-content-left h1 {
        font-size: 2.1rem;
    }
}

/* Секция с услуги */
.services {
    padding: 5rem 2rem;
    background-color: var(--light);
    background-image: url('data:image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1.5" fill="%238D99AE" fill-opacity="0.08"/></svg>');
    background-repeat: repeat;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 3rem;
    position: relative;
}

.services h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--accent);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

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

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--primary);
    color: var(--light);
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.service-link:hover {
    background-color: var(--accent);
}

/* Responsive дизайн за услугите */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .services h2 {
        font-size: 2rem;
    }
}

/* Секция с клиенти */
.clients {
    padding: 5rem 2rem;
    background-color: white;
}

.clients h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 3rem;
    position: relative;
}

.clients h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--accent);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    align-items: center;
    justify-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.client-logo {
    padding: 1rem;
    transition: transform 0.3s ease;
}

.client-logo:hover {
    transform: scale(1.1);
}

.client-logo img {
    max-width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
}

/* Ефект на сивия цвят */
.grayscale {
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.client-logo:hover .grayscale {
    filter: grayscale(0%);
}

/* Responsive дизайн за клиентите */
@media (max-width: 768px) {
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .clients h2 {
        font-size: 2rem;
    }
}

/* Секция с отзиви */
.testimonials {
    padding: 5rem 2rem;
    background-color: var(--light);
}

.testimonials h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 3rem;
    position: relative;
}

.testimonials h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--accent);
}

.testimonials-slider {
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    margin: 1rem;
    border-radius: 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
    transition: transform 0.3s ease;
    position: relative;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover {
    transform: translateY(-5px) scale(1.03);
}

.testimonial-rating {
    display: flex;
    gap: 0.2rem;
    margin-bottom: 1rem;
}

.testimonial-rating i {
    color: #FFD700;
    font-size: 1.2rem;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.08));
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    color: var(--primary);
    font-size: 1.1rem;
    line-height: 1.6;
    font-style: italic;
    position: relative;
    padding: 0 1rem;
}

.testimonial-content p::before,
.testimonial-content p::after {
    content: '"';
    color: var(--accent);
    font-size: 2rem;
    position: absolute;
}

.testimonial-content p::before {
    left: -0.5rem;
    top: -0.5rem;
}

.testimonial-content p::after {
    right: -0.5rem;
    bottom: -1rem;
}

.testimonial-author {
    text-align: right;
}

.testimonial-author h4 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.testimonial-author span {
    color: var(--secondary);
    font-size: 0.9rem;
}

/* Slick Slider Customization */
.slick-prev,
.slick-next {
    width: 50px;
    height: 50px;
    background: rgba(43, 45, 66, 0.1) !important;
    border-radius: 50%;
    z-index: 1;
    transition: all 0.3s ease;
}

.slick-prev:hover,
.slick-next:hover {
    background: var(--primary) !important;
}

.slick-prev {
    left: -25px;
}

.slick-next {
    right: -25px;
}

.slick-prev:before,
.slick-next:before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 18px;
    line-height: 50px;
    color: var(--primary);
    transition: color 0.3s ease;
}

.slick-prev:before {
    content: '\f104';
}

.slick-next:before {
    content: '\f105';
}

.slick-prev:hover:before,
.slick-next:hover:before {
    color: var(--light);
}

.slick-dots {
    bottom: -40px;
}

.slick-dots li {
    margin: 0 5px;
}

.slick-dots li button:before {
    font-size: 10px;
    color: var(--secondary);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.slick-dots li.slick-active button:before {
    color: var(--accent);
    opacity: 1;
    transform: scale(1.2);
}

/* Responsive дизайн за отзивите */
@media (max-width: 768px) {
    .testimonials h2 {
        font-size: 2rem;
    }
    
    .testimonial-card {
        margin: 0.5rem;
    }
    
    .slick-prev {
        left: -15px;
    }
    
    .slick-next {
        right: -15px;
    }
    
    .slick-prev,
    .slick-next {
        width: 40px;
        height: 40px;
    }
    
    .slick-prev:before,
    .slick-next:before {
        line-height: 40px;
    }
}

/* Контактна секция */
.contact-section {
    background: #fff;
    padding: 0;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px 0 rgba(43,45,66,0.07);
}

.contact-container {
    max-width: 1200px;
    margin: 4rem auto;
    background: #fff;
    border-radius: 32px;
    box-shadow: 0 8px 40px 0 rgba(43,45,66,0.22), 0 1.5px 8px 0 rgba(239,35,60,0.10);
    overflow: hidden;
    width: 95%;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-row {
    display: flex;
    flex-direction: row;
    gap: 0;
    width: 100%;
    border-bottom: 1.5px solid #e0e3e7;
}

.contact-info {
    flex: 1 1 320px;
    background: linear-gradient(120deg, #23243a 0%, #2B2D42 40%, #8D99AE 120%);
    color: #fff;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 300px;
    border-radius: 0;
    border-top-left-radius: 32px;
    box-shadow: 0 8px 32px 0 rgba(43,45,66,0.10);
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #fff;
    letter-spacing: 1px;
}

.contact-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-details li {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-details a {
    color: #EDF2F4;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-details a:hover {
    color: #EF233C;
}

.contact-details i {
    color: #EF233C;
    font-size: 1.3rem;
}

.contact-form {
    flex: 2 1 400px;
    background: #F7F8FA;
    border-radius: 0;
    border-top-right-radius: 32px;
    box-shadow: 0 2px 12px 0 rgba(43,45,66,0.06);
    padding: 3rem 2rem 2rem 2rem;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    min-width: 320px;
}

.contact-form h3 {
    margin-bottom: 0.5rem;
    color: #2B2D42;
    font-size: 1.3rem;
    font-weight: 600;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    border: none;
    border-radius: 12px;
    padding: 0.9rem 1.2rem;
    font-size: 1rem;
    background: #fff;
    color: #2B2D42;
    margin-top: 0.2rem;
    box-shadow: 0 1px 4px 0 rgba(43,45,66,0.04);
    transition: box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px #EF233C33;
}

.contact-btn {
    background: linear-gradient(90deg, #660018 0%, #EF233C 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.9rem 2.2rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(.4,0,.2,1), box-shadow 0.35s cubic-bezier(.4,0,.2,1), background 0.35s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 2px 8px 0 rgba(239,35,60,0.08);
    margin-top: 0.5rem;
}

.contact-btn:hover, .contact-btn:focus {
    background: linear-gradient(90deg, #660018 0%, #EF233C 100%);
    transform: scale(1.06) translateY(-2px);
    box-shadow: 0 6px 24px 0 rgba(239,35,60,0.18);
    outline: none;
}

.contact-map {
    width: 100%;
    height: 260px;
    border-radius: 0 0 32px 32px;
    overflow: hidden;
    box-shadow: 0 2px 12px 0 rgba(43,45,66,0.08);
    position: relative;
}

.contact-map::before {
    content: '';
    position: absolute;
    pointer-events: none;
    left: 0; top: 0; right: 0; bottom: 0;
    border-radius: 0 0 32px 32px;
    box-shadow:
        0 0 40px 10px rgba(43,45,66,0.10) inset,
        20px 20px 40px 0 rgba(43,45,66,0.10) inset,
        -20px 20px 40px 0 rgba(43,45,66,0.10) inset;
    z-index: 2;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(1) contrast(1.1);
    transition: filter 0.4s cubic-bezier(.4,0,.2,1);
}

.contact-map:hover iframe,
.contact-map:focus-within iframe {
    filter: grayscale(0) contrast(1);
}

@media (max-width: 1024px) {
    .contact-container {
        border-radius: 24px;
    }
    .contact-row {
        flex-direction: column;
        border-bottom: none;
    }
    .contact-info, .contact-form {
        border-radius: 0;
        padding: 2rem 1.2rem;
    }
    .contact-info {
        border-top-left-radius: 24px;
    }
    .contact-form {
        border-top-right-radius: 24px;
    }
    .contact-map {
        border-radius: 0 0 24px 24px;
    }
}

@media (max-width: 600px) {
    .contact-section {
        min-height: 0;
        padding: 0;
    }
    .contact-container {
        margin: 2rem 0;
        border-radius: 0;
    }
    .contact-row {
        flex-direction: column;
    }
    .contact-info, .contact-form {
        padding: 1.2rem 0.5rem;
    }
    .contact-form {
        padding: 1rem 0.5rem 1rem 0.5rem;
    }
    .contact-map {
        height: 250px;
    }
}

/* Примерни стилове за социални икони */
.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #660018 0%, #EF233C 100%);
    color: #fff;
    font-size: 1.3rem;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px 0 rgba(239,35,60,0.08);
    text-decoration: none;
}

.social-icons a:hover {
    background: linear-gradient(135deg, #EF233C 0%, #660018 100%);
    box-shadow: 0 4px 16px 0 rgba(239,35,60,0.15);
}

.scroll-to-top {
    position: fixed;
    right: 32px;
    bottom: 32px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #EF233C 0%, #660018 100%);
    border: 2.5px solid rgba(255,255,255,0.7);
    border-radius: 50%;
    box-shadow: 0 6px 32px 0 rgba(43,45,66,0.13);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
    color: #fff;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(.4,0,.2,1), transform 0.5s cubic-bezier(.4,0,.2,1), box-shadow 0.5s cubic-bezier(.4,0,.2,1), background 0.4s, border 0.4s;
    z-index: 9999;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transform: scale(0.92);
}

.scroll-to-top i {
    filter: drop-shadow(0 0 8px #fff8) drop-shadow(0 2px 8px #EF233C88);
    transition: filter 0.4s, transform 0.4s, opacity 0.4s;
    opacity: 0.7;
    font-size: 1.5rem;
}

.scroll-to-top.show {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, #660018 0%, #EF233C 100%);
    border: 3.5px solid #fff;
    box-shadow: 0 12px 40px 0 rgba(239,35,60,0.18);
    transform: scale(1.08);
}

.scroll-to-top:hover i {
    filter: drop-shadow(0 0 16px #fff) drop-shadow(0 2px 16px #EF233C);
    transform: rotate(-18deg) scale(1.13);
    animation: arrowPulse 1.2s infinite alternate;
    opacity: 1;
}

@keyframes arrowPulse {
    0% { filter: drop-shadow(0 0 16px #fff) drop-shadow(0 2px 16px #EF233C); }
    100% { filter: drop-shadow(0 0 24px #fff) drop-shadow(0 2px 24px #EF233C); }
}

@media (max-width: 600px) {
    .scroll-to-top {
        right: 15px;
        bottom: 15px;
        width: 45px;
        height: 45px;
    }

    .scroll-to-top i {
        font-size: 16px;
    }
}

/* Допълнителни responsive стилове за мобилни устройства */
@media (max-width: 480px) {
    .nav-container {
        padding: 0 0.5rem;
    }

    .logo img {
        height: 35px !important;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .hero-logo {
        max-width: 150px;
    }

    .services h2,
    .clients h2,
    .testimonials h2 {
        font-size: 1.8rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-card h3 {
        font-size: 1.1rem;
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .client-logo img {
        max-width: 80px;
    }

    .contact-section {
        padding: 3rem 1rem;
    }

    .contact-container {
        padding: 0;
    }

    .contact-row {
        flex-direction: column;
        gap: 2rem;
    }

    .contact-info,
    .contact-form {
        width: 100%;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .contact-map {
        height: 250px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-column {
        padding: 0 1rem;
    }
}

@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.3rem;
    }

    .hero p {
        font-size: 0.85rem;
    }

    .hero-logo {
        max-width: 120px;
    }

    .services h2,
    .clients h2,
    .testimonials h2 {
        font-size: 1.6rem;
    }

    .service-card {
        padding: 1rem;
    }

    .clients-grid {
        grid-template-columns: 1fr;
    }

    .client-logo img {
        max-width: 70px;
    }
}

#loadingScreen {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: #23243a;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s cubic-bezier(.4,0,.2,1), visibility 0.5s;
}
#loadingScreen.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.spinner {
    width: 44px;
    height: 44px;
    animation: spinner-y0fdc1 2s infinite ease;
    transform-style: preserve-3d;
    position: relative;
}
.spinner > div {
    height: 100%;
    position: absolute;
    width: 100%;
    border: 2px solid #fff;
}
.spinner div:nth-of-type(1) {
    transform: translateZ(-22px) rotateY(180deg);
}
.spinner div:nth-of-type(2) {
    transform: rotateY(-270deg) translateX(50%);
    transform-origin: top right;
}
.spinner div:nth-of-type(3) {
    transform: rotateY(270deg) translateX(-50%);
    transform-origin: center left;
}
.spinner div:nth-of-type(4) {
    transform: rotateX(90deg) translateY(-50%);
    transform-origin: top center;
}
.spinner div:nth-of-type(5) {
    transform: rotateX(-90deg) translateY(50%);
    transform-origin: bottom center;
}
.spinner div:nth-of-type(6) {
    transform: translateZ(22px);
}
@keyframes spinner-y0fdc1 {
    0% {
        transform: rotate(45deg) rotateX(-25deg) rotateY(25deg);
    }
    50% {
        transform: rotate(45deg) rotateX(-385deg) rotateY(25deg);
    }
    100% {
        transform: rotate(45deg) rotateX(-385deg) rotateY(385deg);
    }
}

.sales-header {
    position: relative;
    width: 100%;
    height: 320px;
    background: url('img/sales-header.jpg') center center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 60px;
    margin-bottom: 0;
    overflow: hidden;
}

.sales-header-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(43, 45, 66, 0.65), rgba(43, 45, 66, 0.65));
    z-index: 1;
}

.sales-header-title {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: 3.2rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-align: center;
    text-shadow: 0 4px 32px rgba(43,45,66,0.22), 0 2px 8px rgba(239,35,60,0.13);
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: #fff;
    background-clip: initial;
    margin: 0;
    padding: 0 1rem;
    animation: fadeInUp 1.2s cubic-bezier(.4,0,.2,1);
}

@media (max-width: 700px) {
    .sales-header {
        height: 180px;
    }
    .sales-header-title {
        font-size: 1.7rem;
        padding: 0 0.2rem;
    }
}

.sales-main-open {
    margin-top: 0;
    padding: 0 0 3rem 0;
    background: #fff !important;
    min-height: 100vh;
}

.sales-intro-open {
    max-width: 1100px;
    margin: 0 auto 3.5rem auto;
    padding: 0 1.5rem;
}

.sales-title {
    font-size: 2.1rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    background: linear-gradient(45deg, #8B0000, #FF0000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    letter-spacing: 1px;
    line-height: 1.1;
}

.sales-title-secondary {
    margin-top: 2.5rem;
    background: linear-gradient(45deg, #8B0000, #FF0000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.sales-text {
    font-size: 1.13rem;
    color: #2B2D42;
    margin-bottom: 0.5rem;
    line-height: 1.7;
    font-weight: 400;
}

.sales-divider {
    border: none;
    border-top: 1.5px solid #e0e3e7;
    margin: 3.5rem auto 3.5rem auto;
    max-width: 900px;
}

.sales-cards-grid-open {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem 2rem;
    margin-top: 2.2rem;
    margin-bottom: 1.5rem;
}

.sales-card-open {
    background: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: color 0.3s, transform 0.3s;
    position: relative;
    min-height: 180px;
    cursor: default;
}

.sales-card-open i {
    font-size: 2.3rem;
    color: #EF233C;
    margin-bottom: 1.1rem;
    filter: drop-shadow(0 2px 8px rgba(239,35,60,0.10));
    transition: color 0.3s, filter 0.3s, transform 0.3s;
}

.sales-card-open h3 {
    font-size: 1.13rem;
    font-weight: 700;
    color: #2B2D42;
    margin-bottom: 0.7rem;
    letter-spacing: 0.5px;
}

.sales-card-open p {
    color: #444a5a;
    font-size: 1.01rem;
    line-height: 1.6;
    font-weight: 400;
}

.sales-card-open:hover i {
    color: #D80032;
    transform: scale(1.13) rotate(-8deg);
    filter: drop-shadow(0 4px 16px rgba(239,35,60,0.18));
}

.sales-card-open:hover h3 {
    color: #D80032;
}

@media (max-width: 900px) {
    .sales-intro-open {
        padding: 0 0.5rem;
    }
    .sales-title {
        font-size: 1.4rem;
    }
    .sales-cards-grid-open {
        gap: 1.2rem;
    }
}

.sales-title-center {
    text-align: center;
    display: block;
    width: 100%;
    background: linear-gradient(45deg, #8B0000, #FF0000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.sales-cards-flex {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.sales-cards-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.5rem;
    justify-content: center;
    width: 100%;
}

.sales-cards-row:first-child {
    justify-content: space-between;
    max-width: 900px;
    margin: 0 auto;
}

.sales-cards-row:last-child {
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.sales-card-box {
    background: var(--light);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    width: 280px;
    height: 320px;
    flex: 0 0 auto;
}

.sales-card-box i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.2rem;
    transition: transform 0.3s ease;
}

.sales-card-box h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.sales-card-box p {
    margin: 0 0 1.2rem 0;
    color: var(--secondary);
    line-height: 1.6;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 1rem;
}

.sales-card-box .view-more-btn {
    display: inline-block;
    padding: 0.6rem 1.8rem;
    background: linear-gradient(90deg, var(--accent-dark) 0%, var(--accent) 100%);
    color: var(--light);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: auto;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.sales-card-box .view-more-btn:hover {
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-dark) 100%);
}

.sales-card-box:hover {
    box-shadow: 0 16px 48px 0 rgba(239,35,60,0.22), 0 4px 32px 0 rgba(43,45,66,0.18);
    transform: translateY(-6px) scale(1.04);
    background: #fff;
}

.sales-card-box:hover i {
    color: #D80032;
    transform: scale(1.13) rotate(-8deg);
    filter: drop-shadow(0 4px 16px rgba(239,35,60,0.18));
}

.sales-card-box:hover h3 {
    color: #D80032;
}

.sales-cards-row-services {
    margin-top: 2.2rem;
    margin-bottom: 1.5rem;
    gap: 2.2rem;
}

@media (max-width: 1400px) {
    .sales-cards-row:first-child {
        max-width: 1000px;
    }
    
    .sales-cards-row:last-child {
        max-width: 1320px;
    }
}

@media (max-width: 1200px) {
    .sales-cards-row {
        gap: 1.2rem;
    }
    
    .sales-cards-row:first-child {
        max-width: 840px;
    }
    
    .sales-cards-row:last-child {
        max-width: 1120px;
    }
    
    .sales-card-box {
        width: 260px;
        height: 300px;
        padding: 1.8rem;
    }
}

@media (max-width: 900px) {
    .sales-cards-row {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .sales-cards-row:first-child,
    .sales-cards-row:last-child {
        max-width: 100%;
    }
    
    .sales-card-box {
        width: 240px;
        height: 280px;
        padding: 1.5rem;
    }
}

.sales-header-gap {
    width: 100%;
    height: 2.5rem;
    background: #fff;
}

.sales-cards-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.sales-card-box-wide {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sales-card-box-wide:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.sales-card-box-wide i {
    font-size: 2rem;
    color: #2c3e50;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    background: #f8f9fa;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sales-card-box-wide h3 {
    color: #333;
    font-size: 1.5rem;
    margin: 0;
}

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

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

.service-details p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    padding-left: 1rem;
    border-left: 3px solid #8B0000;
}

/* Абонаментни планове */
.subscription-plans {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.subscription-plan {
    background: white;
    border-radius: 15px;
    padding: 2.5rem 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    width: 320px;
    border: 2px solid transparent;
    overflow: hidden;
}

.subscription-plan.featured {
    border-color: var(--accent);
    transform: scale(1.05);
    box-shadow: 0 12px 48px rgba(239, 35, 60, 0.15);
}

.subscription-plan:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.subscription-plan.featured:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 60px rgba(239, 35, 60, 0.2);
}

.plan-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.plan-header i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1rem;
    display: block;
}

.plan-header h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
}

.plan-price .price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
}

.plan-price .currency {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent);
}

.plan-price .period {
    font-size: 1rem;
    color: var(--secondary);
    font-weight: 500;
}

/* Специален стил за "По договаряне" */
.plan-price .price[data-price="custom"] {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
}

.plan-features {
    margin-bottom: 2rem;
}

.plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    color: var(--secondary);
    font-size: 1rem;
    line-height: 1.5;
}

.plan-features li i {
    color: #28a745;
    font-size: 1rem;
    flex-shrink: 0;
}

.plan-btn {
    display: block;
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-btn:hover {
    background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(239, 35, 60, 0.3);
}

/* Responsive дизайн за абонаментните планове */
@media (max-width: 1200px) {
    .subscription-plans {
        gap: 1.5rem;
    }
    
    .subscription-plan {
        width: 300px;
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 900px) {
    .subscription-plans {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .subscription-plan {
        width: 100%;
        max-width: 400px;
    }
    
    .subscription-plan.featured {
        transform: none;
    }
    
    .subscription-plan.featured:hover {
        transform: translateY(-8px);
    }
}

@media (max-width: 600px) {
    .subscription-plan {
        padding: 1.5rem 1rem;
    }
    
    .plan-header i {
        font-size: 2.5rem;
    }
    
    .plan-header h3 {
        font-size: 1.3rem;
    }
    
    .plan-price .price {
        font-size: 2rem;
    }
    
    .plan-features li {
        font-size: 0.9rem;
    }
}

/* Секция Сервиз */
.service-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.service-section {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.service-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.service-section-reverse {
    flex-direction: row-reverse;
}

.service-content {
    flex: 1;
}

.service-content h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.service-content h2 i {
    margin-right: 1rem;
    color: var(--accent);
}

.service-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.service-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-content ul li {
    font-size: 1rem;
    color: var(--secondary);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.service-content ul li i {
    color: #28a745;
    margin-right: 0.8rem;
    font-size: 1.2rem;
}

.service-image {
    flex: 1;
    max-width: 400px;
}

.service-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

@media (max-width: 900px) {
    .service-section,
    .service-section-reverse {
        flex-direction: column;
        gap: 2rem;
        padding: 1.5rem;
    }

    .service-image {
        max-width: 100%;
    }

    .service-content h2 {
        font-size: 1.8rem;
    }
}

/* Страница Контакти */
.contact-page-main {
    padding: 3rem 1rem;
    background: #f8f9fa;
}

.contact-page-container {
    max-width: 1200px;
    margin: 0 auto 3rem auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-details-box,
.contact-form-box {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.contact-details-box h2,
.contact-form-box h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 2rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.8rem;
}

.contact-details-box h2::after,
.contact-form-box h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.contact-page-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-page-details li {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-page-details i {
    font-size: 1.5rem;
    color: var(--accent);
    margin-top: 5px;
    width: 25px;
    text-align: center;
}

.contact-page-details div {
    display: flex;
    flex-direction: column;
}

.contact-page-details strong {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.3rem;
}

.contact-page-details span,
.contact-page-details a {
    font-size: 1rem;
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-page-details a:hover {
    color: var(--accent);
}

.contact-page-form .form-group {
    margin-bottom: 1.2rem;
}

.contact-page-form input,
.contact-page-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-page-form input:focus,
.contact-page-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(239, 35, 60, 0.1);
}

.contact-page-map {
    max-width: 1200px;
    margin: 0 auto;
    height: 450px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    position: relative;
}

.contact-page-map::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.4s ease;
    opacity: 1;
    border-radius: 15px;
    box-shadow:
        0 0 50px 15px rgba(0,0,0,0.12) inset,
        20px 20px 50px 0 rgba(0,0,0,0.12) inset,
        -20px -20px 50px 0 rgba(0,0,0,0.12) inset;
}

.contact-page-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(100%);
    transition: filter 0.4s ease;
}

.contact-page-map:hover iframe,
.contact-page-map:focus-within iframe {
    filter: grayscale(0%);
}

.contact-page-map:hover::before,
.contact-page-map:focus-within::before {
    opacity: 0;
}

@media (max-width: 900px) {
    .contact-page-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-details-box,
    .contact-form-box {
        padding: 2rem;
    }
}

/* Футър */
.site-footer {
    background-color: #2b2d42;
    background-image: linear-gradient(145deg, #222435 0%, #31334a 100%), url("data:image/svg+xml,%3csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3e%3cg fill='%231a1c2a' fill-opacity='0.4' fill-rule='evenodd'%3e%3ccircle cx='3' cy='3' r='3'/%3e%3ccircle cx='13' cy='13' r='3'/%3e%3c/g%3e%3c/svg%3e");
    color: #edf2f4;
    padding: 3rem 1rem 1.5rem 1rem;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: radial-gradient(circle, rgba(239, 35, 60, 0.3) 0%, rgba(239, 35, 60, 0) 70%);
}

.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.footer-column h4 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.footer-column p {
    line-height: 1.8;
    color: #a7aab8;
}

.footer-logo {
    max-height: 40px;
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 0.6rem;
}

.footer-column.links a,
.footer-column.contact a,
.footer-column.contact span {
    color: #a7aab8;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.footer-column.links a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-column.contact i {
    margin-right: 1rem;
    width: 20px;
    font-size: 1.1rem;
    color: var(--accent);
}

.footer-column.contact a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #4a4e69;
    color: #8d99ae;
}

.footer-bottom p {
    margin: 0;
}

/* Модален прозорец */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 2.5rem;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    animation: slide-down 0.5s ease-out;
}

@keyframes slide-down {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-btn {
    color: #aaa;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    transition: color 0.3s ease;
}

.close-btn:hover,
.close-btn:focus {
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

.modal-icon {
    margin-bottom: 1.5rem;
}

.modal-icon i {
    font-size: 4rem;
    color: #28a745;
    animation: icon-pop 0.5s ease-out 0.2s;
    transform: scale(0);
    animation-fill-mode: forwards;
}

@keyframes icon-pop {
    0% { transform: scale(0); }
    80% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.modal-content h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.modal-content p {
    font-size: 1rem;
    color: var(--secondary);
    line-height: 1.6;
} 