@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Manrope:wght@400;500;600;700&display=swap");

:root {
  color-scheme: dark;
  --bg: #070808;
  --panel: rgba(18, 19, 19, 0.86);
  --panel-2: rgba(23, 24, 24, 0.78);
  --gold: #c9a868;
  --gold-soft: #e3bf72;
  --ivory: #f2f0ea;
  --text: rgba(242, 240, 234, 0.78);
  --muted: rgba(242, 240, 234, 0.52);
  --line: rgba(201, 168, 104, 0.34);
  --container: 1120px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fafbf3;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-2: rgba(241, 237, 227, 0.86);
  --ivory: #1a1a1a;
  --text: rgba(26, 26, 26, 0.78);
  --muted: rgba(26, 26, 26, 0.52);
  --line: rgba(201, 168, 104, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 72% 8%, rgba(201, 168, 104, 0.08), transparent 28rem),
    linear-gradient(180deg, #050606 0%, #101111 46%, #050606 100%);
  font-family: Manrope, Arial, sans-serif;
  line-height: 1.55;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 128px);
  opacity: 0.45;
}

:root[data-theme="light"] body {
  background:
    radial-gradient(circle at 72% 8%, rgba(201, 168, 104, 0.16), transparent 28rem),
    linear-gradient(180deg, #fafbf3 0%, #f1ede3 48%, #fafbf3 100%);
}

:root[data-theme="light"] body::before {
  background: repeating-linear-gradient(90deg, rgba(26, 26, 26, 0.035) 0 1px, transparent 1px 128px);
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.container {
  width: min(calc(100% - 96px), var(--container));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  padding: 24px 0 12px;
  background: transparent;
  transition: padding 180ms ease, background 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
}

.site-header.is-scrolled {
  padding: 10px 0;
  background: linear-gradient(180deg, rgba(5, 6, 6, 0.94), rgba(5, 6, 6, 0.82));
  border-bottom: 1px solid rgba(201, 168, 104, 0.22);
  backdrop-filter: blur(16px);
}

:root[data-theme="light"] .site-header.is-scrolled {
  background: linear-gradient(180deg, rgba(250, 251, 243, 0.94), rgba(250, 251, 243, 0.84));
  border-bottom-color: rgba(201, 168, 104, 0.34);
}

.header-inner {
  display: grid;
  grid-template-columns: 230px 1fr auto;
  gap: 20px;
  align-items: center;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand img {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
}

.brand-text {
  display: grid;
  gap: 3px;
}

.brand-title {
  display: block;
  color: var(--ivory);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.15;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-name {
  display: block;
  color: var(--ivory);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.15;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-subtitle {
  display: block;
  margin-top: 3px;
  color: rgba(242, 240, 234, 0.72);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.32em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-sub {
  display: block;
  margin-top: 3px;
  color: rgba(242, 240, 234, 0.72);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.32em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 1.8vw, 28px);
  color: var(--ivory);
  font-size: 11px;
  font-weight: 500;
}

.nav a {
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}

.nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

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

.header-cta {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 23px;
  color: var(--gold-soft);
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.theme-toggle {
  position: relative;
  display: inline-grid;
  width: 58px;
  height: 28px;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 0 7px;
  color: var(--gold);
  border: 1px solid rgba(201, 168, 104, 0.66);
  border-radius: 999px;
  background: rgba(5, 6, 6, 0.62);
  cursor: pointer;
}

.theme-toggle-icon {
  position: relative;
  z-index: 1;
  color: inherit;
  font-size: 12px;
  line-height: 1;
}

.theme-toggle-moon {
  text-align: right;
}

.theme-toggle-knob {
  position: absolute;
  top: 50%;
  left: 5px;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #fff4cf, var(--gold));
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(201, 168, 104, 0.5);
  transform: translateY(-50%);
  transition: left 180ms ease, background 180ms ease;
}

:root[data-theme="light"] .theme-toggle {
  color: #1a1a1a;
  background: rgba(250, 251, 243, 0.72);
}

:root[data-theme="light"] .theme-toggle-knob {
  left: calc(100% - 23px);
  background: linear-gradient(135deg, #1a1a1a, #6b6b6b);
  box-shadow: 0 0 14px rgba(26, 26, 26, 0.16);
}

.menu-button {
  display: none;
}

.menu-toggle {
  display: none;
}

:root[data-theme="light"] .hero {
  background:
    linear-gradient(90deg, rgba(250, 251, 243, 0.98) 0%, rgba(250, 251, 243, 0.9) 31%, rgba(250, 251, 243, 0.18) 47%, rgba(250, 251, 243, 0) 62%),
    url("../img/ref/hero-person-andrey.png") center top / cover no-repeat;
}

:root[data-theme="light"] .hero::after {
  background: none;
}

.hero {
  position: relative;
  min-height: clamp(700px, 58vw, 820px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5, 6, 6, 0.88) 0%, rgba(5, 6, 6, 0.62) 30%, rgba(5, 6, 6, 0.18) 43%, rgba(5, 6, 6, 0) 54%),
    url("../img/ref/hero-person-andrey.png") center top / cover no-repeat;
}

.page-hero {
  --page-hero-art: url("../img/hero-process-graphic.svg");
  --page-hero-pos: right 4% center;
  --page-hero-size: min(34vw, 440px) auto;
  position: relative;
  overflow: hidden;
  padding: 142px 0 68px;
  background:
    radial-gradient(circle at 78% 48%, rgba(201, 168, 104, 0.18), transparent 24rem),
    linear-gradient(90deg, rgba(5, 6, 6, 0.96) 0%, rgba(5, 6, 6, 0.86) 48%, rgba(5, 6, 6, 0.68) 100%),
    #080909;
  border-bottom: 1px solid rgba(201, 168, 104, 0.16);
}

.page-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background: var(--page-hero-art) var(--page-hero-pos) / var(--page-hero-size) no-repeat;
  opacity: 0.42;
  pointer-events: none;
}

:root[data-theme="light"] .page-hero {
  background:
    radial-gradient(circle at 78% 48%, rgba(201, 168, 104, 0.2), transparent 24rem),
    linear-gradient(90deg, rgba(250, 251, 243, 0.98) 0%, rgba(250, 251, 243, 0.9) 50%, rgba(250, 251, 243, 0.78) 100%),
    #fafbf3;
}

:root[data-theme="light"] .page-hero::before {
  opacity: 0.28;
}

.page-hero[data-kicker="ABOUT"] {
  --page-hero-art: url("../img/ref/hero-person-andrey.png");
  --page-hero-pos: center top;
  --page-hero-size: cover;
  background:
    linear-gradient(90deg, rgba(5, 6, 6, 0.88) 0%, rgba(5, 6, 6, 0.62) 30%, rgba(5, 6, 6, 0.18) 43%, rgba(5, 6, 6, 0) 54%),
    url("../img/ref/hero-person-andrey.png") center top / cover no-repeat;
}

:root[data-theme="light"] .page-hero[data-kicker="ABOUT"] {
  background:
    linear-gradient(90deg, rgba(250, 251, 243, 0.98) 0%, rgba(250, 251, 243, 0.86) 34%, rgba(250, 251, 243, 0.12) 56%, rgba(250, 251, 243, 0) 72%),
    url("../img/ref/hero-person-andrey.png") center top / cover no-repeat;
}

.page-hero[data-kicker="ABOUT"]::before {
  display: none;
}

.page-hero[data-kicker="SERVICES"] {
  --page-hero-art: url("../img/hero-process-graphic.svg");
}

.page-hero[data-kicker="WORK"],
.page-hero[data-kicker="CASE"] {
  --page-hero-art: url("../img/ref/project-barbershop.png");
}

.page-hero[data-kicker="PROCESS"],
.page-hero[data-kicker="FAQ"],
.page-hero[data-kicker="BRIEF"] {
  --page-hero-art: url("../img/hero-process-graphic.svg");
}

.page-hero[data-kicker="REVIEWS"] {
  --page-hero-art: url("../img/ref/project-app.png");
}

.page-hero[data-kicker="CONTACT"] {
  --page-hero-art: url("../img/map.svg");
}

.page-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 0.5fr);
  gap: 42px;
  align-items: end;
}

.page-hero h1 {
  max-width: 720px;
  margin: 0;
  color: var(--ivory);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(46px, 5vw, 72px);
  font-weight: 500;
  line-height: 0.96;
  text-transform: uppercase;
}

.lead {
  max-width: 560px;
  margin: 0;
  color: var(--text);
  font-size: 16px;
}

.section {
  padding: 76px 0;
}

.section-tight {
  padding-top: 42px;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  background: linear-gradient(145deg, rgba(30, 31, 31, 0.94), rgba(17, 18, 18, 0.9));
  border: 1px solid rgba(201, 168, 104, 0.3);
  border-radius: 6px;
}

:root[data-theme="light"] .card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(241, 237, 227, 0.78));
}

.card h2,
.card h3 {
  margin: 0 0 14px;
  color: var(--ivory);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  line-height: 1.05;
}

.card h2 {
  font-size: clamp(32px, 3.6vw, 46px);
}

.card h3 {
  font-size: 25px;
}

.card p {
  margin: 0;
  color: var(--text);
}

.image-frame,
.device-preview {
  overflow: hidden;
  background: rgba(17, 18, 18, 0.86);
  border: 1px solid rgba(201, 168, 104, 0.3);
  border-radius: 6px;
}

.image-frame img,
.device-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.browser-bar {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(201, 168, 104, 0.16);
}

.browser-bar span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(201, 168, 104, 0.58);
}

.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.check-list li {
  color: var(--text);
}

.check-list li::before {
  margin-right: 10px;
  color: var(--gold);
  content: "✓";
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.filter-btn {
  min-height: 36px;
  padding: 0 18px;
  color: var(--ivory);
  background: transparent;
  border: 1px solid rgba(201, 168, 104, 0.35);
  border-radius: 999px;
  cursor: pointer;
}

.filter-btn.is-active {
  color: #111;
  background: var(--gold);
}

.project-card.is-hidden {
  display: none;
}

.project-media {
  display: block;
  overflow: hidden;
  margin: -28px -28px 18px;
  background: rgba(5, 6, 6, 0.5);
}

.project-media img {
  width: 100%;
  aspect-ratio: 1.62 / 1;
  object-fit: cover;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid rgba(201, 168, 104, 0.26);
}

.metric {
  min-height: 112px;
  padding: 22px;
  border-right: 1px solid rgba(201, 168, 104, 0.14);
  border-bottom: 1px solid rgba(201, 168, 104, 0.14);
}

.metric:nth-child(2n) {
  border-right: 0;
}

.metric:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.metric strong {
  display: block;
  color: var(--gold);
  font-family: Manrope, Arial, sans-serif;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.05;
}

.metric span {
  color: var(--text);
  font-size: 12px;
  text-transform: uppercase;
}

.cta-row,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.span-2 {
  grid-column: span 2;
}

.carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 34%);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-color: var(--gold) transparent;
}

.carousel-controls {
  display: flex;
  gap: 10px;
}

.carousel-btn,
.icon-btn {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--gold);
  background: transparent;
  border: 1px solid rgba(201, 168, 104, 0.46);
  border-radius: 50%;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.8fr;
  gap: 18px;
}

.gallery-stack {
  display: grid;
  gap: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 22px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid rgba(201, 168, 104, 0.18);
}

.timeline-number {
  color: var(--gold);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 44px;
  line-height: 1;
}

.process-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.process-roadmap {
  overflow: hidden;
  background: linear-gradient(145deg, rgba(30, 31, 31, 0.94), rgba(17, 18, 18, 0.9));
  border: 1px solid rgba(201, 168, 104, 0.28);
  border-radius: 6px;
}

:root[data-theme="light"] .process-roadmap {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(241, 237, 227, 0.78));
}

.process-stage {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 28px;
  border-bottom: 1px solid rgba(201, 168, 104, 0.16);
}

.process-stage:last-child {
  border-bottom: 0;
}

.process-stage-number {
  color: var(--gold);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 56px;
  font-weight: 500;
  line-height: 0.9;
}

.process-label {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.process-stage h2 {
  margin: 0 0 12px;
  color: var(--ivory);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(27px, 3vw, 39px);
  font-weight: 500;
  line-height: 1.02;
  text-transform: uppercase;
}

.process-stage p {
  margin: 0;
  color: var(--text);
}

.process-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.process-pills span {
  padding: 6px 10px;
  color: var(--gold);
  border: 1px solid rgba(201, 168, 104, 0.28);
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
}

.process-panel {
  position: sticky;
  top: 106px;
  display: grid;
  gap: 20px;
  padding: 28px;
  background: linear-gradient(145deg, rgba(30, 31, 31, 0.96), rgba(17, 18, 18, 0.92));
  border: 1px solid rgba(201, 168, 104, 0.32);
  border-radius: 6px;
}

:root[data-theme="light"] .process-panel {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(241, 237, 227, 0.82));
}

.process-panel h2 {
  margin: 0;
  color: var(--ivory);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 34px;
  font-weight: 500;
  line-height: 1.04;
  text-transform: uppercase;
}

.process-checks {
  display: grid;
  gap: 12px;
}

.process-checks span {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text);
  font-size: 14px;
}

.process-checks .icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--gold);
}

.process-mini-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid rgba(201, 168, 104, 0.18);
}

.process-mini-metrics div {
  min-height: 86px;
  padding: 16px;
  border-right: 1px solid rgba(201, 168, 104, 0.14);
  border-bottom: 1px solid rgba(201, 168, 104, 0.14);
}

.process-mini-metrics div:nth-child(2n) {
  border-right: 0;
}

.process-mini-metrics div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.process-mini-metrics strong {
  display: block;
  color: var(--gold);
  font-family: Manrope, Arial, sans-serif;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.05;
}

.process-mini-metrics span {
  color: var(--text);
  font-size: 11px;
  text-transform: uppercase;
}

.process-control-section {
  padding-top: 18px;
}

.process-control-card {
  min-height: 230px;
}

.review-card {
  min-height: 230px;
}

.stars {
  color: var(--gold);
  letter-spacing: 0.1em;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 20px 24px;
  background: linear-gradient(145deg, rgba(30, 31, 31, 0.94), rgba(17, 18, 18, 0.9));
  border: 1px solid rgba(201, 168, 104, 0.3);
  border-radius: 6px;
}

:root[data-theme="light"] .faq-list details {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(241, 237, 227, 0.78));
}

.faq-list summary {
  color: var(--ivory);
  cursor: pointer;
  font-weight: 600;
}

.faq-list p {
  margin: 14px 0 0;
}

.form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: var(--gold);
  font-size: 12px;
  text-transform: uppercase;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  color: var(--ivory);
  background: rgba(5, 6, 6, 0.44);
  border: 1px solid rgba(201, 168, 104, 0.32);
  border-radius: 4px;
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

:root[data-theme="light"] .field input,
:root[data-theme="light"] .field textarea,
:root[data-theme="light"] .field select {
  color: #1a1a1a;
  background: rgba(255, 255, 255, 0.7);
}

.form-error {
  min-height: 18px;
  color: #d9a24d;
  font-size: 12px;
}

.form-status {
  color: var(--gold);
}

.case-layout,
.contact-layout,
.brief-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 160px;
  content: "";
  background: none;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(530px, 100%);
  padding-top: 108px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 20px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 42px;
  height: 1px;
  content: "";
  background: currentColor;
}

.hero h1,
.section-title,
.cta-title {
  margin: 0;
  color: var(--ivory);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 470px;
  font-size: clamp(54px, 6vw, 76px);
  line-height: 0.92;
  text-transform: uppercase;
}

.hero h1 span {
  display: block;
  color: var(--gold);
}

.hero-subtitle {
  margin: 14px 0 12px;
  color: var(--gold);
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-list {
  display: grid;
  gap: 7px;
  padding: 0;
  margin: 0 0 24px;
  list-style: none;
}

.hero-list li {
  color: var(--text);
  font-size: 14px;
}

.hero-list li::before {
  margin-right: 11px;
  color: var(--gold);
  content: "•";
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 32px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  color: var(--gold-soft);
  border: 1px solid var(--gold);
  border-radius: 2px;
  background: rgba(5, 6, 6, 0.38);
  font-size: 14px;
  font-weight: 500;
}

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 28px;
  color: var(--gold-soft);
  border: 1px solid var(--gold);
  border-radius: 2px;
  background: rgba(5, 6, 6, 0.38);
  font-size: 14px;
  font-weight: 500;
}

.btn-primary {
  color: #111;
  background: linear-gradient(135deg, #ead287, var(--gold));
}

.btn-secondary {
  color: var(--ivory);
  background: transparent;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 13px;
}

.icon {
  width: 20px;
  height: 20px;
  color: currentColor;
}

.service-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--gold);
}

.video-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ivory);
  font-size: 14px;
}

.play-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 50%;
}

.services {
  position: relative;
  z-index: 1;
  margin-top: 32px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.service-card {
  position: relative;
  height: 216px;
  min-height: 0;
  padding: 20px 18px;
  background: linear-gradient(145deg, rgba(30, 31, 31, 0.94), rgba(17, 18, 18, 0.9));
  border: 1px solid rgba(201, 168, 104, 0.28);
  border-radius: 6px;
}

.service-card svg {
  width: 30px;
  height: 30px;
  color: var(--gold);
}

.service-card h3 {
  max-width: 180px;
  margin: 15px 0 8px;
  color: var(--ivory);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
  text-transform: uppercase;
}

.service-card p {
  margin: 0;
  color: rgba(242, 240, 234, 0.66);
  font-size: 10.5px;
  line-height: 1.45;
}

.service-num {
  position: absolute;
  right: 20px;
  bottom: 16px;
  display: block;
  margin-top: 0;
  color: var(--gold);
  text-align: right;
}

.about {
  padding: 52px 0 58px;
  background:
    radial-gradient(circle at 78% 28%, rgba(201, 168, 104, 0.08), transparent 21rem),
    linear-gradient(90deg, #101111 0%, rgba(16, 17, 17, 0.96) 45%, rgba(16, 17, 17, 0.82) 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 0.75fr);
  gap: 70px;
  align-items: center;
}

.section-title {
  font-size: clamp(32px, 3.8vw, 46px);
  line-height: 1.02;
  text-transform: uppercase;
}

.section-title span {
  display: block;
  color: var(--gold);
}

.about-text {
  max-width: 520px;
  margin: 18px 0 20px;
  color: rgba(242, 240, 234, 0.72);
  font-size: 13px;
}

.signature {
  color: var(--gold);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  font-style: italic;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid rgba(201, 168, 104, 0.18);
}

.stat {
  min-height: 96px;
  padding: 18px 24px;
  border-right: 1px solid rgba(201, 168, 104, 0.14);
  border-bottom: 1px solid rgba(201, 168, 104, 0.14);
  background: rgba(9, 10, 10, 0.34);
}

.stat:nth-child(2n) {
  border-right: 0;
}

.stat:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.stat strong {
  display: block;
  color: var(--gold);
  font-family: Manrope, Arial, sans-serif;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  font-size: 36px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.05;
}

.stat span {
  color: var(--ivory);
  font-size: 12px;
  text-transform: uppercase;
}

.portfolio {
  padding: 76px 0 64px;
  background: #080909;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.work-link {
  color: var(--gold);
  font-size: 13px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.project-card {
  overflow: hidden;
  background: rgba(18, 19, 19, 0.78);
}

.project-card img {
  width: 100%;
  aspect-ratio: 1.74 / 1;
  object-fit: cover;
}

.project-card h3 {
  margin: 12px 0 3px;
  color: var(--ivory);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: center;
  text-transform: uppercase;
}

.project-card p {
  margin: 0;
  color: rgba(242, 240, 234, 0.55);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-align: center;
  text-transform: uppercase;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.dots span {
  width: 7px;
  height: 7px;
  border: 1px solid rgba(201, 168, 104, 0.6);
  border-radius: 50%;
}

.dots span:first-child {
  background: var(--gold);
}

.cta {
  margin: 0 auto 52px;
}

.cta-box {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 30px 44px;
  border: 1px solid rgba(201, 168, 104, 0.34);
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(27, 24, 19, 0.76), rgba(12, 13, 13, 0.94));
}

.paper-plane {
  color: var(--gold);
}

.cta-title {
  font-size: 31px;
  line-height: 1;
  text-transform: uppercase;
}

.cta-text {
  margin: 8px 0 0;
  color: rgba(242, 240, 234, 0.76);
  font-size: 14px;
}

.footer {
  padding: 0 0 34px;
  background: #080909;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 58px;
  align-items: center;
}

.site-footer {
  padding: 44px 0 34px;
  background: #080909;
  border-top: 1px solid rgba(201, 168, 104, 0.18);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) repeat(3, minmax(0, 1fr));
  gap: 34px;
}

.footer-title {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-links a,
.small {
  color: var(--muted);
  font-size: 13px;
}

:root[data-theme="light"] .site-footer {
  background: #fafbf3;
}

.footer-contact {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(242, 240, 234, 0.68);
  font-size: 15px;
}

.socials {
  display: flex;
  gap: 12px;
}

.socials a,
.footer-contact svg {
  color: var(--gold);
}

.socials a {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(201, 168, 104, 0.5);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
}

.icon-stroke {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

:root[data-theme="light"] .service-card,
:root[data-theme="light"] .project-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(241, 237, 227, 0.78));
}

:root[data-theme="light"] .about,
:root[data-theme="light"] .portfolio,
:root[data-theme="light"] .footer {
  background: #fafbf3;
}

:root[data-theme="light"] .about {
  background:
    radial-gradient(circle at 78% 28%, rgba(201, 168, 104, 0.14), transparent 21rem),
    linear-gradient(90deg, #fafbf3 0%, rgba(241, 237, 227, 0.95) 100%);
}

:root[data-theme="light"] .cta-box {
  background: linear-gradient(90deg, rgba(241, 237, 227, 0.92), rgba(255, 255, 255, 0.84));
}

:root[data-theme="light"] .cta-text,
:root[data-theme="light"] .footer-contact,
:root[data-theme="light"] .hero-list li,
:root[data-theme="light"] .service-card p,
:root[data-theme="light"] .project-card p,
:root[data-theme="light"] .about-text {
  color: rgba(26, 26, 26, 0.68);
}

:root[data-theme="light"] .button {
  color: #1a1a1a;
  background: rgba(255, 255, 255, 0.48);
}

:root[data-theme="light"] .nav,
:root[data-theme="light"] .brand-title,
:root[data-theme="light"] .brand-name,
:root[data-theme="light"] .video-link,
:root[data-theme="light"] .service-card h3,
:root[data-theme="light"] .project-card h3,
:root[data-theme="light"] .card h2,
:root[data-theme="light"] .card h3,
:root[data-theme="light"] .faq-list summary {
  color: #1a1a1a;
}

:root[data-theme="light"] .brand-sub {
  color: rgba(26, 26, 26, 0.58);
}

@media (max-width: 920px) {
  .container {
    width: min(calc(100% - 40px), 960px);
  }

  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .nav {
    gap: 18px;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-4,
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .page-hero-grid,
  .case-layout,
  .contact-layout,
  .brief-layout,
  .process-overview {
    grid-template-columns: 1fr;
  }

  .process-panel {
    position: static;
  }
}

@media (max-width: 1180px) {
  .header-inner {
    grid-template-columns: auto 1fr auto auto;
    gap: 12px;
  }

  .nav {
    position: fixed;
    top: 74px;
    right: 16px;
    left: 16px;
    z-index: 49;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px;
    background: rgba(5, 6, 6, 0.98);
    border: 1px solid rgba(201, 168, 104, 0.38);
  }

  :root[data-theme="light"] .nav {
    background: rgba(250, 251, 243, 0.98);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 12px;
    border-bottom: 1px solid rgba(201, 168, 104, 0.14);
    font-size: 13px;
  }

  .nav a::after {
    display: none;
  }

  .nav a:last-child {
    border-bottom: 0;
  }

  .header-actions {
    grid-column: 3;
    justify-self: end;
    transform: none;
  }

  .header-cta {
    display: none;
  }

  .theme-toggle {
    width: 50px;
    height: 26px;
    flex: 0 0 auto;
    padding: 0 6px;
  }

  .theme-toggle-knob {
    left: 5px;
    width: 16px;
    height: 16px;
  }

  :root[data-theme="light"] .theme-toggle-knob {
    left: calc(100% - 21px);
  }

  .menu-button {
    grid-column: 4;
    display: inline-grid;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    place-items: center;
    color: var(--gold);
    border: 1px solid rgba(201, 168, 104, 0.68);
    border-radius: 50%;
    background: transparent;
  }
}

@media (max-width: 767px) {
  .container {
    width: min(calc(100% - 24px), 480px);
  }

  .site-header {
    position: fixed;
    top: 0;
    padding: 12px 0;
    background: rgba(5, 6, 6, 0.82);
    backdrop-filter: blur(14px);
  }

  :root[data-theme="light"] .site-header {
    background: rgba(250, 251, 243, 0.88);
    border-bottom: 1px solid rgba(201, 168, 104, 0.24);
  }

  .header-inner {
    display: flex;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    justify-content: space-between;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .brand {
    flex: 1 1 auto;
    gap: 10px;
    min-width: 0;
  }

  .brand > span {
    min-width: 0;
    transform: translateY(-2px);
  }

  .brand-title {
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 11px;
    letter-spacing: 0.12em;
    line-height: 1.05;
  }

  .brand-subtitle,
  .brand-sub,
  .header-cta,
  .header-actions .btn {
    display: none;
  }

  .header-actions {
    grid-column: 2;
    flex: 0 0 auto;
    justify-self: end;
    gap: 8px;
    transform: none;
  }

  .theme-toggle {
    width: 46px;
    height: 24px;
    padding: 0 5px;
  }

  .theme-toggle-icon {
    font-size: 10px;
  }

  .theme-toggle-knob {
    width: 14px;
    height: 14px;
  }

  :root[data-theme="light"] .theme-toggle-knob {
    left: calc(100% - 19px);
  }

  .menu-button {
    grid-column: 3;
    display: inline-grid;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    place-items: center;
    color: var(--gold);
    border: 1px solid rgba(201, 168, 104, 0.68);
    border-radius: 50%;
    background: transparent;
  }

  .menu-toggle {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: var(--gold);
    border: 1px solid rgba(201, 168, 104, 0.68);
    border-radius: 50%;
    background: transparent;
  }

  .nav {
    position: fixed;
    top: 68px;
    right: 12px;
    left: 12px;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px;
    background: rgba(5, 6, 6, 0.98);
    border: 1px solid rgba(201, 168, 104, 0.38);
  }

  :root[data-theme="light"] .nav {
    background: rgba(250, 251, 243, 0.98);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 12px;
    border-bottom: 1px solid rgba(201, 168, 104, 0.14);
  }

  .nav a:last-child {
    border-bottom: 0;
  }

  .hero {
    min-height: 0;
    padding-bottom: 42px;
    background:
      radial-gradient(circle at 78% 16%, rgba(201, 168, 104, 0.1), transparent 15rem),
      linear-gradient(180deg, #050606 0%, #101111 100%);
  }

  .hero::before {
    display: block;
    height: clamp(390px, 116vw, 520px);
    content: "";
    background:
      linear-gradient(180deg, rgba(5, 6, 6, 0) 58%, rgba(5, 6, 6, 0.9) 100%),
      url("../img/ref/hero-person-andrey.png") 60% 76px / auto calc(100% - 44px) no-repeat;
  }

  :root[data-theme="light"] .hero {
    background:
      radial-gradient(circle at 78% 16%, rgba(201, 168, 104, 0.14), transparent 15rem),
      linear-gradient(180deg, #fafbf3 0%, #f1ede3 100%);
  }

  :root[data-theme="light"] .hero::before {
    background:
      linear-gradient(180deg, rgba(250, 251, 243, 0) 58%, rgba(250, 251, 243, 0.96) 100%),
      url("../img/ref/hero-person-andrey.png") 60% 76px / auto calc(100% - 44px) no-repeat;
  }

  .hero-content {
    width: 100%;
    margin-top: -14px;
    padding-top: 0;
  }

  .hero h1 {
    font-size: clamp(43px, 12vw, 48px);
  }

  .hero-subtitle {
    font-size: 13px;
  }

  .hero-actions {
    display: grid;
    gap: 14px;
  }

  .button {
    width: 100%;
  }

  .services {
    margin-top: 0;
  }

  .service-grid,
  .project-grid,
  .stats,
  .cta-box,
  .footer-inner,
  .footer-grid,
  .form-grid,
  .gallery-grid,
  .metrics-grid,
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }

  .service-card {
    min-height: auto;
  }

  .about {
    padding-top: 54px;
    background:
      linear-gradient(180deg, rgba(16, 17, 17, 0.98), rgba(16, 17, 17, 0.8)),
      url("../img/ref/about-mountains.png") center bottom / auto 80% no-repeat;
  }

  .stat,
  .stat:nth-child(2n),
  .stat:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid rgba(201, 168, 104, 0.14);
  }

  .section-head {
    display: grid;
  }

  .cta-box {
    gap: 18px;
    padding: 24px;
  }

  .footer-inner {
    gap: 22px;
    align-items: start;
  }

  .page-hero {
    --page-hero-pos: right -90px top 18px;
    --page-hero-size: 260px auto;
    padding: 116px 0 48px;
    background:
      radial-gradient(circle at 82% 18%, rgba(201, 168, 104, 0.16), transparent 13rem),
      linear-gradient(90deg, rgba(5, 6, 6, 0.95) 0%, rgba(5, 6, 6, 0.88) 70%, rgba(5, 6, 6, 0.62) 100%),
      #080909;
  }

  :root[data-theme="light"] .page-hero {
    padding-top: 116px;
    background:
      radial-gradient(circle at 82% 18%, rgba(201, 168, 104, 0.18), transparent 13rem),
      linear-gradient(90deg, rgba(250, 251, 243, 0.98) 0%, rgba(250, 251, 243, 0.9) 72%, rgba(250, 251, 243, 0.68) 100%),
      #fafbf3;
  }

  .page-hero[data-kicker="ABOUT"] {
    --page-hero-pos: 45% top;
    --page-hero-size: cover;
    background:
      linear-gradient(90deg, rgba(5, 6, 6, 0.86) 0%, rgba(5, 6, 6, 0.68) 48%, rgba(5, 6, 6, 0.16) 72%, rgba(5, 6, 6, 0) 100%),
      url("../img/ref/hero-person-andrey.png") 45% top / cover no-repeat;
  }

  :root[data-theme="light"] .page-hero[data-kicker="ABOUT"] {
    background:
      linear-gradient(90deg, rgba(250, 251, 243, 0.96) 0%, rgba(250, 251, 243, 0.82) 68%, rgba(250, 251, 243, 0.22) 100%),
      url("../img/ref/hero-person-andrey.png") 45% top / cover no-repeat;
  }

  .page-hero h1 {
    max-width: min(340px, 100%);
    font-size: 25px;
    line-height: 1.02;
    overflow-wrap: anywhere;
  }

  .section {
    padding: 54px 0;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .process-stage {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 24px;
  }

  .process-stage-number {
    font-size: 46px;
  }

  .process-panel {
    padding: 24px;
  }

  .process-panel .btn {
    width: 100%;
  }

  .process-mini-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .process-control-card {
    min-height: auto;
  }
}
