/* =========================================================
   Tsedra — Design System v3
   Format 1:1 → kargul.studio  ·  Light gray theme
   Accent: #F30202  ·  Centered layout · white rounded cards
   ========================================================= */

:root {
  /* Light gray page + white cards (kargul) */
  --bg: #ececec;
  --bg-2: #e6e6e6;
  --card: #ffffff;
  --card-2: #f4f4f4;
  --card-3: #eeeeee;

  /* Ink */
  --ink: #131313;
  --ink-2: #5c5c61;
  --ink-3: #8b8b91;
  --ink-4: #b4b4ba;

  /* Lines */
  --line: rgba(0, 0, 0, 0.08);
  --line-2: rgba(0, 0, 0, 0.12);
  --line-3: rgba(0, 0, 0, 0.2);

  /* Brand red */
  --red: #f30202;
  --red-2: #d10202;
  --red-soft: rgba(243, 2, 2, 0.09);

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --r-xl: 30px;

  --max: 1160px;
  --max-narrow: 900px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow: 0 10px 34px -14px rgba(0, 0, 0, 0.18);
  --shadow-pill: 0 6px 24px -8px rgba(0, 0, 0, 0.16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }
::selection { background: var(--red); color: #fff; }

h1, h2, h3, h4 { font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; }

/* ===== Layout ===== */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 104px 0; position: relative; }
.section-sm { padding: 64px 0; }
.center { text-align: center; }

/* Section header (centered, kargul) */
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.sec-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.02em;
  color: var(--red); text-transform: uppercase; margin-bottom: 16px;
}
.sec-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.sec-title { font-size: clamp(30px, 4.4vw, 50px); }
.sec-sub { color: var(--ink-2); font-size: 18px; margin: 16px auto 0; max-width: 560px; line-height: 1.5; font-weight: 500; }

/* ===== Buttons (pill) ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px;
  font-size: 14.5px; font-weight: 700; border: 1px solid transparent; white-space: nowrap;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px -8px rgba(243,2,2,0.5); }
.btn-primary:hover { background: var(--red-2); transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-1px); }
.btn-light { background: var(--card); color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn-light:hover { border-color: var(--line-3); transform: translateY(-1px); }
.btn-lg { height: 52px; padding: 0 28px; font-size: 15.5px; }

.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-size: 14.5px; font-weight: 700; transition: gap 0.2s, color 0.2s; }
.text-link:hover { gap: 9px; color: var(--red); }
.text-link svg { width: 15px; height: 15px; }

/* ===== Header (floating pill) ===== */
header { position: fixed; top: 18px; left: 0; right: 0; z-index: 200; transition: top 0.3s var(--ease); }
.nav {
  max-width: 1080px; margin: 0 auto; height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px 0 22px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--line-2); box-shadow: var(--shadow-pill);
}
.brand { display: flex; align-items: center; margin-left: 12px; }
.brand img { height: 26px; width: auto; }
.brand.foot img { height: 30px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 8px 13px; border-radius: 999px; transition: color 0.2s, background 0.2s; }
.nav-links a:hover { color: var(--ink); background: rgba(0,0,0,0.05); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px 10px; }
.burger span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.3s var(--ease); }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 190; background: var(--bg);
  padding: 96px 28px 28px; display: flex; flex-direction: column; gap: 2px;
  transform: translateY(-100%); transition: transform 0.4s var(--ease); opacity: 0; visibility: hidden;
}
.mobile-menu.open { transform: none; opacity: 1; visibility: visible; }
.mobile-menu a { font-size: 22px; font-weight: 700; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.mobile-menu .btn { margin-top: 24px; }

/* ===== Hero (centered, kargul) ===== */
.hero { min-height: 94vh; display: flex; align-items: center; padding: 220px 0 88px; text-align: center; }
.hero .wrap { width: 100%; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px 7px 8px; border-radius: 999px; background: var(--card);
  border: 1px solid var(--line-2); box-shadow: var(--shadow-sm);
  font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 30px;
}
.hero-pill b { color: var(--ink); font-weight: 800; }
.hero-pill .tag { font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: var(--red-soft); color: var(--red); }
.hero h1 { font-size: clamp(31px, 4.9vw, 60px); max-width: 940px; margin: 0 auto; letter-spacing: -0.035em; line-height: 1.08; }
.hero h1 .red { color: var(--red); }
.hero p { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); max-width: 640px; margin: 26px auto 40px; font-weight: 500; line-height: 1.6; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-foot { margin-top: 28px; font-size: 13px; color: var(--ink-3); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.hero-foot .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }

/* ===== Work grid ===== */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.work {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); aspect-ratio: 16 / 10;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 24px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.work:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.work.span-7, .work.span-5 { grid-column: auto; }
.work-canvas { position: absolute; inset: 0; z-index: 0; background: var(--card-2); }
.work .tag {
  position: absolute; top: 18px; left: 18px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--red); padding: 6px 11px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line-2); box-shadow: var(--shadow-sm);
}
.work .tag svg { width: 12px; height: 12px; }
.work .ghost-num { position: absolute; inset: 0; z-index: 0; display: grid; place-items: center; font-size: 160px; font-weight: 800; color: rgba(0,0,0,0.05); letter-spacing: -0.05em; }
.work-meta { position: relative; z-index: 2; }
.work-meta .cat { font-size: 11.5px; font-weight: 800; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 7px; }
.work-meta h3 { font-size: 20px; letter-spacing: -0.02em; }
.work-meta p { color: var(--ink-2); font-size: 14px; margin-top: 5px; font-weight: 500; }

/* ===== Logos strip ===== */
.logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.logos .cell {
  height: 84px; display: grid; place-items: center; border-radius: var(--r);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 18px; font-weight: 800; color: var(--ink-4); letter-spacing: -0.02em;
  transition: color 0.25s, transform 0.25s;
}
.logos .cell:hover { color: var(--ink-2); transform: translateY(-2px); }

/* ===== Why cards ===== */
.why-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.why { grid-column: span 2; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: 28px; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.why.wide { grid-column: span 3; }
.why:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.why .ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); margin-bottom: 40px; }
.why .ic svg { width: 22px; height: 22px; }
.why h3 { font-size: 20px; letter-spacing: -0.02em; margin-bottom: 8px; }
.why p { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; font-weight: 500; }

/* ===== Services numbered rows ===== */
.svc-wrap { max-width: 980px; margin: 0 auto; }
.svc { display: grid; grid-template-columns: 56px 1.1fr 1fr; gap: 28px; padding: 34px 0; border-top: 1px solid var(--line-2); align-items: start; }
.svc:last-child { border-bottom: 1px solid var(--line-2); }
.svc .svc-idx { font-size: 14px; font-weight: 800; color: var(--red); padding-top: 8px; }
.svc .svc-main h3 { font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.03em; }
.svc .svc-main .tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.svc .svc-main .tags span { font-size: 12px; font-weight: 700; color: var(--ink-2); padding: 5px 11px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); }
.svc .svc-desc { color: var(--ink-2); font-size: 15.5px; line-height: 1.6; padding-top: 8px; font-weight: 500; }

/* ===== Stats ===== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stats .cell { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 34px 26px; text-align: center; }
.stats .num { font-size: clamp(34px, 4vw, 48px); font-weight: 800; letter-spacing: -0.04em; color: var(--red); }
.stats .lbl { color: var(--ink-2); font-size: 14px; margin-top: 8px; font-weight: 600; line-height: 1.4; }

/* ===== Testimonials ===== */
.reviews { columns: 3; column-gap: 16px; }
.review { break-inside: avoid; margin-bottom: 16px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: 26px; }
.review .co { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.review .co .mark { width: 20px; height: 20px; border-radius: 6px; background: var(--ink); display: inline-block; }
.review p { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; font-weight: 500; }
.review .who { display: flex; align-items: center; gap: 11px; margin-top: 20px; }
.review .ava { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; background: var(--ink); flex-shrink: 0; }
.review .name { font-size: 14px; font-weight: 800; }
.review .role { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }

/* Coming-soon reviews */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review-soon {
  border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); min-height: 180px; padding: 26px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.review-soon:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.review-soon .soon-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; color: var(--red);
  padding: 7px 13px; border-radius: 999px; background: var(--red-soft);
}
.review-soon .soon-badge svg { width: 13px; height: 13px; }
.review-soon p { color: var(--ink-3); font-size: 14.5px; font-weight: 600; }

/* ===== Tools ===== */
.tools-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-sm); padding: 14px; max-width: 900px; margin: 0 auto; }
.tools { display: grid; grid-template-columns: repeat(6, 1fr); }
.tools .cell { height: 78px; display: grid; place-items: center; font-size: 16px; font-weight: 800; color: var(--ink-4); letter-spacing: -0.02em; transition: color 0.25s; border-right: 1px solid var(--line); }
.tools .cell:nth-child(6n) { border-right: 0; }
.tools .cell:hover { color: var(--ink); }

/* ===== Team (centered staggered) ===== */
.team-grid { display: flex; flex-wrap: wrap; gap: 18px 26px; justify-content: center; max-width: 860px; margin: 0 auto; }
.member { width: 150px; text-align: center; }
.member .ph { aspect-ratio: 1; border-radius: 20px; background: var(--card-3); border: 1px solid var(--line); display: grid; place-items: center; font-size: 34px; font-weight: 800; color: var(--ink-4); margin-bottom: 12px; transition: transform 0.3s var(--ease); }
.member:hover .ph { transform: translateY(-3px); }
.member .name { font-size: 15px; font-weight: 800; }
.member .role { font-size: 13px; color: var(--ink-3); font-weight: 600; margin-top: 2px; }

/* ===== FAQ accordion ===== */
.faq-box { max-width: 760px; margin: 0 auto; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); margin-bottom: 12px; overflow: hidden; }
.faq-q { width: 100%; background: none; border: 0; color: var(--ink); text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px; font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em; }
.faq-q .chev { width: 18px; height: 18px; flex-shrink: 0; color: var(--ink-3); transition: transform 0.3s var(--ease), color 0.3s; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); color: var(--red); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-a p { color: var(--ink-2); font-size: 15px; line-height: 1.65; font-weight: 500; padding: 0 24px 24px; }

/* ===== CTA closing ===== */
.cta { text-align: center; max-width: 720px; margin: 0 auto; }
.cta h2 { font-size: clamp(34px, 5.4vw, 66px); letter-spacing: -0.04em; }
.cta p { color: var(--ink-2); font-size: 18px; margin: 18px auto 32px; max-width: 440px; font-weight: 500; }
.cta .hero-cta { justify-content: center; }

/* ===== Footer ===== */
footer { border-top: 1px solid var(--line-2); padding: 60px 0 30px; }
.foot-top { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 44px; }
.foot-brand img { height: 30px; width: auto; margin-bottom: 16px; }
.foot-brand p { color: var(--ink-2); font-size: 14.5px; max-width: 280px; line-height: 1.55; font-weight: 500; }
.foot-social { display: flex; gap: 8px; margin-top: 20px; }
.foot-social a { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line-2); color: var(--ink-2); box-shadow: var(--shadow-sm); transition: color 0.2s, transform 0.2s; }
.foot-social a:hover { color: var(--red); transform: translateY(-2px); }
.foot-social svg { width: 17px; height: 17px; }
.foot-col h4 { font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.foot-col a { display: block; color: var(--ink-2); font-size: 14.5px; padding: 6px 0; font-weight: 600; transition: color 0.2s; }
.foot-col a:hover { color: var(--red); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--line); flex-wrap: wrap; gap: 12px; }
.foot-bottom p { color: var(--ink-3); font-size: 13.5px; font-weight: 600; }
.foot-bottom .legal { display: flex; gap: 20px; }
.foot-bottom .legal a { color: var(--ink-3); font-size: 13.5px; font-weight: 600; transition: color 0.2s; }
.foot-bottom .legal a:hover { color: var(--ink); }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.06s; }
.reveal.d2 { transition-delay: 0.12s; }
.reveal.d3 { transition-delay: 0.18s; }

/* ===== Responsive ===== */
@media (max-width: 940px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .nav-actions .btn.desktop { display: none; }
  .work-grid { grid-template-columns: 1fr; }
  .why { grid-column: span 3; }
  .why.wide { grid-column: span 6; }
  .logos { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .reviews { columns: 2; }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .tools { grid-template-columns: repeat(3, 1fr); }
  .tools .cell:nth-child(6n) { border-right: 1px solid var(--line); }
  .tools .cell:nth-child(3n) { border-right: 0; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: span 2; }
  .svc { grid-template-columns: 40px 1fr; }
  .svc .svc-desc { grid-column: 2; }
}
@media (max-width: 600px) {
  .section { padding: 72px 0; }
  .why, .why.wide { grid-column: span 6; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .reviews { columns: 1; }
  .reviews-grid { grid-template-columns: 1fr; }
  .tools { grid-template-columns: repeat(2, 1fr); }
  .tools .cell:nth-child(3n) { border-right: 1px solid var(--line); }
  .tools .cell:nth-child(2n) { border-right: 0; }
  .hero { padding: 148px 0 60px; }

  /* Мобильная шапка: только логотип + бургер */
  header { padding: 0 14px; }
  .nav { padding: 0 8px 0 14px; height: 56px; }
  .brand { margin-left: 4px; }
  .brand img { height: 22px; }
  .nav-actions .btn { display: none; }

  /* Мобильный подвал: только 3 колонки ссылок */
  .foot-brand, .foot-bottom { display: none; }
  .foot-top { grid-template-columns: repeat(3, 1fr); gap: 12px; padding-bottom: 8px; }
  .foot-col h4 { font-size: 10.5px; margin-bottom: 12px; }
  .foot-col a { font-size: 12.5px; padding: 5px 0; word-break: break-word; }
  footer { padding: 44px 0 40px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
