/* Сброс стилей и базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --accent: #f59e0b;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg: #ffffff;
    --bg-secondary: #f8fafc;
    --border: #e5e7eb;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* Шапка */
header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    animation: slideInDown 0.5s ease;
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    animation: slideInLeft 0.8s ease;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    position: relative;
}

.logo h1::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.logo:hover h1::after {
    width: 100%;
}

nav {
    animation: slideInRight 0.8s ease;
}

nav a {
    color: var(--text);
    text-decoration: none;
    margin-left: 2.5rem;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--primary);
}

nav a:hover::after {
    width: 100%;
}

.hero {
    position: relative;
    padding: 180px 0 100px;
    text-align: center;
    background: var(--bg-secondary);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
    animation: float 6s ease-in-out infinite;
}

.hero h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease 0.2s both;
    position: relative;
}

.hero h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--accent);
    margin: 1rem auto;
    border-radius: 2px;
    animation: pulse 2s infinite;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease 0.4s both;
}

/* Секция услуг */
.services {
    padding: 100px 0;
    background: var(--bg);
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-item {
    background: var(--bg);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.05), transparent);
    transition: left 0.6s ease;
}

.service-item:hover::before {
    left: 100%;
}

.service-item:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-item h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text);
    position: relative;
}

.service-item h3::before {
    content: '✦';
    color: var(--accent);
    margin-right: 0.5rem;
    animation: pulse 2s infinite;
}

.service-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Гарантия */
.guarantee {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-secondary);
    border-radius: 16px;
    margin: 4rem 0;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease;
}

.guarantee::before {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15rem;
    color: rgba(37, 99, 235, 0.03);
    z-index: 0;
}

.guarantee h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
    position: relative;
    z-index: 1;
}

.guarantee p {
    font-size: 1.2rem;
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

/* Контакты */
.contacts {
    padding: 100px 0;
    background: var(--bg);
}

.contacts h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.contact-item h3 {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.contact-item p {
    font-size: 1.2rem;
    font-weight: 600;
}

.phone {
    color: var(--primary) !important;
    font-size: 1.4rem !important;
}

.telegram {
    color: var(--primary) !important;
}

.email {
    color: var(--text) !important;
}

/* Кнопка */
.cta-button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease 0.6s both;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

/* Футер */
footer {
    background: var(--bg-secondary);
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--border);
}

footer p {
    color: var(--text-light);
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    nav a {
        margin-left: 1.5rem;
        font-size: 0.9rem;
    }
    
    .services-grid,
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .service-item,
    .contact-item {
        padding: 2rem 1.5rem;
    }
}

/* Скролл-анимации */
.service-item,
.contact-item,
.guarantee {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.service-item.visible,
.contact-item.visible,
.guarantee.visible {
    opacity: 1;
    transform: translateY(0);
}

.cta-button {
    display: block;
    margin: 2rem auto 0 auto;
    /* Остальные стили остаются без изменений */
}

/* Стили модального окна */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: var(--bg);
    margin: 10% auto;
    padding: 2.5rem;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideInUp 0.3s ease;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    color: var(--text-light);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s ease;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
}

.close:hover {
    color: var(--primary);
}

.modal h3 {
    margin-bottom: 2rem;
    color: var(--text);
    text-align: center;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg);
    color: var(--text);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    height: 100px;
    resize: vertical;
    font-family: inherit;
}

/* Успешная отправка */
.success-message {
    display: none;
    text-align: center;
    color: #10b981;
    font-weight: 500;
    margin-top: 1rem;
}

/* Преимущества */
.advantages {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.advantage-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.advantage-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Этапы работы */
.process {
    padding: 100px 0;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: var(--primary);
    z-index: 0;
}

.step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
    border: 4px solid var(--bg);
}

/* Материалы */
.materials {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.material-item {
    padding: 1.5rem;
    background: var(--bg);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}
/* Стили для FAQ с details/summary */
.faq {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.faq h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
}

.faq-item details {
    background: var(--bg);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item details:hover {
    border-color: var(--primary);
}

.faq-item summary {
    padding: 1.5rem 2rem;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    position: relative;
    transition: background-color 0.3s ease;
}

.faq-item summary:hover {
    background: rgba(37, 99, 235, 0.05);
}

/* Убираем стандартный маркер */
.faq-item summary::-webkit-details-marker {
    display: none;
}

/* Кастомный плюсик/минус */
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.faq-item details[open] summary::after {
    content: '−';
    transform: translateY(-50%);
    color: var(--accent);
}

.faq-answer {
    padding: 0 2rem 1.5rem;
}

.faq-answer p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.6;
}

/* Оптимизация для больших экранов */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero h2 {
        font-size: 4rem;
    }
    
    .hero p {
        font-size: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
    
    .service-item {
        padding: 3rem 2.5rem;
    }
    
    .service-item h3 {
        font-size: 1.6rem;
    }
    
    .service-item p {
        font-size: 1.1rem;
    }
}

@media (min-width: 2000px) {
    .container {
        max-width: 1600px;
    }
    
    .hero h2 {
        font-size: 4.5rem;
    }
}

/* Базовые размеры шрифтов */
.hero h2 {
    font-size: 3.5rem;
}

.services h2 {
    font-size: 2.5rem;
}

.service-item h3 {
    font-size: 1.4rem;
}

/* Адаптация для больших экранов */
@media (min-width: 1400px) {
    .hero h2 {
        font-size: 4rem;
    }
    
    .services h2 {
        font-size: 3rem;
    }
    
    .service-item h3 {
        font-size: 1.6rem;
    }
    
    body {
        font-size: 1.1rem;
    }
}


/* Секция портфолио - КАРУСЕЛЬ */
.portfolio {
    padding: 100px 0;
    background: var(--bg);
}

.portfolio h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.portfolio-subtitle {
    text-align: center;
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 4rem;
}

/* Категории портфолио */
.portfolio-category {
    margin-bottom: 5rem;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary);
}

.category-header h3 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
}

.work-count {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
}

/* Контейнер карусели */
.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* Карусель */
.carousel {
    display: flex;
    transition: transform 0.5s ease;
    height: 500px;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: none;
}

.carousel-slide.active {
    display: block;
}

/* Кнопки перелистывания */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

/* Точки навигации */
.carousel-dots {
    position: absolute;
    bottom: 10px; /* ⬅️ Было 20px - опускаем ниже */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgb(233, 229, 229);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: white;
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: white;
    transform: scale(1.1);
}

/* Изображения в карусели */
.portfolio-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Заглушки для фото */
.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: 600;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2.5rem 2rem 2rem;
}

.portfolio-overlay h4 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.portfolio-overlay p {
    margin: 0;
    opacity: 0.9;
    font-size: 1.1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.753);
    top: -5px; 
}

/* Адаптивность */
@media (max-width: 768px) {
    .carousel-container {
        max-width: 100%;
        border-radius: 15px;
    }
    
    .carousel {
        height: 400px;
    }
    
    .carousel-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .carousel-btn.prev {
        left: 10px;
    }
    
    .carousel-btn.next {
        right: 10px;
    }
    
    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .category-header h3 {
        font-size: 1.5rem;
    }
    
    .portfolio-overlay {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .portfolio-overlay h4 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .carousel {
        height: 300px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .portfolio-overlay {
        padding: 1.5rem 1rem 1rem;
    }
    
    .portfolio-overlay h4 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .portfolio-overlay p {
        font-size: 1rem;
    }
    
    .placeholder-image {
        font-size: 1.2rem;
    }
}

/* ИСПРАВЛЕНИЕ: Заголовки по центру */
.advantages h2,
.process h2 {
    text-align: center !important;
    margin: 0 auto 3rem auto !important;
    width: 100% !important;
    display: block !important;
    clear: both !important;
}

/* На всякий случай - все заголовки секций */
section h2 {
    text-align: center !important;
}

/* ГАРАНТИРОВАННАЯ ПЛАВНАЯ АНИМАЦИЯ FAQ */
.faq-item details {
    background: var(--bg);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.faq-item summary {
    padding: 1.5rem 2rem;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    position: relative;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item details[open] summary::after {
    content: '−';
    transform: translateY(-50%) rotate(0deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 2rem;
    transition: max-height 0.5s ease, padding 0.5s ease;
}

.faq-item details[open] .faq-answer {
    max-height: 200px;
    padding: 0 2rem 1.5rem;
}

.faq-answer p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.6;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease 0.2s;
}

.faq-item details[open] .faq-answer p {
    opacity: 1;
    transform: translateY(0);
}

/* АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ */

/* Общие стили для мобильных */
@media (max-width: 768px) {
    /* Контейнер */
    .container {
        padding: 0 1rem !important;
    }
    
    /* Шапка */
    header .container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .logo h1 {
        font-size: 1.5rem !important;
        text-align: center;
    }
    
    nav {
        width: 100%;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    nav a {
        margin: 0 0.5rem !important;
        font-size: 0.9rem;
        padding: 0.5rem 0.8rem;
        background: rgba(37, 99, 235, 0.1);
        border-radius: 8px;
    }
    
    /* Герой секция */
    .hero {
        padding: 120px 0 60px !important;
        text-align: center;
    }
    
    .hero h2 {
        font-size: 1.8rem !important;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .hero p {
        font-size: 1.1rem !important;
        margin-bottom: 2rem;
    }
    
    .cta-button {
        padding: 1rem 2rem !important;
        font-size: 1rem !important;
        width: 100%;
        max-width: 300px;
    }
    
    /* Услуги */
    .services h2 {
        font-size: 2rem !important;
        margin-bottom: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .service-item {
        padding: 1.5rem 1rem !important;
    }
    
    .service-item h3 {
        font-size: 1.2rem !important;
    }
    
    /* Преимущества */
    .advantages-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .advantage-item {
        padding: 1.5rem 1rem;
    }
    
    /* Этапы работы */
    .process-steps {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    
    .process-steps::before {
        display: none;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
    
    /* Галерея */
    .portfolio h2 {
        font-size: 2rem !important;
    }
    
    .portfolio-subtitle {
        font-size: 1.1rem !important;
        margin-bottom: 2rem;
    }
    
    .carousel-container {
        max-width: 100% !important;
        border-radius: 12px;
    }
    
    .carousel {
        height: 300px !important;
    }
    
    .carousel-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.2rem !important;
    }
    
    .carousel-btn.prev {
        left: 8px !important;
    }
    
    .carousel-btn.next {
        right: 8px !important;
    }
    
    .portfolio-overlay {
        padding: 1rem !important;
    }
    
    .portfolio-overlay h4 {
        font-size: 1.1rem !important;
        margin-bottom: 0.5rem;
    }
    
    .portfolio-overlay p {
        font-size: 0.9rem !important;
    }
    
    /* FAQ */
    .faq h2 {
        font-size: 2rem !important;
    }
    
    .faq-item summary {
        padding: 1.2rem 1rem !important;
    }
    
    .faq-item summary h3 {
        font-size: 1rem !important;
        padding-right: 2rem;
    }
    
    .faq-answer {
        padding: 0 1rem !important;
    }
    
    .faq-item details[open] .faq-answer {
        padding: 0 1rem 1rem !important;
    }
    
    /* Контакты */
    .contacts h2 {
        font-size: 2rem !important;
    }
    
    .contact-info {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    
    .contact-item {
        padding: 1.5rem 1rem !important;
    }
    
    .phone {
        font-size: 1.2rem !important;
    }
    
    /* Модальное окно */
    .modal-content {
        margin: 20% auto !important;
        padding: 1.5rem !important;
        width: 95% !important;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.8rem !important;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .hero h2 {
        font-size: 1.6rem !important;
    }
    
    .hero p {
        font-size: 1rem !important;
    }
    
    nav a {
        font-size: 0.8rem !important;
        padding: 0.4rem 0.6rem !important;
        margin: 0 0.3rem !important;
    }
    
    .services h2,
    .advantages h2,
    .process h2,
    .portfolio h2,
    .faq h2,
    .contacts h2 {
        font-size: 1.8rem !important;
        margin-bottom: 2rem;
    }
    
    .carousel {
        height: 250px !important;
    }
    
    .carousel-btn {
        width: 35px !important;
        height: 35px !important;
        font-size: 1rem !important;
    }
    
    .portfolio-overlay h4 {
        font-size: 1rem !important;
    }
    
    .portfolio-overlay p {
        font-size: 0.8rem !important;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }
}

/* Для планшетов */
@media (max-width: 1024px) and (min-width: 769px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .carousel-container {
        max-width: 90% !important;
    }
}

/* Исправление горизонтального скролла */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Улучшение touch-собываний на мобильных */
@media (hover: none) and (pointer: coarse) {
    .carousel-btn,
    .cta-button,
    nav a {
        min-height: 44px;
        min-width: 44px;
    }
    
    .carousel-dot {
        width: 12px;
        height: 12px;
    }
}

/* Исправление карусели на мобильных */
@media (max-width: 768px) {
    .carousel-slide {
        min-width: 100% !important;
    }
    
    .carousel-dots {
        bottom: 10px !important;
    }
    
    .carousel-dot {
        width: 8px;
        height: 8px;
    }
}

/* Гарантированное отображение всех элементов */
section {
    display: block !important;
    visibility: visible !important;
}

/* Исправление текста в оверлее на мобильных */
@media (max-width: 768px) {
    .portfolio-overlay {
        padding: 1rem 0.8rem 0.8rem !important;
    }
    
    .portfolio-overlay h4 {
        font-size: 1rem !important;
        margin-bottom: 0.3rem !important;
    }
    
    .portfolio-overlay p {
        font-size: 0.8rem !important;
        line-height: 1.2 !important;
    }
}

/* СУПЕР-ПРОСТОЕ ИСПРАВЛЕНИЕ ШАПКИ */
@media (max-width: 768px) {
    header {
        padding: 0.5rem 0 !important;
        height: 60px !important;
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 1000;
        background: var(--bg);
    }
    
    header .container {
        padding: 0 1rem !important;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        height: 100%;
    }
    
    .logo h1 {
        font-size: 1.2rem !important;
        margin: 0 !important;
    }
    
    nav {
        display: none; /* Временно скрываем меню */
    }
    
    .hero {
        padding-top: 80px !important;
    }
}