/* ============================================================
   KARGON.UZ — light premium sourcing service
   60% фон #F4F6F8 · 30% navy #0F2A43 · 10% акцент #FF7A1A
   Display: Manrope · Body: Inter
   ============================================================ */

:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --navy: #0f2a43;
  --navy-soft: #16395a;
  --text: #0f2a43;
  --muted: #5c6c7d;
  --accent: #ff7a1a;
  --accent-hover: #f06e0e;
  --border: #e2e8ef;
  --border-navy: rgba(255, 255, 255, 0.14);
  --shadow: 0 1px 2px rgba(15, 42, 67, 0.04), 0 8px 24px rgba(15, 42, 67, 0.06);
  --shadow-lift: 0 2px 4px rgba(15, 42, 67, 0.05), 0 16px 40px rgba(15, 42, 67, 0.1);
  --radius: 18px;
  --display: "Manrope", sans-serif;
  --body: "Inter", sans-serif;
  --container: 1180px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }
button, input, textarea { font: inherit; color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}
.container--narrow { max-width: 760px; }

::selection { background: var(--accent); color: #fff; }

/* ---------- Typography ---------- */
h1, h2, h3, .logo {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--navy);
}

.eyebrow {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow--light { color: var(--accent); }

.section__title { font-size: clamp(27px, 4.6vw, 42px); margin-bottom: 16px; }
.section__lead { color: var(--muted); max-width: 560px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  border-radius: 12px;
  padding: 14px 28px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(255, 122, 26, 0.28);
}
.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(255, 122, 26, 0.34);
}

.btn--outline {
  background: transparent;
  border-color: rgba(15, 42, 67, 0.22);
  color: var(--navy);
}
.btn--outline:hover { border-color: var(--navy); transform: translateY(-2px); }

.btn--lg { padding: 17px 32px; font-size: 16px; }
.btn--sm { padding: 10px 20px; font-size: 14px; }

.icon { width: 19px; height: 19px; flex: none; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 13px 0;
  background: rgba(244, 246, 248, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.header.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 4px 20px rgba(15, 42, 67, 0.05); }

.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { font-size: 17px; letter-spacing: 0; }
.logo__dot { color: var(--accent); }

.header__nav { display: none; gap: 26px; }
.header__nav a { font-size: 14px; font-weight: 500; color: var(--muted); transition: color 0.2s ease; }
.header__nav a:hover { color: var(--navy); }

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

.lang { display: flex; background: #e9edf1; border-radius: 10px; padding: 3px; }
.lang__btn {
  border: none;
  background: transparent;
  font-family: var(--display);
  font-weight: 700;
  font-size: 12px;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.lang__btn:hover { color: var(--navy); }
.lang__btn.is-active { background: var(--surface); color: var(--navy); box-shadow: 0 1px 3px rgba(15, 42, 67, 0.12); }

/* ---------- Hero ---------- */
.hero { padding-top: 140px; text-align: center; overflow: hidden; }
.hero__inner { position: relative; }

.hero__title {
  font-size: clamp(38px, 8vw, 80px);
  line-height: 1.04;
  margin-bottom: 26px;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line span {
  display: block;
  transform: translateY(110%);
  animation: line-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero__title .line:nth-child(2) span { animation-delay: 0.1s; }
.hero__title .line:nth-child(3) span { animation-delay: 0.2s; }
@keyframes line-up { to { transform: translateY(0); } }
.dot { color: var(--accent); font-style: normal; }

.hero__subtitle {
  color: var(--muted);
  font-size: clamp(16px, 2.4vw, 19px);
  max-width: 600px;
  margin: 0 auto 34px;
}
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero__micro { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* Route ticker */
.routes {
  margin-top: 70px;
  padding: 15px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.routes__track {
  display: flex;
  align-items: center;
  gap: 36px;
  width: max-content;
  animation: ticker 48s linear infinite;
}
.routes__track span {
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
}
.routes__track i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex: none; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 92px 0; }
.section--alt { background: #eceff3; }
.section__cta { margin-top: 44px; text-align: center; }

/* Navy sections */
.section--navy {
  background: var(--navy);
  background-image: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(255, 122, 26, 0.12), transparent);
}
.section--navy .section__title { color: #fff; }
.section--navy .section__lead { color: rgba(255, 255, 255, 0.65); }

/* ---------- Cards (services) ---------- */
.grid { display: grid; gap: 14px; margin-top: 44px; }
.grid--4, .grid--3 { grid-template-columns: 1fr; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card__icon { width: 26px; height: 26px; color: var(--accent); margin-bottom: 18px; }
.card h3 { font-size: 17px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }

/* ---------- Steps (navy section) ---------- */
.steps { margin-top: 48px; display: grid; gap: 36px; position: relative; padding-left: 28px; }
.steps::before {
  content: "";
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--accent), var(--border-navy));
}
.step { position: relative; }
.step::before {
  content: "";
  position: absolute;
  left: -25px; top: 7px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
}
.step__num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.step h3 { font-size: 19px; margin: 6px 0 8px; color: #fff; }
.step p { color: rgba(255, 255, 255, 0.65); max-width: 460px; font-size: 15.5px; }

/* ---------- Geography ---------- */
.geo { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.geo__chip {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  padding: 12px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.geo__chip:hover { transform: translateY(-2px); border-color: var(--accent); }

/* ---------- Reviews ---------- */
.review {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.review:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.review__mark { width: 26px; height: 26px; color: var(--accent); opacity: 0.85; }
.review blockquote { color: var(--text); font-size: 15.5px; line-height: 1.65; }
.review figcaption { margin-top: auto; display: grid; gap: 2px; }
.review__name { font-family: var(--display); font-weight: 800; font-size: 15px; color: var(--navy); }
.review__meta { font-size: 13px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { margin-top: 40px; display: grid; gap: 12px; }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0 24px;
  box-shadow: var(--shadow);
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 17px 36px 17px 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  color: var(--navy);
  position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 500;
  color: var(--accent);
  transition: transform 0.3s ease;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { color: var(--muted); padding-bottom: 22px; font-size: 15px; }

/* ---------- Contacts ---------- */
.contacts { display: grid; gap: 48px; }
.contacts__lead { color: rgba(255, 255, 255, 0.65); max-width: 440px; margin-bottom: 30px; }

.contacts__channels { display: grid; gap: 12px; max-width: 420px; }
.channel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 1px solid var(--border-navy);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.channel:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.3); transform: translateY(-2px); }
.channel .icon { color: var(--accent); }
.channel__handle { margin-left: auto; font-family: var(--body); font-weight: 500; font-size: 13.5px; color: rgba(255, 255, 255, 0.6); }

/* Form */
.form {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: grid;
  gap: 16px;
  box-shadow: var(--shadow-lift);
}
.form__title { font-family: var(--display); font-weight: 800; font-size: 19px; color: var(--navy); margin-bottom: 4px; }
.form__field { display: grid; gap: 8px; }
.form__field span { font-size: 13px; font-weight: 600; color: var(--muted); }
.form__field input,
.form__field textarea {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 15px;
  color: var(--text);
  transition: border-color 0.2s ease, background 0.2s ease;
  resize: vertical;
}
.form__field input::placeholder,
.form__field textarea::placeholder { color: #9aa7b4; }
.form__field input:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}
.form__field input.is-invalid,
.form__field textarea.is-invalid { border-color: #e4574d; }
.form__submit { width: 100%; }
.form__note { font-size: 12.5px; color: var(--muted); text-align: center; }
.form__status { font-size: 13px; color: var(--accent); text-align: center; min-height: 1em; font-weight: 600; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); padding: 56px 0 110px; }
.footer__inner { display: grid; gap: 36px; }
.footer__col { display: grid; gap: 10px; justify-items: start; }
.logo--footer { color: #fff; }
.footer__tag { color: rgba(255, 255, 255, 0.6); font-size: 14px; max-width: 300px; }
.footer__head {
  font-family: var(--display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 4px;
}
.footer__col a { color: rgba(255, 255, 255, 0.75); font-size: 14.5px; transition: color 0.2s ease; }
.footer__col a:hover { color: var(--accent); }
.footer__muted { color: rgba(255, 255, 255, 0.5); font-size: 13.5px; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 90;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(244, 246, 248, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
}
.sticky-cta .btn { width: 100%; }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- A11y ---------- */
a:focus-visible, summary:focus-visible, .btn:focus-visible, .lang__btn:focus-visible,
input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__title .line span { transform: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (min-width: 640px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .header__nav { display: flex; }

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

  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding-left: 0;
    padding-top: 30px;
  }
  .steps::before {
    left: 8px; right: 8px; top: 4px; bottom: auto;
    width: auto; height: 1px;
    background: linear-gradient(90deg, var(--accent), var(--border-navy));
  }
  .step::before { left: 0; top: -30px; }

  .contacts { grid-template-columns: 1fr 0.9fr; gap: 64px; align-items: center; }

  .footer { padding-bottom: 56px; }
  .footer__inner { grid-template-columns: 1.4fr 1fr 1fr; }

  .sticky-cta { display: none; }
  .section { padding: 130px 0; }
  .hero { padding-top: 180px; }
}

/* ============================================================
   ДОПОЛНЕНИЯ: логотип-изображение, выделенная секция услуг,
   лента логотипов площадок
   ============================================================ */

/* ---------- Логотип-изображение в шапке ---------- */
.logo { display: inline-flex; align-items: center; }
.logo__img {
  height: 34px;          /* подстройте под пропорции вашего логотипа */
  width: auto;
  display: block;
}
@media (max-width: 640px) {
  .logo__img { height: 28px; } /* компактнее на мобильных */
}
/* В футере используется отдельный белый вордмарк assets/logo-white.png */

/* ---------- Выделенная секция «Чем мы помогаем» ---------- */
.section--services {
  background:
    radial-gradient(ellipse 60% 55% at 12% 0%, rgba(15, 42, 67, 0.07), transparent),
    radial-gradient(ellipse 65% 60% at 88% 10%, rgba(255, 122, 26, 0.12), transparent),
    linear-gradient(165deg, #e8edf3 0%, #f2f5f8 55%, #f6f2ec 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.card--service { position: relative; overflow: hidden; }
.card--service::after {                      /* тонкая оранжевая линия снизу при наведении */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.card--service:hover::after { transform: scaleX(1); }
.card--service:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }

.card__iconwrap {                            /* иконка в акцентном кружке */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(255, 122, 26, 0.1);
  margin-bottom: 18px;
  transition: background 0.3s ease;
}
.card--service:hover .card__iconwrap { background: var(--accent); }
.card--service:hover .card__icon { color: #fff; }
.card--service .card__icon { margin-bottom: 0; transition: color 0.3s ease; }


/* ---------- Лента логотипов площадок ---------- */
.brands {
  margin-top: 48px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.brands__track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: ticker 46s linear infinite;
  padding: 8px 0;
}
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img {
  height: 26px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.55);       /* ч/б по умолчанию */
  transition: filter 0.3s ease;
}
.brand img:hover { filter: grayscale(0) opacity(1); }  /* цвет при наведении */
@media (max-width: 640px) {
  .brands__track { gap: 40px; }
  .brand img { height: 22px; }
}
