/* styles.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'FreeStyleScript';
    src: url('Freestyle_Script_Plain.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #1a1a1a;
    padding-bottom: 90px;
}

/* Шапка */
header {
    background-color: #000000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #333333;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 1rem;
}

.logo {
    font-family: 'FreeStyleScript', sans-serif;
    font-size: 1.5rem;
    color: #ffffff;
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    white-space: nowrap;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.8rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-links a {
    text-decoration: none;
    color: #cccccc;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 1rem;
    white-space: nowrap;
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-links a.active {
    color: #ffffff;
    border-bottom: 2px solid #ffffff;
    padding-bottom: 4px;
}

/* Основной контейнер */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 5%;
}

/* Секция "О фотографе" */
.about {
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    background-color: #1a1a1a;
    padding-top: 70px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
}

.about-text {
    text-align: left;
    color: #cccccc;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-text p:first-child {
    font-size: 1.5rem;
    font-weight: 300;
    color: #ffffff;
    font-family: 'FreeStyleScript', sans-serif;
    letter-spacing: 1px;
}

.about-image {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    filter: grayscale(100%) contrast(110%);
    border: 1px solid #444444;
    transition: transform 0.3s;
    display: block;
}

.about-image:hover {
    transform: scale(1.01);
}

/* Секция Стоимость */
.price-section {
    background-color: #222222;
    scroll-margin-top: 80px;
}

.price-section h2, .gallery-section h2, .contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #ffffff;
    word-break: break-word;
}

.price-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #1a1a1a;
    border: 1px solid #444444;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.price-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.2rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #333333;
    flex-wrap: wrap;
}

.price-marker {
    color: #ffffff;
    font-size: 1.2rem;
    min-width: 30px;
    text-align: center;
}

.price-text {
    color: #cccccc;
    font-size: 1.1rem;
    line-height: 1.5;
    flex: 1;
}

.price-highlight {
    color: #ffffff;
    font-weight: bold;
    background-color: #333333;
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    display: inline-block;
    margin: 0 0.3rem;
}

.price-note {
    margin-top: 2rem;
    padding: 1rem;
    background-color: #2a2a2a;
    border-left: 4px solid #666666;
    color: #e0e0e0;
    font-style: italic;
    border-radius: 0 10px 10px 0;
}

.price-image {
    max-width: 300px;
    height: auto;
    border-radius: 10px;
}

/* Галерея */
.gallery-section {
    background-color: #1a1a1a;
    scroll-margin-top: 80px;
    padding-top: 70px;
}

.gallery-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

.gallery-item {
    flex: 0 1 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    background-color: #222222;
    transition: transform 0.3s;
    border: 1px solid #444444;
}

.gallery-item:hover {
    transform: scale(1.02);
    border-color: #666666;
}

.gallery-item a {
    display: block;
    text-decoration: none;
    height: 100%;
}

.gallery-item img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    transition: transform 0.3s;
    filter: grayscale(100%) contrast(110%);
}

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

/* Контакты */
.contact {
    padding: 5rem 5% 7rem;
    text-align: center;
    background-color: #222222;
    scroll-margin-top: 80px;
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
    color: #cccccc;
}

.contact-info p {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.contact-link {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s;
    display: inline-block;
    word-break: break-all;
}

.contact-link:hover {
    opacity: 0.7;
    text-decoration: underline;
    color: #cccccc;
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.contact-icon img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
}

/* Иконки */
.icon-instagram, .icon-telegram, .icon-email, .icon-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #555555;
    background-color: #333333;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    border-radius: 4px;
    overflow: hidden;
}

.icon-instagram {
    background: transparent;
    background-color: #333333;
}

.icon-instagram img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.icon-telegram {
    background: transparent;
    background-color: #333333;
}

.icon-telegram img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.icon-email {
    background-color: #2a2a2a;
}

.icon-phone {
    background-color: #2a2a2a;
    border-radius: 50%;
}

.icon-email i, .icon-phone i {
    color: #ffffff;
    font-size: 14px;
}

/* Footer */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #000000;
    color: #ffffff;
    padding: 0.8rem 5% 0.3rem;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
    z-index: 1000;
    backdrop-filter: blur(5px);
    border-top: 2px solid #333333;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    font-size: 0.9rem;
    opacity: 0.8;
    color: #999999;
}

.footer-contacts {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #cccccc;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-contact-item:hover {
    opacity: 1;
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    overflow: hidden;
    background-color: #333333;
}

.footer-contact-icon img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-contact-item:hover .icon-instagram,
.footer-contact-item:hover .icon-telegram {
    transform: scale(1.1);
}

.footer-icons8 {
    position: absolute;
    right: 5%;
    bottom: 0.3rem;
    font-size: 0.6rem;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.footer-icons8:hover {
    opacity: 1;
}

.footer-icons8 a {
    color: #999999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-icons8 a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ===== АДАПТИВНОСТЬ ДЛЯ ПЛАНШЕТОВ И МОБИЛЬНЫХ ===== */
@media (max-width: 992px) {
    .about-content {
        gap: 2rem;
    }
    
    .price-container {
        padding: 1.8rem;
    }
    
    .price-text {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 120px;
    }
    
    .navbar {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.6rem 5%;
    }
    
    .logo {
        font-size: 1.3rem;
        white-space: normal;
        text-align: center;
    }
    
    .nav-links {
        gap: 1rem;
        justify-content: center;
        width: 100%;
    }
    
    .nav-links a {
        font-size: 0.9rem;
        white-space: nowrap;
    }
    
    .about {
        padding-top: 110px;
        min-height: auto;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-text {
        text-align: center;
    }
    
    .about-text p:first-child {
        font-size: 1.3rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    .about-image {
        max-width: 80%;
        margin: 0 auto;
    }
    
    .price-section h2, 
    .gallery-section h2, 
    .contact h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .price-container {
        padding: 1.5rem;
    }
    
    .price-item {
        gap: 0.8rem;
    }
    
    .price-text {
        font-size: 0.95rem;
    }
    
    .price-marker {
        font-size: 1rem;
        min-width: 25px;
    }

    .price-image {
        display: none;
    }
    
    .gallery-item img {
        max-height: 280px;
    }
    
    .contact {
        padding: 3rem 5% 5rem;
    }
    
    .contact-info p {
        justify-content: flex-start;
        padding-left: 10%;
    }
    
    footer {
        display: none;
    }
    
    .footer-icons8 {
        font-size: 0.55rem;
        right: 5%;
        bottom: 0.2rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .footer-contacts {
        gap: 0.8rem;
    }
    
    .footer-contact-item span:last-child {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    body {
        padding-bottom: 140px;
    }
    
    .navbar {
        padding: 0.5rem 4%;
    }
    
    .nav-links {
        gap: 0.7rem;
        flex-wrap: wrap;
    }
    
    .nav-links a {
        font-size: 0.8rem;
        white-space: nowrap;
    }
    
    .about {
        padding-top: 120px;
    }
    
    .about-image {
        max-width: 95%;
    }
    
    .price-section h2, 
    .gallery-section h2, 
    .contact h2 {
        font-size: 1.8rem;
    }
    
    .price-container {
        padding: 1.2rem;
    }
    
    .price-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
    
    .price-marker {
        min-width: auto;
    }
    
    .price-text {
        font-size: 0.9rem;
    }
    
    .price-note {
        font-size: 0.85rem;
        padding: 0.8rem;
    }
    
    .gallery-item img {
        max-height: 220px;
    }
    
    .contact-info p {
        justify-content: center;
        padding-left: 0;
    }
    
    .contact-icon {
        width: 28px;
        height: 28px;
    }
    
    .contact-link {
        font-size: 0.85rem;
        word-break: break-all;
    }
    
    .footer-icons8 {
        font-size: 0.5rem;
        right: 5%;
    }
    
    .footer-contacts {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-contact-item {
        justify-content: center;
    }
    
    .footer-contact-item span:last-child {
        font-size: 0.75rem;
    }
    
    .footer-copyright {
        font-size: 0.7rem;
    }
}

/* Дополнительные улучшения для touch-устройств */
@media (hover: none) {
    .gallery-item:hover {
        transform: none;
    }
    
    .gallery-item:hover img {
        transform: none;
    }
    
    .footer-contact-item:hover {
        transform: none;
    }
}
