/* ===== Reset & base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", "Noto Sans Georgian", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #0e0f12;
  color: #ffffff;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html[lang="ka"] body { font-family: "Noto Sans Georgian", "Inter", system-ui, sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

:root {
  --bg: #0e0f12;
  --bg-alt: #14161b;
  --surface: #181b21;
  --surface-2: #20242c;
  --border: #2a2e36;
  --border-2: #3a3f49;
  --text: #ffffff;
  --text-dim: #b6b9c2;
  --text-mute: #80848e;
  --orange: #F39A1F;
  --orange-2: #ff8c00;
  --orange-soft: rgba(243,154,31,0.12);
}

.container {
  width: 100%;
  max-width: 1240px;
  padding: 0 24px;
  margin: 0 auto;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 16px 28px; font-size: 16px; }

.btn-primary { background: var(--orange); color: #1a1408; }
.btn-primary:hover { background: var(--orange-2); }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }

.btn-messenger {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 11px 18px;
  font-size: 14px;
}
.btn-messenger:hover { border-color: var(--orange); color: var(--orange); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14,15,18,0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand-mark { width: 28px; height: 28px; object-fit: contain; }
.brand-dot { color: var(--orange); }
.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav a {
  color: var(--text-dim);
  font-weight: 500;
  font-size: 15px;
  position: relative;
  padding: 4px 0;
}
.nav a:hover { color: var(--orange); }
.nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.nav a:hover::after { transform: scaleX(1); }

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

.lang-switch {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
}
.lang-btn[aria-pressed="true"] {
  background: var(--orange);
  color: #1a1408;
}
.flag {
  width: 16px;
  height: 11px;
  border-radius: 2px;
  background-size: cover;
  background-position: center;
  display: inline-block;
}
/* Russian flag: white / blue / red horizontal stripes */
.flag-ru {
  background:
    linear-gradient(to bottom,
      #ffffff 0 33.33%,
      #0039a6 33.33% 66.66%,
      #d52b1e 66.66% 100%);
}
/* Georgian flag: white background, red cross + 4 small red Bolnisi crosses */
.flag-ka {
  background:
    linear-gradient(#d52b1e,#d52b1e) center/3px 100% no-repeat,
    linear-gradient(#d52b1e,#d52b1e) center/100% 3px no-repeat,
    #ffffff;
}

.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0;
  cursor: pointer;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 9px; right: 9px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease, top .2s ease;
}
.menu-toggle span:nth-child(1) { top: 13px; }
.menu-toggle span:nth-child(2) { top: 19px; }
.menu-toggle span:nth-child(3) { top: 25px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: clamp(560px, 80vh, 760px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: saturate(0.9);
}
.hero-overlay {
  position: absolute; inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(14,15,18,0.65) 0%, rgba(14,15,18,0.55) 50%, rgba(14,15,18,0.95) 100%),
    radial-gradient(circle at 80% 20%, rgba(243,154,31,0.18), transparent 55%);
}
.hero-inner { padding: 80px 24px; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 600;
  padding: 6px 12px;
  background: var(--orange-soft);
  border: 1px solid rgba(243,154,31,0.3);
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(34px, 5.6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 20px;
  max-width: 880px;
}
.hero-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 0 36px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }

.hero-stats {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 32px;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong {
  font-size: 32px;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 6px;
}
.hero-stats span { color: var(--text-dim); font-size: 14px; }

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--orange);
  margin: 0 0 16px;
  line-height: 1.15;
}
.section-sub {
  font-size: 17px;
  color: var(--text-dim);
  margin: 0 0 40px;
  max-width: 640px;
}
.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; }
.section-head.center .section-sub { margin-left: auto; margin-right: auto; }

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-text p { color: var(--text-dim); font-size: 16px; margin: 0 0 18px; }
.about-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}
.about-list li {
  position: relative;
  padding-left: 28px;
  color: var(--text);
  font-size: 15px;
}
.about-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  transform: rotate(-45deg);
}
.about-photo img {
  width: 100%;
  height: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--border);
}

/* ===== Services rail (horizontal scroll) ===== */
.services-rail {
  position: relative;
  margin: 0 calc(50% - 50vw);
  padding: 0;
}
.services-rail::before,
.services-rail::after {
  content: "";
  position: absolute;
  top: 0; bottom: 16px;
  width: 64px;
  pointer-events: none;
  z-index: 2;
}
.services-rail::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-alt), rgba(20,22,27,0));
}
.services-rail::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-alt), rgba(20,22,27,0));
}

.services-grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-left: max(24px, calc((100vw - 1240px) / 2 + 24px));
  padding: 4px max(24px, calc((100vw - 1240px) / 2 + 24px)) 16px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--border-2) transparent;
}
.services-grid::-webkit-scrollbar { height: 6px; }
.services-grid::-webkit-scrollbar-track { background: transparent; }
.services-grid::-webkit-scrollbar-thumb {
  background: var(--border-2);
  border-radius: 3px;
}
.services-grid::-webkit-scrollbar-thumb:hover { background: var(--orange); }

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease;
  display: flex;
  flex-direction: column;
  flex: 0 0 320px;
  scroll-snap-align: start;
}
.service-card:hover {
  border-color: var(--orange);
  transform: translateY(-3px);
}
.service-photo {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #000;
}
.service-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.service-card:hover .service-photo img { transform: scale(1.05); }
.service-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 18px 20px 8px;
  color: var(--orange);
  letter-spacing: -0.01em;
}
.service-card p {
  margin: 0 20px 22px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-dim);
}

/* ===== Approach ===== */
.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.approach-photo img {
  width: 100%;
  max-height: 540px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--border);
}
.steps {
  list-style: none; padding: 0; margin: 0;
  counter-reset: step;
  display: grid;
  gap: 22px;
}
.steps li {
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-auto-rows: auto;
  column-gap: 18px;
  row-gap: 4px;
  align-items: start;
  counter-increment: step;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  grid-column: 1;
  grid-row: 1 / span 2;
  font-size: 18px;
  font-weight: 800;
  color: var(--orange);
  background: var(--orange-soft);
  border: 1px solid rgba(243,154,31,0.3);
  border-radius: 12px;
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
}
.steps strong {
  grid-column: 2;
  grid-row: 1;
  display: block;
  font-size: 17px;
  align-self: center;
}
.steps span {
  grid-column: 2;
  grid-row: 2;
  color: var(--text-dim);
  font-size: 15px;
}

/* ===== Clients ===== */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.client-logo {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  height: 130px;
  display: flex; align-items: center; justify-content: center;
}
.client-logo img {
  max-height: 80px;
  max-width: 100%;
  object-fit: contain;
  filter: brightness(1.05) contrast(1.05);
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: start;
}
.lead-form {
  display: grid;
  gap: 16px;
  max-width: 540px;
}
.field { display: grid; gap: 8px; }
.field span {
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 600;
}
.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color .2s ease, background .2s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: var(--surface-2);
}
.field textarea { resize: vertical; min-height: 110px; }

.form-note { font-size: 12.5px; color: var(--text-mute); margin: 4px 0 0; }
.form-status {
  margin: 6px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
}
.form-status.ok { background: rgba(80,180,120,0.12); border: 1px solid rgba(80,180,120,0.35); color: #9fd9b6; }
.form-status.err { background: rgba(220,80,80,0.10); border: 1px solid rgba(220,80,80,0.35); color: #e89b9b; }

.contact-info {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px;
}
.contact-info h3 {
  margin: 0 0 24px;
  font-size: 18px;
  color: var(--text);
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.contact-row:last-of-type { border-bottom: none; }
.contact-row-static { cursor: default; }
.contact-row strong { display: block; font-size: 16px; }
.contact-label {
  display: block;
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.contact-ico {
  width: 40px; height: 40px;
  background: var(--orange-soft);
  border: 1px solid rgba(243,154,31,0.3);
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.messenger-row {
  display: flex; gap: 10px;
  margin-top: 22px;
}

/* ===== Legal page ===== */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding-top: 8px;
}
.legal-title {
  font-size: clamp(28px, 3.6vw, 42px);
  color: var(--orange);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.legal-updated {
  color: var(--text-mute);
  font-size: 13px;
  margin: 0 0 40px;
}
.legal h2 {
  font-size: 19px;
  color: var(--text);
  font-weight: 700;
  margin: 36px 0 10px;
}
.legal p {
  color: var(--text-dim);
  font-size: 15.5px;
  line-height: 1.7;
  margin: 0 0 14px;
}
.legal a {
  color: var(--orange);
  text-decoration: underline;
  text-decoration-color: rgba(243,154,31,0.4);
}
.legal a:hover { text-decoration-color: var(--orange); }
.legal-back {
  margin-top: 48px !important;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.legal-back a {
  color: var(--text-dim);
  text-decoration: none;
}
.legal-back a:hover { color: var(--orange); }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
  background: #0a0b0e;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer-col h4 {
  margin: 0 0 16px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 700;
}
.footer-col ul {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  gap: 10px;
}
.footer-col a {
  color: var(--text-dim);
  font-size: 14px;
  transition: color .2s ease;
}
.footer-col a:hover { color: var(--orange); }
.footer-mute {
  color: var(--text-mute);
  font-size: 11px;
  margin-left: 4px;
  letter-spacing: 0.05em;
}
.footer-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 10px;
}
.footer-brand img { width: 28px; height: 28px; object-fit: contain; }
.footer-tag {
  color: var(--text-mute);
  font-size: 14px;
  margin: 0;
  max-width: 280px;
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
}
.footer-copy { color: var(--text-mute); font-size: 13px; margin: 0; }
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 880px) {
  .nav {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    padding: 12px 24px 20px;
    background: rgba(14,15,18,0.97);
    border-bottom: 1px solid var(--border);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav a:last-child { border-bottom: none; }
  .menu-toggle { display: inline-flex; }
  .header-actions .btn-sm { display: none; }

  .about-grid, .approach-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .approach-photo { order: 2; }
  .section { padding: 64px 0; }
  .hero-inner { padding: 56px 24px; }
  .hero-stats { gap: 18px; grid-template-columns: repeat(3, 1fr); }
  .hero-stats strong { font-size: 24px; }
  .service-card { flex: 0 0 280px; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-info { padding: 24px; }
}
@media (max-width: 480px) {
  .service-card { flex: 0 0 260px; }
  .hero-cta .btn { flex: 1; }
  .messenger-row { flex-direction: column; }
}
