@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-cyrillic.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --black: #0d0d0d;
  --ink: #262626;
  --grey: #6f6f6f;
  --line: #e2e2e2;
  --paper: #ffffff;
  --soft: #f4f4f2;
  --pad: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-weight: 500; line-height: 1.08; letter-spacing: -0.02em; }
.eyebrow { font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; opacity: .8; }

/* Бутони — правоъгълни, като при BMW */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block; padding: 15px 28px; font-size: 14px; font-weight: 500;
  border: 1px solid transparent; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn-light { background: #fff; color: var(--black); }
.btn-light:hover { background: var(--black); color: #fff; border-color: #fff; }
.btn-outline-light { border-color: rgba(255,255,255,.8); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--black); }

/* Навигация */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 76px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 var(--pad);
  color: #fff; transition: background .4s var(--ease), color .4s var(--ease), height .4s var(--ease), box-shadow .4s var(--ease);
}
.nav.is-solid { background: rgba(255,255,255,.96); color: var(--black); height: 64px; box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(10px); }
.logo { font-size: 20px; font-weight: 600; letter-spacing: .32em; }
.nav-links { display: flex; gap: 40px; font-size: 15px; font-weight: 400; }
.nav-links a { position: relative; padding: 6px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.burger { display: none; width: 32px; height: 32px; background: none; border: 0; color: inherit; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 4px; right: 4px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
.burger span:first-child { top: 12px; } .burger span:last-child { top: 19px; }

/* Заглавен блок */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; color: #fff; display: flex; align-items: flex-end; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { animation: heroZoom 14s var(--ease) both; will-change: transform; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 22%), linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.25) 50%, rgba(0,0,0,0) 75%), linear-gradient(0deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 40%); }
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero-content { position: relative; padding: 0 var(--pad) clamp(64px, 12vh, 120px); max-width: 900px; }
.hero h1 { font-size: clamp(42px, 7vw, 96px); font-weight: 600; text-transform: uppercase; margin-bottom: 22px; }
.hero-sub { font-size: clamp(17px, 1.6vw, 21px); margin-bottom: 34px; opacity: .92; }
.hero-content > * { animation: rise 1s var(--ease) both; }
.hero-content > :nth-child(2) { animation-delay: .12s; }
.hero-content > :nth-child(3) { animation-delay: .24s; }
.hero-content > :nth-child(4) { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.scroll-cue { position: absolute; right: var(--pad); bottom: 40px; width: 1px; height: 64px; background: rgba(255,255,255,.35); overflow: hidden; }
.scroll-cue::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff; animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

/* Въведение */
.intro { padding: clamp(80px, 12vw, 160px) var(--pad); text-align: center; }
.intro h2 { font-size: clamp(30px, 4vw, 52px); font-weight: 300; margin-bottom: clamp(48px, 7vw, 96px); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; max-width: 1200px; margin: 0 auto; text-align: left; }
.pillar { border-top: 1px solid var(--black); padding-top: 22px; }
.pillar-num { font-size: 13px; font-weight: 500; color: var(--grey); }
.pillar h3 { font-size: 24px; margin: 10px 0 12px; }
.pillar p { color: var(--grey); }

/* Големи банери */
.feature { position: relative; height: 92vh; min-height: 520px; overflow: hidden; color: #fff; display: flex; align-items: center; }
.feature + .feature { margin-top: 8px; }
.feature-media { position: absolute; inset: -12% 0; will-change: transform; }
.feature-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.1) 55%, rgba(0,0,0,0) 100%); }
.feature-right .feature-media::after { background: linear-gradient(270deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.1) 55%, rgba(0,0,0,0) 100%); }
.feature-content { position: relative; padding: 0 var(--pad); max-width: 640px; }
.feature-right .feature-content { margin-left: auto; }
.feature h2 { font-size: clamp(34px, 4.6vw, 64px); margin-bottom: 18px; }
.feature p:not(.eyebrow) { font-size: 18px; margin-bottom: 30px; opacity: .92; }

/* Проекти */
.projects { padding: clamp(80px, 10vw, 140px) var(--pad); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(34px, 4.6vw, 64px); }
.filters { display: flex; gap: 8px; }
.filter { font: inherit; font-size: 14px; font-weight: 500; padding: 10px 18px; background: none; border: 1px solid var(--line); cursor: pointer; color: var(--ink); transition: all .25s var(--ease); }
.filter:hover { border-color: var(--black); }
.filter.is-active { background: var(--black); border-color: var(--black); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 24px; }
.card { display: block; }
.card.is-hidden { display: none; }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); margin-bottom: 16px; }
.card-img img { transition: transform .9s var(--ease); }
.card:hover .card-img img { transform: scale(1.06); }
.card h3 { font-size: 19px; margin-bottom: 4px; }
.card p { font-size: 14px; color: var(--grey); }

/* Студио */
.studio { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(40px, 8vw, 120px); padding: clamp(80px, 10vw, 140px) var(--pad); background: var(--soft); }
.studio h2 { font-size: clamp(30px, 3.6vw, 48px); margin-bottom: 26px; }
.studio-text p:not(.eyebrow) { font-size: 18px; color: #444; max-width: 620px; }
.team { list-style: none; align-self: end; }
.team li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 22px 0; border-bottom: 1px solid #d4d4d0; font-size: 20px; font-weight: 400; }
.team li:first-child { border-top: 1px solid #d4d4d0; }
.team small { font-size: 13px; color: var(--grey); }

/* Новини */
.news { display: grid; grid-template-columns: 1fr 1fr; min-height: 70vh; background: var(--black); color: #fff; }
.news-media { overflow: hidden; }
.news-content { padding: clamp(48px, 7vw, 110px) var(--pad); align-self: center; }
.news h2 { font-size: clamp(28px, 3.2vw, 44px); margin-bottom: 22px; }
.news p:not(.eyebrow) { color: rgba(255,255,255,.75); font-size: 17px; }

/* Контакт */
.contact { padding: clamp(80px, 12vw, 160px) var(--pad); text-align: center; }
.contact h2 { font-size: clamp(32px, 5vw, 68px); font-weight: 300; margin-bottom: 64px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1200px; margin: 0 auto; border-top: 1px solid var(--line); }
.contact-grid a { padding: 32px 20px; font-size: 18px; font-weight: 400; border-right: 1px solid var(--line); transition: background .3s var(--ease); }
.contact-grid a:last-child { border-right: 0; }
.contact-grid a:hover { background: var(--soft); }
.contact-grid small { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); margin-bottom: 8px; }

.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 32px var(--pad); background: var(--black); color: rgba(255,255,255,.6); font-size: 13px; }
.footer .logo { color: #fff; font-size: 15px; }

/* Страница на проект */
.btn-dark { background: var(--black); color: #fff; }
.btn-dark:hover { background: #fff; color: var(--black); border-color: var(--black); }
.btn-outline-dark { border-color: var(--black); color: var(--black); }
.btn-outline-dark:hover { background: var(--black); color: #fff; }
.actions-center { justify-content: center; }

.hero-project { height: 88vh; height: 88svh; }
.hero-project h1 { font-size: clamp(38px, 6vw, 84px); text-transform: none; font-weight: 500; margin-bottom: 0; }
.back { display: inline-block; font-size: 14px; font-weight: 400; margin-bottom: 28px; opacity: .85; transition: opacity .2s, transform .3s var(--ease); }
.back:hover { opacity: 1; transform: translateX(-4px); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); border-bottom: 1px solid var(--line); padding: 0 var(--pad); }
.fact { padding: 28px 0; }
.fact + .fact { padding-left: 28px; border-left: 1px solid var(--line); }
.fact small { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); margin-bottom: 6px; }
.fact span { font-size: 18px; font-weight: 400; }

.project-text { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); padding: clamp(64px, 9vw, 130px) var(--pad); }
.lead { font-size: clamp(24px, 2.6vw, 36px); font-weight: 300; line-height: 1.3; letter-spacing: -0.01em; color: var(--black); }
.body p { font-size: 17px; color: #444; }
.body p + p { margin-top: 1em; }

.gallery { display: flex; flex-direction: column; gap: 12px; padding: 0 12px; }
.g-row { display: grid; gap: 12px; }
.g-pair { grid-template-columns: 1fr 1fr; }
.g-single { justify-items: center; }
.g-single .g-item img { width: auto; max-width: 100%; max-height: 92vh; }
.g-item { display: block; overflow: hidden; background: var(--soft); cursor: zoom-in; }
.g-item img { height: auto; transition: transform 1.1s var(--ease); }
.g-pair .g-item img { height: 100%; }
.g-item:hover img { transform: scale(1.03); }

.next-project { position: relative; display: flex; align-items: center; height: 70vh; min-height: 420px; margin-top: 120px; overflow: hidden; color: #fff; }
.next-media { position: absolute; inset: 0; }
.next-media img { transition: transform 1.4s var(--ease); }
.next-media::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.45); transition: background .6s var(--ease); }
.next-project:hover .next-media img { transform: scale(1.05); }
.next-project:hover .next-media::after { background: rgba(0,0,0,.3); }
.next-content { position: relative; padding: 0 var(--pad); }
.next-content h2 { font-size: clamp(34px, 5vw, 72px); }
.next-arrow { display: inline-block; font-size: 40px; font-weight: 200; margin-top: 12px; transition: transform .4s var(--ease); }
.next-project:hover .next-arrow { transform: translateX(12px); }
.contact-compact h2 { margin-bottom: 40px; }

/* Преглед на снимка на цял екран */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8,8,8,.97); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { width: auto; height: auto; max-width: 92vw; max-height: 86vh; object-fit: contain; }
.lb-btn { position: absolute; background: none; border: 0; color: #fff; font: inherit; font-weight: 200; cursor: pointer; padding: 16px; opacity: .75; transition: opacity .2s; }
.lb-btn:hover { opacity: 1; }
.lb-close { top: 12px; right: 16px; font-size: 34px; line-height: 1; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); font-size: 44px; }
.lb-prev { left: 8px; } .lb-next { right: 8px; }
.lb-count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.6); font-size: 13px; letter-spacing: .14em; }

/* Поява при скролиране */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.grid .reveal:nth-child(3n+2) { transition-delay: .08s; }
.grid .reveal:nth-child(3n+3) { transition-delay: .16s; }

/* Телефон и таблет */
@media (max-width: 900px) {
  .pillars, .grid { grid-template-columns: 1fr 1fr; }
  .studio, .news { grid-template-columns: 1fr; }
  .news-media { aspect-ratio: 16 / 10; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-grid a { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .burger { display: block; }
  .nav-links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; align-items: center; gap: 28px;
    background: var(--black); color: #fff; font-size: 26px; font-weight: 300;
    opacity: 0; pointer-events: none; transition: opacity .35s var(--ease);
  }
  .nav.is-open .nav-links { opacity: 1; pointer-events: auto; }
  .nav.is-open { color: #fff; background: transparent; box-shadow: none; }
  .nav.is-open .logo, .nav.is-open .burger { position: relative; z-index: 2; }
  .nav.is-open .burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav.is-open .burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .pillars, .grid { grid-template-columns: 1fr; }
  .project-text { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact + .fact { padding-left: 0; border-left: 0; }
  .fact:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
  .gallery { padding: 0; gap: 4px; }
  .g-row { gap: 4px; }
  .g-pair, .g-single { grid-template-columns: 1fr; }
  .lb-prev, .lb-next { display: none; }
  .feature { height: 80vh; align-items: flex-end; padding-bottom: 56px; }
  .feature-media::after, .feature-right .feature-media::after { background: linear-gradient(0deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,0) 65%); }
  .feature-right .feature-content { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
