/* ===============================================
   ОСНОВНЫЕ СТИЛИ САЙТА ФОТОГРАФА
   Файл: main_css.css (исправленная версия)
   =============================================== */

/* ===== ГЛОБАЛЬНЫЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Oswald', sans-serif;
    background: white;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== НАВИГАЦИЯ ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Бургер-меню */
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: relative;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.logo {
    padding: 15px 0;
    text-align: center;
}

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

.logo-icon img {
    height: 60px;
    width: auto;
}

.nav-menu {
    display: flex;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    padding: 10px 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: #666;
    border-bottom: 2px solid #333;
}

/* ===== HERO СЕКЦИЯ С КОЛЛАЖЕМ ===== */
.hero-section {
    height: 450px;
    max-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: white;
    margin-top: 90px;
}

.photo-collage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    will-change: transform;
}

.photo-slider {
    display: flex;
    height: 100%;
    animation: slidePhotos 40s linear infinite;
    will-change: transform;
}

.photo-slide {
    flex-shrink: 0;
    height: 450px;
    width: 320px;
    margin-right: 15px;
}

.photo-slide img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    display: block;
    image-rendering: -webkit-optimize-contrast;
}

@keyframes slidePhotos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-335px * 7));
    }
}

.photo-collage::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0.95), rgba(255,255,255,0));
    z-index: 10;
    pointer-events: none;
}

.photo-collage::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 100%;
    background: linear-gradient(to left, rgba(255,255,255,0.95), rgba(255,255,255,0));
    z-index: 10;
    pointer-events: none;
}

/* ===== КОНТЕЙНЕР ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== СЕКЦИЯ ПРИВЕТСТВИЯ ===== */
.welcome-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.welcome-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    align-items: center;
}

.photographer-photo {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.photographer-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photographer-photo-placeholder {
    width: 100%;
    height: 100%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    color: #666;
}

.welcome-text {
    max-width: 700px;
}

.welcome-title {
    font-size: 36px;
    font-weight: 400;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.2;
}

.welcome-subtitle {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 25px;
    color: #666;
}

.welcome-description {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #666;
    font-weight: 300;
}

.hero-description {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #666;
    font-weight: 300;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #333;
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background 0.3s ease;
    border-radius: 4px;
}

.contact-btn:hover {
    background: #555;
}

.phone-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ===== СЕКЦИЯ "О СЕБЕ" ===== */
.about-section {
    padding: 80px 0;
    background: white;
}

.intro-text {
    max-width: 900px;
    margin: 0 auto;
}

.intro-text h2 {
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

.intro-text p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 25px;
    color: #666;
    font-weight: 300;
    text-align: justify;
}

/* ===== СЕКЦИЯ ПОРТФОЛИО (ПРЕВЬЮ) ===== */
.portfolio-preview {
    padding: 80px 0;
    background: #f8f9fa;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 50px;
}

.portfolio-header h2 {
    font-size: 36px;
    font-weight: 400;
    color: #333;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.photo-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.photo-item:hover {
    transform: scale(1.03);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.portfolio-btn-container {
    text-align: center;
}

.view-all-btn {
    display: inline-block;
    padding: 15px 40px;
    background: #333;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.view-all-btn:hover {
    background: #555;
}

/* ===== ФУТЕР ===== */
.site-footer {
    background: #2c2c2c;
    color: white;
    padding: 30px 0 15px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-logo {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.footer-description {
    font-size: 13px;
    line-height: 1.6;
    color: #b0b0b0;
    font-weight: 300;
}

.footer-links h3,
.footer-social h3 {
    font-size: 15px;
    font-weight: 400;
    margin-bottom: 10px;
    color: white;
}

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

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

.footer-links ul li a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: white;
}

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

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: background 0.3s ease;
}

.social-link:hover {
    background: rgba(255,255,255,0.2);
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    font-size: 12px;
    color: #888;
    font-weight: 300;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1024px) {
    .photo-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .welcome-content {
        grid-template-columns: 300px 1fr;
        gap: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-about {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    /* Мобильная навигация */
    .burger-menu {
        display: flex;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .nav-container {
        padding: 0 20px;
        flex-wrap: wrap;
        position: relative;
    }
    
    .logo {
        order: 1;
        flex: 1;
        text-align: left;
        padding: 20px 0;
    }
    
    .logo-icon img {
        height: 50px;
    }
    
    .nav-menu {
        order: 2;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        background: white;
    }
    
    .nav-menu.active {
        max-height: 500px;
        border-top: 1px solid #eee;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding: 10px 0;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #eee;
    }
    
    .nav-links li:last-child {
        border-bottom: none;
    }
    
    .nav-links a {
        display: block;
        padding: 15px 20px;
        font-size: 12px;
        border-bottom: none !important;
    }
    
    .nav-links a:hover,
    .nav-links a.active {
        background: #f8f9fa;
        color: #333;
    }
    
    /* Основной контент */
    .main-content {
        margin-top: 200px;
        padding: 40px 0;
    }
    
    /* Hero секция */
    .hero-section {
        height: 350px;
        max-height: 350px;
        margin-top: 70px;
    }
    
    .photo-slide {
        width: 240px;
        height: 350px;
    }
    
    @keyframes slidePhotos {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-255px * 7));
        }
    }
    
    .photo-collage::before,
    .photo-collage::after {
        width: 50px;
    }
    
    /* Секция приветствия */
    .welcome-section {
        padding: 50px 0;
    }
    
    .welcome-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .photographer-photo {
        max-width: 350px;
        margin: 0 auto;
    }
    
    .welcome-text {
        text-align: center;
    }
    
    .welcome-title {
        font-size: 28px;
    }
    
    .welcome-subtitle {
        font-size: 20px;
    }
    
    .welcome-description,
    .hero-description {
        font-size: 15px;
    }
    
    /* О себе */
    .about-section {
        padding: 50px 0;
    }
    
    .intro-text h2 {
        font-size: 26px;
    }
    
    .intro-text p {
        font-size: 15px;
        text-align: left;
    }
    
    /* Портфолио */
    .portfolio-preview {
        padding: 50px 0;
    }
    
    .portfolio-header h2 {
        font-size: 28px;
    }
    
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    /* Футер */
    .site-footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-about {
        grid-column: 1;
    }
}

@media (max-width: 480px) {
    .logo-icon img {
        height: 45px;
    }
    
    .welcome-title {
        font-size: 24px;
    }
    
    .welcome-subtitle {
        font-size: 18px;
    }
    
    .photo-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-btn {
        padding: 12px 25px;
        font-size: 12px;
    }
}

/* ===== LIGHTBOX (для portfolio.php) ===== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    font-size: 40px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: background 0.3s ease;
    font-family: 'Oswald', sans-serif;
    line-height: 1;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.3);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    font-size: 24px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-family: Arial, sans-serif;
    font-weight: bold;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.lightbox-nav:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

/* Галерея фотографий (для portfolio.php) */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

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

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Адаптивность lightbox для мобильных */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
        max-height: 85%;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }
    
    .lightbox-nav {
        position: fixed;
        top: auto;
        bottom: 20px;
        transform: none;
        font-size: 40px;
        width: 50px;
        height: 50px;
    }
    
    .lightbox-prev {
        left: 20px;
    }
    
    .lightbox-next {
        right: 20px;
    }
    
    .photo-gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* ===== СТИЛИ ДЛЯ КНОПОК ФИЛЬТРОВ (portfolio.php) ===== */

/* Контейнер с кнопками */
.category-filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

/* Сами кнопки */
.filter-btn {
    padding: 15px 35px;
    background: white;
    border: 2px solid #e0e0e0;
    color: #333;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: inline-block;
}

/* При наведении */
.filter-btn:hover {
    background: #f8f9fa;
    border-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Активная кнопка */
.filter-btn.active {
    background: #333;
    color: white;
    border-color: #333;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Описание категории */
.category-description {
    text-align: center;
    margin-bottom: 50px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 60px;
}

.category-description h2 {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 15px;
    color: #333;
}

.category-description p {
    font-size: 16px;
    font-weight: 300;
    color: #666;
    line-height: 1.6;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .category-filters {
        gap: 10px;
        margin-bottom: 40px;
    }

    .filter-btn {
        padding: 12px 25px;
        font-size: 12px;
    }
}
/* ===== СТИЛИ ДЛЯ СТРАНИЦЫ УСЛУГ (services.php) ===== */

/* Основной контент */
.main-content {
    margin-top: 250px;
    padding: 60px 0;
}

.page-title {
    text-align: center;
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 60px;
    color: #333;
}

.page-subtitle {
    text-align: center;
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 60px;
    color: #666;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Сетка услуг */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.service-card {
    background: #f8f9fa;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 4px;
}

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

.service-title {
    font-size: 24px;
    font-weight: 400;
    color: #333;
    margin-bottom: 15px;
}

.service-price {
    font-size: 32px;
    font-weight: 300;
    color: #333;
    margin-bottom: 10px;
}

.service-duration {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
    font-weight: 300;
}

.service-description {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
    font-weight: 300;
}

.service-includes {
    text-align: left;
    background: #fff;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 4px;
}

.service-includes h4 {
    font-size: 16px;
    font-weight: 400;
    color: #333;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-includes ul {
    list-style: none;
    padding: 0;
}

.service-includes li {
    padding: 5px 0;
    color: #555;
    position: relative;
    padding-left: 20px;
    font-weight: 300;
}

.service-includes li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #333;
    font-weight: bold;
}

/* Кнопки в карточках услуг */
.service-card .btn {
    display: inline-block;
    padding: 15px 30px;
    background: #333;
    color: white;
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background 0.3s ease;
    border-radius: 4px;
}

.service-card .btn:hover {
    background: #555;
}

/* Секция призыва к действию */
.cta-section {
    background: #f8f9fa;
    color: #333;
    padding: 80px 0;
    text-align: center;
}

.cta-title {
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 20px;
    color: #333;
}

.cta-description {
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 40px;
    color: #666;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #333;
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.cta-section .contact-btn:hover {
    background: #555;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-white {
    background: white;
    color: #333;
    border: 2px solid #333;
}

.btn-white:hover {
    background: #333;
    color: white;
}

/* Адаптивность */
@media (max-width: 768px) {
    .main-content {
        margin-top: 200px;
        padding: 40px 0;
    }

    .page-title {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .page-subtitle {
        font-size: 16px;
        margin-bottom: 40px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 60px;
    }

    .service-card {
        padding: 30px 20px;
    }

    .cta-title {
        font-size: 24px;
    }

    .cta-description {
        font-size: 16px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .cta-section .contact-btn {
        width: 80%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 24px;
    }

    .service-price {
        font-size: 28px;
    }

    .cta-title {
        font-size: 20px;
    }
}
/* ===== СТИЛИ ДЛЯ КЛИЕНТСКОЙ ГАЛЕРЕИ (gallery.php) ===== */

/* Форма ввода пароля */
.password-form {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.form-title {
    font-size: 24px;
    font-weight: 400;
    color: #333;
    margin-bottom: 10px;
}

.form-subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

.error-message {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Шапка галереи */
.gallery-header {
    background: white;
    padding: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.gallery-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gallery-header-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #333;
}

.gallery-header-logo img {
    height: 60px;
    width: auto;
}

.gallery-header-logo-text {
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.gallery-header-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.gallery-nav-link {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.gallery-nav-link:hover {
    color: #666;
}

.download-all-btn {
    background: #333;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 5px;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.download-all-btn:hover {
    background: #555;
}

.download-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Основной контент галереи */
.gallery-main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.gallery-info {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 40px;
    text-align: center;
}

.gallery-info-title {
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 15px;
    color: #333;
}

.gallery-description {
    color: #666;
    font-size: 16px;
    margin-bottom: 20px;
}

.gallery-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 14px;
    color: #888;
}

/* Сетка фотографий в галерее */
.gallery-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-photo-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-photo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.gallery-photo-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    cursor: pointer;
    background: #f0f0f0;
}

.gallery-photo-info {
    padding: 20px;
}

.gallery-photo-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* Имя фотографии под превью */
.gallery-photo-name {
    font-size: 14px;
    font-weight: 400;
    color: #333;
    text-align: center;
    margin-bottom: 10px;
    word-break: break-word;
}

/* Кнопки в галерее */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.btn-download {
    background: #333;
    color: white;
}

/* Кнопка лайка */
.btn-like {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #e5e7eb;
}

.btn-like:hover {
    background: #eef2f7;
}

.btn-like.active {
    background: #fdecec;
    color: #b91c1c;
    border-color: #fca5a5;
}

.btn-download:hover {
    background: #555;
}

.btn-icon {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* Минималистичный Lightbox - SVG стрелки и крестик */
.lightbox-close {
    position: absolute;
    top: 0;
    right: -70px;
    background: transparent;
    color: white;
    border: none;
    outline: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: 0.7;
}

.lightbox-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.lightbox-close svg {
    width: 24px;
    height: 24px;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: white;
    border: none;
    outline: none;
    cursor: pointer;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: 1;
}

.lightbox-nav:hover {
    opacity: 1;
}

.lightbox-nav svg {
    width: 32px;
    height: 32px;
}

.lightbox-prev {
    left: -80px;
}

.lightbox-next {
    right: -80px;
}

.lightbox-content {
    position: relative;
}

/* Адаптивность для галереи */
@media (max-width: 768px) {
    .gallery-header-content {
        flex-direction: column;
        gap: 15px;
    }

    .gallery-header-logo-text {
        font-size: 16px;
        letter-spacing: 1px;
    }

    .gallery-header-nav {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .gallery-nav-link {
        font-size: 12px;
    }

    .gallery-info-title {
        font-size: 24px;
    }

    .gallery-meta {
        flex-direction: column;
        gap: 10px;
    }

    /* Мобильная сетка - 2 колонки */
    .gallery-photos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 20px 15px;
    }

    .gallery-photo-card {
        border-radius: 8px;
    }

    .gallery-photo-image {
        height: 180px;
    }

    .gallery-photo-info {
        padding: 15px;
    }

    .gallery-photo-actions {
        justify-content: center;
    }

    .btn {
        padding: 8px 16px;
        font-size: 11px;
    }

    .download-all-btn {
        width: 100%;
        justify-content: center;
    }

    /* Мобильные элементы управления lightbox */
    .lightbox-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }

    .lightbox-close svg {
        width: 22px;
        height: 22px;
    }

    .lightbox-nav {
        width: 50px;
        height: 70px;
        position: fixed;
        top: 50%;
        transform: translateY(-50%);
    }

    .lightbox-nav svg {
        width: 28px;
        height: 28px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .gallery-main-content {
        padding: 20px 10px;
    }

    .gallery-photos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 15px 10px;
    }

    .gallery-photo-image {
        height: 150px;
    }

    .gallery-photo-info {
        padding: 10px;
    }

    .btn {
        padding: 6px 12px;
        font-size: 10px;
    }

    .btn-icon {
        width: 12px;
        height: 12px;
    }

    .gallery-header-logo img {
        height: 50px;
    }

    .gallery-header-logo-text {
        font-size: 14px;
    }

    /* Ещё более удобные кнопки для маленьких экранов */
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
    }

    .lightbox-close svg {
        width: 20px;
        height: 20px;
    }

    .lightbox-nav {
        width: 44px;
        height: 60px;
    }

    .lightbox-nav svg {
        width: 24px;
        height: 24px;
    }

    .lightbox-prev {
        left: 5px;
    }

    .lightbox-next {
        right: 5px;
    }
}

/* Для планшетов */
@media (min-width: 769px) and (max-width: 1024px) {
    .gallery-photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 18px;
    }

    .gallery-photo-image {
        height: 200px;
    }
}

/* ===== СТИЛИ ДЛЯ СТРАНИЦЫ КОНТАКТОВ (contacts.php) ===== */

/* О фотографе */
.about-photographer {
    background: #f8f9fa;
    padding: 80px 0;
    /* Отступ сверху под фиксированный navbar */
    margin-top: 100px;
}

.about-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    align-items: start;
}

.about-text h2 {
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 30px;
    color: #333;
}

.about-text p {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #666;
}

.about-text strong {
    color: #333;
    font-weight: 500;
}

/* Контакты и форма */
.contacts-section-wrapper {
    padding: 80px 0;
    background: white;
    /* Если блок "Обо мне" отсутствует, не прилипать под navbar */
    margin-top: 100px;
}

.contacts-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-info h2 {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 30px;
    color: #333;
}

.contact-item {
    margin-bottom: 30px;
}

.contact-item h3 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-item p {
    font-size: 16px;
    font-weight: 300;
    color: #666;
    line-height: 1.6;
}

.contact-item a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #666;
}

/* Соцсети в контактах */
.contact-social {
    margin-top: 40px;
}

.contact-social h3 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-links-contacts {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-link-contact {
    display: inline-block;
    background: #333;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-align: center;
}

.social-link-contact:hover {
    background: #555;
    transform: translateX(5px);
}

/* Форма */
.contact-form {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 4px;
}

.contact-form h2 {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 30px;
    color: #333;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 400;
    color: #333;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #333;
}

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

.form-group select {
    cursor: pointer;
}

.submit-btn {
    background: #333;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background: #555;
}

.submit-btn:disabled {
    background: #999;
    cursor: not-allowed;
}

/* Адаптивность для contacts */
@media (max-width: 768px) {
    .about-photographer {
        padding: 50px 0;
        /* Меньший отступ сверху на мобильных */
        margin-top: 70px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .photographer-photo {
        max-width: 350px;
        margin: 0 auto;
    }

    .contacts-section-wrapper {
        padding: 50px 0;
        margin-top: 70px;
    }

    .contacts-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .social-links-contacts {
        gap: 10px;
    }

    .contact-social {
        margin-top: 30px;
    }
}
/* ===== Сертификаты и награды ===== */
.certificates-section {
    padding: 60px 0;
    background: white;
    /* Не прилипать под фиксированный navbar, если это первый блок */
    margin-top: 100px;
}

.certificates-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.certificate-item {
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 20px;
}

.certificate-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}

.certificate-title {
    font-size: 18px;
    font-weight: 500;
    color: #333;
}

.certificate-year {
    font-size: 14px;
    color: #666;
}

.certificate-description {
    font-size: 16px;
    font-weight: 300;
    color: #666;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .certificates-section {
        padding: 40px 0;
    }
}