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

@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&display=swap');

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    height: 100vh;
    position: relative;
    background: linear-gradient(135deg, #000000, #0a0a0a, #1a1a1a);
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
}

header {
    position: fixed;
    width: 100%;
    top: 0;
    height: 86px;
    z-index: 1000;
    display: block;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    animation: pulse 4s ease-in-out infinite;
}

.header-top {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
}

.header-top nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

header .logo {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 2.4rem;
    color: #fff;
    font-weight: 700;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: unset;
    animation: none;
    position: static;
    z-index: 3;
    cursor: pointer;
    transition: color 0.3s ease;
    filter: none;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    flex: 0 0 auto;
}

header .logo::after {
    content: '';
    display: none;
}

header .logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.5));
}

.great-vibes-regular {
    font-family: 'Great Vibes', cursive;
    font-weight: 400;
    font-style: normal;
}

nav {
    position: static;
    left: unset;
    top: unset;
    transform: none;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    margin-top: 0;
    height: 100%;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}


.background-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition: all 2s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.8;
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply;
}

.background-layer.active {
    opacity: 1;
}


@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
    100% { background-position: 0% 50%; }
}

@keyframes floatText {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-3px) rotate(0.5deg); }
    50% { transform: translateY(-6px) rotate(0deg); }
    75% { transform: translateY(-3px) rotate(-0.5deg); }
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

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

@keyframes pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

nav a:hover {
    color: #00ff00;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(255, 255, 255, 0.1);
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.8), 0 0 20px rgba(0, 255, 0, 0.6);
}

nav a.active {
    color: #00ff00;
    background: rgba(255, 255, 255, 0.15);
    transform: none;
}

.social-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    z-index: 1001;
}

.social-icons a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 1002;
    pointer-events: auto;
}

.social-icons a:hover {
    color: #00ff00;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(255, 255, 255, 0.1);
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.8), 0 0 20px rgba(0, 255, 0, 0.6);
}

.social-icons a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(0, 255, 0, 0.3) 0%, transparent 70%);
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.social-icons a:hover::before {
    width: 100%;
    height: 100%;
}


footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    animation: pulse 6s ease-in-out infinite;
}

#gallery-container {
    position: absolute;
    top: 66px;
    bottom: 60px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    overflow: hidden;
}

.photo-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.photo-wrapper.active {
    opacity: 1;
    z-index: 2;
}

.photo-item {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    filter: drop-shadow(0 0 10px rgba(0, 255, 0, 0.1));
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 80%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 80%, transparent);
}

.photo-item.active {
    opacity: 1;
    z-index: 3;
}

.blur-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: blur(20px);
    opacity: 0.8;
    z-index: 0;
    background-size: cover;
    background-position: center;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: stretch;
        height: auto;
        padding: 0.5rem 0.5rem 0 0.5rem;
        position: relative;
        display: block;
    }
    .header-top {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        flex-wrap: nowrap;
    }
    .header-top nav {
        display: none;
    }
    nav#main-nav {
        position: static;
        height: auto;
        margin-top: 0.5rem;
    }
    .header-top {
        flex-wrap: nowrap;
    }
    header .logo {
        font-size: 2.4rem;
        margin: 0;
        position: static;
        order: 1;
        flex: 0 0 auto;
    }
    .social-icons {
        margin: 0;
        width: auto;
        justify-content: flex-end;
        align-items: center;
        position: static;
        order: 2;
        flex: 0 0 auto;
    }
    nav {
        position: static;
        left: unset;
        top: unset;
        transform: none;
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 0.5rem;
        order: 3;
        z-index: 2;
    }
    nav ul {
        flex-direction: row;
        gap: 2rem;
        width: auto;
        align-items: center;
        justify-content: center;
    }
    nav li {
        width: auto;
        text-align: center;
    }
    nav a {
        display: inline-block;
        width: auto;
        font-size: 1.2rem;
        padding: 0.5rem 1rem;
        border-radius: 20px;
        margin: 0;
        box-sizing: border-box;
    }
}

footer p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    text-align: center;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

/* Стили для страницы галереи */
.gallery-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    pointer-events: none;
}

.gallery-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.gallery-counter {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    display: none; /* Скрыт по умолчанию */
}

.gallery-counter.visible {
    display: block;
}

.gallery-photos {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-photo-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.gallery-photo-wrapper.active {
    opacity: 1;
    z-index: 2;
}

.gallery-photo-item {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 2s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.5));
    border-radius: 8px;
}

.gallery-photo-item.active {
    opacity: 1;
}

/* Адаптивность для разных ориентаций фото */
.gallery-photo-item.landscape {
    max-width: 85%;
    max-height: 75%;
}

.gallery-photo-item.portrait {
    max-width: 60%;
    max-height: 85%;
}

.gallery-thumbnails {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 0.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 50;
    max-width: 80%;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    user-select: none;
}

.gallery-thumbnails:active {
    cursor: grabbing;
}

.gallery-thumbnails.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.gallery-thumbnails::-webkit-scrollbar {
    display: none;
}

.thumbnail {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.thumbnail:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.thumbnail.active {
    border-color: rgba(0, 255, 0, 0.6);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
    transform: scale(1.05);
}

/* Мобильная адаптивность */
@media (max-width: 768px) {
    .gallery-controls {
        padding: 0 1rem;
    }
    
    .gallery-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .gallery-counter {
        padding: 0.3rem 1rem;
        font-size: 0.9rem;
    }
    
    .gallery-photo-item.landscape {
        max-width: 95%;
        max-height: 70%;
    }
    
    .gallery-photo-item.portrait {
        max-width: 80%;
        max-height: 80%;
    }
    
    .gallery-thumbnails {
        bottom: 90px;
        max-width: 90%;
        padding: 0.3rem;
    }
    
    .thumbnail {
        width: 40px;
        height: 40px;
    }
}

/* Стили для страницы контактов */
.contacts-bg {
    background-size: cover;
    background-position: center;
    filter: blur(20px) brightness(0.6);
    opacity: 0;
    transition: opacity 2s cubic-bezier(0.4, 0, 0.2, 1);
}

.contacts-bg.active {
    opacity: 1;
}

.contacts-container {
    position: absolute;
    top: 86px;
    bottom: 80px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    overflow-y: auto;
}

.contacts-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    width: 100%;
    z-index: 2;
}

.contacts-info {
    color: white;
}

.contacts-title {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e, #ffd93d, #6bcf7f);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 6s ease infinite;
}

.contacts-subtitle {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.contact-item i {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #6bcf7f;
}

.contact-item h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: white;
}

.contact-item p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.contacts-form-wrapper {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.contacts-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    position: relative;
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.form-group.focused label {
    color: #6bcf7f;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6bcf7f;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(107, 207, 127, 0.3);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

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

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #ff6b6b;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.3);
}

.field-error {
    color: #ff6b6b;
    font-size: 0.8rem;
    margin-top: 0.3rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.submit-btn {
    background: linear-gradient(45deg, #6bcf7f, #4ecdc4);
    border: none;
    border-radius: 25px;
    padding: 1rem 2rem;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 8px 32px rgba(107, 207, 127, 0.3);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.submit-btn:hover {
    background: linear-gradient(45deg, #5bb26f, #45b7d1);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(107, 207, 127, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.message {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.message.success {
    background: rgba(107, 207, 127, 0.2);
    border: 1px solid rgba(107, 207, 127, 0.3);
    color: #6bcf7f;
}

.message.error {
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
}

/* Мобильная адаптивность для контактов */
@media (max-width: 768px) {
    .contacts-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem;
    }
    
    .contacts-container {
        padding: 1rem;
        top: 76px;
    }
    
    .contacts-title {
        font-size: 2.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contacts-form-wrapper {
        padding: 1.5rem;
    }
    
    .contact-item {
        padding: 1rem;
    }
}

@media (min-width: 769px) {
    nav#main-nav {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 86px;
        margin: 0;
        z-index: 2;
    }
}

@media (max-width: 768px) {
    nav#main-nav {
        position: static;
        height: auto;
        margin-top: 0.5rem;
        display: block;
    }
}


