:root {
  --black: #07070a;
  --ink: #0c0b10;
  --panel: #131217;
  --panel-2: #18161c;
  --gold: #c6a15b;
  --gold-bright: #ecd59c;
  --gold-deep: #7d5f2c;
  --text: #efece6;
  --text-dim: #a39c8f;
  --text-faint: #6b6459;
  --line: rgba(255,255,255,0.08);
  --line-gold: rgba(198,161,91,0.25);
  --serif: 'Forum', Georgia, serif;
  --sans: 'Golos Text', 'Segoe UI', sans-serif;
  --accent: 'Unbounded', 'Golos Text', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  background-image: radial-gradient(ellipse 1200px 700px at 15% -10%, rgba(198,161,91,0.07), transparent 60%);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  cursor: default;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* Grain texture overlay */
.grain {
  position: fixed; inset: 0; z-index: 998; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Custom cursor ring (desktop only) */
.cursor-ring {
  position: fixed; top: 0; left: 0; width: 34px; height: 34px;
  border: 1px solid var(--gold); border-radius: 50%;
  pointer-events: none; z-index: 999; transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, opacity 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  opacity: 0;
}
.cursor-ring.show { opacity: 1; }
.cursor-ring.hover { width: 60px; height: 60px; background: rgba(198,161,91,0.12); }
@media (hover: none), (pointer: coarse) { .cursor-ring { display: none; } }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s cubic-bezier(.2,.7,.2,1), transform 0.8s cubic-bezier(.2,.7,.2,1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

.eyebrow {
  font-family: var(--accent);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 18px;
}

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.08;
  color: var(--text);
  letter-spacing: 0.01em;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 32px;
  font-family: var(--accent);
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.btn-gold { background: linear-gradient(135deg, var(--gold-bright), var(--gold) 60%, var(--gold-deep)); color: #16110a; }
.btn-gold:hover { filter: brightness(1.12); letter-spacing: 0.08em; }
.btn-outline { border-color: var(--gold); color: var(--gold-bright); background: transparent; }
.btn-outline:hover { background: rgba(198,161,91,0.12); }
.btn-ghost { color: var(--text-dim); border-color: rgba(255,255,255,0.18); }
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.4); }
.btn-lg { padding: 19px 44px; font-size: 13px; }

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(7,7,10,0.7);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-logo { width: 48px; height: 48px; object-fit: contain; }
.brand-text { font-family: var(--serif); font-weight: 400; font-size: 21px; letter-spacing: 0.1em; color: var(--text); }
.nav { display: flex; gap: 8px; flex: 1; justify-content: center; }
.nav a {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 13.5px; font-weight: 500;
  color: var(--text-dim); padding: 10px 18px; transition: color 0.2s ease;
}
.nav a span { font-family: var(--accent); font-size: 10px; color: var(--gold-deep); }
.nav a:hover { color: var(--gold-bright); }
.nav a:hover span { color: var(--gold); }
.header-phone {
  font-family: var(--accent); font-weight: 500; font-size: 13px; color: var(--gold-bright);
  letter-spacing: 0.02em; border: 1px solid var(--line-gold); padding: 11px 20px; flex-shrink: 0; transition: background 0.2s ease;
}
.header-phone:hover { background: rgba(198,161,91,0.1); }
.burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 36px; height: 36px; background: none; border: none; cursor: pointer; }
.burger span { display: block; height: 2px; width: 100%; background: var(--gold-bright); }

/* Hero */
.hero { position: relative; min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; padding-top: 84px; }
.hero-left {
  position: relative; display: flex; flex-direction: column; justify-content: center;
  padding: 60px clamp(32px, 6vw, 88px);
  background: var(--ink); overflow: hidden;
  z-index: 2;
}
.hero-triangle { position: absolute; bottom: -40px; left: -60px; width: 320px; height: 290px; color: var(--gold); opacity: 0.07; }
.hero-triangle svg { width: 100%; height: 100%; }
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 1.12; color: var(--text); margin-bottom: 30px; letter-spacing: 0.005em;
  position: relative; z-index: 1;
}
.hero h1 em { font-style: italic; color: var(--gold-bright); }
.hero-text { font-size: 16.5px; color: var(--text-dim); max-width: 460px; margin-bottom: 42px; position: relative; z-index: 1; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; position: relative; z-index: 1; }
.hero-right { position: relative; overflow: hidden; clip-path: polygon(8% 0, 100% 0, 100% 100%, 0% 100%); }
.hero-bg {
  position: absolute; inset: -2% -2%;
  background-image: url('assets/office-hero.jpg');
  background-size: cover; background-position: 58% center;
  filter: grayscale(0.2) sepia(0.12) contrast(1.08) brightness(0.82);
}
.hero-right-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(12,11,16,0.55), transparent 30%), linear-gradient(to top, rgba(7,7,10,0.65), transparent 40%);
}

/* Marquee */
.marquee {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep));
  overflow: hidden; white-space: nowrap; padding: 14px 0;
}
.marquee-track { display: inline-flex; animation: marquee 28s linear infinite; }
.marquee-track span {
  font-family: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: 0.08em;
  color: #16110a; padding-right: 0;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* About */
.about { padding: 140px 0; background: var(--ink); }
.about-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 90px; align-items: start; }
.about-photo {
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 86% 100%, 0 100%);
}
.about-photo img { width: 100%; filter: grayscale(0.1); }
.about-content { position: relative; padding-top: 10px; }
.quote-mark {
  position: absolute; top: -70px; left: -10px;
  font-family: var(--serif); font-size: 180px; color: var(--gold); opacity: 0.1; line-height: 1; pointer-events: none;
}
.about-content h2 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.4vw, 54px); line-height: 1.05; margin-bottom: 20px;
}
.about-role { font-size: 15px; color: var(--gold-bright); font-weight: 600; margin-bottom: 20px; font-family: var(--accent); letter-spacing: 0.01em; }
.about-text { color: var(--text-dim); font-size: 16px; max-width: 560px; margin-bottom: 50px; }
.education h3 {
  font-family: var(--accent); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 8px;
}
.education ul { list-style: none; position: relative; padding-left: 28px; margin-top: 24px; }
.education ul::before { content: ''; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(to bottom, var(--gold), transparent); }
.education li { position: relative; display: flex; gap: 24px; padding: 18px 0; align-items: baseline; }
.education li::before { content: ''; position: absolute; left: -28px; top: 24px; width: 9px; height: 9px; border-radius: 50%; background: var(--black); border: 2px solid var(--gold); }
.edu-year { font-family: var(--serif); font-weight: 400; font-size: 24px; color: var(--gold); flex-shrink: 0; width: 56px; }
.edu-desc { color: var(--text-dim); font-size: 14.5px; }

/* Services */
.services { padding: 140px 0; }
.services-alt { background: var(--ink); }
.services-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-bottom: 60px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.services-head .eyebrow { margin-bottom: 0; }
.services-list { display: flex; flex-direction: column; }
.service-row {
  position: relative; display: grid; grid-template-columns: 130px 1fr; gap: 20px;
  padding: 44px 8px; border-bottom: 1px solid var(--line);
  overflow: hidden; transition: padding-left 0.35s ease;
}
.service-row::before {
  content: ''; position: absolute; inset: 0; width: 0;
  background: linear-gradient(90deg, rgba(198,161,91,0.09), transparent 85%);
  transition: width 0.45s ease; pointer-events: none;
}
.service-row:hover::before { width: 100%; }
.service-row:hover { padding-left: 24px; }
.service-row:hover .service-num { color: var(--gold); opacity: 0.5; }
.service-num {
  font-family: var(--serif); font-size: 64px; line-height: 1;
  color: var(--gold); opacity: 0.22; transition: all 0.35s ease; position: relative; z-index: 1;
}
.service-body { position: relative; z-index: 1; }
.service-body h3 { font-family: var(--serif); font-weight: 400; font-size: 27px; color: var(--text); margin-bottom: 20px; letter-spacing: 0.005em; }
.service-items { columns: 2; column-gap: 36px; list-style: none; }
.service-items li {
  break-inside: avoid; font-size: 14px; color: var(--text-dim);
  margin-bottom: 11px; padding-left: 17px; position: relative; line-height: 1.5;
}
.service-items li::before {
  content: ''; position: absolute; left: 0; top: 7px; width: 6px; height: 6px;
  background: var(--gold); transform: rotate(45deg);
}

/* CTA */
.cta { position: relative; padding: 150px 0; overflow: hidden; text-align: center; }
.cta-bg {
  position: absolute; inset: 0;
  background-image: url('assets/portrait-full.jpg');
  background-size: cover; background-position: center 20%;
  filter: grayscale(0.35) contrast(1.05) brightness(0.55);
}
.cta-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,7,10,0.88), rgba(7,7,10,0.72) 50%, rgba(7,7,10,0.92)); }
.cta-inner { position: relative; z-index: 1; }
.cta .eyebrow { justify-content: center; display: flex; }
.cta h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4.4vw, 50px); line-height: 1.2; margin-bottom: 44px; }
.cta h2 em { color: var(--gold-bright); font-style: italic; }

/* Contacts */
.contacts { padding: 140px 0; background: var(--ink); }
.contacts-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 70px; align-items: stretch; }
.contacts-info h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4.4vw, 48px); margin-bottom: 44px; }
.contacts-list { list-style: none; margin-bottom: 46px; }
.contacts-list li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.contacts-list li:first-child { padding-top: 0; }
.c-label { display: block; font-family: var(--accent); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 8px; }
.contacts-list a, .contacts-list span:not(.c-label) { font-size: 19px; color: var(--text); font-weight: 500; }
.contacts-list a:hover { color: var(--gold-bright); }
.contacts-map {
  min-height: 380px; position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 10% 100%, 0 90%);
  border: 1px solid var(--line);
}
.contacts-map iframe { width: 100%; height: 100%; min-height: 380px; filter: grayscale(0.4) contrast(1.05) brightness(0.9); }

/* Footer */
.footer { padding: 54px 0; border-top: 1px solid var(--line); background: var(--black); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .brand-text { display: block; font-size: 18px; }
.footer-tagline { display: block; font-family: var(--accent); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-faint); margin-top: 4px; }
.footer-nav { display: flex; gap: 30px; }
.footer-nav a { font-size: 13.5px; color: var(--text-dim); }
.footer-nav a:hover { color: var(--gold-bright); }
.footer-copy { font-size: 12px; color: var(--text-faint); width: 100%; text-align: center; order: 3; margin-top: 14px; }

/* Mobile call button */
.mobile-call-btn {
  display: none; position: fixed; bottom: 22px; right: 22px; width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,0.5); z-index: 90;
}
.mobile-call-btn svg { width: 24px; height: 24px; color: #16110a; }

/* Social dock */
.social-dock {
  position: fixed; right: 26px; top: 50%; z-index: 85;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 20px 11px;
  background: linear-gradient(180deg, rgba(19,18,23,0.9), rgba(10,9,13,0.94));
  border: 1px solid var(--line-gold);
  border-radius: 32px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 44px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.05);
  opacity: 0; transform: translateY(-50%) translateX(26px);
  transition: opacity 0.7s cubic-bezier(.2,.8,.2,1), transform 0.7s cubic-bezier(.2,.8,.2,1);
}
.social-dock.in-view { opacity: 1; transform: translateY(-50%) translateX(0); }
.social-dock::before, .social-dock::after {
  content: ''; position: absolute; left: 50%; width: 1px; height: 16px; transform: translateX(-50%);
}
.social-dock::before { top: -16px; background: linear-gradient(to bottom, transparent, var(--gold)); }
.social-dock::after { bottom: -16px; background: linear-gradient(to top, transparent, var(--gold)); }
.social-dock-glow {
  position: absolute; inset: -40px; z-index: -1; pointer-events: none;
  background: radial-gradient(circle, rgba(198,161,91,0.16), transparent 70%);
  animation: dockPulse 4s ease-in-out infinite;
}
@keyframes dockPulse { 0%, 100% { opacity: 0.6; transform: scale(0.94); } 50% { opacity: 1; transform: scale(1.04); } }

.social-link {
  position: relative; width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--gold-bright);
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), color 0.35s ease;
}
.social-link + .social-link { margin-top: 2px; }
.social-link::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid var(--line-gold); background: transparent;
  transition: all 0.35s cubic-bezier(.2,.8,.2,1);
}
.social-link svg { width: 21px; height: 21px; position: relative; z-index: 1; transition: transform 0.4s cubic-bezier(.3,1.4,.4,1); }
.social-link:hover { color: #16110a; transform: translateX(-5px) scale(1.07); }
.social-link:hover::before {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep));
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(198,161,91,0.5);
}
.social-link:hover svg { transform: scale(1.1); }
.social-link.social-hidden { display: none; }

.social-tip {
  position: absolute; right: calc(100% + 16px); top: 50%; transform: translateY(-50%) translateX(8px);
  background: var(--panel); color: var(--gold-bright); font-family: var(--accent);
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 8px 15px; border-radius: 20px; border: 1px solid var(--line-gold);
  white-space: nowrap; opacity: 0; pointer-events: none; z-index: 2;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.social-link:hover .social-tip { opacity: 1; transform: translateY(-50%) translateX(0); }

@media (hover: none), (pointer: coarse) { .social-tip { display: none; } }

@media (max-width: 1200px) {
  .social-dock { right: 16px; }
}

/* Responsive */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; min-height: auto; align-content: start; }
  .hero-right { clip-path: none; min-height: 46vh; }
  .hero-left { min-height: auto; padding-top: 74px; padding-bottom: 56px; }
  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .about-photo { max-width: 440px; }
  .contacts-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; padding-top: 84px;
    background: rgba(7,7,10,0.98); flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    transform: translateY(-110%); opacity: 0; transition: all 0.35s ease; pointer-events: none;
  }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a { font-size: 22px; font-family: var(--serif); }
  .burger { display: flex; }
  .header-phone { display: none; }
  .mobile-call-btn { display: flex; }
  .social-dock {
    right: 14px; top: auto; bottom: 94px; transform: translateX(26px);
    padding: 12px 7px; gap: 2px; border-radius: 24px;
  }
  .social-dock.in-view { transform: translateX(0); }
  .social-link { width: 38px; height: 38px; }
  .social-link svg { width: 17px; height: 17px; }
  .about, .services, .contacts, .cta { padding: 80px 0; }
  .service-row { grid-template-columns: 1fr; gap: 6px; padding: 30px 4px; }
  .service-num { font-size: 42px; opacity: 0.3; }
  .service-items { columns: 1; padding-right: 58px; }
  .services-head { flex-direction: column; align-items: flex-start; margin-bottom: 44px; padding-bottom: 28px; }
  .about-photo { max-width: 100%; }
  .about-photo img { max-height: 58vh; width: 100%; object-fit: cover; object-position: top center; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-brand { justify-content: center; }
  .footer-nav { justify-content: center; flex-wrap: wrap; gap: 14px 26px; }
  .footer-copy { padding-bottom: 76px; }
}

@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .hero-left { padding-top: 64px; padding-bottom: 48px; }
  .hero-right { min-height: 38vh; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn { width: 100%; }
  .about, .services, .contacts, .cta { padding: 64px 0; }
  .services-head { margin-bottom: 36px; padding-bottom: 22px; }
  .brand-text { font-size: 17px; }
  .quote-mark { font-size: 110px; top: -40px; }
  .about-photo img { max-height: 48vh; }
}
