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

body {
    background-color: #ffffff;
    color: #0a0a0a;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    line-height: 1.5;
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #1a1a1a;
}
::-webkit-scrollbar-thumb {
    background: #0a0a0a;
    border-radius: 8px;
}

h1, h2, h3, .logo, .nav-links a, .gallery-title, .artwork-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}

.bg-svg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.2;
}
.bg-svg svg {
    width: 100%;
    height: 100%;
}

main {
    padding-top: 130px;
}

section {
    scroll-margin-top: 130px;
}

/* ===== ШАПКА (фиксированная) ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    background-color: rgba(45, 45, 45, 0.95);
}

.header-flex {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 32px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-image {
    height: 60px;
    margin-left: -50px;
    width: auto;
    display: block;
}

.logo-svg {
    width: 340px !important;
    height: auto !important;
    max-width: 100%;
    display: block;
}

/* ===== БУРГЕР ===== */
.burger-toggle {
    display: none;
}

.burger-btn {
    display: none;
    font-size: 32px;
    color: #ffffff;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
    user-select: none;
    z-index: 1001;
}

.header-actions {
    display: flex;
    align-items: center;
}

/* Навигационное меню - десктопная версия */
.nav-menu {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-size: 0.95rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    transition: opacity 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-links a:hover {
    opacity: 0.6;
}

/* ===== ПРОФИЛЬ В БУРГЕР-МЕНЮ ===== */
.menu-profile-section {
    display: none; /* Скрыто на десктопе */
}

/* ===== МОБИЛЬНАЯ ВЕРСИЯ ШАПКИ ===== */
@media (max-width: 1024px) {
    header {
        padding: 8px 0;
    }

    .header-flex {
        padding: 8px 15px !important;
        min-height: 60px;
    }

    .logo-wrapper {
        gap: 8px;
    }

    .logo-svg {
        width: 320px !important;
        height: auto !important;
    }

    .logo-image {
        height: 60px !important;
        margin-left: 20px;
    }

    .burger-btn {
        display: block !important;
        font-size: 32px !important;
        margin-left: 5px !important;
        color: #ffffff !important;
    }

    .header-actions {
        display: flex !important;
        align-items: center !important;
        flex-shrink: 0 !important;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 320px;
        height: 100vh;
        background: #0a0a0a;
        padding: 80px 20px 40px;
        box-shadow: -10px 0 40px rgba(0,0,0,0.5);
        z-index: 1000;
        overflow-y: auto;
    }

    .burger-toggle:checked ~ .nav-menu {
        display: block !important;
    }

    /* Настройки профиля внутри бургера */
    .menu-profile-section {
        display: block;
        margin-bottom: 30px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 20px;
    }

    .menu-photo.hero-photo {
        width: 100px;
        height: 100px;
        max-width: 100px;
        margin-bottom: 20px;
        box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
        display: block;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid rgba(255, 255, 255, 0.1);
    }

    .menu-text {
        color: #ffffff;
        text-align: left; /* Строго по левому краю */
        font-size: 0.85rem;
        line-height: 1.5;
        font-family: 'Inter', sans-serif;
        font-weight: 300;
    }

    .menu-text p {
        margin-bottom: 12px;
    }

    .menu-text .menu-sign {
        font-style: italic;
        font-family: 'Cormorant Garamond', serif;
        font-size: 1rem;
        border-left: 2px solid #ffffff;
        padding-left: 10px;
        margin-top: 15px;
        color: #dddddd;
    }

    .nav-links {
        flex-direction: column;
        gap: 20px;
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 10px 0;
        display: block;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        color: #ffffff !important;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }
}

@media (max-width: 768px) {
    .logo-svg {
        width: 180px !important;
    }

    .logo-image {
        height: 64px !important;
        margin-left: 20px;

    }

    .burger-btn {
        font-size: 30px !important;
    }

    .nav-menu {
        width: 290px;
        padding: 70px 20px 30px;
    }
}

@media (max-width: 540px) {
    .header-flex {
        padding: 6px 12px !important;
        min-height: 50px;
    }

    .logo-svg {
        width: 250px !important;
    }

    .logo-image {
        height: 48px !important;
        margin-left: 20px;

    }

    .logo-wrapper {
        gap: 6px;
    }

    .burger-btn {
        font-size: 28px !important;
        padding: 0 3px !important;
        margin-left: 3px !important;
    }

    .nav-menu {
        width: 280px;
        padding: 60px 15px 30px;
    }

    .nav-links a {
        font-size: 0.95rem;
        padding: 8px 0;
    }
}

@media (max-width: 400px) {
    .header-flex {
        padding: 5px 10px !important;
        min-height: 44px;
    }

    .logo-svg {
        width: 220px !important;
    }

    .logo-image {
        height: 44px !important;
        margin-left: 20px;

    }

    .burger-btn {
        font-size: 26px !important;
        padding: 0 2px !important;
        margin-left: 2px !important;
    }

    .nav-menu {
        width: 260px;
        padding: 50px 15px 25px;
    }

    .nav-links a {
        font-size: 0.85rem;
        padding: 6px 0;
    }
}

/* ===== ДЛЯ ДЕСКТОПА - скрываем бургер ===== */
@media (min-width: 1025px) {
    .burger-btn {
        display: none !important;
    }

    .nav-menu {
        display: flex !important;
    }
}

/* ===== КНОПКИ И ЭЛЕМЕНТЫ ===== */
button, .btn {
    padding: 12px 24px;
    background: #0a0a0a;
    color: #fff;
    border: none;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

/* ===== ДЕКОРАТИВНЫЕ ЭЛЕМЕНТЫ ===== */
.floating-decor {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.float-item {
    position: absolute;
    animation: moveSvg 15s infinite alternate ease-in-out;
}

@keyframes moveSvg {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(50px) rotate(10deg); }
}

/* ===== АНИМАЦИЯ SVG ===== */
@keyframes floatGlow {
    0% { transform: translateY(0px) scale(1); opacity: 0.2; }
    100% { transform: translateY(12px) scale(1.02); opacity: 0.3; }
}

.floating-svg {
    animation: floatGlow 12s infinite alternate ease-in-out;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 70px 0 60px;
}

.hero-text {
    flex: 1.2;
}

.hero-text h1 {
    font-size: 3.9rem;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 24px;
    color: #0a0a0a;
}

.hero-text p {
    font-size: 1.15rem;
    max-width: 550px;
    color: #0a0a0a;
    margin-bottom: 32px;
}

.hero-photo-wrapper {
    flex: 0.8;
    min-width: 340px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-photo {
    width: 100%;
    max-width: 380px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.8);
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.hero-photo:hover {
    transform: scale(1.03);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 45px rgba(0,0,0,0.9);
}

.btn {
    display: inline-block;
    background: transparent;
    border: 1px solid #0a0a0a;
    padding: 12px 28px;
    font-weight: 500;
    color: #0a0a0a;
    text-decoration: none;
    transition: 0.25s;
    cursor: pointer;
}

.btn:hover {
    background: #ffffff;
    color: #0a0a0a;
    border-color: #0a0a0a;
}

/* ===== НОВОСТИ ===== */
.news-section {
    position: relative;
    z-index: 10;
    padding: 70px 0 60px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 113px;
    margin-bottom: 20px;
    background-color: #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.news-section .container {
    max-width: 1400px;
    width: 100%;
    padding: 0 32px;
    margin: 0 auto;
}

.news-section .section-title {
    text-align: center;
    width: 100%;
    margin-bottom: 40px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 40px;
    justify-content: center;
    width: 100%;
    margin-top: 30px;
}

.news-card {
    position: relative;
    background: #ffffff;
    border-radius: 18px;
    padding: 28px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid #444444;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    width: 100%;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25), 0 6px 12px rgba(0, 0, 0, 0.1);
    border-color: #000000;
}

.news-card-svg {
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: scale(0.8) rotate(-10deg);
}

.news-card:hover .news-card-svg {
    opacity: 0.08;
    transform: scale(1) rotate(0deg);
}

.news-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.news-date {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #666666;
    margin-bottom: 12px;
}

.news-title {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 12px;
    color: #000000;
}

.news-desc {
    font-size: 0.95rem;
    line-height: 1.45;
    color: #222222;
    margin-bottom: 18px;
}

.news-link {
    color: #444444;
    text-decoration: none;
    font-weight: 400;
    transition: 0.2s;
}

.news-link:hover {
    color: #000000;
}

/* ===== ВОДЯНОЙ ЗНАК ===== */
.news-card-image {
    position: relative;
    overflow: hidden;
}

.news-card-image::after {
    content: 'evasilyev.art';
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.3);
    pointer-events: none;
    z-index: 1;
}

.news-card-image img {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* ===== СЕКЦИЯ ABOUT ===== */
#about {
    background-color: #ffffff;
    color: #0a0a0a;
    padding: 80px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    color: #0a0a0a;
    font-size: 1.2rem;
    line-height: 1.6;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #0a0a0a;
}

.about-text p {
    margin-bottom: 18px;
    font-size: 1.02rem;
    color: #0a0a0a;
}

.about-sign {
    margin-top: 30px;
    font-style: italic;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    border-left: 3px solid #0a0a0a;
    padding-left: 20px;
}

/* ===== БЛОК КОД (Исправление центрирования и гитары) ===== */
.section-kod .container > div {
    margin: 0 auto !important;
    justify-content: center !important;
}

.section-kod .container > div > div:last-child {
    flex: 0 1 350px !important;
    max-width: 350px !important;
    display: flex !important;
    justify-content: center !important;
    margin: 0 auto !important;
}

.section-kod img {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
}

/* ===== GALLERY ===== */
.gallery {
    position: relative;
    z-index: 10;
    padding: 70px 0 90px;
}

.section-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: -0.5px;
    font-weight: 500;
    color: #0a0a0a;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 2px;
    background: #0a0a0a;
    margin: 16px auto 0;
}

.artworks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 48px 32px;
    justify-content: center;
}

.artwork-card {
    background: #1a1a1a;
    border-radius: 28px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.4s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.artwork-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 35px -12px rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
}

.art-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: 0.5s;
    background: #0a0a0a;
}

.artwork-info {
    padding: 22px 20px 26px;
}

.artwork-title {
    font-size: 1.7rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: #0a0a0a;
}

.artwork-year {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #777777;
    margin-bottom: 14px;
}

.artwork-desc {
    font-size: 0.9rem;
    line-height: 1.45;
    color: #0a0a0a;
}

/* ===== FOOTER ===== */
footer {
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 45px 0 35px;
    text-align: center;
    font-size: 0.85rem;
    color: #777777;
    background-color: #f0f0f0;
}

/* ===== FEEDBACK FORM ===== */
.feedback-container {
    background: #ffffff;
    padding: 50px;
    border-radius: 24px;
    border: 1px solid #000000;
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.feedback-form input,
.feedback-form textarea {
    width: 100%;
    max-width: 400px;
    padding: 14px 20px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.feedback-form button {
    width: 100%;
    max-width: 400px;
    background: #000000;
    color: #ffffff;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

/* ===== СТИЛИ ДЛЯ ССЫЛОК НОВОСТЕЙ ===== */
.news-link {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #000000;
    text-decoration: none;
    border-bottom: 1px solid #000000;
    padding-bottom: 2px;
    transition: all 0.3s ease;
    display: inline-block;
}

.news-link:hover {
    color: #777777;
    border-bottom: 1px solid #777777;
}

/* ===== АДАПТИВНОСТЬ ОСТАЛЬНЫХ БЛОКОВ ===== */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 0 30px;
        gap: 30px;
    }

    .hero-text {
        flex: 1;
        width: 100%;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }

    .hero-text p {
        max-width: 100%;
        margin: 0 auto 25px;
    }

    .hero-photo-wrapper {
        flex: 1;
        min-width: 0;
        width: 100%;
    }

    .hero-photo {
        max-width: 300px;
    }

    .btn {
        display: inline-block;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-photo {
        max-width: 250px;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .section-title:after {
        width: 50px;
        margin: 12px auto 0;
    }

    .news-section {
        padding: 40px 0 30px;
        margin-top: 60px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .news-card {
        padding: 20px;
    }

    .news-img {
        height: 220px !important;
    }

    .news-title {
        font-size: 1.3rem;
    }

    .news-date {
        font-size: 0.75rem;
    }

    .news-desc {
        font-size: 0.9rem;
    }

    .gallery {
        padding: 40px 0 60px;
    }

    .artworks-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .artwork-card {
        padding: 15px;
    }

    .artwork-title {
        font-size: 1.4rem;
    }

    .artwork-desc {
        font-size: 0.85rem;
    }

    .art-img {
        height: 220px;
    }

    .feedback-container {
        padding: 30px 20px;
        max-width: 100%;
    }

    .feedback-form input,
    .feedback-form textarea,
    .feedback-form button {
        max-width: 100%;
    }

    footer {
        padding: 30px 0 25px;
        font-size: 0.75rem;
    }

    footer .container {
        padding: 0 20px;
    }

    main {
        padding-top: 80px;
    }

    section {
        scroll-margin-top: 80px;
    }
}

@media (max-width: 540px) {
    .container {
        padding: 0 15px;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-photo {
        max-width: 200px;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Исправление для header-placeholder */
#header-placeholder {
    display: block;
    width: 100%;
}