/* Общие стили */
:root {
    --bg-color: #0d0d0d;
    --accent-color: #b5ff00;
    --text-white: #ffffff;
    --text-gray: #b0b0b0;
    --card-bg: rgba(255, 255, 255, 0.03);
    --input-bg: #1a1a1a;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background-color: var(--bg-color);
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(181, 255, 0, 0.03) 10px,
            rgba(181, 255, 0, 0.03) 11px
        ),
        radial-gradient(
            circle at 15% 50%, 
            rgba(181, 255, 0, 0.05) 0%, 
            transparent 40%
        ),
        radial-gradient(
            circle at 85% 30%, 
            rgba(181, 255, 0, 0.04) 0%, 
            transparent 50%
        );
    background-attachment: fixed;
    background-size: cover;
    color: var(--text-white);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; padding: 0; margin: 0; }

/* Шапка */
header {
    background-color: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #333;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(181, 255, 0, 0.3);
}

nav ul {
    display: flex;
    gap: 30px;
}

nav a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 8px rgba(181, 255, 0, 0.5);
}

/* Hamburger меню для мобильных */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--accent-color);
    transition: all 0.3s;
}

/* Секции */
section {
    padding: 80px 0;
}

h2 {
    font-size: 32px;
    margin-bottom: 40px;
    text-align: center;
    color: var(--text-white);
    position: relative;
    display: inline-block;
    width: 100%;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
    box-shadow: 0 0 8px var(--accent-color);
}

/* Услуги */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid rgba(181, 255, 0, 0.3);
    padding: 30px;
    text-align: center;
    border-radius: 4px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.service-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(181, 255, 0, 0.1);
    transform: translateY(-5px);
}

.service-card h3 {
    color: var(--accent-color);
    margin-top: 0;
}

/* Цены */
.prices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    align-items: start;
}

.price-card {
    background: var(--card-bg);
    border: 1px solid rgba(181, 255, 0, 0.3);
    padding: 30px 20px;
    text-align: center;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: all 0.3s ease;
}

.price-card:hover {
    border-color: var(--accent-color);
}

.price-card.popular {
    border: 2px solid var(--accent-color);
    background: rgba(181, 255, 0, 0.08);
    transform: scale(1.1);
    z-index: 10;
    padding: 40px 25px;
    box-shadow: 
        0 0 30px rgba(181, 255, 0, 0.4),
        0 0 60px rgba(181, 255, 0, 0.2),
        0 0 90px rgba(181, 255, 0, 0.1),
        inset 0 0 20px rgba(181, 255, 0, 0.1);
    animation: pulse-glow 2s ease-in-out infinite;
}

.price-card.popular:hover {
    transform: scale(1.12);
    box-shadow: 
        0 0 40px rgba(181, 255, 0, 0.6),
        0 0 80px rgba(181, 255, 0, 0.3),
        0 0 120px rgba(181, 255, 0, 0.2),
        inset 0 0 30px rgba(181, 255, 0, 0.15);
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 
            0 0 30px rgba(181, 255, 0, 0.4),
            0 0 60px rgba(181, 255, 0, 0.2),
            0 0 90px rgba(181, 255, 0, 0.1),
            inset 0 0 20px rgba(181, 255, 0, 0.1);
    }
    50% {
        box-shadow: 
            0 0 40px rgba(181, 255, 0, 0.6),
            0 0 80px rgba(181, 255, 0, 0.3),
            0 0 120px rgba(181, 255, 0, 0.2),
            inset 0 0 30px rgba(181, 255, 0, 0.15);
    }
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    color: #000;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(181, 255, 0, 0.8);
    letter-spacing: 1px;
}

.price {
    font-size: 32px;
    font-weight: bold;
    margin: 20px 0;
    color: var(--text-white);
    text-shadow: 0 0 10px rgba(181, 255, 0, 0.3);
}

.price-card.popular .price {
    font-size: 36px;
    color: var(--accent-color);
    text-shadow: 0 0 15px rgba(181, 255, 0, 0.6);
}

.price-desc {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 25px;
    flex-grow: 1;
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: #000;
    padding: 12px 25px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 14px;
    position: relative;
    overflow: hidden;
    min-height: 44px; /* Touch-friendly размер */
}

.btn:hover {
    box-shadow: 0 0 20px var(--accent-color);
    transform: translateY(-2px);
    color: #000;
}

.price-card.popular .btn {
    padding: 15px 30px;
    font-size: 15px;
    box-shadow: 0 0 15px rgba(181, 255, 0, 0.4);
}

.price-card.popular .btn:hover {
    box-shadow: 0 0 30px var(--accent-color);
}

/* Портфолио */
.portfolio-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.portfolio-card {
    background: var(--card-bg);
    border: 1px solid rgba(181, 255, 0, 0.3);
    width: 100%;
    max-width: 450px;
    max-height: 280px;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.portfolio-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(181, 255, 0, 0.1);
}

.portfolio-img-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    opacity: 0.9;
    transition: opacity 0.3s;
    border: none !important;
}

.portfolio-card:hover .portfolio-img {
    opacity: 1;
}

.portfolio-overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(13, 13, 13, 0.95), transparent);
    color: var(--text-white);
    padding: 20px 15px 12px;
    font-size: 13px;
    text-align: center;
    border-top: 1px solid rgba(181, 255, 0, 0.3);
    line-height: 1.4;
}

.portfolio-text {
    padding: 12px 15px;
    text-align: center;
    color: var(--text-gray);
    font-size: 13px;
    line-height: 1.4;
}

.portfolio-footer {
    text-align: center;
    margin-top: 40px;
    color: var(--text-gray);
    font-style: italic;
    opacity: 0.7;
}

/* Контакты и Форма */
.contacts-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3 { color: var(--accent-color); margin-top: 0; }
.contact-item { margin-bottom: 20px; font-size: 18px; }

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: var(--card-bg);
    padding: 30px;
    border: 1px solid rgba(181, 255, 0, 0.3);
    border-radius: 4px;
}

input, select {
    background-color: var(--input-bg);
    border: 1px solid #333;
    color: var(--text-white);
    padding: 15px;
    font-size: 16px;
    border-radius: 2px;
    outline: none;
    transition: all 0.3s;
    min-height: 44px; /* Touch-friendly */
}

input:focus, select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(181, 255, 0, 0.2);
}

#form-status {
    margin-top: 15px;
    color: var(--accent-color);
    font-weight: bold;
    text-align: center;
}

/* ========================================
   МОБИЛЬНАЯ АДАПТАЦИЯ (до 768px)
   ======================================== */
@media (max-width: 768px) {
    
    /* Шапка - показываем hamburger */
    .menu-toggle {
        display: flex;
    }
    
    /* Меню - вертикальное, выпадающее */
    nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: rgba(13, 13, 13, 0.98);
        padding: 20px;
        gap: 15px;
        display: none;
        border-bottom: 1px solid #333;
        backdrop-filter: blur(10px);
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav a {
        display: block;
        padding: 10px;
        text-align: center;
    }
    
    /* Уменьшаем отступы секций */
    section {
        padding: 50px 0;
    }
    
    /* Уменьшаем заголовки */
    h2 {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    /* Услуги - одна колонка */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .service-card {
        padding: 20px;
    }
    
    /* Цены - одна колонка, популярный пакет без scale */
    .prices-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .price-card {
        padding: 25px 15px;
    }
    
    .price-card.popular {
        transform: scale(1); /* Убираем увеличение */
        padding: 30px 20px;
        margin: 10px 0; /* Добавляем отступы сверху/снизу */
    }
    
    .price-card.popular:hover {
        transform: scale(1);
    }
    
    .price {
        font-size: 28px;
    }
    
    .price-card.popular .price {
        font-size: 32px;
    }
    
    /* Портфолио - карточки на всю ширину */
    .portfolio-grid {
        gap: 20px;
    }
    
    .portfolio-card {
        max-width: 100%;
        max-height: 250px;
    }
    
    .portfolio-img-wrapper {
        height: 160px;
    }
    
    /* Контакты - одна колонка */
    .contacts-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-item {
        font-size: 16px;
    }
    
    form {
        padding: 20px;
    }
    
    input, select {
        padding: 12px;
        font-size: 15px;
    }
    
    .btn {
        width: 100%; /* Кнопки на всю ширину */
    }
}

/* ========================================
   МАЛЕНЬКИЕ ТЕЛЕФОНЫ (до 480px)
   ======================================== */
@media (max-width: 480px) {
    
    .container {
        padding: 0 15px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    section {
        padding: 40px 0;
    }
    
    h2 {
        font-size: 20px;
    }
    
    .service-card h3 {
        font-size: 18px;
    }
    
    .service-card p {
        font-size: 14px;
    }
    
    .price-card h3 {
        font-size: 18px;
    }
    
    .popular-badge {
        font-size: 11px;
        padding: 4px 12px;
    }
    
    .portfolio-card {
        max-height: 220px;
    }
    
    .portfolio-img-wrapper {
        height: 140px;
    }
    
    .portfolio-overlay-text {
        font-size: 11px;
        padding: 15px 10px 8px;
    }
    
    .portfolio-text {
        font-size: 12px;
        padding: 10px;
    }
    
    .portfolio-footer {
        font-size: 13px;
        margin-top: 30px;
    }
    
    .contact-info h3 {
        font-size: 18px;
    }
}