:root {
    --bg: #121212;
    --text: #e0e0e0;
    --accent: #888;
    --gap: 10px;
    --transition: 0.3s ease;
    --header-photo-width: 35%;
    --header-photo-max-height: 450px;
    --font-text: 'Cormorant Infant', system-ui, sans-serif;
    --font-heading: 'Cormorant Unicase', system-ui, sans-serif;
}

/* === RESET & BASE === */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* === LAYOUT UTILITIES === */
.top-bar, header, .gallery, footer {
    padding-left: 50px;
    padding-right: 50px;
}

/* === TOP BAR === */
.top-bar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    background: rgba(18, 18, 18, 0.7);
    backdrop-filter: blur(9px);
    padding-top: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(34, 34, 34, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.75);
}

.contacts-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.social-icons { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
}

.contact-icon:nth-child(1) { width: 24px; height: 24px; }
.contact-icon:nth-child(2) { width: 22px; height: 22px; }
.contact-icon:nth-child(3) { width: 24px; height: 24px; }

.contact-icon img {
    width: 100%; height: 100%;
    object-fit: contain;
    opacity: 0.45;
    transition: var(--transition);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

.contact-icon:hover img { 
    opacity: 1; 
    transform: scale(1.1); 
}

/* Telegram Hover Effect */
.contact-icon.icon-tg { 
    position: relative; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
}
.contact-icon.icon-tg img { 
    transition: opacity 0.3s ease, transform 0.3s ease; 
}
.contact-icon.icon-tg:hover img { 
    opacity: 0; 
    transform: scale(1.1); 
}
.contact-icon.icon-tg::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: url('img/contacts/tg_icon_color.svg') center/contain no-repeat;
    opacity: 0; transition: opacity 0.3s ease, transform 0.3s ease; pointer-events: none; transform: scale(1);
}
.contact-icon.icon-tg:hover::after { 
    opacity: 1; 
    transform: scale(1.1); 
}

/* Max Hover Effect */
.contact-icon.icon-max { 
    position: relative; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
}
.contact-icon.icon-max img { 
    transition: opacity 0.3s ease, transform 0.3s ease; 
}
.contact-icon.icon-max:hover img { 
    opacity: 0; 
    transform: scale(1.1); 
}
.contact-icon.icon-max::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: url('img/contacts/max_icon_color.svg') center/contain no-repeat;
    opacity: 0; transition: opacity 0.3s ease, transform 0.3s ease; pointer-events: none; transform: scale(1);
}
.contact-icon.icon-max:hover::after { 
    opacity: 1; 
    transform: scale(1.1); 
}

/* Email Hover Effect */
.contact-icon.icon-email { 
    position: relative; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
}
.contact-icon.icon-email img { 
    transition: opacity 0.3s ease, transform 0.3s ease; 
}
.contact-icon.icon-email:hover img { 
    opacity: 0; 
    transform: scale(1.1); 
}
.contact-icon.icon-email::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: url('img/contacts/email_icon_color.svg') center/contain no-repeat;
    opacity: 0; transition: opacity 0.3s ease, transform 0.3s ease; pointer-events: none; transform: scale(1);
}
.contact-icon.icon-email:hover::after { 
    opacity: 1; 
    transform: scale(1.1); 
}

.phone-link {
    color: var(--text); text-decoration: none; border: none;
    font-size: 1.25rem; font-weight: 500;
    opacity: 0.6; transition: var(--transition); white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.phone-link:hover { 
    color: #fff; 
    opacity: 0.8; 
}

/* === PRICE BUTTON === */
.price-link {
    align-self: flex-end;
    color: var(--text); text-decoration: none; border: none;
    font-size: 1.4rem; font-weight: 400;
    opacity: 0.6; transition: var(--transition); white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin-top: 10px; display: inline-block; cursor: pointer;
    /* Gradient text effect */
    background: linear-gradient(15deg, #ffad15, #ff7300);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
    opacity: 1;
}
.price-link:hover { 
    color: #ffffff; 
    opacity: 0.8; 
}

/* === PRICE MODAL === */
.price-modal {
    display: none; position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9998;
    justify-content: center; align-items: center; padding: 20px;
    opacity: 0; transition: opacity 0.3s ease;
}
.price-modal.active { 
    display: flex; 
    opacity: 1; 
}
.price-modal-content {
    background: #1a1a1a;
    padding: 40px;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}
.price-modal-close {
    position: absolute; top: 0px; right: 20px;
    font-size: 2.5rem; color: #fff; cursor: pointer;
    user-select: none; transition: transform 0.2s; line-height: 1;
}
.price-modal-close:hover { 
    transform: scale(1.1); 
}
.price-modal h2 {
    font-family: var(--font-heading); font-size: 1.7rem; font-weight: 500;
    margin-bottom: 25px; text-align: center;
}
.price-list { 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
}
.price-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; border-bottom: 1px solid #333;
}
.price-item:last-child { 
    border-bottom: none; 
}
.price-name { 
    color: var(--text); 
    font-size: 1.15rem; 
}
.price-value {
    color: var(--accent);
    font-weight: 500;
    font-size: 1.05rem;
    white-space: nowrap;
    margin-left: 15px;
}
.price-note {
    margin-top: 25px; color: #666; font-size: 0.9rem;
    text-align: center; font-style: italic;
}

/* === HEADER === */
header {
    padding-top: 100px;
    padding-bottom: 60px;
    max-width: 1400px;
    margin: 0 auto;
}
.header-split {
    display: flex; align-items: flex-start; gap: 40px;
    background: linear-gradient(90deg, #121212 0%, #1e1e1e 75%, #1e1e1e 50%, #121212 100%);
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
    overflow: hidden; padding: 40px;
}
.header-image-col {
    flex: 0 0 var(--header-photo-width);
    max-height: var(--header-photo-max-height); overflow: hidden;
}
.header-image-col img { 
    width: 100%; height: 100%; 
    object-fit: cover; display: block; 
}
.header-text-col { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
}
.header-text-col h1 {
    font-family: var(--font-heading); font-size: 2.8rem; font-weight: 400;
    letter-spacing: -0.5px; margin-bottom: 8px; line-height: 1.1;
}
.header-text-col .subtitle {
    font-family: var(--font-heading); color: var(--accent);
    font-size: 1.3rem; font-weight: 400; margin-bottom: 4px;
}
.bio { 
    color: #ccc; 
    font-size: 1.3rem; 
    line-height: 1.5; 
}

/* === GALLERY (MASONRY) === */
.gallery {
    column-count: 3; column-gap: var(--gap);
    padding-top: 10px;
    padding-bottom: 40px;
    max-width: 1400px;
    margin: 0 auto;
}
.photo {
    break-inside: avoid; margin-bottom: var(--gap);
    border-radius: 0; overflow: hidden; background: #1a1a1a;
    cursor: zoom-in; opacity: 0; transition: opacity 1.5s ease-out;
}
.photo.visible { 
    opacity: 1; 
}
.photo img { 
    width: 100%; height: auto; display: block; 
    transition: transform 0.4s ease, filter 0.4s ease; 
}
.photo:hover img { 
    transform: scale(1.04); 
    filter: brightness(1.1); 
}

/* === LIGHTBOX === */
.lightbox {
    display: none; position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    justify-content: center; align-items: center; padding: 20px;
    opacity: 0; transition: opacity 0.3s ease;
}
.lightbox.active { 
    display: flex; 
    opacity: 1; 
}
.lightbox-img {
    max-width: 90%; max-height: 90vh;
    width: auto; height: auto; object-fit: contain;
    border-radius: 4px; box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}
.lightbox-close {
    position: absolute; top: 20px; right: 30px;
    font-size: 3rem; color: #fff; cursor: pointer;
    user-select: none; transition: transform 0.2s; z-index: 10000; line-height: 1;
}
.lightbox-close:hover { 
    transform: scale(1.1); 
}

/* === FOOTER === */
footer {
    display: flex; justify-content: space-between; align-items: center;
    padding-left: 50px; padding-right: 50px;
    padding-top: 15px; padding-bottom: 25px;
    color: var(--accent); font-size: 1.25rem; border-top: 1px solid #222;
}
.footer-sign {
    max-height: 80px;
    width: auto;
    opacity: 0.6;
    margin-right: 15px;
}
.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}
.footer-copyright {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
    text-align: right;
    opacity: 0.8;
}

/* Footer Email */
.footer-email-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-email-icon {
    height: 1rem;
    width: auto;
    opacity: 0.4;
    transition: var(--transition);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    transform: translateY(2px) translateX(4px);
}
.footer-email {
    color: var(--accent);
    text-decoration: none;
    font-size: 1.5rem;
    opacity: 0.8;
    transition: var(--transition);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.footer-email-wrap:hover .footer-email-icon,
.footer-email-wrap:hover .footer-email {
    opacity: 0.8;
    color: #fff;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.8));
}

/* === INFO SECTION === */
.info-section {
    padding: 60px 0;
    background: linear-gradient(90deg, #121212 0%, #1e1e1e 75%, #1e1e1e 50%, #121212 100%);
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
}
.info-container {
    max-width: 800px;
    margin: 0 auto;
    padding-left: 80px;
    padding-right: 20px;
    text-align: center;
}
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Две равные колонки */
    gap: 40px; /* Отступы между колонками */
    max-width: 1200px; /* Ограничиваем ширину, чтобы не разъезжалось */
    margin: 0 auto;   /* Центрируем сетку */
    text-align: left; /* Текст внутри блоков прижат влево */
}
.info-item h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text);
    opacity: 70%;
    margin-bottom: 12px;
    display: inline-block; 
    border-bottom: 1px solid #555;
    padding-bottom: 5px;
}
.info-item p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #bbb;
    opacity: 80%;
    max-width: 650px; 
    margin: 0 auto;
}

/* === MEDIA QUERIES === */
@media (max-width: 1000px) {
    .gallery { column-count: 3; }
    :root { --header-photo-width: 40%; }
}

@media (max-width: 800px) {
    .gallery { column-count: 2; }
    .header-split { flex-direction: column; padding: 20px; }
    .header-image-col { flex: 0 0 auto; width: 100%; max-height: 300px; }
    .header-text-col { padding: 0; }
}

@media (max-width: 600px) {
    .gallery { column-count: 1; }
    .footer-sign { display: none; }
    .top-bar { padding-top: 10px; padding-bottom: 10px; }
    .contacts-row { gap: 10px; }
    .social-icons { gap: 10px; }
    .lightbox-close { top: 10px; right: 15px; font-size: 2.5rem; }
    
    .top-bar, header, .gallery, footer { padding-left: 16px; padding-right: 16px; }
    
    footer { 
        flex-direction: column; 
        gap: 12px; 
        padding-left: 20px; 
        padding-right: 20px; 
        align-items: flex-end; 
    }

    .price-modal-content { padding: 25px 20px; }
    .price-modal h2 { font-size: 1.5rem; }
    .price-item { flex-direction: column; align-items: flex-start; gap: 5px; }
    .price-value { margin-left: 0; }
    .price-modal-close { top: -3px; display: none; }

    .info-grid {
        grid-template-columns: 1fr;
    }
}