/* Сброс стилей и базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Основной контент занимает всё доступное пространство */
main {
    flex: 1;
}

/* Шапка */
header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
}

.logo span {
    color: #ffd700;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

nav ul li a:hover {
    color: #ffd700;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-login {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-login:hover {
    background: white;
    color: #1e3c72;
}

.btn-apply {
    background: #ffd700;
    border: 2px solid #ffd700;
    color: #1e3c72;
}

.btn-apply:hover {
    background: #ffed4e;
    border-color: #ffed4e;
}

/* Блок с горизонтальной прокруткой фото - РАСШИРЕН НА ВЕСЬ ЭКРАН */
.photo-scroll-section {
    height: 100vh; /* Занимает всю высоту окна */
    min-height: 600px; /* Минимальная высота */
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.photo-scroll-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    position: relative;
    z-index: 2;
}

.photo-scroll-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    z-index: 2;
}

.scroll-wrapper {
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 2rem 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.photo-scroll {
    display: flex;
    gap: 2rem;
    padding: 0 1rem;
}

.photo-item {
    flex: 0 0 auto;
    width: 400px; /* Увеличил ширину */
    height: 250px; /* Увеличил высоту */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    transition: all 0.4s ease;
    position: relative;
}

.photo-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.photo-item:hover img {
    transform: scale(1.1);
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #1e3c72;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.scroll-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.scroll-btn.left {
    left: 20px;
}

.scroll-btn.right {
    right: 20px;
}

/* Тематические блоки */
.thematic-section {
    padding: 5rem 0;
    background-color: #fff;
}

.thematic-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.thematic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.thematic-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.thematic-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.card-image {
    height: 220px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.thematic-card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 2rem;
}

.card-content h3 {
    color: #1e3c72;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card-content p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.card-btn {
    display: inline-block;
    background: #1e3c72;
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.card-btn:hover {
    background: #2a5298;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 82, 152, 0.3);
}

/* Футер */
footer {
    background: #1a1a1a;
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.footer-column h3 {
    color: #ffd700;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #ffd700;
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #444;
    color: #999;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .photo-item {
        width: 350px;
        height: 220px;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 0.5rem;
    }

    .photo-scroll-section {
        height: 80vh;
        min-height: 500px;
    }

    .photo-item {
        width: 280px;
        height: 180px;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .scroll-btn {
        width: 50px;
        height: 50px;
        display: none; /* На мобильных скрываем кнопки */
    }

    .thematic-grid {
        grid-template-columns: 1fr;
    }

    .thematic-section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .photo-scroll-section {
        height: 70vh;
        min-height: 400px;
    }
    
    .photo-item {
        width: 250px;
        height: 160px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .photo-scroll-container {
        padding: 0 1rem;
    }
}