:root {
    --primary: #1a3a5f;          /* Темно-синий (основной) */
    --primary-dark: #0d2540;     /* Темнее для hover и акцентов */
    --primary-light: #E8EEF5;    /* Светлый фон, контрастный к primary */
    --secondary: #e63946;        /* Красный акцент (для кнопок, акцентов) */
    --accent: #2a9d8f;           /* Акцентный зеленый/бирюзовый */
    --light: #ffffff;
    --gray: #6B7280;             /* Нейтральный серый */
    --gray-light: #F9FAFB;       /* Светлый фон */
    --gray-border: #D1D5DB;      /* Границы */
    --radius: 16px;
    --radius-sm: 8px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--primary);
    background-color: var(--light);
    font-size: 18px;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 42px;
    margin-bottom: 60px;
    text-align: center;
    color: var(--primary);
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
}

/* Header */
header {
    background-color: var(--primary);
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 20px;
    font-weight: bold;
}

nav {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 17px;
    transition: var(--transition);
    position: relative;
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link:hover:after {
    width: 100%;
}

.header-cta {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 16px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 17px;
    white-space: nowrap;
}

.btn-outline {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.btn-outline:hover {
    background-color: white;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-primary {
    background-color: var(--secondary);
    color: white;
}

.btn-primary:hover {
    background-color: #c1121f;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}


.btn-secondary {
    background-color: var(--primary);  /* Синий фон */
    color: white;                       /* Белый текст */
    border: none;
}

.btn-secondary:hover {
    background-color: var(--primary-dark);  /* Темнее синий при наведении */
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
    padding: 10px;
}

/* Hero */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, rgba(26, 58, 95, 0.05) 0%, rgba(42, 157, 143, 0.02) 100%);
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(42, 157, 143, 0.08) 0%, transparent 70%);
    z-index: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(42, 157, 143, 0.12);
    color: var(--accent);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 30px;
}

h1 {
    font-size: 64px;
    margin-bottom: 30px;
    color: var(--primary);
}

.hero-subtitle {
    font-size: 22px;
    color: var(--gray);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background-color: white;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 24px;
    height: 24px;
    background-color: var(--primary-light);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
}

.feature-text {
    font-size: 17px;
    font-weight: 500;
}

.hero-cta {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

/* Form Card */
.form-card {
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 0;
    border: 1px solid var(--gray-border);
    overflow: hidden;
}

.form-header {
    background-color: var(--primary);
    color: white;
    padding: 30px 40px;
}

.form-title {
    font-size: 28px;
    margin-bottom: 10px;
    color: white;
}

.form-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
}

.form-body {
    padding: 40px;
}

.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 16px;
    color: var(--primary);
}

input, select, textarea {
    width: 100%;
    padding: 18px 20px;
    border: 1px solid var(--gray-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 17px;
    transition: var(--transition);
    background-color: white;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.1);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    border-radius: var(--radius);
    padding: 40px 35px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid transparent;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 28px;
    margin-bottom: 25px;
}

.service-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary);
}

.service-desc {
    color: var(--gray);
    font-size: 18px;
    line-height: 1.6;
}

/* Service Packages */
.service-package-card {
    background-color: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-package-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-header {
    background-color: var(--primary);
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.service-header h3 {
    font-size: 28px;
    margin-bottom: 10px;
}

.service-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent);
    margin: 15px 0;
}

.service-body {
    padding: 35px;
}

.service-features {
    list-style: none;
    margin-bottom: 25px;
}

.service-features li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 30px;
}

.service-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
    font-size: 18px;
}

.note {
    font-style: italic;
    color: var(--gray);
    font-size: 16px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed var(--gray-border);
}

/* Additional Services Section */
.additional-services {
    background-color: var(--gray-light);
    padding: 80px 0;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-item {
    background-color: white;
    padding: 45px 35px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-item .service-icon {
    background-color: var(--primary-light);
    color: var(--primary);
    margin: 0 auto 25px;
}

.service-item h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary);
}

/* Referral Section */
.referral {
    background-color: var(--accent);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.referral-content {
    max-width: 700px;
    margin: 0 auto;
}

.referral h2 {
    font-size: 36px;
    margin-bottom: 25px;
}

.discount-badge {
    background-color: var(--secondary);
    color: white;
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 28px;
    font-weight: 700;
    margin: 25px 0;
    box-shadow: var(--shadow);
}

/* Contact Section */
.contact {
    padding: 80px 0;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-info h3 {
    color: var(--primary);
    margin-bottom: 25px;
    font-size: 28px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin: 25px 0;
}

.contact-icon {
    background-color: var(--primary);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 24px;
    flex-shrink: 0;
}

/* Footer */
footer {
    background-color: var(--primary);
    color: white;
    padding: 70px 0 30px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-section h3 {
    font-size: 22px;
    margin-bottom: 25px;
    color: white;
}

.footer-contact {
    font-size: 18px;
    line-height: 1.8;
    color: #cbd5e0;
}

.footer-contact a {
    color: #cbd5e0;
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact a:hover {
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #cbd5e0;
    text-decoration: none;
    font-size: 18px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 16px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-links a {
    color: white;
    font-size: 18px;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.social-links a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

/* Mobile Sticky CTA */
.mobile-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 900;
}

.sticky-buttons {
    display: flex;
    gap: 15px;
}

.sticky-buttons .btn {
    flex: 1;
}

/* Responsive */
@media (max-width: 1200px) {
    h1 {
        font-size: 54px;
    }
    
    .hero-grid {
        gap: 40px;
    }
    
    .section-title {
        font-size: 38px;
    }
}

@media (max-width: 992px) {
    body {
        font-size: 17px;
    }
    
    .hero {
        padding: 140px 0 80px;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .hero:before {
        width: 100%;
        opacity: 0.5;
    }
    
    nav {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background-color: var(--primary);
        flex-direction: column;
        padding: 30px;
        box-shadow: var(--shadow-lg);
        gap: 25px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    nav.active {
        display: flex;
    }
    
    .header-cta {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .mobile-sticky-cta {
        display: block;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .form-header, .form-body {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 44px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 34px;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-card, .service-item, .service-card {
        padding: 0;
    }
    
    .btn {
        padding: 14px 24px;
        font-size: 16px;
    }
    
    .service-header {
        padding: 25px 20px;
    }
    
    .service-body {
        padding: 25px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 30px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-cta .btn {
        width: 100%;
        text-align: center;
    }
}

ul {margin: 20px 0 20px 0;}
li {margin-left: 25px;}

.form-message.form-message--error {
    border: 2px solid #dc2626;
    background-color: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    margin: 20px 0;
    font-weight: 500;
    text-align: center;
    backdrop-filter: blur(5px);
}

.form-message.form-message--success {
    border: 2px solid #059669;
    background-color: rgba(5, 150, 105, 0.1);
    color: #059669;
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    margin: 20px 0;
    font-weight: 500;
    text-align: center;
    backdrop-filter: blur(5px);
}


/* Specials Section */
.specials-header {
    text-align: center;
    margin-bottom: 40px;
}

.specials-subtitle {
    font-size: 18px;
    color: var(--secondary);
    font-weight: 600;
    margin-top: -15px;
    margin-bottom: 20px;
}

.specials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.special-card {
    background-color: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid var(--secondary);
    position: relative;
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

.special-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(230, 57, 70, 0.15);
    border-color: var(--accent);
}

/* Бейдж для спецпредложений */
.special-badge {
    position: absolute;
    top: 15px;
    right: -8px;
    background: linear-gradient(135deg, var(--secondary), #ff6b6b);
    color: white;
    padding: 6px 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(230, 57, 70, 0.3);
    z-index: 2;
}

.special-badge:after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 15px;
    width: 10px;
    height: 10px;
    background: var(--secondary);
    transform: rotate(45deg);
}

.special-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 25px 20px;
    text-align: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.special-header:before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1%, transparent 1%);
    background-size: 20px 20px;
    opacity: 0.3;
}

.special-icon {
    font-size: 32px;
    margin-bottom: 10px;
    display: block;
}

.special-header h3 {
    font-size: 20px;
    margin-bottom: 5px;
    color: white;
    line-height: 1.2;
}

.special-category {
    font-size: 14px;
    opacity: 0.8;
    font-weight: 500;
    letter-spacing: 1px;
}

.special-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    background: linear-gradient(to bottom, var(--gray-light) 0%, white 20%);
}

.special-item {
    padding: 15px 0;
    border-bottom: 2px dotted #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.special-item:last-child {
    border-bottom: none;
}

.special-item-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.special-item-title {
    font-weight: 600;
    color: var(--primary);
    font-size: 16px;
    line-height: 1.3;
}

.special-note {
    font-style: italic;
    color: var(--gray);
    font-size: 14px;
    line-height: 1.2;
}

.special-tag {
    display: inline-block;
    background-color: var(--primary-light);
    color: var(--primary);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 5px;
    align-self: flex-start;
}

.special-price-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    flex-shrink: 0;
}

.special-price-original {
    font-size: 14px;
    color: var(--gray);
    text-decoration: line-through;
    font-weight: 500;
}

.special-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--secondary);
    white-space: nowrap;
}

.special-footer {
    background-color: var(--primary-light);
    padding: 15px 25px;
    text-align: center;
    flex-shrink: 0;
    border-top: 2px dashed var(--gray-border);
}

.special-savings {
    color: var(--secondary);
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.special-savings:before {
    content: '💸';
    font-size: 18px;
}

.specials-notice {
    background-color: var(--primary-light);
    border-left: 4px solid var(--accent);
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    text-align: center;
    margin-top: 20px;
}

.specials-notice p {
    color: var(--primary);
    font-size: 16px;
    margin: 0;
}

.specials-notice strong {
    color: var(--secondary);
}

/* Анимация для привлечения внимания */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(230, 57, 70, 0);
    }
}

.special-card {
    animation: pulse-glow 3s infinite;
}

/* Responsive для Specials */
@media (max-width: 768px) {
    .specials-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .special-body {
        padding: 20px;
    }
    
    .special-header {
        padding: 20px 15px;
    }
    
    .special-header h3 {
        font-size: 18px;
    }
    
    .special-icon {
        font-size: 28px;
    }
    
    .special-item {
        padding: 12px 0;
    }
    
    .special-item-title {
        font-size: 15px;
    }
    
    .special-price {
        font-size: 20px;
    }
    
    .special-price-original {
        font-size: 13px;
    }
    
    .special-badge {
        font-size: 11px;
        padding: 5px 15px;
    }
}

/* Reels */
.reels-section {
  padding: 80px 0;
  background: #0d0d0d;
  color: #fff;
  text-align: center;
}

.reels-title {
  font-size: 34px;
  margin-bottom: 10px;
}

.reels-sub {
  opacity: 0.7;
  margin-bottom: 40px;
}

.reels-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 10px 20px;
  scroll-snap-type: x mandatory;
}

.reel-card {
  flex: 0 0 220px;
  height: 390px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform 0.3s ease;
}

.reel-card:hover {
  transform: scale(1.05);
}

.reel-thumb {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,#1a1a1a,#333);
  position: relative;
}

.reel-thumb::after {
  content: "▶";
  font-size: 42px;
  color: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.9;
}


.reel-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
}

.reel-modal-content {
  width: 90%;
  max-width: 420px;
  position: relative;
}

.reel-modal iframe {
  width: 100%;
  height: 740px;
  border-radius: 16px;
}

.reel-close {
  position: absolute;
  top: -35px;
  right: 0;
  font-size: 28px;
  cursor: pointer;
}


/* Gallery Section */
.gallery {
background-color: var(--gray-light);
}

.gallery-container {
max-width: 1400px;
margin: 0 auto;
position: relative;
}

.gallery-slider {
position: relative;
overflow: hidden;
border-radius: var(--radius);
padding-bottom:10px;
}

.gallery-track {
display: flex;
transition: transform 0.5s ease;
}

.gallery-slide {
min-width: 100%;
flex: 0 0 100%;
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
padding: 10px;
}

.gallery-item {
position: relative;
border-radius: var(--radius);
overflow: hidden;
box-shadow: var(--shadow);
background-color: white;
transition: var(--transition);
height: 300px;
background: linear-gradient(to bottom, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0) 100%);
}

.gallery-item:hover {
transform: translateY(-5px);
box-shadow: var(--shadow-lg);
}

.gallery-image {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-image {
transform: scale(1.05);
}

/* Стиль для вертикальных фото - добавляем размытие по бокам */
.gallery-image[style*="aspect-ratio: 3/4"],
.gallery-image[style*="aspect-ratio: 2/3"],
.gallery-image[style*="aspect-ratio: 9/16"] {
object-fit: cover;
width: 100%;
height: 100%;
background: linear-gradient(to right, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 10%, rgba(255,255,255,0) 90%, rgba(255,255,255,0.1) 100%);
}

.image-caption {
position: absolute;
bottom: 0;
left: 0;
right: 0;
background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
color: white;
padding: 20px;
font-size: 16px;
font-weight: 600;
opacity: 0;
transition: opacity 0.3s ease;
}

.gallery-item:hover .image-caption {
opacity: 1;
}

.gallery-nav {
display: flex;
justify-content: center;
gap: 20px;
margin-top: 40px;
}

.gallery-dot {
width: 12px;
height: 12px;
border-radius: 50%;
background-color: var(--gray-border);
cursor: pointer;
transition: var(--transition);
}

.gallery-dot.active {
background-color: var(--primary);
transform: scale(1.2);
}

.gallery-arrows {
position: absolute;
top: 50%;
left: 0;
right: 0;
transform: translateY(-50%);
display: flex;
justify-content: space-between;
padding: 0 20px;
pointer-events: none;
}

.gallery-arrow {
background-color: rgba(255, 255, 255, 0.9);
border: none;
width: 50px;
height: 50px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 24px;
color: var(--primary);
cursor: pointer;
transition: var(--transition);
pointer-events: auto;
box-shadow: var(--shadow);
}

.gallery-arrow:hover {
background-color: var(--primary);
color: white;
transform: scale(1.1);
}

/* Responsive Gallery */
@media (max-width: 1200px) {
.gallery-slide {
grid-template-columns: repeat(2, 1fr);
}
}

@media (max-width: 768px) {
.gallery-slide {
grid-template-columns: 1fr;
}

.gallery-item {
height: 250px;
}
}

@media (max-width: 576px) {
.gallery-item {
height: 200px;
}
}


/* Прозрачная подложка для подписи */
.image-caption {
    background: rgba(0, 0, 0, 0.7); /* Полупрозрачный черный фон */
    color: white;
    padding: 10px 15px;
    text-align: center;
    font-size: 14px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Подпись, которая показывается сразу */
.image-caption.show-immediately {
    opacity: 1;
}

/* При наведении на изображение показываем подпись (если не показывается сразу) */
.gallery-item:hover .image-caption:not(.show-immediately) {
    opacity: 1;
}

/* Ссылка на всю карточку */
.gallery-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.gallery-link:hover {
    opacity: 0.95;
}

/* Кнопка ссылки под фото */
.gallery-link-button {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color, #007bff);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    text-decoration: none;
    cursor: pointer;
}

.gallery-link:hover .gallery-link-button {
    opacity: 1;
}

/* Для карточек со ссылкой добавляем курсор указателя */
.gallery-item a {
    cursor: pointer;
}