/* ============================================================
   OREYNA — дизайн-система v3 (по спецификации GPT, 20.07.2026).
   Светлый премиум · глубокий зелёный акцент · Unbounded + Manrope.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Onest:wght@400;500;600;700&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --bg:        #F4F1EA;
  --surface:   #FFFFFF;
  --surface-2: #EAE6DE;
  --ink:       #181A18;
  --dim:       #6B6E68;
  --accent:    #24382E;
  --accent-d:  #1A2A21;
  --accent-dd: #132018;
  --accent-lt: #C6CFC8;
  --grad:      linear-gradient(135deg, #2C4536 0%, #15231B 100%);
  --line:      rgba(24,26,24,0.09);
  --line-2:    rgba(24,26,24,0.14);
  --display:   'Onest', 'Manrope', system-ui, sans-serif;
  --body:      'Manrope', system-ui, sans-serif;
  --head:      #3A281C;
  --shadow:    0 18px 60px rgba(24,26,24,0.05);
  --shadow-h:  0 26px 70px -20px rgba(24,26,24,0.14);
  --maxw:      1440px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body); background: var(--bg); color: var(--ink);
  font-size: 17px; line-height: 1.65; letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
section { scroll-margin-top: 90px; }

/* тонкая матовая фактура поверх фона */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.025; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }

.eyebrow { font-size: 11px; font-weight: 600; line-height: 1.2; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.grad-fill { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 64px);
  background: rgba(248,247,243,0.8); backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.brand { font-family: var(--body); font-weight: 600; font-size: 21px; letter-spacing: 0.14em; }
.brand-dot { color: var(--accent); }
.brand-alt { color: var(--dim); font-weight: 500; font-size: 13px; letter-spacing: 0.14em; margin-left: 4px; }
.brand-logo { height: 30px; width: auto; display: block; }
.footer-brand .brand-logo { height: 26px; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { color: var(--dim); font-weight: 500; font-size: 14px; letter-spacing: -0.01em; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--accent); color: #fff !important; font-weight: 500; font-size: 14px;
  padding: 11px 20px; border-radius: 12px; transition: background .2s;
}
.nav-cta:hover { background: var(--accent-d); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 20px;
  height: 54px; padding: 0 24px; border-radius: 14px; font-family: var(--body);
  font-weight: 500; font-size: 15px; cursor: pointer; border: 1px solid transparent;
  transition: transform .18s ease, background .2s, box-shadow .2s, border-color .2s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary::after { content: "→"; transition: transform .18s ease; }
.btn-primary:hover { background: var(--accent-d); transform: translateY(-2px); }
.btn-primary:hover::after { transform: translateX(4px); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; }
.txt-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: border-color .2s, color .2s; }
.txt-link:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- SECTIONS ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(80px, 11vw, 170px) clamp(20px, 4vw, 64px); }
.section-alt { max-width: none; background: var(--surface-2); }
.section-alt > * { max-width: var(--maxw); margin-inline: auto; }
.section-title { font-family: var(--display); font-weight: 600; color: var(--head); font-size: clamp(34px, 4.2vw, 64px); line-height: 1.05; letter-spacing: -0.03em; }
.section-sub { margin-top: 18px; color: var(--ink); max-width: 640px; font-size: 20px; line-height: 1.5; letter-spacing: -0.015em; }

/* ---------- HERO ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(60px, 8vw, 120px) clamp(20px, 4vw, 64px) clamp(72px, 9vw, 130px); }
.hero-inner { max-width: var(--maxw); margin: 0 auto; }
.hero-inner:has(.hero-r) { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 4vw, 72px); align-items: center; }
.hero-l { max-width: 640px; }
.hero h1 {
  font-family: var(--display); font-weight: 600; margin-top: 26px; color: var(--head);
  font-size: clamp(46px, 6.2vw, 100px); line-height: 0.98; letter-spacing: -0.035em;
}
.kinetic { color: var(--accent); display: inline-block; transition: opacity .3s ease; }
.hero .lead { margin-top: 28px; font-size: 21px; line-height: 1.5; letter-spacing: -0.015em; color: var(--dim); max-width: 500px; }
.hero-actions { margin-top: 36px; display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.hero-facts { margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 30px; }
.hero-facts span { font-size: 13px; color: var(--dim); position: relative; }
.hero-facts span:not(:last-child)::after { content: "·"; margin-left: 30px; opacity: .5; }

/* hero bento */
.bento {
  display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 92px; gap: 16px; position: relative;
}
.bento::before {
  content: ""; position: absolute; inset: -6% -4% auto auto; width: 60%; height: 70%; z-index: -1;
  background: radial-gradient(circle at 70% 30%, rgba(36,56,46,0.14), transparent 44%);
}
.tile { border-radius: 24px; overflow: hidden; position: relative; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.tile-hero { grid-column: span 4; grid-row: span 3; background: var(--grad); border: none; display: flex; align-items: flex-end; padding: 28px; }
.tile-hero .t-word { font-family: var(--display); font-weight: 500; color: #fff; font-size: 40px; letter-spacing: -0.04em; line-height: 0.95; }
.tile-hero .t-tag { position: absolute; top: 24px; left: 28px; color: rgba(255,255,255,0.75); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.tile-wave { grid-column: span 2; grid-row: span 2; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 20px; }
.tile-wave i { width: 5px; border-radius: 4px; background: var(--accent); opacity: .85; animation: wave 1.4s ease-in-out infinite; }
.tile-o { grid-column: span 2; grid-row: span 1; background: var(--accent-lt); display: grid; place-items: center; }
.tile-o b { font-family: var(--display); font-weight: 500; font-size: 44px; color: var(--accent-dd); }
.tile-txt { grid-column: span 6; grid-row: span 1; background: var(--surface-2); display: flex; align-items: center; padding: 0 26px; }
.tile-txt span { font-size: 14px; color: var(--dim); letter-spacing: 0.02em; }
@keyframes wave { 0%,100%{ height: 18px; } 50%{ height: 54px; } }
.tile-wave i:nth-child(1){ animation-delay: 0s } .tile-wave i:nth-child(2){ animation-delay:.1s }
.tile-wave i:nth-child(3){ animation-delay:.2s } .tile-wave i:nth-child(4){ animation-delay:.3s }
.tile-wave i:nth-child(5){ animation-delay:.15s } .tile-wave i:nth-child(6){ animation-delay:.05s }
.tile-wave i:nth-child(7){ animation-delay:.25s }

/* ---------- DIRECTIONS (нумерованные карточки) ---------- */
.dir-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.dir-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 30px 28px;
  display: flex; flex-direction: column; min-height: 280px; position: relative;
  transition: transform .25s ease, box-shadow .25s, background .25s, border-color .25s, color .25s;
}
.dir-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-h); background: var(--accent); border-color: var(--accent); color: #fff; }
.dir-num { font-family: var(--display); font-weight: 500; font-size: 15px; color: var(--dim); letter-spacing: 0.05em; transition: color .25s; }
.dir-card:hover .dir-num { color: rgba(255,255,255,0.7); }
.dir-card h3 { font-family: var(--body); font-weight: 600; font-size: 24px; letter-spacing: -0.02em; margin-top: 14px; text-transform: uppercase; }
.dir-card p { color: var(--dim); font-size: 15.5px; margin-top: 12px; flex: 1; transition: color .25s; }
.dir-card:hover p { color: rgba(255,255,255,0.85); }
.dir-arrow { position: absolute; top: 28px; right: 28px; font-size: 20px; color: var(--dim); transition: transform .25s, color .25s; }
.dir-card:hover .dir-arrow { color: #fff; transform: translate(3px,-3px); }
.dir-link { font-weight: 500; font-size: 14px; color: var(--accent); margin-top: 18px; transition: color .25s; }
.dir-card:hover .dir-link { color: #fff; }

/* ---------- PORTFOLIO ---------- */
.pf-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }
.pf { border-radius: 24px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); position: relative; display: flex; align-items: flex-end; min-height: 260px; }
.pf.big { grid-column: span 7; } .pf.tall { grid-column: span 5; min-height: 420px; }
.pf.sq { grid-column: span 4; } .pf.wide { grid-column: span 8; }
.pf-ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--line-2); font-family: var(--display); font-size: 40px; letter-spacing: -0.04em; opacity: .5; }
.pf-cap { position: relative; padding: 22px 24px; z-index: 1; }
.pf-cap .pf-cat { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.pf-cap h4 { font-size: 18px; font-weight: 600; margin-top: 6px; }
.pf-note { margin-top: 22px; color: var(--dim); font-size: 14px; }
.pf-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pf.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 42%, rgba(19,32,24,0.74)); }
.pf.has-img .pf-cap { position: relative; z-index: 1; }
.pf.has-img .pf-cap h4 { color: #fff; }
.pf.has-img .pf-cap .pf-cat { color: var(--accent-lt); }
.pf-res { color: var(--dim); font-size: 13px; margin-top: 4px; }
.pf.has-img .pf-res { color: rgba(255,255,255,0.85); }

/* ---------- ABOUT ---------- */
.about-grid { margin-top: 8px; display: grid; grid-template-columns: 6fr 6fr; gap: clamp(32px,4vw,64px); align-items: start; }
.about-thesis { font-family: var(--display); font-weight: 600; color: var(--head); font-size: clamp(28px,3vw,44px); line-height: 1.1; letter-spacing: -0.03em; }
.about-text { margin-top: 26px; color: var(--dim); font-size: 18px; }
.creds { margin-top: 26px; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.creds li { padding-left: 22px; position: relative; color: var(--dim); }
.creds li::before { content: ''; position: absolute; left: 0; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.creds strong { color: var(--ink); }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; box-shadow: var(--shadow); }
.stat-num { display: block; font-family: var(--display); font-weight: 500; font-size: 40px; letter-spacing: -0.04em; color: var(--accent); }
.stat-label { color: var(--dim); font-size: 14px; margin-top: 6px; }

/* ---------- CONTACT / FORM ---------- */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px,4vw,64px); align-items: start; }
.contact-l h2 { font-family: var(--display); font-weight: 600; color: var(--head); font-size: clamp(34px,3.6vw,54px); line-height: 1.05; letter-spacing: -0.03em; }
.contact-l .section-sub { margin-inline: 0; }
.contact-info { margin-top: 30px; display: flex; flex-direction: column; gap: 12px; }
.contact-info a { color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--line-2); width: fit-content; padding-bottom: 2px; }
.contact-info a:hover { color: var(--accent); border-color: var(--accent); }
.lead-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: flex; gap: 14px; }
.lead-form input, .lead-form select, .lead-form textarea {
  width: 100%; min-height: 56px; padding: 16px 18px; border-radius: 14px; background: var(--surface);
  border: 1px solid var(--line-2); color: var(--ink); font-family: inherit; font-size: 16px;
}
.lead-form textarea { min-height: auto; resize: vertical; }
.lead-form input::placeholder, .lead-form textarea::placeholder { color: #9b9d95; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(36,56,46,0.14); }
.form-note { color: var(--dim); font-size: 13px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--dim); line-height: 1.5; }
.consent input { width: 18px; height: 18px; min-height: auto; flex: 0 0 auto; margin-top: 1px; accent-color: var(--accent); }
.consent a { color: var(--accent); }

/* ---------- MUSIC (площадки, для страницы музыки) ---------- */
.music-links { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 14px; }
.music-btn { padding: 13px 24px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); font-weight: 500; box-shadow: var(--shadow); transition: all .2s; }
.music-btn:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.music-btn-all { background: var(--accent); color: #fff; border: none; }
.music-btn-all:hover { color: #fff; background: var(--accent-d); }

/* ---------- SVC / STEPS (подстраницы направлений) ---------- */
.svc-list { margin-top: 48px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.svc { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 30px 28px; box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s; }
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-h); }
.svc h3 { font-size: 20px; font-weight: 600; margin-bottom: 9px; letter-spacing: -0.02em; }
.svc p { color: var(--dim); font-size: 15.5px; }
.steps { margin-top: 44px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding-top: 52px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: #fff; font-family: var(--display); font-weight: 500; display: grid; place-items: center; }
.step h4 { font-size: 17px; font-weight: 600; margin-bottom: 5px; }
.step p { color: var(--dim); font-size: 14.5px; }

/* ---------- COOKIE BAR ---------- */
#cookieBar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px; z-index: 100;
  width: calc(100% - 32px); max-width: 720px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow-h);
  padding: 14px 16px; display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--dim); line-height: 1.45;
}
#cookieBar a { color: var(--accent); }
#cookieBar button { flex: 0 0 auto; font-family: inherit; font-weight: 500; font-size: 14px; color: #fff; background: var(--accent); border: none; border-radius: 10px; padding: 11px 20px; cursor: pointer; }
#cookieBar button:hover { background: var(--accent-d); }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px clamp(20px, 4vw, 64px); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.footer-brand { font-family: var(--body); font-weight: 600; font-size: 19px; letter-spacing: 0.14em; }
.footer-meta { display: flex; gap: 24px; color: var(--dim); font-size: 14px; align-items: center; }
.footer-meta a:hover { color: var(--accent); }

/* ---------- АНИМАЦИИ появления ---------- */
@keyframes riseIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.reveal { animation: riseIn .8s cubic-bezier(.2,.7,.2,1) both; }
.reveal.d1 { animation-delay: .08s } .reveal.d2 { animation-delay: .16s } .reveal.d3 { animation-delay: .24s } .reveal.d4 { animation-delay: .32s }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1000px) {
  .hero-inner:has(.hero-r) { grid-template-columns: 1fr; gap: 40px; }
  .dir-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .pf.big, .pf.tall, .pf.sq, .pf.wide { grid-column: span 12; min-height: 260px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .svc-list { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .dir-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .form-row { flex-direction: column; }
  .section-sub, .hero .lead { font-size: 18px; }
  .bento { grid-auto-rows: 74px; }
}

/* ---------- ДОСТУПНОСТЬ ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { animation: none; opacity: 1; transform: none; }
}
