/* Сброс и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #1a1a1a;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Контейнер */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка - минималистичная */
header {
    padding: 30px 0;
    border-bottom: 1px solid #333;
    background-color: #1a1a1a;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-icon {
    font-size: 24px;
    margin-right: 12px;
    color: #fff;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.logo-text span {
    color: #4a90e2;
}

/* Навигация */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    color: #b0b0b0;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
    position: relative;
    padding: 5px 0;
}

.nav-link:hover {
    color: #fff;
}

.nav-link.active {
    color: #4a90e2;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

/* Герой секция - минималистичная */
.hero {
    padding: 100px 0;
    text-align: center;
    border-bottom: 1px solid #333;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 18px;
    color: #b0b0b0;
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #4a90e2;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 12px 24px;
    border: 1px solid #4a90e2;
    border-radius: 4px;
    transition: all 0.3s;
}

.hero-cta:hover {
    background-color: #4a90e2;
    color: #fff;
}

/* Особенности */
.features {
    padding: 80px 0;
    border-bottom: 1px solid #333;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 32px;
    color: #fff;
    font-weight: 600;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    background-color: #222;
    padding: 40px;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-number {
    font-size: 48px;
    font-weight: 700;
    color: #4a90e2;
    margin-bottom: 20px;
    opacity: 0.3;
}

.feature-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: #fff;
}

.feature-description {
    color: #b0b0b0;
    font-size: 15px;
    line-height: 1.8;
}

/* Галерея - новая структура */
.gallery-section {
    padding: 80px 0;
    border-bottom: 1px solid #333;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Необычная структура для 10 изображений: 2x2 + 2x3 */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background-color: #222;
    height: 300px;
}

.gallery-item.wide {
    grid-column: span 2;
    height: 400px;
}

.gallery-item.tall {
    grid-row: span 2;
    height: 630px;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

.gallery-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 30px;
    color: #fff;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
}

.gallery-item:hover .gallery-info {
    transform: translateY(0);
    opacity: 1;
}

.gallery-category {
    font-size: 12px;
    color: #4a90e2;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.gallery-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.gallery-description {
    font-size: 14px;
    color: #b0b0b0;
}

/* Цитата */
.quote-section {
    padding: 80px 0;
    border-bottom: 1px solid #333;
    text-align: center;
}

.quote {
    font-size: 24px;
    color: #fff;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.8;
    font-style: italic;
}

.quote-author {
    color: #4a90e2;
    font-size: 16px;
    font-weight: 600;
}

/* Контактная форма */
.contact-section {
    padding: 80px 0;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 30px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    color: #fff;
    font-weight: 500;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 15px;
    background-color: #222;
    border: 1px solid #333;
    border-radius: 4px;
    color: #fff;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #4a90e2;
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background-color: #4a90e2;
    color: #fff;
    border: none;
    padding: 15px 40px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #357ae8;
}

/* Подвал */
footer {
    background-color: #111;
    padding: 60px 0 30px;
    border-top: 1px solid #333;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.footer-logo span {
    color: #4a90e2;
}

.footer-about p {
    color: #888;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-links h3,
.footer-social h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 25px;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #4a90e2;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #222;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s;
}

.social-link:hover {
    background-color: #4a90e2;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    color: #666;
    font-size: 14px;
}

/* Адаптивность */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item.wide,
    .gallery-item.tall {
        grid-column: span 1;
        grid-row: span 1;
        height: 300px;
    }

    .hero h1 {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: #111;
        padding: 100px 40px 40px;
        transition: right 0.3s;
        z-index: 99;
    }

    .main-nav.active {
        display: block;
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 25px;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 100;
    }

    .hero {
        padding: 80px 0;
    }

    .hero h1 {
        font-size: 32px;
    }

    .section-title {
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 30px 25px;
    }

    .hero {
        padding: 60px 0;
    }

    .gallery-item {
        height: 250px;
    }
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

/* Скрытие для скринридеров */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Кастомный скроллбар */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #444;
}