@font-face {
    font-family: "Myriad Pro";
    src: url("../fonts/myriad-pro/myriad-pro-light.otf") format("opentype");
    font-style: normal;
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: "Myriad Pro";
    src: url("../fonts/myriad-pro/myriad-pro-regular.otf") format("opentype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Myriad Pro";
    src: url("../fonts/myriad-pro/myriad-pro-semibold.otf") format("opentype");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "Myriad Pro";
    src: url("../fonts/myriad-pro/myriad-pro-bold.otf") format("opentype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

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

body {
    font-family: "Myriad Pro", Myriad, "Segoe UI", "Inter", system-ui, sans-serif;
    background-color: #F9F8F6;
    color: #2C2C2C;
    line-height: 1.6;
}

button {
    font: inherit;
}

/* Шапка */
header {
    position: relative;
    z-index: 2;
    padding: 30px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #E8E6E1;
}

.logo {
    font-size: 18px;
    letter-spacing: 2px;
    font-weight: 300;
}

.header-notice {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    color: #B24A4A;
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.menu-toggle {
    position: relative;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.menu-toggle:focus-visible,
nav a:focus-visible {
    outline: 1px solid #888;
    outline-offset: 4px;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
    position: absolute;
    width: 24px;
    height: 1px;
    background: currentColor;
    transition: transform 0.3s ease, top 0.3s ease;
}

.menu-icon::before,
.menu-icon::after {
    content: "";
    left: 0;
}

.menu-icon::before {
    top: -7px;
}

.menu-icon::after {
    top: 7px;
}

.menu-toggle[aria-expanded="true"] .menu-icon {
    background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-icon::after {
    top: 0;
    transform: rotate(-45deg);
}

nav {
    position: absolute;
    top: calc(100% + 12px);
    right: 60px;
    z-index: 2;
    min-width: 220px;
    padding: 12px 0;
    background: #fff;
    border: 1px solid #D8D5CF;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1;
    padding: 0;
    border: 0;
    background: rgba(32, 32, 32, 0.16);
    backdrop-filter: blur(1px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s;
}

header.menu-open .menu-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

header.menu-open .menu-toggle {
    z-index: 3;
}

header.menu-open nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

nav ul {
    list-style: none;
}

nav a {
    display: block;
    padding: 12px 24px;
    text-decoration: none;
    color: #555;
    font-size: 14px;
    letter-spacing: 1px;
    transition: color 0.3s, background-color 0.3s;
}

nav a:hover {
    color: #000;
    background: rgba(0, 0, 0, 0.025);
}

/* Hero секция */
.hero {
    text-align: center;
    padding: 80px 60px 60px;
}

.hero h1 {
    font-size: 72px;
    font-weight: 300;
    letter-spacing: 8px;
    margin-bottom: 10px;
    line-height: 1.1;
}

.hero .subtitle {
    font-size: 24px;
    font-weight: 300;
    color: #666;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero .tagline {
    font-size: 14px;
    color: #888;
    letter-spacing: 1px;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Галерея */
.gallery-section {
    padding: 60px;
}

.artist-intro {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
    gap: 30px;
    margin-bottom: 60px;
}

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

.gallery-item {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.gallery-item.portrait img {
    height: 400px;
}

.artist-intro .portrait {
    align-self: start;
}

.gallery-item.tall {
    grid-row: span 2;
}

.gallery-item.tall img {
    height: calc(100% - 80px);
}

.item-info {
    padding: 20px;
}

.item-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.item-category {
    font-size: 12px;
    color: #888;
    letter-spacing: 1px;
}

/* О художнике */
.about-block {
    padding: 40px 30px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.about-block h3 {
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-weight: 600;
}

.about-block p {
    font-size: 15px;
    line-height: 1.75;
    color: #666;
    margin-bottom: 18px;
}

.about-block p.artist-name {
    color: #2C2C2C;
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 4px;
}

.about-block p.artist-summary {
    margin-bottom: 24px;
}

.biography-details {
    border-top: 1px solid #E8E6E1;
}

.biography-details summary {
    padding: 16px 0;
    color: #555;
    font-size: 14px;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: color 0.2s;
}

.biography-details summary:hover {
    color: #2C2C2C;
}

.biography-details summary:focus-visible {
    outline: 1px solid #888;
    outline-offset: 4px;
}

.biography-content {
    padding-top: 8px;
}

.biography-section {
    margin-bottom: 28px;
}

.biography-section h4 {
    margin-bottom: 10px;
    color: #2C2C2C;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.biography-section p {
    margin-bottom: 12px;
}

.biography-section strong {
    color: #3D3D3D;
    font-weight: 600;
}

.about-block a {
    color: inherit;
    text-decoration-color: #C8C5BF;
    text-underline-offset: 3px;
}

.about-block a:hover {
    color: #2C2C2C;
}

.artist-quote {
    margin-top: 30px;
    padding-left: 20px;
    border-left: 1px solid #D8D5CF;
    color: #777;
    font-size: 15px;
    font-style: italic;
    line-height: 1.8;
}

/* Футер */
footer {
    padding: 40px 60px;
    border-top: 1px solid #E8E6E1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #888;
}

.social-links {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.social-links a {
    color: #666;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.social-links a.developer-brand {
    color: #1ad5e6;
    font-family: "JetBrains Mono", monospace;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: normal;
}

.social-links a.developer-brand span {
    background: linear-gradient(135deg, #1ad5e6, #8152e0);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.social-links a:hover {
    color: #000;
}

/* Адаптив */
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .gallery-item.tall {
        grid-row: span 1;
    }
    .gallery-item.tall img,
    .gallery-item.portrait img {
        height: 320px;
    }
}

@media (max-width: 900px) {
    .artist-intro {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 44px;
        padding: 16px 24px;
    }
    .logo {
        grid-column: 1;
        grid-row: 1;
    }
    .menu-toggle {
        grid-column: 2;
        grid-row: 1;
    }
    .header-notice {
        position: static;
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: center;
        transform: none;
    }
    nav {
        right: 24px;
    }
    footer {
        padding: 28px 20px;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .hero {
        padding: 60px 30px 40px;
    }
    .hero h1 {
        font-size: 42px;
        letter-spacing: 4px;
    }
    .gallery-section {
        padding: 40px 30px;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .artist-intro {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }
}
