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

body {
    background: #0a0a0a;
    color: #f0f0f0;
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
}

/* =========================
   TOPBAR
   ========================= */

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 48px;
    border-bottom: 1px solid #222;
}

.mark {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 24px;
    text-decoration: none;
    color: #f0f0f0;
}

.mark span {
    font-size: 14px;
    vertical-align: super;
}

.topbar nav {
    display: flex;
    gap: 32px;
}

.topbar nav a {
    color: #999;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.05em;
}

.topbar nav a:hover {
    color: #f0f0f0;
}

.menu {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu i {
    display: block;
    width: 20px;
    height: 2px;
    background: #f0f0f0;
}

/* =========================
   HERO
   ========================= */

.hero {
    position: relative;
    padding: 100px 48px;
    border-bottom: 1px solid #222;
    background-image: url('/images/table2.jpg');
    background-size: cover;
    background-position: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    z-index: 0;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero .meta {
    color: #ccc;
    font-size: 12px;
    letter-spacing: 0.1em;
    margin-bottom: 40px;
}

.hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 96px;
    font-weight: 600;
    line-height: 0.9;
    color: #fff;
}

.hero h1 em {
    font-style: normal;
    color: #e8d200;
}

.hero-foot {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    color: #ccc;
    font-size: 12px;
    letter-spacing: 0.05em;
}

/* =========================
   WORK / PROJECTS
   ========================= */

.work {
    padding: 48px;
}

.head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    color: #666;
    font-size: 12px;
    letter-spacing: 0.1em;
}

.project {
    display: flex;
    gap: 40px;
    padding: 40px 0;
    border-bottom: 1px solid #222;
    align-items: center;
}

.project.dark {
    background: #111;
    margin: 0 -48px;
    padding: 40px 48px;
}

/* Контейнер для обложки — фиксированный книжный формат */
/* Контейнер для обложки — фиксированный книжный формат */
.art {
    width: 300px;
    height: 350px;
    flex-shrink: 0;
    overflow: hidden;            /* Обрезаем изображение фреймом */
    position: relative;
    background: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

/* Растушёвка краёв — лёгкая тень */
.art::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    box-shadow: 
        inset 0 0 30px rgba(0,0,0,0.4),
        inset 0 0 60px rgba(0,0,0,0.2);
    border-radius: 4px;
}

.art .scale-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: center center;
    transition: transform 0.3s ease;
    background: #ffffff !important;
}

.art img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.art img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
    cursor: zoom-in;
    display: block;
}

.art img:hover {
    transform: scale(1.02);
}

/* Ручная коррекция масштаба */
.art img.zoom-50 { transform: scale(0.5); }
.art img.zoom-75 { transform: scale(0.75); }
.art img.zoom-100 { transform: scale(1); }
.art img.zoom-125 { transform: scale(1.25); }
.art img.zoom-150 { transform: scale(1.5); }
.art img.zoom-175 { transform: scale(1.75); }
.art img.zoom-200 { transform: scale(2); }

/* Плашка с зумом */
.zoom-controls {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    gap: 4px;
    background: rgba(0,0,0,0.7);
    padding: 6px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}

.art:hover .zoom-controls {
    opacity: 1;
}

.zoom-btn {
    width: 24px;
    height: 24px;
    background: #333;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-btn:hover {
    background: #555;
}

.zoom-btn.active {
    background: #e8d200;
    color: #000;
}

/* Заглушка если нет обложки */
.art-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #666;
    text-align: center;
}

.info {
    flex: 1;
}

.info span {
    color: #666;
    font-size: 12px;
    letter-spacing: 0.1em;
}

.info h2 {
    text-wrap: pretty;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 17px;
    font-weight: 600;
    margin: 10px 0;
}

.info p {
    color: #999;
    font-size: 14px;
}

/* Кнопка просмотра обложки */
.cover-view-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(0,0,0,0.7);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
}

.art:hover .cover-view-btn {
    opacity: 1;
}

.book-block-btn {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 20px;
    background: #e8d200;
    color: #000;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.book-block-btn:hover {
    background: #f5e040;
}

/* =========================
   ABOUT
   ========================= */

.about {
    padding: 48px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.about-grid h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 36px;
    line-height: 1.2;
}

.about-grid h2 em {
    font-style: normal;
    color: #e8d200;
}

.about-grid p {
    color: #999;
    margin-bottom: 20px;
}

/* =========================
   MOBILE ADAPTIVE
   ========================= */

@media (max-width: 768px) {
    .info h2 {
    text-wrap: pretty;
        font-size: 16px;
    }
    
    .info p {
        font-size: 12px;
    }
    
    /* Вертикальное расположение на планшетах */
    .project {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .project .art {
        width: 100%;
        max-width: 300px;
        height: 350px;
    }
    
    .project .art img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        transform: none !important;
    }
}

@media (max-width: 480px) {
    .info h2 {
    text-wrap: pretty;
        font-size: 15px;
    }
    
    .info p {
        font-size: 11px;
    }
    
    /* Вертикальное расположение на телефонах */
    .project {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .project .art {
        width: 300px;
        height: 350px;
        overflow: hidden;
        background: #ffffff !important;
    }
    
    .project .art .scale-wrapper {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        transform-origin: center center;
    }
    
    .project .art img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
    }
    
    .project.dark {
        margin: 0 -24px;
        padding: 20px 24px;
    }
}

/* =========================
   CONTACT
   ========================= */

.contact {
    padding: 48px;
    border-top: 1px solid #222;
}

.contact span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 48px;
    font-weight: 600;
    line-height: 1.1;
    display: block;
    margin-bottom: 24px;
}

.contact a {
    color: #e8d200;
    font-size: 24px;
    text-decoration: none;
}

.contact .foot {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    color: #666;
    font-size: 12px;
    letter-spacing: 0.1em;
}

.contact .foot span {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.1em;
    display: inline;
    margin-bottom: 0;
}


/* =========================================================
   ПРИНУДИТЕЛЬНЫЕ СТИЛИ ДЛЯ ФРЕЙМА ОБЛОЖКИ (FIX VIVALDI)
   ========================================================= */
html body .art {
    width: 300px !important;
    height: 350px !important;
    overflow: hidden !important;
    background-color: #ffffff !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

html body .art .scale-wrapper {
    width: 100% !important;
    height: 100% !important;
    background-color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transform-origin: center center !important;
}

html body .art .scale-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
}

/* Временно отключаем тень, чтобы проверить белый фон */
html body .art::after {
    display: none !important;
}


/* =========================================================
   СЕКЦИЯ ABOUT С ФОТО СТОЛА
   ========================================================= */
.about {
    position: relative;
    background-image: url('/images/table2.jpg');
    background-size: cover;
    background-position: center;
    padding: 60px 48px;
}

.about::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 0;
}

.about > * {
    position: relative;
    z-index: 1;
}

.about .head span {
    color: #ccc;
}

.about .about-grid h2 {
    color: #fff;
}

.about .about-grid p {
    color: #ddd;
}
