:root {
    --primary: #FF9933;
    --primary-light: #ffb366;
    --secondary: #138808;
    --dark: #0B0B45;
    --light-bg: #f8f9fa;
    --text: #2d3436;
    --white: #ffffff;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    -webkit-font-smoothing: antialiased; 
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background-color: var(--light-bg);
    line-height: 1.4;
    overflow-x: hidden;
    text-align: center;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section {
    padding: 40px 0;
    width: 100%;
}

.section-title {
    margin-bottom: 30px;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    color: var(--dark);
    width: 100%;
}

/* Hero Section — Обновленный блок с вашим фото */
.hero {
    /* Ссылка на ваше фото photo.png с эффектом затемнения для читаемости текста */
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), 
                url('photo.png') center/cover no-repeat;
    
    /* Оптимальная высота, чтобы фото смотрелось эффектно */
    min-height: 70vh; 
    
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--white);
}

.hero h1 {
    font-size: clamp(1.6rem, 5vw, 2.8rem);
    margin-bottom: 15px;
    max-width: 900px;
}

.hero-subtext {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    margin-bottom: 30px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Кнопки */
.btn-primary {
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    background: var(--primary);
    color: var(--white);
    display: inline-block;
    transition: 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.btn-primary:hover {
    transform: scale(1.05);
    background: var(--primary-light);
}

/* Сетки */
.grid-features, .grid-services {
    display: grid;
    gap: 20px;
    width: 100%;
    justify-content: center;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.solution-item {
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.solution-item .icon { font-size: 2.5rem; margin-bottom: 10px; }
.solution-item p { max-width: 300px; }

/* Карточки */
.card {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark);
    padding-bottom: 5px;
    border-bottom: 2px solid var(--primary);
}

.card ul {
    list-style: none;
    margin: 15px 0;
    font-size: 0.9rem;
    text-align: left;
    display: inline-block;
}

.card ul li {
    margin-bottom: 6px;
    padding-left: 20px;
    position: relative;
}

.card ul li::before {
    content: "✓";
    color: var(--secondary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.price {
    background: #fff5eb;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    border: 1px dashed var(--primary);
    width: 100%;
}

/* Галерея */
.gallery-wrapper {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    justify-content: center;
    padding: 10px;
    width: 100%;
}

.gallery-wrapper img {
    width: 280px;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}

/* Футер */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 40px 0;
}

.email-link {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .grid-services { grid-template-columns: 1fr; }
    .gallery-wrapper { justify-content: flex-start; }
    .card { width: 100%; }
    .hero { min-height: 50vh; } /* На мобильных делаем чуть меньше */
}