/* ═══════════════════════════════════════════════
   ОБИ ТОЗА — Global Design System
   Aesthetic: Industrial luxury / Central Asian modern
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&family=Playfair+Display:ital,wght@1,400;1,600&display=swap');

:root {
  /* Core palette */
  --ink: #0b0e13;
  --ink-2: #141820;
  --ink-3: #1e2430;
  --steel: #2c3345;
  --mist: #8a96aa;
  --fog: #c4cad6;
  --paper: #f2f0ea;
  --white: #ffffff;

  /* Accent — deep amber/gold from logo */
  --gold: #73d7ed;
  --gold-dim: #488bdc;
  --gold-pale: #a9e1ff;

  /* Accent 2 — electric cyan from logo drop */
  --cyan: #1ab8d4;
  --cyan-dim: #0e7a8c;
  --cyan-pale: #d0f4f8;

  /* Green from logo text */
  --green: #5ab040;
  --green-dim: #3a7228;

  /* Functional */
  --success: #4caf78;
  --error: #e05050;

  /* Type */
  --ff-display: 'Syne', sans-serif;
  --ff-body: 'DM Sans', sans-serif;
  --ff-italic: 'Playfair Display', serif;

  /* Spacing scale */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;

  /* Radii */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 9999px;

  /* Shadows */
  --sh-sm: 0 2px 8px rgba(0, 0, 0, 0.18);
  --sh-md: 0 6px 24px rgba(0, 0, 0, 0.22);
  --sh-lg: 0 16px 56px rgba(0, 0, 0, 0.3);
  --sh-glow-gold: 0 0 32px rgba(212, 168, 42, 0.25);
  --sh-glow-cyan: 0 0 32px rgba(26, 184, 212, 0.2);

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 160ms;
  --t-mid: 280ms;
  --t-slow: 480ms;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--ff-body);
  background: var(--ink);
  color: var(--fog);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--ink-2);
}

::-webkit-scrollbar-thumb {
  background: var(--steel);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-dim);
}

/* ── SELECTION ── */
::selection {
  background: var(--gold);
  color: var(--ink);
}

/* ── LANG STRIP ── */
.lang-strip {
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 3rem;
  height: 38px;
  gap: 2px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
}

.lang-btn {
  background: none;
  border: 1px solid transparent;
  color: var(--mist);
  font-family: var(--ff-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 3px 10px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}

.lang-btn:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.2);
}

.lang-btn.active {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

/* ── NAV ── */
.site-nav {
  position: fixed;
  top: 38px;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 72px;
  display: flex;
  align-items: center;
  padding: 0 3rem;
  background: rgba(11, 14, 19, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background var(--t-mid) var(--ease), border-color var(--t-mid);
}

.site-nav.scrolled {
  background: rgba(11, 14, 19, 0.98);
  border-bottom-color: rgba(212, 168, 42, 0.2);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(26, 184, 212, 0.4));
}

.nav-logo-text {
  line-height: 1;
}

.nav-logo-obi {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--green);
  letter-spacing: 0.02em;
}

.nav-logo-toza {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: 0.02em;
}

.nav-logo-sub {
  display: block;
  font-size: 0.6rem;
  color: var(--mist);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nav-links a {
  color: var(--mist);
  text-decoration: none;
  font-family: var(--ff-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  transition: color var(--t-fast), background var(--t-fast);
  position: relative;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a.active {
  color: var(--gold);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 1px;
  background: var(--gold);
}

.nav-cta {
  margin-left: 16px;
  background: var(--gold) !important;
  color: var(--ink) !important;
  border-radius: var(--r-sm) !important;
  padding: 9px 20px !important;
  font-weight: 800 !important;
  transition: background var(--t-fast), transform var(--t-fast) !important;
}

.nav-cta:hover {
  background: #e8c040 !important;
  transform: translateY(-1px);
}

.nav-cta::after {
  display: none !important;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--fog);
  border-radius: 2px;
  transition: transform var(--t-mid), opacity var(--t-mid);
}

.nav-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(4.5px, 4.5px);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(4.5px, -4.5px);
}

/* ── FOOTER ── */
.site-footer {
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: var(--sp-8) 3rem var(--sp-6);
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-7);
  padding-bottom: var(--sp-7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand {}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--sp-4);
  text-decoration: none;
}

.footer-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(26, 184, 212, 0.35));
}

.footer-logo-name {
  font-family: var(--ff-display);
  font-size: 1.2rem;
  font-weight: 800;
}

.footer-logo-name .obi {
  color: var(--green);
}

.footer-logo-name .toza {
  color: var(--cyan);
}

.footer-tagline {
  font-family: var(--ff-italic);
  font-size: 0.95rem;
  color: var(--mist);
  margin-bottom: var(--sp-5);
  line-height: 1.7;
  max-width: 280px;
}

.footer-socials {
  display: flex;
  gap: var(--sp-3);
}

.footer-social {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mist);
  font-size: 0.85rem;
  text-decoration: none;
  transition: border-color var(--t-fast), color var(--t-fast);
}

.footer-social:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.footer-col-title {
  font-family: var(--ff-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fog);
  margin-bottom: var(--sp-4);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer-links a {
  color: var(--mist);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color var(--t-fast);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-contact-item {
  font-size: 0.85rem;
  color: var(--mist);
  margin-bottom: var(--sp-3);
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  line-height: 1.5;
}

.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.5;
}

.footer-bottom {
  max-width: 1280px;
  margin: var(--sp-5) auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.2);
}

/* ── COMMON UTILITIES ── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 3rem;
}

.page-body {
  padding-top: 110px;
}

/* nav + lang strip */

.tag {
  display: inline-block;
  font-family: var(--ff-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-3);
}

.tag::before {
  content: '◈ ';
  opacity: 0.6;
  font-size: 0.6rem;
}

.section-heading {
  font-family: var(--ff-display);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
}

h1.section-heading {
  font-size: clamp(2.8rem, 5.5vw, 5rem);
}

h2.section-heading {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
}

h3.section-heading {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
}

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

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

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

/* Divider line */
.rule {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin: var(--sp-5) 0;
}

.rule::before,
.rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.rule-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: var(--r-full);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--ff-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: var(--r-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--t-mid) var(--ease-out);
  white-space: nowrap;
}

.btn-gold {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

.btn-gold:hover {
  background: #e8c040;
  border-color: #e8c040;
  transform: translateY(-2px);
  box-shadow: var(--sh-glow-gold);
}

.btn-ghost {
  background: transparent;
  color: var(--fog);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-ghost:hover {
  border-color: var(--fog);
  color: var(--white);
}

.btn-cyan {
  background: var(--cyan);
  color: var(--ink);
  border-color: var(--cyan);
}

.btn-cyan:hover {
  background: #25d4f0;
  transform: translateY(-2px);
  box-shadow: var(--sh-glow-cyan);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}

.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--ink);
}

/* Form base */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-family: var(--ff-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
}

.form-field input,
.form-field select,
.form-field textarea {
  background: var(--ink-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-sm);
  color: var(--white);
  font-family: var(--ff-body);
  font-size: 0.95rem;
  padding: 12px 16px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  appearance: none;
  outline: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 168, 42, 0.12);
}

.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238a96aa' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-field select option {
  background: var(--ink-2);
  color: var(--white);
}

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

/* Card base */
.card {
  background: var(--ink-2);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--t-mid), transform var(--t-mid) var(--ease-out), box-shadow var(--t-mid);
}

.card:hover {
  border-color: rgba(212, 168, 42, 0.25);
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--ink-3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid var(--gold);
  color: var(--fog);
  padding: 12px 18px;
  border-radius: var(--r-md);
  font-size: 0.88rem;
  max-width: 320px;
  box-shadow: var(--sh-md);
  transform: translateX(110%);
  opacity: 0;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
  pointer-events: all;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast.success {
  border-left-color: var(--success);
}

.toast.error {
  border-left-color: var(--error);
}

/* Fade-in animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out) forwards;
}

.fade-up-d1 {
  animation-delay: 0.1s;
}

.fade-up-d2 {
  animation-delay: 0.2s;
}

.fade-up-d3 {
  animation-delay: 0.3s;
}

.fade-up-d4 {
  animation-delay: 0.4s;
}

.fade-up-d5 {
  animation-delay: 0.5s;
}

/* Noise overlay */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* Responsive */
@media (max-width: 1024px) {
  .container {
    padding: 0 2rem;
  }

  .site-nav {
    padding: 0 2rem;
  }

  .site-footer {
    padding: var(--sp-7) 2rem var(--sp-5);
  }

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 110px;
    left: 0;
    right: 0;
    background: rgba(11, 14, 19, 0.98);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    gap: 4px;
  }

  .nav-links.open .nav-cta {
    margin-left: 0;
    margin-top: 8px;
    text-align: center;
  }

  .nav-hamburger {
    display: flex;
  }

  .lang-strip {
    padding: 0 1.5rem;
  }

  .site-nav {
    padding: 0 1.5rem;
  }

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