* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: bold;
}

:root {
    --primary-color: #FF6B35;
    --secondary-color: #00B4D8;
    --accent-color: #FFD166;
    --light-color: #F8F9FA;
    --dark-color: #2B2D42;
    --text-color: #333333;
    --success-color: #06D6A0;
    --shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

body {
    background-color: #ffffff;
    color: var(--text-color);
    line-height: 1.7;
    font-size: 18px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

/* Header - Более яркий */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #FF8E53 100%);
    color: white;
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo i {
    color: var(--accent-color);
    font-size: 2.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.logo h1 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent-color);
    font-weight: 800;
}

/* Header Phone Styles */
.header-phone {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.phone-link {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 700;
    padding: 0.8rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    transition: var(--transition);
    white-space: nowrap;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.phone-link:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px) scale(1.05);
    border-color: var(--accent-color);
}

.phone-link i {
    margin-right: 12px;
    color: var(--accent-color);
    font-size: 1.3rem;
}

.phone-label {
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-top: 5px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 10px;
}

nav li {
    margin-left: 1.5rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: var(--transition);
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--accent-color);
}

.mobile-menu-btn {
    display: none;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 101;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Hero Section - Яркий и привлекательный */
.hero {
    background: linear-gradient(135deg, rgba(43, 45, 66, 0.9) 0%, rgba(43, 45, 66, 0.95) 100%), 
                url('hero2.jpg') center/cover;
    color: white;
    text-align: center;
    padding: 6rem 1rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--primary-color) 20%, transparent 20%),
                linear-gradient(-45deg, var(--secondary-color) 20%, transparent 20%);
    opacity: 0.1;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.hero p {
    font-size: 1.4rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    opacity: 0.95;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color) 0%, #FFB347 100%);
    color: var(--dark-color);
    padding: 1.2rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.3rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(255, 209, 102, 0.4);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 209, 102, 0.6);
    color: #000;
}

/* Section Titles - Крупнее и ярче */
.section-title {
    text-align: center;
    margin: 4rem 0 3rem;
    font-size: 2.8rem;
    color: var(--dark-color);
    position: relative;
    font-weight: 800;
}

.section-title:after {
    content: '';
    display: block;
    width: 120px;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 15px auto;
    border-radius: 3px;
}

/* About Section */
.about-section {
    padding: 4rem 0;
    background-color: var(--light-color);
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.feature-card {
    text-align: center;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    background: white;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-15px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.feature-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.2);
}

.feature-card h3 {
    color: var(--dark-color);
    margin-bottom: 1.2rem;
    font-size: 1.6rem;
    font-weight: 700;
}

.feature-card p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Services Section - Яркие карточки */
.services-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 2.5rem;
    margin-bottom: 5rem;
}

.service-card {
    background-color: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--secondary-color);
    box-shadow: 0 20px 40px rgba(0, 180, 216, 0.2);
}

.service-icon {
    background: linear-gradient(135deg, var(--accent-color) 0%, #0096C7 100%);
    color: white;
    font-size: 2.8rem;
    padding: 2rem;
    text-align: center;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-content {
    padding: 2rem;
}

.service-content h3 {
    color: var(--dark-color);
    margin-bottom: 1.2rem;
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.3;
}

.service-content p {
    color: #666;
    margin-bottom: 1.8rem;
    font-size: 1.15rem;
    line-height: 1.6;
}

.price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.price::before {
    content: '≈';
    font-size: 1.5rem;
    opacity: 0.7;
}

.service-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, #FF8E53 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
    width: 100%;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
}

/* Price Table - Более читаемая */
.prices-section {
    padding: 4rem 0;
    background-color: white;
}

.table-container {
    overflow-x: auto;
    margin-bottom: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 2px solid #eee;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    background-color: (--dark-color);
    border-radius: 20px;
    overflow: hidden;
    min-width: 800px;
}

.price-table th {
    background: linear-gradient(135deg, var(--dark-color) 0%, #414563 100%);
    color: white;
    padding: 1.5rem;
    text-align: left;
    font-weight: 700;
    font-size: 1.2rem;
    border-bottom: 3px solid var(--secondary-color);
}

.price-table td {
    padding: 1.3rem 1.5rem;
    border-bottom: 1px solid #eee;
    font-size: 1.1rem;
}

.price-table tr:last-child td {
    border-bottom: none;
}

.price-table tr:hover {
    background-color: rgba(0, 180, 216, 0.05);
}

.price-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.price-table .price-cell {
    font-weight: 800;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.price-note {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 1.5rem 2rem;
    border-radius: 15px;
    border-left: 6px solid var(--secondary-color);
    font-size: 1.15rem;
    line-height: 1.6;
}

.price-note i {
    color: var(--secondary-color);
    margin-right: 15px;
    font-size: 1.5rem;
}

/* Contact Section */
.contact-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.contact-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    margin-top: 2rem;
    
}

.contact-info {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 600px;
    background-color: #FF6B35;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-item i {
    margin-right: 1.5rem;
    color: var(--accent-color);
    font-size: 1.8rem;
    margin-top: 5px;
    min-width: 30px;
}

.contact-item div {
    flex: 1;
}

.contact-item strong {
    color: var(--dark-color);
    font-size: 1.2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.contact-item p {
    font-size: 1.15rem;
    color: #ffffff;
}

.social-links {
    display: flex;
    gap: 1.2rem;
    margin-top: 2.5rem;
    justify-content: center;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #FF8E53 100%);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.5rem;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
}

/* Footer - Яркий */
footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, #414563 100%);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    font-weight: 700;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: #ddd;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.1rem;
    display: inline-block;
    padding: 0.3rem 0;
}

.footer-section ul li a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-section p {
    color: #ddd;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.footer-section p i {
    margin-right: 12px;
    color: var(--accent-color);
    font-size: 1.3rem;
}

.copyright {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bbb;
    font-size: 1rem;
    line-height: 1.6;
}

/* Responsive Design - МОБИЛЬНАЯ ВЕРСИЯ */
@media (max-width: 992px) {
    .hero h2 {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2.4rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        padding: 1rem 0;
        position: relative;
    }
    
    .logo {
        width: 100%;
        justify-content: center;
        text-align: center;
        margin-bottom: 1rem;
        order: 1;
        margin-top: 15px;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .header-phone {
        position: static;
        width: 100%;
        text-align: center;
        margin: 0.8rem 0;
        order: 3;
        transform: none;
        left: auto;
    }
    
    .phone-link {
        justify-content: center;
        font-size: 1.3rem;
        padding: 0.7rem 1.5rem;
        display: inline-flex;
        width: 90%;
        max-width: 400px;
    }
    
    .mobile-menu-btn {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 50px;
        background-color: rgba(255, 255, 255, 0.2);
        border-radius: 10px;
        transition: var(--transition);
        z-index: 102;
        order: 2;
    }
    
    nav {
        width: 100%;
        margin-top: 1rem;
        order: 4;
    }
    
    nav ul {
        flex-direction: column;
        display: none;
        width: 100%;
        background: linear-gradient(135deg, var(--primary-color) 0%, #FF8E53 100%);
        border-radius: 15px;
        padding: 1.5rem 0;
        box-shadow: var(--shadow);
    }
    
    nav.active ul {
        display: flex;
    }
    
    nav li {
        margin: 0;
        text-align: center;
    }
    
    nav li a {
        display: block;
        padding: 1rem 1.5rem;
        font-size: 1.2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }
    
    nav li:last-child a {
        border-bottom: none;
    }
    
    .hero {
        padding: 4rem 1rem;
    }
    
    .hero h2 {
        font-size: 2.3rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin: 3rem 0 2rem;
    }
    
    .features-grid,
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-card,
    .feature-card {
        padding: 2rem;
    }
    
    .service-icon {
        height: 150px;
        font-size: 2.5rem;
    }
    
    .contact-info {
        padding: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }
    
    .footer-section p {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 16px;
    }
    
    .hero {
        padding: 3rem 1rem;
    }
    
    .hero h2 {
        font-size: 1.9rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .cta-button {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
    
    .service-card, .feature-card {
        padding: 1.8rem;
    }
    
    .price {
        font-size: 1.9rem;
    }
    
    .phone-link {
        font-size: 1.2rem;
        padding: 0.6rem 1.2rem;
    }
    
    .phone-label {
        font-size: 0.8rem;
    }
    
    .mobile-menu-btn {
        top: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
    
    .contact-item i {
        font-size: 1.5rem;
        margin-right: 1rem;
    }
    
    .social-link {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}

/* Анимации для плавности */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card, .service-card, .contact-info {
    animation: fadeInUp 0.6s ease-out;
}

.feature-card:nth-child(2), .service-card:nth-child(2) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(3), .service-card:nth-child(3) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(4), .service-card:nth-child(4) {
    animation-delay: 0.3s;
}
/* About Section - Карточки в один ряд */
.about-section {
    padding: 4rem 0;
    background-color: var(--light-color);
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Фиксировано 4 колонки */
    gap: 2rem;
    margin-top: 3rem;
}

/* Медиа-запросы для адаптивности */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr); /* Все равно 4 колонки */
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr); /* На планшетах 2x2 */
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr; /* На мобильных - одна колонка */
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .feature-card {
        text-align: center;
        padding: 2rem;
    }
    
    .feature-icon {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .features-grid {
        max-width: 100%;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-card h3 {
        font-size: 1.4rem;
    }
}

/* Адаптация для очень широких экранов */
@media (min-width: 1400px) {
    .features-grid {
        gap: 3rem;
    }
    
    .feature-card {
        padding: 3rem 2rem;
    }
}
.developed-links {
    display: flex;
    justify-content: center;
    align-items: center;
    
    
}
.developed-links>a{
    text-decoration: none;
    color: #5c5c5c;
    background: transparent; /* Прозрачный фон */
    color: #2e2e2e;
    
    
}
.developed-links > a:hover,
.developed-links > a:active,
.developed-links > a:focus {
    transform: none !important;
    background: transparent !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #2e2e2e !important;
    box-shadow: none !important;
}

/* Responsive Design - МОБИЛЬНАЯ ВЕРСИЯ */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        padding: 1rem 0;
        align-items: center;
        gap: 15px;
    }
    
    .logo {
        order: 1;
        margin: 0;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 15px;
    }
    
    .logo h1 {
        font-size: 2.2rem; /* Оригинальный размер */
    }
    
    .logo i {
        font-size: 2.5rem; /* Оригинальный размер */
    }
    
    .header-call-btn {
        order: 2;
        padding: 1.2rem 3rem; /* Оригинальный размер */
        font-size: 1.3rem; /* Оригинальный размер */
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
    
    .mobile-menu-btn {
        order: 3;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 50px; /* Оригинальный размер */
        height: 50px; /* Оригинальный размер */
        background-color: rgba(255, 255, 255, 0.2);
        border-radius: 10px;
        transition: var(--transition);
        font-size: 1.5rem; /* Оригинальный размер */
    }
    
    /* Скрываем горизонтальное меню на мобильных */
    nav {
        display: none;
    }
    
    /* Показываем меню когда активно */
    nav.active {
        display: block;
        width: 100%;
        margin-top: 1rem;
        order: 4;
    }
    
    nav ul {
        flex-direction: column;
        width: 100%;
        background: linear-gradient(135deg, var(--primary-color) 0%, #FF8E53 100%);
        border-radius: 15px;
        padding: 1.5rem 0;
        box-shadow: var(--shadow);
    }
    
    nav li {
        margin: 0;
        text-align: center;
    }
    
    nav li a {
        display: block;
        padding: 1rem 1.5rem;
        font-size: 1.2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }
    
    nav li:last-child a {
        border-bottom: none;
    }
    
    /* Остальной код без изменений */
    .hero {
        padding: 4rem 1rem;
    }
    
    .hero h2 {
        font-size: 2.3rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin: 3rem 0 2rem;
    }
    
    .features-grid,
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-card,
    .feature-card {
        padding: 2rem;
    }
    
    .service-icon {
        height: 150px;
        font-size: 2.5rem;
    }
    
    .contact-info {
        padding: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }
    
    .footer-section p {
        justify-content: center;
    }
}

/* Для очень маленьких экранов - только тогда уменьшаем размеры */
@media (max-width: 480px) {
    .header-content {
        gap: 12px;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .logo i {
        font-size: 2.2rem;
    }
    
    .header-call-btn {
        padding: 1rem 2.5rem;
        font-size: 1.1rem;
    }
    
    .mobile-menu-btn {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
    }
    
    .hero {
        padding: 3rem 1rem;
    }
    
    .hero h2 {
        font-size: 1.9rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 360px) {
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .logo i {
        font-size: 2rem;
    }
    
    .header-call-btn {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
    
    .mobile-menu-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

/* Gallery Section - Mobile First */
.gallery-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f7ff 100%);
}

.gallery-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--dark-color);
    margin-bottom: 2rem;
    opacity: 0.9;
    padding: 0 15px;
}

.gallery-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.gallery-slider {
    position: relative;
    height: auto;
    min-height: 500px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background: white;
}

/* Десктопная версия */
@media (min-width: 769px) {
    .gallery-slider {
        height: 500px;
    }
    
    .gallery-slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        transform: translateX(100%);
        transition: all 0.5s ease-in-out;
        display: flex;
        align-items: stretch;
    }
    
    .gallery-slide.active {
        opacity: 1;
        transform: translateX(0);
    }
    
    .gallery-slide.prev {
        transform: translateX(-100%);
    }
    
    /* Изображение 70% */
    .slide-image {
        flex: 0 0 70%;
        min-width: 70%;
        background: #f5f5f5;
        overflow: hidden;
    }
    
    .slide-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }
    
    .gallery-slide:hover .slide-image img {
        transform: scale(1.05);
    }
    
    /* Контент 30% */
    .slide-content {
        flex: 0 0 30%;
        min-width: 30%;
        padding: 2.5rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        background: white;
        overflow-y: auto;
    }
    
    .slide-content h3 {
        font-size: 1.8rem;
        color: var(--dark-color);
        margin-bottom: 1rem;
        font-weight: 700;
    }
    
    .slide-content p {
        font-size: 1rem;
        line-height: 1.6;
        color: #555;
        margin-bottom: 1.5rem;
    }
    
    .slide-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: auto;
    }
    
    .tag {
        background: linear-gradient(135deg, var(--primary-color) 0%, #FF8E53 100%);
        color: white;
        padding: 0.4rem 1rem;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }
    
    /* Кнопки навигации */
    .gallery-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255, 107, 53, 0.9);
        color: white;
        border: none;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        cursor: pointer;
        font-size: 1.5rem;
        transition: all 0.3s ease;
        z-index: 10;
        display: flex;
        align-items: center;
        justify-content: center;
        backdrop-filter: blur(10px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }
    
    .gallery-btn:hover {
        background: var(--primary-color);
        transform: translateY(-50%) scale(1.1);
        box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    }
    
    .prev-btn {
        left: 30px;
    }
    
    .next-btn {
        right: 30px;
    }
    
    /* Индикаторы слайдов */
    .gallery-indicators {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 2rem;
        flex-wrap: wrap;
    }
    
    .indicator {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: #ddd;
        cursor: pointer;
        transition: all 0.3s ease;
        border: 2px solid transparent;
    }
    
    .indicator.active {
        background: var(--primary-color);
        transform: scale(1.2);
        border-color: var(--accent-color);
    }
    
    .indicator:hover {
        background: var(--secondary-color);
        transform: scale(1.1);
    }
}

/* Мобильная версия - 70/30 */
@media (max-width: 768px) {
    .gallery-slider {
        height: 500px;
        min-height: 500px;
    }
    
    .gallery-slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 500px;
        opacity: 0;
        transform: translateX(100%);
        transition: all 0.5s ease-in-out;
        display: flex;
        flex-direction: column;
    }
    
    .gallery-slide.active {
        opacity: 1;
        transform: translateX(0);
    }
    
    .gallery-slide.prev {
        transform: translateX(-100%);
    }
    
    /* Изображение 70% высоты */
    .slide-image {
        flex: 0 0 70%;
        height: 70%;
        overflow: hidden;
        background: #f5f5f5;
    }
    
    .slide-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* Контент 30% высоты */
    .slide-content {
        flex: 0 0 30%;
        height: 30%;
        padding: 1rem 1.2rem;
        background: white;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }
    
    .slide-content h3 {
        font-size: 1.3rem;
        color: var(--dark-color);
        margin-bottom: 0.5rem;
        font-weight: 700;
        line-height: 1.2;
    }
    
    .slide-content p {
        font-size: 0.9rem;
        line-height: 1.3;
        color: #555;
        margin-bottom: 0.8rem;
    }
    
    .slide-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: auto;
        padding-top: 0.5rem;
        border-top: 1px solid #eee;
    }
    
    .tag {
        background: linear-gradient(135deg, var(--primary-color) 0%, #FF8E53 100%);
        color: white;
        padding: 0.25rem 0.6rem;
        border-radius: 12px;
        font-size: 0.7rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.2px;
    }
    
    /* Кнопки навигации для мобильных */
    .gallery-btn {
        position: absolute;
        top: 35%; /* Смещаем ближе к изображению */
        transform: translateY(-50%);
        background: rgba(255, 107, 53, 0.95);
        color: white;
        border: 2px solid white;
        width: 45px;
        height: 45px;
        border-radius: 50%;
        cursor: pointer;
        font-size: 1rem;
        transition: all 0.3s ease;
        z-index: 10;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    }
    
    .gallery-btn:hover {
        background: var(--primary-color);
        transform: translateY(-50%) scale(1.1);
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
    
    /* Индикаторы слайдов для мобильных */
    .gallery-indicators {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 1rem;
        flex-wrap: wrap;
        padding: 0 10px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #ddd;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .indicator.active {
        background: var(--primary-color);
        transform: scale(1.2);
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .gallery-section {
        padding: 2rem 0;
    }
    
    .gallery-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .gallery-slider {
        height: 450px;
        min-height: 450px;
        border-radius: 12px;
    }
    
    .gallery-slide {
        height: 450px;
    }
    
    /* Изображение 70% */
    .slide-image {
        flex: 0 0 70%;
        height: 70%;
    }
    
    /* Контент 30% */
    .slide-content {
        flex: 0 0 30%;
        height: 30%;
        padding: 0.8rem 1rem;
    }
    
    .slide-content h3 {
        font-size: 1.2rem;
        margin-bottom: 0.4rem;
    }
    
    .slide-content p {
        font-size: 0.85rem;
        margin-bottom: 0.6rem;
        line-height: 1.2;
    }
    
    .tag {
        padding: 0.2rem 0.5rem;
        font-size: 0.65rem;
    }
    
    .gallery-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
        top: 35%;
    }
    
    .prev-btn {
        left: 8px;
    }
    
    .next-btn {
        right: 8px;
    }
    
    .gallery-indicators {
        margin-top: 0.8rem;
        gap: 6px;
    }
    
    .indicator {
        width: 8px;
        height: 8px;
    }
}

/* Для экранов меньше 360px */
@media (max-width: 360px) {
    .gallery-slider {
        height: 420px;
        min-height: 420px;
    }
    
    .gallery-slide {
        height: 420px;
    }
    
    .slide-image {
        flex: 0 0 70%;
        height: 70%;
    }
    
    .slide-content {
        flex: 0 0 30%;
        height: 30%;
        padding: 0.7rem 0.9rem;
    }
    
    .slide-content h3 {
        font-size: 1.1rem;
    }
    
    .slide-content p {
        font-size: 0.8rem;
    }
    
    .tag {
        padding: 0.15rem 0.4rem;
        font-size: 0.6rem;
    }
    
    .gallery-btn {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
        top: 35%;
    }
}

/* Планшетная версия (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .gallery-slider {
        height: 450px;
    }
    
    /* Изображение 70% */
    .slide-image {
        flex: 0 0 70%;
        min-width: 70%;
    }
    
    /* Контент 30% */
    .slide-content {
        flex: 0 0 30%;
        min-width: 30%;
        padding: 2rem;
    }
    
    .slide-content h3 {
        font-size: 1.6rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .gallery-btn {
        width: 55px;
        height: 55px;
    }
}

/* Touch-friendly улучшения для мобильных */
@media (hover: none) and (pointer: coarse) {
    .gallery-btn {
        background: var(--primary-color);
        width: 50px;
        height: 50px;
        border: 3px solid white;
    }
    
    .indicator {
        width: 14px;
        height: 14px;
    }
    
    /* Увеличиваем область клика для индикаторов */
    .gallery-indicators {
        padding: 10px 0;
    }
    
    .indicator {
        position: relative;
    }
    
    .indicator::after {
        content: '';
        position: absolute;
        top: -10px;
        left: -10px;
        right: -10px;
        bottom: -10px;
    }
}

/* Ландшафтная ориентация на мобильных */
@media (max-width: 768px) and (orientation: landscape) {
    .gallery-slider {
        height: 350px;
        min-height: 350px;
    }
    
    .gallery-slide {
        height: 350px;
        flex-direction: row; /* В ландшафте - горизонтально */
    }
    
    /* Изображение 70% ширины */
    .slide-image {
        flex: 0 0 70%;
        height: 100%;
    }
    
    /* Контент 30% ширины */
    .slide-content {
        flex: 0 0 30%;
        height: 100%;
        padding: 1.5rem;
    }
}

/* Планшетная версия - между мобильной и десктопной */
@media (min-width: 481px) and (max-width: 768px) {
    .gallery-slider {
        height: 550px;
        min-height: 550px;
    }
    
    .gallery-slide {
        height: 550px;
    }
    
    .slide-image {
        flex: 0 0 70%;
        height: 70%;
    }
    
    .slide-content {
        flex: 0 0 30%;
        height: 30%;
        padding: 1.2rem 1.5rem;
    }
    
    .slide-content h3 {
        font-size: 1.4rem;
    }
    
    .slide-content p {
        font-size: 0.95rem;
    }
}

/* Большие десктопные экраны */
@media (min-width: 1200px) {
    .gallery-slider {
        height: 550px;
    }
    
    .slide-content {
        padding: 3rem;
    }
    
    .slide-content h3 {
        font-size: 2rem;
    }
    
    .slide-content p {
        font-size: 1.1rem;
    }
}
