/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, #A855F7 0%, #7B25BE 50%, #5A1C8B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Main Background */
.main-bg {
    background: radial-gradient(ellipse at top left, rgba(123, 37, 190, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at top right, rgba(123, 37, 190, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at bottom, rgba(90, 28, 139, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, #0F0F23 0%, #050510 100%);
    min-height: 100vh;
}

/* Hero Background */
.hero-bg {
    background: radial-gradient(circle at 30% 20%, rgba(123, 37, 190, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(168, 85, 247, 0.2) 0%, transparent 50%);
}

/* Glass Effects */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(123, 37, 190, 0.2);
    box-shadow: 0 20px 40px rgba(123, 37, 190, 0.2);
}

/* Button Hover Effects */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Modal */
.modal {
    display: none !important;
}

.modal.active {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section and Product styling */
.section {
    padding: 6rem 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #A855F7;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.section-description {
    font-size: 1.25rem;
    color: #B4B4C7;
    max-width: 42rem;
    margin: 0 auto;
}

/* Mobile Grid Adaptations */
.color-ppf-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
    align-items: center !important;
}

@media (min-width: 1024px) {
    .color-ppf-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 3.75rem !important;
    }
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .section {
        padding: 3rem 0;
    }

    .section-description {
        font-size: 1rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .product-features {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .product-specs {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .social-links {
        gap: 0.75rem;
    }

    .social-link {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .modal-content {
        padding: 1rem;
        margin: 0.5rem;
        max-width: 95vw;
        max-height: 80vh;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .section-badge {
        font-size: 0.75rem;
        padding: 0.375rem 1rem;
    }

    .section-title {
        font-size: 2rem;
        line-height: 1.1;
    }

    .product-content {
        padding: 1.5rem;
    }

    .contact-card {
        padding: 1.5rem;
    }

    .price-table {
        font-size: 0.875rem;
    }

    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }

    .modal-content {
        padding: 0.5rem;
        margin: 0.25rem;
        max-width: 98vw;
        max-height: 80vh;
        border-radius: 1rem;
    }

    .modal-content h2 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .modal-content p {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
    }

    .form-group {
        margin-bottom: 0.75rem;
    }

    .form-input,
    .form-select {
        padding: 1rem;
        font-size: 1rem;
        height: 3rem;
        border-radius: 0.5rem;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }

    .form-select {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
        background-position: right 0.75rem center;
        background-repeat: no-repeat;
        background-size: 1.5em 1.5em;
        padding-right: 2.5rem;
        /* iOS specific fixes */
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.product-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-0.25rem);
    border-color: rgba(123, 37, 190, 0.2);
    box-shadow: 0 20px 40px rgba(123, 37, 190, 0.2);
}

.product-image {
    position: relative;
    height: 16rem;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
}

.product-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.product-subtitle {
    color: #B4B4C7;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.product-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #B4B4C7;
}

.feature-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
}

.product-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
}

.spec-label {
    color: #6B7280;
}

.spec-value {
    color: white;
    font-weight: 600;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #7B25BE 0%, #5A1C8B 100%);
    color: white;
    border: 1px solid #7B25BE;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(123, 37, 190, 0.4);
}

.product-content .btn {
    margin-top: auto;
}

/* Price Table */
.price-table {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    overflow: hidden;
    overflow-x: auto;
    margin-top: 2.5rem;
}

.price-table table {
    width: 100%;
    min-width: 1200px;
    border-collapse: collapse;
}

.price-table th {
    background: linear-gradient(135deg, #7B25BE 0%, #5A1C8B 100%);
    padding: 0.875rem 0.75rem;
    text-align: left;
    font-weight: 700;
    color: white;
    font-size: 0.9rem;
    white-space: nowrap;
}

.price-table td {
    padding: 0.875rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #B4B4C7;
    font-size: 0.9rem;
}

.price-table td[data-label="Назва"] {
    text-align: center;
    vertical-align: middle;
}

.price-table td[data-label="Назва"] strong {
    color: #A855F7;
    font-size: 1.05em;
    font-weight: 700;
}

.price-table td[data-label="Тип плівки"] small {
    font-size: 0.85rem;
    line-height: 1.4;
}

.price-table td[data-label="Загальні характеристики"] small {
    font-size: 0.85rem;
    line-height: 1.4;
}

.price-table tr:hover {
    background: rgba(123, 37, 190, 0.05);
}

.price-table tr.category-header {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
}

.price-table tr.category-header td {
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    padding: 16px;
    color: var(--primary);
}

.price-table tr.category-header:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
}

.price-highlight {
    color: #10B981;
    font-weight: 700;
}

/* Mobile responsive table */
@media (max-width: 1024px) {
    .price-table {
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
    }

    .price-table table {
        min-width: 700px;
    }

    .price-table th,
    .price-table td {
        padding: 0.875rem;
        font-size: 0.875rem;
    }

    .price-table td[data-label] strong {
        font-size: 0.95rem;
    }

    .price-table td[data-label] small {
        font-size: 0.75rem;
    }

    .price-table .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .price-table {
        border: none !important;
        background: transparent !important;
        overflow: visible !important;
    }

    .price-table table {
        min-width: 100% !important;
        display: block !important;
    }

    .price-table thead {
        display: none !important;
    }

    .price-table tbody {
        display: block !important;
    }

    .price-table tr {
        display: block !important;
        margin-bottom: 1.5rem;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 1rem;
        padding: 1rem;
    }

    .price-table tr.category-header {
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%) !important;
        border: 1px solid rgba(123, 37, 190, 0.3);
        margin-bottom: 1rem;
        padding: 1rem;
    }

    .price-table tr.category-header td {
        display: block !important;
        padding: 0 !important;
        font-size: 1rem;
    }

    .price-table tr.category-header td:before {
        display: none !important;
    }

    .price-table td {
        display: block !important;
        text-align: right;
        padding: 0.75rem 0;
        border: none;
        position: relative;
        padding-left: 50%;
        min-height: 2rem;
    }

    .price-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 45%;
        padding-right: 10px;
        text-align: left;
        font-weight: 600;
        color: #A855F7;
    }

    .price-table td[data-label=""] {
        text-align: center;
        padding-left: 0;
        padding-top: 1rem;
    }

    .price-table td[data-label=""]:before {
        display: none;
    }

    .price-table .btn {
        width: 100%;
        padding: 0.875rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .price-table tr {
        padding: 0.875rem;
    }

    .price-table td {
        padding: 0.625rem 0;
        font-size: 0.875rem;
        padding-left: 45%;
    }

    .price-table td:before {
        font-size: 0.75rem;
        width: 42%;
    }

    .price-table td[data-label="Назва"] {
        padding-left: 0 !important;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin-bottom: 0.5rem;
    }

    .price-table td[data-label="Назва"]:before {
        display: none !important;
    }

    .price-table td[data-label="Тип плівки"] {
        padding-left: 0 !important;
        text-align: left !important;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin-bottom: 0.75rem;
    }

    .price-table td[data-label="Тип плівки"]:before {
        display: block !important;
        position: static !important;
        width: 100% !important;
        margin-bottom: 0.25rem;
        font-weight: 600;
        font-size: 0.75rem;
        color: #A855F7;
    }

    .price-table td[data-label="Загальні характеристики"] {
        padding-left: 0 !important;
        text-align: left !important;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .price-table td[data-label="Загальні характеристики"]:before {
        display: block !important;
        position: static !important;
        width: 100% !important;
        margin-bottom: 0.5rem;
        font-weight: 700;
        color: #A855F7;
    }

    .price-table .btn {
        font-size: 0.875rem;
        padding: 0.75rem;
    }
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-0.25rem);
    border-color: rgba(123, 37, 190, 0.2);
}

.contact-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, #7B25BE 0%, #5A1C8B 100%);
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.5rem;
    color: white;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(123, 37, 190, 0.4);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.25rem;
    border-radius: 1rem;
    color: #B4B4C7;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(123, 37, 190, 0.1);
    border-color: #7B25BE;
    color: #A855F7;
    transform: translateY(-2px);
}

/* Payment Methods */
.payment-methods {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.payment-methods img {
    opacity: 0.7;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-methods img:hover {
    opacity: 1;
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(123, 37, 190, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #B4B4C7;
}

.form-input,
.form-select {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
    /* Prevent iOS zoom */
    -webkit-text-size-adjust: 100%;
    touch-action: manipulation;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #7B25BE;
    box-shadow: 0 0 0 3px rgba(123, 37, 190, 0.2);
}

.form-input::placeholder {
    color: #6B7280;
}

/* Modal Styles */
.modal-content {
    background: linear-gradient(135deg, #0F0F23 0%, #1A1B32 100%);
    border: 1px solid rgba(123, 37, 190, 0.2);
    border-radius: 1.5rem;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #7B25BE;
    transform: rotate(90deg);
}

/* Additional Footer Styles */
.bg-gradient-radial {
    background: radial-gradient(circle, var(--tw-gradient-from), var(--tw-gradient-to));
}

/* Logo hover effect */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* Footer specific animations */
@keyframes floating {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-floating {
    animation: floating 6s ease-in-out infinite;
}

/* Video optimization for mobile */
@media (max-width: 768px) {
    video {
        max-height: 300px !important;
        object-fit: cover;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    video[poster] {
        background-size: cover;
        background-position: center;
    }

    /* Специальные стили для видео в hero секции */
    .relative.rounded-\[32px\] video {
        max-height: 400px !important;
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
        border-radius: 1rem !important;
    }

    /* Увеличиваем контейнер для видео */
    .relative.rounded-\[32px\] {
        height: auto !important;
        min-height: 400px !important;
    }

    /* Fallback изображения */
    video img {
        display: none;
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: inherit;
    }

    video img[style*="display: block"] {
        display: block !important;
    }
}

@media (max-width: 480px) {
    video {
        max-height: 250px !important;
    }

    /* Специальные стили для видео в hero секции на маленьких экранах */
    .relative.rounded-\[32px\] video {
        max-height: 350px !important;
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
        border-radius: 0.75rem !important;
    }

    /* Увеличиваем контейнер для видео */
    .relative.rounded-\[32px\] {
        height: auto !important;
        min-height: 350px !important;
    }

    /* Дополнительные стили для модального окна на мобильных */
    .modal {
        padding: 0.25rem !important;
    }

    .modal-content {
        padding: 0.75rem;
        margin: 0;
        border-radius: 0.75rem;
    }

    .modal-content h2 {
        font-size: 1.125rem;
        margin-bottom: 0.375rem;
    }

    .modal-content p {
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .form-group {
        margin-bottom: 0.625rem;
    }

    .form-label {
        font-size: 0.875rem;
        margin-bottom: 0.25rem;
    }

    .form-input,
    .form-select {
        padding: 0.875rem;
        font-size: 16px !important;
        height: auto;
        min-height: 2.75rem;
        border-radius: 0.5rem;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        /* Prevent iOS zoom on focus */
        touch-action: manipulation;
    }

    .form-select {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
        background-position: right 0.75rem center;
        background-repeat: no-repeat;
        background-size: 1.25em 1.25em;
        padding-right: 2.25rem;
        /* iOS specific fixes */
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }

    .btn {
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
        border-radius: 0.5rem;
        height: 2.75rem;
    }

    /* Уменьшаем иконку в модальном окне */
    .modal-content > div:first-child > div:first-child {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-bottom: 0.75rem;
    }
}

/* Simple Mobile Menu */
#mobileMenu a {
    transition: all 0.3s ease;
}

#mobileMenu a:hover {
    color: #A855F7;
    padding-left: 8px;
}

/* Hero Section Mobile Improvements */
@media (max-width: 640px) {
    #home {
        min-height: calc(100vh - 70px);
        padding: 2rem 0;
    }

    #home .max-w-7xl {
        padding: 0 1rem;
    }

    #home h1 {
        font-size: 2.5rem;
        line-height: 1.1;
        margin-bottom: 1.5rem;
    }

    #home p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    #home .glass-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    #home .glass-card span:first-child {
        font-size: 2rem;
    }

    #home .glass-card span:last-child {
        font-size: 0.75rem;
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    #home h1 {
        font-size: 3.5rem;
    }

    #home .glass-card {
        padding: 1.5rem;
    }
}

/* Hero Image Mobile Optimization */
@media (max-width: 1023px) {
    #home .fade-in.relative {
        order: -1;
        margin-bottom: 2rem;
    }

    #home .fade-in.relative img {
        max-height: 600px;
        object-fit: contain;
        width: 100%;
        height: auto;
        border-radius: 1rem;
    }
}

/* Дополнительные стили для мобильных устройств */
@media (max-width: 768px) {
    #home .fade-in.relative img {
        max-height: 500px;
        object-fit: contain;
        width: 100%;
        height: auto;
        border-radius: 0.75rem;
    }
}

@media (max-width: 480px) {
    #home .fade-in.relative img {
        max-height: 450px;
        object-fit: contain;
        width: 100%;
        height: auto;
        border-radius: 0.5rem;
    }
}

/* Better Glass Card Effects for Mobile */
@media (max-width: 768px) {
    .glass-card {
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 255, 255, 0.15);
    }

    .glass-card:hover {
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(123, 37, 190, 0.3);
        transform: translateY(-2px);
    }
}

/* Footer responsive styles */
@media (max-width: 768px) {
    footer .grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    footer .lg\\:col-span-2 {
        grid-column: span 1 !important;
    }

    footer .lg\\:text-right {
        text-align: left !important;
    }

    footer .lg\\:justify-end {
        justify-content: flex-start !important;
    }

    footer .flex-col {
        text-align: center;
    }

    footer .md\\:flex-row {
        flex-direction: column !important;
        text-align: center;
        gap: 1rem;
    }
}

/* Gallery Slider Styles */
.gallery-section {
    padding: 100px 0;
    background: radial-gradient(ellipse at center, rgba(123, 37, 190, 0.08) 0%, transparent 70%);
}

.gallery-slider {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
}

.gallery-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.gallery-slide {
    min-width: 100%;
    position: relative;
    overflow: hidden;
}

.gallery-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 0;
}

/* Desktop grid layout for gallery */
@media (min-width: 1024px) {
    .gallery-slide {
        min-width: 33.333%; /* Show 3 images at once */
        padding: 0 8px;
    }

    .gallery-slide img {
        height: 350px; /* Reduce height for better proportions */
        border-radius: 16px; /* Add rounded corners */
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .gallery-slide img:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    }

    .gallery-track {
        gap: 0; /* Remove gap since padding handles spacing */
    }

    /* Adjust navigation for grid layout */
    .gallery-nav {
        background: rgba(123, 37, 190, 0.2);
        border-color: rgba(123, 37, 190, 0.4);
    }

    .gallery-nav:hover {
        background: rgba(123, 37, 190, 0.4);
        border-color: rgba(123, 37, 190, 0.6);
    }
}

.gallery-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.gallery-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-dot.active {
    background: linear-gradient(135deg, #7B25BE, #A855F7);
    border-color: rgba(123, 37, 190, 0.8);
    box-shadow: 0 0 20px rgba(123, 37, 190, 0.6);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: white;
    font-size: 18px;
    font-weight: bold;
}

.gallery-nav:hover {
    background: rgba(123, 37, 190, 0.3);
    border-color: rgba(123, 37, 190, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav.prev {
    left: 20px;
}

.gallery-nav.next {
    right: 20px;
}

.gallery-counter {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    z-index: 10;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .gallery-section {
        padding: 60px 0;
    }

    .gallery-slide img {
        height: 300px;
    }

    .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .gallery-nav.prev {
        left: 10px;
    }

    .gallery-nav.next {
        right: 10px;
    }

    .gallery-controls {
        bottom: 20px;
        gap: 8px;
    }

    .gallery-dot {
        width: 12px;
        height: 12px;
    }

    .gallery-counter {
        top: 10px;
        right: 10px;
        padding: 6px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .gallery-slide img {
        height: 250px;
    }

    select {
        min-height: 53px !important;
    }
} 

 