/* =============================================
   НИКИТА БЕЛОВ — PORTFOLIO CSS v1
   Стиль: Bugatti / Pure Black Cinematic
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@300;400;700;900&family=Space+Mono:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500&display=swap');

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

:root {
    --black: #000000;
    --white: #ffffff;
    --dim: rgba(255,255,255,0.38);
    --muted: rgba(255,255,255,0.55);
    --border: rgba(255,255,255,0.10);
    --border-h: rgba(255,255,255,0.22);
    --chapter-dark: #0a0a0a;
    --gold: #c9a84c;
    --tr: 0.4s cubic-bezier(0.16,1,0.3,1);
    --section-py: 120px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    font-weight: 300;
}

a { color: inherit; text-decoration: none; }
em { font-style: italic; color: var(--white); font-weight: 400; }

/* Typography helpers */
.mono    { font-family: 'Space Mono', monospace; letter-spacing: 0.05em; }
.dim     { color: var(--dim); }
.body-text {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    color: var(--muted);
    line-height: 1.85;
    font-weight: 300;
    max-width: 540px;
}

/* Scroll reveal */
.reveal-up {
    opacity: 0; transform: translateY(40px);
    transition: opacity 0.8s var(--tr), transform 0.8s var(--tr);
}
.reveal-up.active { opacity: 1; transform: none; }

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
    transition: background 0.5s, border-color 0.5s;
    border-bottom: 1px solid transparent;
}
.navbar.scrolled {
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(24px);
    border-bottom-color: var(--border);
}
.nav-inner {
    max-width: 1280px; margin: 0 auto;
    height: 72px; display: flex; align-items: center; gap: 2.5rem;
}
.nav-monogram {
    font-family: 'Unbounded', sans-serif; font-weight: 700;
    font-size: 1.1rem; letter-spacing: 0.08em; flex-shrink: 0;
    border: 1px solid var(--border-h); border-radius: 50%;
    width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    transition: border-color var(--tr), background var(--tr);
}
.nav-monogram:hover { border-color: var(--white); background: rgba(255,255,255,0.05); }
.nav-links-wrap { display: flex; gap: 0.15rem; margin-left: auto; }
.nav-link {
    font-family: 'Space Mono', monospace; font-size: 0.7rem;
    text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--dim); padding: 0.5rem 0.85rem; border-radius: 4px;
    transition: color var(--tr);
}
.nav-link:hover { color: var(--white); }
.nav-cta {
    font-family: 'Space Mono', monospace; font-size: 0.7rem;
    text-transform: uppercase; letter-spacing: 0.1em;
    border: 1px solid var(--border-h); padding: 0.55rem 1.4rem; border-radius: 50px;
    transition: border-color var(--tr), background var(--tr); white-space: nowrap; flex-shrink: 0;
}
.nav-cta:hover { border-color: var(--white); background: rgba(255,255,255,0.05); }
.burger {
    display: none; background: none; border: none; cursor: pointer;
    flex-direction: column; gap: 8px; padding: 4px; margin-left: auto;
}
.burger span { display: block; width: 28px; height: 1px; background: var(--white); transition: var(--tr); }
.burger.open span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.burger.open span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }
.mobile-menu {
    display: none; flex-direction: column; gap: 0;
    padding: 1.5rem 0; border-top: 1px solid var(--border);
    background: rgba(0,0,0,0.97); backdrop-filter: blur(24px);
}
.mobile-menu.open { display: flex; }
.mobile-link {
    font-family: 'Space Mono', monospace; font-size: 0.75rem; text-transform: uppercase;
    letter-spacing: 0.12em; color: var(--dim); padding: 1rem 0;
    border-bottom: 1px solid var(--border); transition: color var(--tr);
}
.mobile-link:hover { color: var(--white); }
.mt { margin-top: 1.5rem; }

/* =============================================
   BUTTONS
   ============================================= */
.btn-pill-outline {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-family: 'Space Mono', monospace; font-size: 0.72rem;
    text-transform: uppercase; letter-spacing: 0.12em;
    border: 1px solid var(--border-h); padding: 0.9rem 2.2rem; border-radius: 50px;
    transition: border-color var(--tr), background var(--tr), transform var(--tr);
    white-space: nowrap;
}
.btn-pill-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.05); transform: translateY(-2px); }

.btn-pill-filled {
    display: inline-flex; align-items: center;
    font-family: 'Space Mono', monospace; font-size: 0.72rem;
    text-transform: uppercase; letter-spacing: 0.12em;
    background: var(--white); color: var(--black);
    padding: 0.9rem 2.2rem; border-radius: 50px;
    transition: background var(--tr), transform var(--tr), opacity var(--tr);
    white-space: nowrap;
}
.btn-pill-filled:hover { opacity: 0.85; transform: translateY(-2px); }

.btn-text {
    font-family: 'Space Mono', monospace; font-size: 0.72rem;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--dim); transition: color var(--tr);
}
.btn-text:hover { color: var(--white); }
.btn-text.sm { font-size: 0.65rem; }

/* =============================================
   HERO
   ============================================= */
.hero {
    position: relative; min-height: 100vh;
    display: flex; flex-direction: column;
    justify-content: flex-end;
    padding: 0 clamp(1.5rem, 5vw, 4rem) 5rem;
    overflow: hidden;
}

.hero-label {
    position: absolute; top: 100px; left: clamp(1.5rem, 5vw, 4rem);
    display: flex; align-items: center; gap: 0.75rem;
    font-size: 0.68rem;
}

.hero-photo-wrap {
    position: absolute; top: 0; right: 0; bottom: 0;
    width: 50%; pointer-events: none;
}
.hero-photo-frame {
    position: absolute; inset: 0;
}
.hero-photo-frame img {
    width: 100%; height: 100%; object-fit: cover; object-position: top center;
    opacity: 0.7;
    filter: saturate(0.55) brightness(0.85) contrast(1.05);
    mask-image: linear-gradient(to left, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
}

.hero-title {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(4.5rem, 11vw, 11rem);
    font-weight: 900; line-height: 0.9; letter-spacing: -0.04em;
    position: relative; z-index: 2;
}
.hero-name-top { display: block; font-weight: 700; }
.hero-name-bot { display: block; font-weight: 700; color: rgba(255,255,255,0.45); }

.hero-stats-row {
    display: flex; align-items: center; gap: 2rem;
    margin-top: 2.5rem; position: relative; z-index: 2; flex-wrap: wrap;
}
.hero-stat { display: flex; flex-direction: column; gap: 0.25rem; }
.stat-value { font-size: 0.78rem; }
.stat-label  { font-size: 0.6rem; }
.hero-divider { width: 1px; height: 28px; background: var(--border-h); }

.hero-cta {
    display: flex; align-items: center; gap: 2rem;
    margin-top: 2.5rem; position: relative; z-index: 2;
}

.hero-scroll {
    position: absolute; right: clamp(1.5rem, 5vw, 4rem); bottom: 5rem;
    display: flex; flex-direction: column; align-items: center; gap: 0.75rem; z-index: 2;
}
.hero-scroll span { font-size: 0.6rem; writing-mode: vertical-rl; }
.scroll-bar {
    width: 1px; height: 60px;
    background: linear-gradient(to bottom, var(--white), transparent);
    animation: scrollbar 2s ease-in-out infinite;
}
@keyframes scrollbar {
    0%,100% { transform: scaleY(0); transform-origin: top; opacity: 1; }
    50%      { transform: scaleY(1); transform-origin: top; }
    51%      { transform: scaleY(1); transform-origin: bottom; }
    99%      { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* =============================================
   CHAPTERS (общие стили секций)
   ============================================= */
.chapter { padding: var(--section-py) clamp(1.5rem, 5vw, 4rem); }
.chapter-dark { background: var(--chapter-dark); }
.chapter-inner { max-width: 1280px; margin: 0 auto; }

.chapter-meta {
    display: flex; align-items: center; gap: 1rem;
    margin-bottom: 3rem; font-size: 0.7rem; color: var(--dim);
}
.chapter-num { font-size: 0.65rem; }
.chapter-sep { color: var(--border-h); }
.chapter-name { }

.chapter-title {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(2.4rem, 6vw, 5.5rem);
    font-weight: 700; line-height: 1.0; letter-spacing: -0.04em;
    margin-bottom: 2.5rem;
}

/* =============================================
   ИСТОРИЯ
   ============================================= */
.story-layout {
    display: grid; grid-template-columns: 500px 1fr; gap: 4rem; align-items: start;
}
.story-photo { position: static; }
.story-photo-frame {
    border-radius: 4px; overflow: hidden;
    border: 1px solid var(--border);
}
.story-photo-frame img {
    width: 100%; display: block; height: auto;
    filter: grayscale(35%) brightness(0.85);
}
.story-text { padding-top: 0.5rem; }
.credentials-block {
    margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--border);
}
.credential-label { font-size: 0.65rem; display: block; margin-bottom: 1rem; }
.credentials-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.credentials-list li {
    font-size: 0.88rem; color: var(--muted); padding-left: 1.25rem; position: relative;
}
.credentials-list li::before { content: '→'; position: absolute; left: 0; color: var(--dim); font-family: 'Space Mono'; }

/* =============================================
   ОПЫТ
   ============================================= */
.exp-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 0; margin-top: 4rem; }
.exp-item {
    padding: 2.5rem 2rem;
    border: 1px solid var(--border);
    border-collapse: collapse;
    transition: background var(--tr);
}
.exp-item:hover { background: rgba(255,255,255,0.02); }
.exp-item--current { border-color: rgba(255,255,255,0.2); }
.exp-header {
    display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 0.75rem;
}
.exp-year { font-size: 0.62rem; }
.exp-company { font-size: 1.05rem; font-weight: 400; }
.exp-role { font-size: 0.62rem; color: var(--dim); margin-bottom: 1rem; display: block; }

/* =============================================
   ПОДХОД
   ============================================= */
.approach-layout {
    display: grid; grid-template-columns: 480px 1fr; gap: 4rem; align-items: start;
}
.approach-left { position: sticky; top: 100px; }
.approach-left .chapter-title { margin-bottom: 2rem; }
.approach-right { display: flex; flex-direction: column; gap: 0; }
.principle-row {
    display: flex; align-items: flex-start; gap: 2rem;
    padding: 1.75rem 0; border-bottom: 1px solid var(--border);
}
.principle-row:first-child { border-top: 1px solid var(--border); }
.principle-no { font-size: 0.62rem; padding-top: 0.15rem; flex-shrink: 0; width: 24px; }
.principle-content { display: flex; align-items: center; flex-wrap: wrap; gap: 0.75rem; }
.principle-neg { font-size: 0.88rem; color: var(--dim); text-decoration: line-through; }
.principle-arrow { font-size: 0.88rem; color: var(--border-h); }
.principle-pos { font-size: 0.92rem; color: var(--white); font-weight: 400; }

/* =============================================
   УСЛУГИ
   ============================================= */
.services-layout {
    display: grid; grid-template-columns: 480px 1fr; gap: 4rem; align-items: start;
}
.services-left { position: sticky; top: 100px; }
.services-right { display: flex; flex-direction: column; gap: 0; margin-top: 0.5rem; }
.service-row {
    display: flex; gap: 2.5rem; padding: 2rem 0;
    border-bottom: 1px solid var(--border);
    transition: background var(--tr), padding var(--tr);
}
.service-row:first-child { border-top: 1px solid var(--border); }
.service-row:hover { background: rgba(255,255,255,0.015); padding-left: 1rem; }
.service-row--highlight { border-color: rgba(255,255,255,0.18); }
.service-num { font-size: 0.62rem; color: var(--dim); padding-top: 0.3rem; flex-shrink: 0; width: 20px; }
.service-body { flex: 1; }
.service-title { font-size: 1.05rem; font-weight: 400; margin-bottom: 0.75rem; letter-spacing: -0.01em; }

/* =============================================
   ОТЗЫВЫ
   ============================================= */
.reviews-grid {
    display: grid; grid-template-columns: repeat(2,1fr); gap: 0;
    margin-top: 4rem; border: 1px solid var(--border);
}
.review-item {
    padding: 2.5rem 2rem;
    border: 1px solid var(--border);
    display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
    transition: background var(--tr);
}
.review-item:hover { background: rgba(255,255,255,0.02); }
.review-text { font-size: 0.92rem; color: var(--muted); line-height: 1.8; font-style: italic; font-weight: 300; }
.review-author { border-top: 1px solid var(--border); padding-top: 1rem; display: flex; flex-direction: column; gap: 0.3rem; }
.review-name { font-size: 0.72rem; }
.review-role { font-size: 0.62rem; }

/* =============================================
   CTA FULL BLEED
   ============================================= */
.cta-chapter {
    position: relative; min-height: 85vh;
    display: flex; align-items: flex-end;
    overflow: hidden;
}
.cta-photo-wrap {
    position: absolute; inset: 0;
}
.cta-photo-wrap img {
    width: 100%; height: 100%; object-fit: cover; object-position: top center;
    filter: grayscale(30%) brightness(0.5);
}
.cta-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0.1) 100%);
}
.cta-content {
    position: relative; z-index: 2;
    padding: 5rem clamp(1.5rem, 5vw, 4rem);
    max-width: 1280px; margin: 0 auto; width: 100%;
    display: flex; flex-direction: column; gap: 1.5rem;
}
.cta-content .mono { font-size: 0.68rem; }
.cta-title {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(2.5rem, 7vw, 6.5rem);
    font-weight: 700; line-height: 0.95; letter-spacing: -0.04em; margin-bottom: 1rem;
}
.cta-line {
    width: 60%;
    max-width: 600px;
    height: 1px;
    background: var(--white);
    opacity: 0.8;
    margin-top: 2rem;
    border-radius: 2px;
}

/* =============================================
   FOOTER
   ============================================= */
.footer-chapter {
    padding: 5rem clamp(1.5rem, 5vw, 4rem) 0;
    border-top: 1px solid var(--border);
    background: var(--black);
}
.footer-inner {
    max-width: 1280px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; padding-bottom: 4rem;
}
.footer-monogram {
    font-family: 'Unbounded', sans-serif; font-weight: 700;
    font-size: 1.1rem; letter-spacing: 0.08em;
    border: 1px solid var(--border-h); border-radius: 50%;
    width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem;
}
.footer-name { font-family: 'Unbounded', sans-serif; font-size: 1.1rem; font-weight: 400; margin-bottom: 0.75rem; }
.contact-label { font-size: 0.62rem; display: block; margin-bottom: 1.25rem; }
.contact-btns { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.contact-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-family: 'Space Mono', monospace; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em;
    border: 1px solid var(--border-h); padding: 0.65rem 1.25rem; border-radius: 50px;
    transition: border-color var(--tr), background var(--tr), transform var(--tr);
}
.contact-btn:hover { border-color: var(--white); background: rgba(255,255,255,0.05); transform: translateY(-2px); }
.contact-btn--tg  { color: #27aeff; border-color: rgba(39,174,255,0.25); }
.contact-btn--tg:hover { border-color: rgba(39,174,255,0.6); }
.contact-btn--gem { color: #ff3b3b; border-color: rgba(255,59,59,0.25); }
.contact-btn--gem:hover { border-color: rgba(255,59,59,0.6); }
.contact-btn--phone { color: var(--white); }

.footer-bottom {
    max-width: 1280px; margin: 0 auto;
    border-top: 1px solid var(--border); padding: 1.5rem 0;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
    font-size: 0.62rem;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .story-layout { grid-template-columns: 1fr; }
    .story-photo { position: static; max-width: 500px; }
    .approach-layout { grid-template-columns: 1fr; }
    .approach-left { position: static; }
    .services-layout { grid-template-columns: 1fr; }
    .services-left { position: static; }
    .exp-grid { grid-template-columns: 1fr; }
    .hero-photo-wrap { width: 45%; }
}

@media (max-width: 768px) {
    :root { --section-py: 80px; }
    .nav-links-wrap, .nav-cta { display: none; }
    .burger { display: flex; }
    .hero-photo-wrap { width: 100%; opacity: 0.35; }
    .hero-photo-frame img { mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 20%, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%); -webkit-mask-image: none; }
    .hero { padding-bottom: 4rem; }
    .reviews-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
}
