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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #F7F4EF;
    color: #222;
}

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

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 7vw;
    background: radial-gradient(circle at top left, #FFFFFF 0, #F7F4EF 45%, #F0E6DA 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    filter: blur(60px);
    top: -120px;
    right: -80px;
    opacity: 0.6;
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
}

.hero-title {
    font-family: "Playfair Display", serif;
    font-size: clamp(2.6rem, 5vw, 3.6rem);
    line-height: 1.1;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-subtitle {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #8C7A67;
}

.hero-text {
    margin-top: 1.5rem;
    max-width: 440px;
    line-height: 1.7;
    color: #666;
}

.hero-button {
    margin-top: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.4rem;
    border-radius: 999px;
    background: #222;
    color: #F7F4EF;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border: 1px solid rgba(0,0,0,0.9);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.hero-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.18);
    background: #000;
}

.hero-photo-card {
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    animation: float 8s ease-in-out infinite;
    background: #ddd;
}

.hero-photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ========================= MAIN LAYOUT ========================= */

main {
    padding: 4rem 7vw 5rem;
}

section {
    margin-bottom: 4rem;
}

.section-title {
    font-family: "Playfair Display", serif;
    font-size: 1.8rem;
    margin-bottom: 1.4rem;
}

.section-text {
    max-width: 720px;
    line-height: 1.8;
    color: #666;
}

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

.about-section {
    max-width: 1100px;
    margin-inline: auto;
}

.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
    gap: 2rem;
    align-items: center;
}

.about-photo img {
    width: 100%;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}

.about-info .section-title {
    margin-bottom: 1rem;
}

.about-info .section-text + .section-text {
    margin-top: 0.8rem;
}

/* ========================= REVEAL ANIMATION ========================= */

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================= GALLERY ========================= */

.gallery {
    background: #f9f3ef;
    padding: 6rem 7vw;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

/* ✔ оставлено ТОЛЬКО новое определение */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #ddd;
    transform: translateY(30px);
    opacity: 0;
    transition:
        transform 0.8s cubic-bezier(0.19, 1, 0.22, 1),
        opacity 0.8s ease;
}

.gallery-item.visible {
    transform: translateY(0);
    opacity: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.9rem 1.4rem 1.1rem;
    font-size: 0.82rem;
    color: #fff;
    background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0));
}

/* ========================= LIGHTBOX ========================= */

.lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.lightbox.active {
    display: flex;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
}

.lightbox-content {
    position: relative;
    max-width: min(90vw, 1200px);
    max-height: 90vh;
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 8px 24px rgba(0, 0, 0, 0.3);
    animation: lightbox-in 0.35s ease-out;
}

.lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #111;
}

.lightbox-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    border: none;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 1.7rem;
    line-height: 1;
    border-radius: 999px;
    width: 2.4rem;
    height: 2.4rem;
    cursor: pointer;
}

@keyframes lightbox-in {
    from {
        transform: translateY(20px) scale(0.96);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* ========================= TOP NAV ========================= */

.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 0.9rem 7vw;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.top-nav-inner {
    max-width: 1200px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(247, 244, 239, 0.92);
    backdrop-filter: blur(14px);
    border-radius: 999px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
    padding: 0.4rem 1.4rem;
    pointer-events: auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
}

.brand-mark {
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 999px;
    background: #111;
    color: #f7f4ef;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.brand-text {
    font-size: 0.88rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #444;
}

.top-nav-links a {
    margin-left: 1.4rem;
    font-size: 0.87rem;
    text-decoration: none;
    color: #555;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    position: relative;
}

.top-nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.2rem;
    height: 1px;
    background: #111;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.top-nav-links a:hover::after {
    transform: scaleX(1);
}

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

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }
    main {
        padding: 3rem 5vw 4rem;
    }
    .about-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        gap: 1.4rem;
    }
    .gallery-caption {
        font-size: 0.76rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 3rem 5vw;
    }
    .hero-button {
        width: 100%;
    }
}
/* ========================= FOOTER ========================= */

.footer {
    margin-top: 6rem;
    background: #f4efe9;
    padding: 3rem 7vw 2.4rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-inner {
    max-width: 1200px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.6rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-mark {
    width: 2.1rem;
    height: 2.1rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 999px;
    background: #111;
    color: #f7f4ef;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.footer-text {
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #444;
}

.footer-links {
    display: flex;
    gap: 1.8rem;
}

.footer-links a {
    font-size: 0.85rem;
    text-decoration: none;
    color: #666;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

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

.footer-copy {
    margin-top: 0.4rem;
    font-size: 0.78rem;
    color: #777;
    letter-spacing: 0.06em;
}

/* MOBILE */
@media (max-width: 600px) {
    .footer {
        padding: 2.4rem 5vw 2rem;
    }

    .footer-links {
        gap: 1.2rem;
    }
}

.gallery .section-header {
    margin-bottom: 2rem; 
}

#project2.section {
  padding-top: 3rem; 
}

.footer-links a {
    margin: 0 0.9rem;
    font-size: 0.85rem;
    text-decoration: none;
    color: #555;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: opacity 0.25s ease;
}

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

.insta-link {
    color: #d26f5a; /* нежно-корралловый оттенок, как из интерьеров */
    font-weight: 500;
}

.insta-link:hover {
    opacity: 0.8;
}

.project-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;                          /* расстояние от линий до точки */
  margin: 5rem auto 3.5rem;             /* отступы сверху/снизу */
  width: min(40vw, 260px);              /* тянется от экрана, но не больше 260px */
}

/* линии слева и справа */
.project-separator::before,
.project-separator::after {
  content: "";
  flex: 1;                              /* делят доступную ширину */
  height: 1.5px;
  background: rgba(0, 0, 0, 0.22);
  border-radius: 999px;
}

/* точка в центре */
.project-separator__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.32);
}

