* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    height: 100%;
}
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #161a14;
    color: #e0e2d8;
    min-height: 100%;
}
.container {
    width: 100%;
    height: 100vh;
    position: relative;
    background: #161a14;
    overflow: hidden;
}
.photo-side {
    position: absolute;
    right: 0;
    top: 0;
    width: 70%;
    height: 100vh;
    background: url('osnova.png') no-repeat center center;
    background-size: contain;
    background-color: #161a14;
    z-index: 2;
}
.layer-right {
    position: absolute;
    right: 0;
    top: 0;
    width: 140px;
    height: 100vh;
    background: #4a5242;
    clip-path: polygon(45% 0, 100% 0, 100% 100%, 0 100%);
    z-index: 5;
}
.layer-back {
    position: absolute;
    left: 0;
    top: 0;
    width: 40%;
    height: 100vh;
    background: #4a5242;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
    z-index: 3;
}
.diagonal-panel {
    position: absolute;
    left: 0;
    top: 0;
    width: 32%;
    height: 100vh;
    background: #161a14;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
    display: flex;
    flex-direction: column;
    padding-left: 7%;
    padding-top: 30vh;
    padding-bottom: 6vh;
    z-index: 4;
}
.identity h1 {
    font-size: 2.3rem;
    font-weight: 300;
    letter-spacing: 5px;
    color: #e0e2d8;
    text-transform: uppercase;
    margin-bottom: 3rem;
}
.menu {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    opacity: 0;
    transform: translateY(-20px);
    animation: slideDown 0.6s ease-out 0.3s forwards;
}
@keyframes slideDown {
    to { opacity: 1; transform: translateY(0); }
}
.menu a {
    color: #b5b9aa;
    text-decoration: none;
    font-size: 1.9rem;
    font-weight: 300;
    letter-spacing: 5px;
    text-transform: uppercase;
    transition: all 0.3s;
    width: fit-content;
}
.menu a:hover {
    color: #ffffff;
    transform: translateX(10px);
}
.footer {
    margin-top: auto;
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: rgba(224, 226, 216, 0.5);
}
.legal {
    display: block;
    font-size: 0.65rem;
    font-weight: 300;
    letter-spacing: 1.5px;
    color: rgba(224, 226, 216, 0.3);
    margin-top: 4px;
}
@media (max-width: 768px) {
    .layer-back,
    .layer-right { display: none; }
    .diagonal-panel {
        width: 100%;
        clip-path: none;
        padding-left: 2rem;
        padding-top: 20vh;
    }
    .photo-side { width: 100%; opacity: 0.3; }
    .menu a { font-size: 1.6rem; }
    .identity h1 { font-size: 2rem; }
}
body.page-quotes,
body.page-photos,
body.page-about,
body.page-contact {
    background: url('/photos/2025/greh.png') no-repeat center center fixed;
    background-size: cover;
    position: relative;
    padding: 40px;
}
body.page-quotes::before,
body.page-photos::before,
body.page-about::before,
body.page-contact::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(22, 26, 20, 0.7);
    backdrop-filter: blur(3px);
    z-index: 0;
}
body.page-quotes,
body.page-about,
body.page-contact {
    display: flex;
    align-items: center;
    justify-content: center;
}
body.page-photos {
    display: block;
}
.back-link {
    position: fixed;
    bottom: 30px; left: 40px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s;
    z-index: 2;
}
.back-link:hover { color: #ffffff; }
.quotes-page {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    gap: 60px;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}
.carousel-section {
    flex: 1;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.quote-container {
    background: rgba(22, 26, 20, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 40px;
    padding: 40px 50px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    height: 420px;
    display: flex;
    align-items: center;
    position: relative;
}
.quote-slide {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
}
.quote-text {
    font-size: 2rem;
    font-weight: 200;
    line-height: 1.6;
    letter-spacing: 0.5px;
    color: #ffffff;
    transition: opacity 0.25s ease;
}
.quote-text::before {
    content: "\AB";
    opacity: 0.3;
    margin-right: 10px;
    font-size: 2.5rem;
    font-weight: 200;
}
.quote-text::after {
    content: "\BB";
    opacity: 0.3;
    margin-left: 10px;
    font-size: 2.5rem;
    font-weight: 200;
}
.carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    height: 50px;
}
.carousel-arrow {
    width: 56px; height: 56px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: #ffffff;
    font-size: 1.4rem;
    backdrop-filter: blur(5px);
}
.carousel-arrow:hover {
    background: rgba(74, 82, 66, 0.7);
    border-color: #a0a898;
    transform: scale(1.05);
}
.carousel-dots { display: flex; gap: 14px; }
.dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    padding: 0;
}
.dot:hover { background: rgba(255,255,255,0.35); }
.dot.active {
    width: 30px;
    border-radius: 6px;
    background: #a0a898;
}
.quote-counter {
    position: absolute;
    bottom: 20px;
    right: 30px;
    color: rgba(255, 255, 255, 0.37);
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 2px;
    z-index: 2;
    pointer-events: none;
}
.photo-section {
    flex: 0 0 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.photo-wrapper {
    position: relative;
    width: 100%;
    border-radius: 40% 60% 30% 70% / 50% 40% 60% 50%;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.08);
}
.photo-main {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.95) contrast(1.05);
    transition: filter 0.5s;
}
.photo-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 30% 30%, transparent 40%, rgba(22, 26, 20, 0.3) 100%);
    pointer-events: none;
}
@media (max-width: 1000px) {
    .quote-container { padding: 30px 40px; height: 400px; }
    .quote-text { font-size: 1.8rem; }
    .quote-counter { bottom: 15px; right: 20px; font-size: 0.8rem; }
}
@media (max-width: 800px) {
    .quotes-page { flex-direction: column; gap: 30px; }
    .photo-section { flex: 0 0 auto; width: 100%; max-width: 380px; }
    body.page-quotes { padding: 20px; }
    .quote-container { height: 360px; padding: 25px 30px; }
    .quote-text { font-size: 1.5rem; }
    .quote-counter { bottom: 12px; right: 16px; font-size: 0.75rem; }
}
.content {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.page-photos h1 {
    font-size: 4rem;
    font-weight: 300;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 60px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.years-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}
.year-card {
    background: rgba(74, 82, 66, 0.3);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(224, 226, 216, 0.1);
    border-radius: 20px;
    padding: 16px 32px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #e0e2d8;
}
.year-card:hover {
    background: #4a5242;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.year-card.active {
    background: #4a5242;
    border-color: #4a5242;
}
.photo-grid {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.photo-grid.active { display: grid; }
.photo-grid.visible { opacity: 1; transform: translateY(0); }
.photo-item {
    position: relative;
    background: rgba(22, 26, 20, 0.5);
    backdrop-filter: blur(5px);
    border-radius: 16px;
    overflow: visible;
    border: 1px solid rgba(224, 226, 216, 0.1);
    transition: all 0.3s;
    aspect-ratio: 1;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.95);
    animation: photoAppear 0.5s ease-out forwards;
}
@keyframes photoAppear {
    to { opacity: 1; transform: scale(1); }
}
.photo-item:hover {
    transform: scale(1.03) !important;
    border-color: #4a5242;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 10;
}
.photo-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}
.empty-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
    color: rgba(224, 226, 216, 0.4);
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0;
    animation: fadeIn 0.5s ease-out 0.2s forwards;
}
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.modal.active { display: flex; }
.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}
.modal-close {
    position: absolute;
    top: 30px; right: 40px;
    color: #ffffff;
    font-size: 40px;
    cursor: pointer;
    transition: opacity 0.3s;
    z-index: 1001;
}
.modal-close:hover { opacity: 0.7; }
.modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px; height: 60px;
    background: rgba(74, 82, 66, 0.5);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: #ffffff;
    font-size: 24px;
    z-index: 1001;
}
.modal-arrow:hover { background: #4a5242; }
.arrow-left  { left: 40px; }
.arrow-right { right: 40px; }
.modal-counter {
    position: absolute;
    bottom: 30px; left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 2px;
}
@media (max-width: 700px) {
    .page-photos h1 { font-size: 2.5rem; letter-spacing: 4px; }
    .year-card { font-size: 1.3rem; padding: 12px 20px; }
    body.page-photos { padding: 20px; }
    .modal-arrow { width: 40px; height: 40px; font-size: 18px; }
    .arrow-left  { left: 20px; }
    .arrow-right { right: 20px; }
}
.page-about .content { text-align: center; }
.page-about h1 {
    font-size: 5rem;
    font-weight: 300;
    letter-spacing: 10px;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 60px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    white-space: nowrap;
}
.about-text {
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(224, 226, 216, 0.8);
    margin-bottom: 60px;
}
.about-placeholder {
    color: rgba(224, 226, 216, 0.4);
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}
@media (max-width: 700px) {
    .page-about h1 { font-size: 3rem; letter-spacing: 6px; white-space: normal; }
    .about-text { font-size: 1.1rem; }
    body.page-about { padding: 20px; }
}
.page-contact .content { text-align: center; }
.page-contact h1 {
    font-size: 5rem;
    font-weight: 300;
    letter-spacing: 10px;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 40px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    white-space: nowrap;
}
.contact-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-top: 150px;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 18px 30px;
    background: rgba(74, 82, 66, 0.4);
    backdrop-filter: blur(5px);
    border-radius: 60px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid rgba(224, 226, 216, 0.08);
    font-size: 1.3rem;
    font-weight: 300;
    width: fit-content;
    min-width: 360px;
    justify-content: center;
    opacity: 0;
    animation: slideUp 0.8s ease-out forwards;
}
.contact-item:nth-child(1) { animation-delay: 0.3s; }
.contact-item:nth-child(2) { animation-delay: 0.5s; }
.contact-item:nth-child(3) { animation-delay: 0.7s; }
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
.contact-item:hover {
    background: #4a5242;
    border-color: #4a5242;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.contact-item i {
    font-size: 2rem;
    width: 40px;
    text-align: center;
    color: #c0c8b0;
    transition: color 0.3s;
}
.contact-item:hover i { color: #ffffff; }
@media (max-width: 700px) {
    .page-contact h1 { font-size: 3rem; letter-spacing: 6px; white-space: normal; }
    .contact-item { padding: 14px 24px; font-size: 1.1rem; min-width: 280px; }
    body.page-contact { padding: 20px; }
}
