/* ============================================
   MAD COMPANY — madcompany.kz
   Architectural & Engineering Design System
   ============================================ */

:root {
  /* ── Color Palette (фирменные) ──────────────────── */
  --color-bg:          #0C1212;
  --color-bg-2:        #151b1b;
  --color-bg-3:        #1e2525;
  --color-surface:     #1a2222;
  --color-surface-2:   #242d2d;
  --color-border:      rgba(255,255,255,0.08);
  --color-border-2:    rgba(255,255,255,0.14);

  --color-text:        #FFFFFF;
  --color-text-2:      #9E8A7A;
  --color-text-3:      #3F3F3F;
  --color-text-muted:  #6b6b6b;
  --color-text-invert: #0C1212;

  /* Accent — терракотовый */
  --color-accent:      #9E8A7A;
  --color-accent-2:    #7a6858;
  --color-accent-3:    #EACEB9;
  --color-accent-glow: rgba(158,138,122,0.35);

  /* Семантические */
  --color-success:     #22c55e;
  --color-warning:     #f59e0b;
  --color-error:       #ef4444;
  --color-info:        #3b82f6;

  /* Градиенты */
  --grad-primary:  linear-gradient(135deg, #0C1212 0%, #1e2525 50%, #9E8A7A 100%);
  --grad-warm:     linear-gradient(135deg, #9E8A7A 0%, #EACEB9 100%);
  --grad-mesh:     radial-gradient(at 40% 20%, rgba(158,138,122,0.15) 0px, transparent 50%),
                   radial-gradient(at 80% 0%, rgba(234,206,185,0.1) 0px, transparent 50%);

  /* ── Typography ──────────────────────────────────── */
  --font-sans:   'Open Sans', system-ui, -apple-system, sans-serif;
  --font-mono:   'JetBrains Mono', 'Fira Code', monospace;

  --text-xs:   0.75rem;   /* 12px */
  --text-sm:   0.875rem;  /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg:   1.125rem;  /* 18px */
  --text-xl:   1.25rem;   /* 20px */
  --text-2xl:  1.5rem;    /* 24px */
  --text-3xl:  1.875rem;  /* 30px */
  --text-4xl:  2.25rem;   /* 36px */
  --text-5xl:  3rem;      /* 48px */
  --text-6xl:  3.75rem;   /* 60px */

  --font-light:    300;
  --font-normal:   400;
  --font-bold:     700;

  --leading-tight:  1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.75;

  /* ── Spacing ─────────────────────────────────────── */
  --space-1:  0.25rem;   /* 4px */
  --space-2:  0.5rem;    /* 8px */
  --space-3:  0.75rem;   /* 12px */
  --space-4:  1rem;      /* 16px */
  --space-5:  1.25rem;   /* 20px */
  --space-6:  1.5rem;    /* 24px */
  --space-8:  2rem;      /* 32px */
  --space-10: 2.5rem;    /* 40px */
  --space-12: 3rem;      /* 48px */
  --space-16: 4rem;      /* 64px */
  --space-20: 5rem;      /* 80px */

  /* ── Border Radius ───────────────────────────────── */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-2xl:  24px;
  --radius-full: 9999px;

  /* ── Shadows ─────────────────────────────────────── */
  --shadow-sm:  0 1px 2px rgba(0,0,0,0.4);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.6);
  --shadow-xl:  0 16px 64px rgba(0,0,0,0.7);
  --shadow-accent: 0 0 24px var(--color-accent-glow);

  /* ── Animation ───────────────────────────────────── */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
  --duration-fast:   150ms;
  --duration-normal: 250ms;
  --duration-slow:   400ms;

  /* ── Z-index ─────────────────────────────────────── */
  --z-base:    0;
  --z-above:   10;
  --z-float:   100;
  --z-overlay: 1000;
  --z-modal:   2000;
}

/* ============================================
   RESET & SETUP
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}
html, body, a, button, input, textarea, .btn, .portfolio__row, .point, .splash-btn {
  cursor: url("../images/normal.svg") 18 20, auto !important;
}
html:active, body:active, a:active, button:active, input:active, textarea:active, .btn:active, .portfolio__row:active, .point:active, .splash-btn:active {
  cursor: url("../images/click.svg") 41 51, auto !important;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-weight: var(--font-light);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: var(--font-normal);
  line-height: var(--leading-tight);
}

.text-accent {
  color: var(--color-accent);
}

/* ============================================
   LAYOUT & GRID UTILS
   ============================================ */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--space-10);
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
}

/* Architectural background lines */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  display: flex;
  justify-content: space-evenly;
}
.grid-line {
  width: 1px;
  height: 100vh;
  background-color: var(--color-border);
}

/* Section shared */
section {
  position: relative;
  border-bottom: 1px solid var(--color-border);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: var(--space-16) 0 var(--space-10);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-10);
}

.section-label {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-2);
  letter-spacing: 0.1em;
  font-weight: var(--font-normal);
  margin-bottom: var(--space-4);
  text-transform: uppercase;
}

.section-title {
  font-size: var(--text-3xl);
  font-weight: var(--font-light);
  letter-spacing: -0.02em;
  color: var(--color-text);
  text-transform: uppercase;
}

.section-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 400px;
}

/* ============================================
   COMPONENTS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: var(--space-3) var(--space-6);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  font-weight: var(--font-normal);
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-bg);
  border: 1px solid var(--color-accent);
}

.btn--primary:hover {
  background: transparent;
  color: var(--color-accent);
}

.btn--outline {
  border: 1px solid var(--color-border-2);
  color: var(--color-text);
  background: transparent;
}

.btn--outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: var(--z-above);
  background: rgba(12, 18, 18, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-4); /* spacing between logo and text */
  text-decoration: none;
}

.header__logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.header__logo-main {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  letter-spacing: 0.1em;
  color: var(--color-text);
  line-height: 1;
}

.header__nav {
  display: flex;
  gap: var(--space-8);
}

.nav-link {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  transition: color var(--duration-fast) var(--ease-out);
}

.nav-link:hover, .nav-link.active {
  color: var(--color-text);
}

.header__right {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.header__phone {
  font-size: var(--text-sm);
  letter-spacing: 0.05em;
  font-weight: var(--font-normal);
  color: var(--color-text);
  transition: color var(--duration-fast) var(--ease-out);
}
.header__phone:hover {
  color: var(--color-accent);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding-top: 80px;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex-grow: 1;
  padding: 0; /* Remove horizontal padding internally to snap to container borders */
}

.hero__content {
  padding: var(--space-20) var(--space-10);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--color-border);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-10);
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: var(--radius-sm);
}

.hero__badge-text {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  color: var(--color-text-2);
}

.hero__title {
  font-size: var(--text-6xl);
  font-weight: var(--font-light);
  line-height: 1.1;
  margin-bottom: var(--space-8);
  letter-spacing: -0.02em;
}

.hero__sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 440px;
  margin-bottom: var(--space-10);
  line-height: var(--leading-relaxed);
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
}

.hero__image-wrapper {
  position: relative;
  overflow: hidden;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(80%) contrast(1.1);
  transition: filter var(--duration-slow) var(--ease-out);
}

.hero__image-wrapper:hover .hero__image {
  filter: grayscale(0%) contrast(1.1);
}

.hero__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(12,18,18,0.4) 0%, rgba(12,18,18,0.1) 100%);
  pointer-events: none;
}

/* ============================================
   WHY US (ПОЧЕМУ ВЫБИРАЮТ НАС)
   ============================================ */
.why-grid {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--color-border);
}

.why-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: flex-start;
  padding: var(--space-6) 0;
  border-top: 1px solid var(--color-border);
  transition: background-color var(--duration-fast);
}

.why-item:hover {
  background-color: var(--color-surface);
}

.why-item__num {
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--color-text-2);
}

.why-item__title {
  font-size: var(--text-xl);
  font-weight: var(--font-normal);
  color: var(--color-text);
  margin-bottom: var(--space-2);
  letter-spacing: 0.02em;
}

.why-item__desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

/* ============================================
   SERVICES CAROUSEL
   ============================================ */
.container--carousel {
  padding-right: 0;
}

.services__carousel {
  display: flex;
  gap: var(--space-6);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--space-10);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.services__carousel::-webkit-scrollbar {
  display: none;
}

.service-slide {
  flex: 0 0 calc(33.333% - var(--space-6));
  min-width: 280px;
  scroll-snap-align: start;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  transition: border-color var(--duration-normal);
  display: flex;
  flex-direction: column;
  padding-bottom: var(--space-6);
}

.service-slide:hover {
  border-color: var(--color-accent);
}

.service-slide__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--color-bg-2);
  overflow: hidden;
  margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.service-slide__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(80%);
  transition: filter var(--duration-normal) var(--ease-out), transform var(--duration-slow);
}

.service-slide:hover .service-slide__img img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.service-slide__num {
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--color-text-2);
  padding: 0 var(--space-6);
  margin-bottom: var(--space-2);
}

.service-slide__title {
  font-size: var(--text-sm);
  font-weight: var(--font-normal);
  color: var(--color-text);
  padding: 0 var(--space-6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

/* ============================================
   GEOGRAPHY / MAP
   ============================================ */
.geography__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-10);
  padding: var(--space-20) var(--space-10);
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
}

.geography__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.geography__content .section-title {
  margin-bottom: var(--space-4);
  line-height: 1.2;
}

.geography__content .section-desc {
  max-width: 480px;
  font-size: var(--text-base);
}

.map-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--color-bg-2);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0,0,0,0.5), inset 0 0 60px rgba(12, 18, 18, 0.9);
  cursor: grab;
  /* Hardware acceleration to enforce strict border-radius overflow clip */
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
  transform: translateZ(0);
}

.map-wrapper:active {
  cursor: grabbing;
}

.map-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 50px rgba(12, 18, 18, 1);
  background: radial-gradient(circle, transparent 40%, rgba(12, 18, 18, 0.4) 100%);
  pointer-events: none;
  z-index: 20;
}

.map-container {
  position: absolute;
  width: 250%; /* Zoom into Eurasia */
  left: 50%;
  top: 50%;
  transform: translate(-60%, -36%); /* Centers the active network of projects */
  transition: transform 0.1s ease-out; /* Smooth dragging */
  will-change: transform;
}

.map-bg {
  width: 100%;
  height: auto;
  display: block;
  /* Make the light Wikipedia SVG dark inline with our UI */
  filter: invert(0.85) sepia(0) saturate(0) hue-rotate(0deg) brightness(0.2) contrast(1.1);
  opacity: 0.8;
}

.map-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.map-line-base {
  stroke: var(--color-border-2);
  stroke-width: 1px;
  fill: none;
  opacity: 0.5;
}

.map-line-flow {
  stroke: var(--color-accent);
  stroke-width: 2px;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 4 16;
  stroke-dashoffset: 0;
  animation: flowLine 2s linear infinite;
  opacity: 0.8;
}

@keyframes flowLine {
  to { stroke-dashoffset: -20; }
}

.map-points {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.point {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
}

.point-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-text);
  border-radius: 50%;
  position: relative;
  z-index: 2;
  transition: all var(--duration-fast);
  box-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.origin .point-dot {
  width: 10px;
  height: 10px;
  background-color: var(--color-accent);
  box-shadow: 0 0 15px var(--color-accent);
}

.point-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  background-color: transparent;
  border: 1px solid var(--color-accent);
  border-radius: 50%;
  z-index: 1;
  animation: pulse 2.5s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(0.3); opacity: 1; border-width: 2px; }
  100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; border-width: 0px; }
}

.point-label {
  position: absolute;
  top: 50%;
  left: 100%;
  margin-left: 12px;
  transform: translateY(-50%) translateX(-10px);
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(26, 34, 34, 0.85);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-2);
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
  backdrop-filter: blur(8px);
  z-index: 10;
  box-shadow: var(--shadow-lg);
}

.point-label strong {
  font-size: var(--text-sm);
  letter-spacing: 0.1em;
  color: var(--color-text);
  text-transform: uppercase;
}

.point-label .point-sub {
  font-size: 10px;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.origin .point-label {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
  border-color: var(--color-accent-glow);
}

.point:hover .point-label {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

.point:hover .point-dot {
  transform: scale(1.6);
  background-color: var(--color-accent);
  box-shadow: 0 0 20px var(--color-accent);
}

/* ============================================
   PORTFOLIO
   ============================================ */
.portfolio__list {
  display: flex;
  flex-direction: column;
  padding-bottom: var(--space-20);
}

.portfolio__row {
  display: grid;
  grid-template-columns: 80px 2fr 2fr 1fr 120px;
  align-items: center;
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--color-border);
  transition: background-color var(--duration-fast) var(--ease-out);
  position: relative;
}

.portfolio__row:hover {
  background-color: var(--color-surface);
}

.portfolio__row-id {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.portfolio__row-title {
  font-size: var(--text-lg);
  font-weight: var(--font-normal);
  color: var(--color-text);
  letter-spacing: 0.05em;
}

.portfolio__row-cat {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

.portfolio__row-year {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-text-2);
}

/* Image reveal on hover */
.portfolio__row-img-wrap {
  position: absolute;
  right: 120px;
  top: 50%;
  transform: translateY(-50%) scale(0.95);
  width: 300px;
  height: 200px;
  opacity: 0;
  pointer-events: none;
  z-index: var(--z-above);
  transition: all var(--duration-normal) var(--ease-out);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.portfolio__row-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(40%);
}

.portfolio__row:hover .portfolio__row-img-wrap {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

/* ============================================
   ABOUT
   ============================================ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0;
}

.about__media {
  border-right: 1px solid var(--color-border);
  position: relative;
  min-height: 600px;
}
.about__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(60%);
}

.about__content {
  padding: var(--space-20) var(--space-10);
}

.about__text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-10);
  max-width: 480px;
}

.about__specs {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-6);
  max-width: 480px;
}

.about__specs li {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-sm);
}

.about__specs li span:first-child {
  color: var(--color-text-2);
  letter-spacing: 0.05em;
}

.about__specs li span:last-child {
  color: var(--color-text);
  font-weight: var(--font-normal);
}

/* ============================================
   FOOTER / CONTACT
   ============================================ */
.footer {
  border-top: 1px solid var(--color-border);
}

.footer__form-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: var(--space-20) var(--space-10);
  border-bottom: 1px solid var(--color-border);
}

.footer__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  max-width: 480px;
}

.input-wrapper {
  display: block;
}

.input-wrapper input,
.input-wrapper textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-4) 0;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--color-text);
  transition: border-color var(--duration-fast);
  outline: none;
}

.input-wrapper input::placeholder,
.input-wrapper textarea::placeholder {
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
}

.input-wrapper input:focus,
.input-wrapper textarea:focus {
  border-bottom-color: var(--color-accent);
}

.input-wrapper textarea {
  resize: vertical;
  min-height: 100px;
}

.footer__bottom {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  padding: var(--space-10);
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__col-title {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  color: var(--color-text-2);
  margin-bottom: var(--space-2);
}

.footer__link {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: color var(--duration-fast);
}

.footer__link:hover {
  color: var(--color-text);
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.fade-in {
  opacity: 0;
  transition: opacity 1s var(--ease-out);
}

.fade-up.visible, .fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero__title { font-size: var(--text-5xl); }
  .geography__grid { grid-template-columns: 1fr; padding: var(--space-12) var(--space-6); gap: var(--space-12); }
  .geography__content { max-width: 100%; }
  .map-wrapper { max-width: 450px; margin: 0 auto; }
  .why-item { grid-template-columns: 60px 1fr; }
  .service-slide { flex: 0 0 calc(50% - var(--space-6)); }
  .portfolio__row { grid-template-columns: 60px 2fr 2fr 100px; }
  .portfolio__row-img-wrap { display: none; }
  .about__grid { grid-template-columns: 1fr; }
  .about__media { border-right: none; border-bottom: 1px solid var(--color-border); min-height: 400px; }
  .footer__form-section { grid-template-columns: 1fr; gap: var(--space-10); }
}

@media (max-width: 768px) {
  .container { padding: 0 var(--space-6); }
  
  .header__nav { display: none; }
  .header__phone { display: none; } /* Hide phone to free up space */
  .header__logo-main { display: none; } /* Show only logo graphic */
  .header__right { gap: var(--space-3); }
  
  .hero { padding-top: 70px; }
  .hero__title { font-size: var(--text-4xl); margin-bottom: var(--space-6); }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__content { padding: var(--space-10) var(--space-6); border-right: none; border-bottom: 1px solid var(--color-border); }
  .hero__image-wrapper { min-height: 350px; }
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; }

  .why-item { grid-template-columns: 1fr; padding: var(--space-4) 0; }
  .why-item__num { margin-bottom: var(--space-2); display: block; font-size: var(--text-xl); }
  
  .service-slide { flex: 0 0 calc(85% - var(--space-6)); }
  
  .geography__grid { padding: var(--space-10) var(--space-6); }
  .map-wrapper { max-width: 100%; width: 100%; height: auto; aspect-ratio: 1/1; margin: 0 auto; }
  .map-container { position: absolute; width: 180%; left: 50%; top: 50%; transform: translate(-55%, -30%); }
  
  .portfolio__row { grid-template-columns: 1fr; gap: var(--space-2); padding: var(--space-6) var(--space-4); border: 1px solid var(--color-border); margin-bottom: var(--space-4); border-radius: var(--radius-md); }
  .portfolio__row-id, .portfolio__row-year { display: none; }
  
  .about__content { padding: var(--space-10) var(--space-6); border-top: 1px solid var(--color-border); }
  .about__specs li { flex-direction: column; gap: 4px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 12px; margin-bottom: 12px; }
  .about__specs li:last-child { border-bottom: none; }
  .about__specs li span:first-child { color: var(--color-accent); font-size: 10px; }
  
  .footer__form-section { padding: var(--space-10) var(--space-6); }
  .footer__bottom { grid-template-columns: 1fr; gap: var(--space-10); padding: var(--space-10) var(--space-6); border-top: 1px solid var(--color-border); }
}

@media (max-width: 480px) {
  .map-container { width: 180%; transform: translate(-55%, -30%); }
  .point-label { font-size: 10px; padding: 4px 6px; transform: translateY(-50%) translateX(-2px); margin-left: 6px; }
  .point-label strong { font-size: 10px; }
  .point-dot { width: 6px; height: 6px; }
  .origin .point-dot { width: 8px; height: 8px; }
}

/* ============================================
   SPLASH SCREEN
   ============================================ */
.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease-out), visibility 0.8s var(--ease-out);
}

.splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: #000;
}

.splash-actions {
  position: absolute;
  top: 40px;
  right: 40px;
  display: flex;
  gap: var(--space-4);
  z-index: 10000;
}

.splash-btn {
  background: rgba(12, 18, 18, 0.6);
  border: 1px solid var(--color-border-2);
  color: var(--color-text);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--duration-fast);
  backdrop-filter: blur(4px);
}

.splash-btn:hover {
  background: var(--color-accent);
  color: var(--color-bg);
  border-color: var(--color-accent);
}

@media (max-width: 768px) {
  .splash-actions {
    top: 20px;
    right: 20px;
    flex-direction: column;
    gap: var(--space-2);
    align-items: flex-end;
  }
  .splash-btn {
    padding: var(--space-2) var(--space-4);
    font-size: 10px;
  }
  .splash-video {
    object-fit: contain;
  }
}
