:root {
    --primary-color: #ffffff;
    --secondary-color: #f8f8f8;
    --accent-color: #000000;
    --text-color: #000000;
    --highlight-color: #000000;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);

    /* Шрифты */
    --font-stem: 'Stem', sans-serif;
    --font-gardens: 'GardensC', cursive;
    --font-snell: 'SnellRoundhand', cursive;

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    font-family: var(--font-stem);
    font-weight: 300;
}

/* Навигация */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 2rem;
    position: relative;
}
/* Общие стили для логотипа */
.logo {
    position: absolute;
    left: 2rem;
    display: flex;
    align-items: center;
    height: 40px; /* Фиксированная высота */
}

.logo-img {
    height: 100%; /* Занимает всю высоту контейнера */
    width: auto; /* Сохраняем пропорции */
    max-height: 40px; /* Ограничиваем максимальную высоту */
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Эффект при наведении */
.logo:hover .logo-img {
    transform: scale(1.05);
}
/* Для мобильных устройств */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
    }

    /* Исправляем позиционирование логотипа на мобильных */
    .logo {
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
        height: 35px; /* Меньше на мобильных */
        z-index: 1001;
    }

    .logo-img {
        max-height: 35px;
    }
}

@media (max-width: 480px) {
    .logo {
        height: 30px;
        left: 0.8rem;
    }

    .logo-img {
        max-height: 30px;
    }

    .hamburger {
        right: 0.8rem;
    }
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 300;
    position: relative;
    transition: var(--transition);
    font-family: var(--font-stem);
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: var(--highlight-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--highlight-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Активная навигация */
.nav-links a.active {
    color: var(--highlight-color);
}

.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    position: absolute;
    right: 2rem;
}

/* Основной контент */
main {
    margin-top: 80px;
    position: relative;
    z-index: 2;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

/* Герой секция */
.hero {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.content-overlay {
    position: relative;
    background-color: var(--primary-color);
    margin-top: 100vh;
    z-index: 2;
}

/* Секция "Обо мне" */
.about {
    padding: 5rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

/* Левая часть */
.about-left {
    padding-top: 1rem;
}

.name-small {
    padding: 0 1rem;
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-family: var(--font-gardens);
    line-height: 1.2;
}

.name-title {
    font-size: 4rem;
    color: var(--accent-color);
    line-height: 1;
    font-family: var(--font-snell);
}

/* Правая часть */
.about-right {
    padding-top: 1rem;
}

.about-description p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 0;
    font-family: var(--font-stem);
    font-weight: 300;
}

.about-description strong {
    font-family: var(--font-stem);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Карусель с улучшенной анимацией */
.carousel-container {
    position: relative;
    width: 100%;
    margin-top: 6rem;
    overflow: hidden;
}

.carousel {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    position: absolute;
    left: 0;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.33, 1, 0.68, 1);
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 400px;
    height: 100%;
    padding: 0 10px;
    position: relative;
    transition: all 0.5s ease;
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.1),
        0 5px 15px rgba(0, 0, 0, 0.07);
    transition: all 0.6s cubic-bezier(0.33, 1, 0.68, 1);
    filter: brightness(0.95) contrast(1.05);
    transform-origin: center center;
}

.carousel-slide:hover .carousel-img {
    transform: scale(1.05);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.2),
        0 10px 25px rgba(0, 0, 0, 0.15);
    filter: brightness(1) contrast(1.1);
    z-index: 10;
}

/* Эффект параллакса для глубины */
.carousel-slide:nth-child(odd) .carousel-img {
    transform: perspective(1000px) rotateY(5deg) scale(0.95);
}

.carousel-slide:nth-child(even) .carousel-img {
    transform: perspective(1000px) rotateY(-5deg) scale(0.95);
}

.carousel-slide:hover:nth-child(odd) .carousel-img {
    transform: perspective(1000px) rotateY(0deg) scale(1.05);
}

.carousel-slide:hover:nth-child(even) .carousel-img {
    transform: perspective(1000px) rotateY(0deg) scale(1.05);
}

/* Эффект градиентного свечения */
.carousel-slide::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.1),
        rgba(255, 255, 255, 0.1),
        rgba(0, 0, 0, 0.1)
    );
    border-radius: 17px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.carousel-slide:hover::before {
    opacity: 1;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        background-position: 0% 0%;
    }
    to {
        background-position: 200% 200%;
    }
}

/* Затемнение краев */
.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        var(--primary-color) 0%,
        transparent 10%,
        transparent 90%,
        var(--primary-color) 100%
    );
    z-index: 2;
}

/* Контакты на главной */
.home-contacts {
    padding: 5rem 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.home-contacts h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--accent-color);
    text-align: center;
    font-family: var(--font-stem);
    font-weight: 500;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--highlight-color);
    transition: var(--transition);
    flex-shrink: 0;
}

.contact-item:hover .contact-icon {
    background-color: var(--highlight-color);
    color: var(--primary-color);
    transform: rotate(15deg) scale(1.1);
}

.contact-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-family: var(--font-stem);
    font-weight: 500;
}

.contact-item p {
    font-size: 1.1rem;
    color: var(--text-color);
    font-family: var(--font-stem);
    font-weight: 300;
}

/* Главная страница портфолио */
.portfolio-collections {
    padding: 8rem 0 4rem 0;
    max-width: 1400px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem 2rem;
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 0;
}

.collection-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.33, 1, 0.68, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    background: white;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.collection-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.collection-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    height: 400px;
}

.collection-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.33, 1, 0.68, 1);
}

.collection-item:hover .collection-image {
    transform: scale(1.08);
}

.collection-title-container {
    padding: 1.5rem;
    background: white;
    border-radius: 0 0 12px 12px;
    text-align: center;
}

.collection-title {
    font-family: 'GardensC', cursive;
    font-size: 1.6rem;
    font-weight: normal;
    color: var(--accent-color);
    position: relative;
    display: inline-block;
    padding-bottom: 0.8rem;
    transition: all 0.3s ease;
}

/* Анимация черты под названием */
.collection-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.6s cubic-bezier(0.33, 1, 0.68, 1);
}

.collection-item:hover .collection-title::after {
    width: 80px;
}

/* Эффект наложения при наведении */
.collection-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.1),
        transparent,
        rgba(255, 255, 255, 0.1)
    );
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 1;
    border-radius: 12px;
    pointer-events: none;
}

.collection-item:hover::before {
    opacity: 1;
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Анимации появления */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.33, 1, 0.68, 1),
                transform 0.8s cubic-bezier(0.33, 1, 0.68, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Стили для страниц коллекций */
.collection-header {
    max-width: 1400px;
    margin: 8rem auto 3rem auto;
    padding: 0 2rem;
    text-align: center;
}

.collection-header h1 {
    font-family: 'GardensC', cursive;
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.collection-header h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 3px;
    background-color: var(--accent-color);
}

.collection-header p {
    font-family: var(--font-stem);
    font-weight: 300;
    font-size: 1.2rem;
    color: var(--text-color);
    opacity: 0.8;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}


/* Ряд из 3 фотографий */
.gallery-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

/* Общие стили для фото */
.gallery-photo {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-photo:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Контейнер для фото с сохранением пропорций */
.photo-container {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}

/* Панель поделиться */
.share-section {
    max-width: 1400px;
    margin: -1rem auto;
    padding: 3rem 2rem;
    background: var(--secondary-color);
    border-radius: 15px;
    text-align: center;
}

.share-title {
    font-family: var(--font-stem);
    font-weight: 500;
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.share-button {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    font-family: var(--font-stem);
    font-weight: 400;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.share-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.share-button.whatsapp:hover {
    background: #25D366;
    color: white;
    border-color: #25D366;
}

.share-button.telegram:hover {
    background: #0088cc;
    color: white;
    border-color: #0088cc;
}

.share-button.copy:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.share-icon {
    font-size: 1.2rem;
}

/* Уведомление о копировании */
.copy-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--accent-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-family: var(--font-stem);
    font-weight: 400;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.copy-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* Блок Портфолио внутри страницы коллекции */
.portfolio-section {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.portfolio-section h2 {
    font-family: var(--font-stem);
    font-weight: 500;
    font-size: 2rem;
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    padding-bottom: 1rem;
}

.portfolio-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background-color: var(--accent-color);
}

/* Футер */
footer {
    background-color: var(--primary-color);
    padding: 3rem 2rem;
    text-align: center;
    border-top: none;
    width: 100%;
    margin-top: auto;
    position: relative;
    z-index: 3;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.6);
    font-family: var(--font-stem);
    font-weight: 300;
}

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

.collection-item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.collection-item:nth-child(1) { animation-delay: 0.1s; }
.collection-item:nth-child(2) { animation-delay: 0.2s; }
.collection-item:nth-child(3) { animation-delay: 0.3s; }
.collection-item:nth-child(4) { animation-delay: 0.4s; }
.collection-item:nth-child(5) { animation-delay: 0.5s; }
.collection-item:nth-child(6) { animation-delay: 0.6s; }

/* Плавная смена страниц */
.page {
    opacity: 1;
    animation: pageFadeIn 0.5s ease;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@media (max-width: 1024px) {
    .collections-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .collection-image-container {
        height: 350px;
    }

    .carousel-slide {
        flex: 0 0 350px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .logo {
        position: static;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .name-title {
        font-size: 3rem;
    }

    .about-description p {
        font-size: 1.1rem;
    }

    .carousel {
        height: 400px;
    }

    .carousel-slide {
        flex: 0 0 300px;
    }

    .portfolio-collections {
        padding: 6rem 1.5rem 3rem 1.5rem;
    }

    .collections-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .collection-image-container {
        height: 300px;
    }

    .collection-title {
        font-size: 1.4rem;
    }

    .collection-header {
        margin: 6rem auto 2rem auto;
        padding: 0 1.5rem;
    }

    .collection-header h1 {
        font-size: 2.2rem;
    }

    .gallery-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .collection-gallery {
        padding: 0 1.5rem;
    }

    .share-section {
        padding: 2rem 1.5rem;
        margin: 3rem auto;
    }

    .share-buttons {
        flex-direction: column;
        align-items: center;
    }

    .share-button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .portfolio-section {
        padding: 0 1.5rem;
    }

    .portfolio-section h2 {
        font-size: 1.8rem;
    }

    .contact-info {
        gap: 2rem;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .home-contacts h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .carousel {
        height: 300px;
    }

    .carousel-slide {
        flex: 0 0 250px;
    }

    .name-title {
        font-size: 2.5rem;
    }

    .name-small {
        font-size: 1rem;
    }

    .about-description p {
        font-size: 1rem;
    }

    .portfolio-collections {
        padding: 5rem 1rem 2rem 1rem;
    }

    .collection-image-container {
        height: 250px;
    }

    .collection-title-container {
        padding: 1rem;
    }

    .collection-title {
        font-size: 1.2rem;
    }

    .collection-header {
        margin: 5rem auto 1.5rem auto;
        padding: 0 1rem;
    }

    .collection-header h1 {
        font-size: 1.8rem;
    }

    .gallery-row {
        gap: 10px;
    }

    .share-section {
        padding: 1.5rem 1rem;
    }

    .portfolio-section {
        padding: 0 1rem;
    }

    .portfolio-section h2 {
        font-size: 1.5rem;
    }
}
/* Галерея коллекции - вертикальное расположение */
.collection-gallery {
    max-width: 1000px;
    margin: 0 auto 1.5rem auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Ряды с разным количеством фото */
.gallery-row-1 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

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

.gallery-row-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

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

.gallery-row-5 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

/* Контейнер для фото с сохранением пропорций */
.photo-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Стиль для фото с сохранением оригинальных пропорций */
.gallery-photo {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s cubic-bezier(0.33, 1, 0.68, 1);
}

.photo-container:hover .gallery-photo {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Стили для фото с обрезкой, если нужно */
.gallery-photo.contain {
    object-fit: contain;
    width: 100%;
    height: auto;
    max-height: 800px;
}

.gallery-photo.cover {
    object-fit: cover;
    width: 100%;
    height: 600px;
}

/* Автоматическое определение типа фото */
.photo-container[data-type="vertical"] .gallery-photo {
    object-fit: contain;
    width: 100%;
    height: auto;
    max-height: 800px;
}

.photo-container[data-type="horizontal"] .gallery-photo {
    object-fit: contain;
    width: 100%;
    height: auto;
    max-height: 500px;
}

/* Адаптивность для галереи */
@media (max-width: 1200px) {
    .collection-gallery {
        max-width: 1000px;
    }
}

@media (max-width: 992px) {
    .gallery-row-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-row-1,
    .gallery-row-4 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .collection-gallery {
        padding: 0 1rem;
        gap: 15px;
    }

    .gallery-row-1,
    .gallery-row-2,
    .gallery-row-3,
    .gallery-row-4,
    .gallery-row-5 {
        gap: 15px;
    }

    .gallery-row-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .collection-gallery {
        gap: 10px;
    }

    .gallery-row-1,
    .gallery-row-2,
    .gallery-row-3,
    .gallery-row-4,
    .gallery-row-5 {
        gap: 10px;
    }

    .photo-container {
        border-radius: 6px;
    }
}