/* ===== ООО «Синтез Технолоджи» — корпоративный сайт =====
   Стиль: чистый, деловой, с плавными переходами
   Палитра: глубокий чёрный + акцентный синий + холодный белый
   Шрифт: Manrope (через Google Fonts)
*/

:root {
  --c-bg: #ffffff;
  --c-bg-alt: #f4f5f7;
  --c-bg-dark: #0a0e1a;
  --c-surface: #ffffff;
  --c-text: #0a0e1a;
  --c-text-muted: #5b6478;
  --c-text-light: #8b94a8;
  --c-border: #e6e8ed;
  --c-border-dark: #1d2436;
  --c-accent: #2b5cff;
  --c-accent-hover: #1846e0;
  --c-accent-soft: #eaf0ff;
  --c-success: #00a86b;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 2px 8px rgba(10,14,26,.04);
  --shadow-md: 0 12px 32px rgba(10,14,26,.08);
  --shadow-lg: 0 24px 64px rgba(10,14,26,.12);

  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t-fast: .2s;
  --t-base: .35s;
  --t-slow: .6s;

  --container: 1280px;
  --pad: clamp(16px, 4vw, 32px);
  --header-h: 72px;
}

* { box-sizing: border-box; }
*::selection { background: var(--c-accent); color: #fff; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0; padding: 0;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px; line-height: 1.55;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast) var(--ease); }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ===== Типографика ===== */
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 16px; }
h1 { font-size: clamp(36px, 6vw, 76px); letter-spacing: -0.03em; }
h2 { font-size: clamp(28px, 4.5vw, 52px); letter-spacing: -0.025em; }
h3 { font-size: clamp(22px, 2.5vw, 32px); }
h4 { font-size: clamp(18px, 1.8vw, 22px); }
p  { margin: 0 0 16px; color: var(--c-text-muted); font-size: clamp(15px, 1.2vw, 18px); }
.lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.55; color: var(--c-text-muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--c-accent);
  margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--c-accent); }

/* ===== Шапка ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  z-index: 100;
  transition: border-color var(--t-base) var(--ease), background var(--t-base) var(--ease);
}
.header.is-scrolled { border-bottom-color: var(--c-border); }
.header__inner {
  display: flex; align-items: center; gap: 32px;
  height: 100%;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; }
.brand__mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--c-accent), #00d4ff);
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 15px;
  transition: transform var(--t-base) var(--ease);
}
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.05); }
.brand__name { font-size: 15px; }
.brand__name small { display: block; font-size: 11px; font-weight: 500; color: var(--c-text-muted); letter-spacing: 0; }

.nav { display: none; gap: 4px; margin-left: auto; }
.nav a {
  position: relative;
  display: inline-flex; align-items: center;
  height: 40px; padding: 0 14px;
  border-radius: 10px;
  font-size: 14.5px; font-weight: 500;
  color: var(--c-text);
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.nav a:hover { background: var(--c-bg-alt); }
.nav a.is-active { color: var(--c-accent); }
.nav a.is-active::after {
  content: "";
  position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px; background: var(--c-accent);
  border-radius: 2px;
}

.header__cta { display: none; margin-left: 8px; }
.header__menu-btn {
  margin-left: auto;
  width: 44px; height: 44px;
  border: 1px solid var(--c-border); background: #fff;
  border-radius: 10px;
  display: grid; place-items: center;
  transition: all var(--t-fast) var(--ease);
}
.header__menu-btn:hover { background: var(--c-bg-alt); }

@media (min-width: 960px) {
  .nav { display: flex; }
  .header__cta { display: inline-flex; }
  .header__menu-btn { display: none; }
}

/* ===== Off-canvas ===== */
.offcanvas {
  position: fixed; inset: 0;
  background: rgba(10,14,26,.5);
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity var(--t-base) var(--ease);
  z-index: 200;
}
.offcanvas.is-open { opacity: 1; pointer-events: auto; }
.offcanvas__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(360px, 88vw);
  background: #fff;
  padding: 24px;
  display: flex; flex-direction: column; gap: 4px;
  transform: translateX(100%);
  transition: transform var(--t-base) var(--ease-out);
  overflow-y: auto;
}
.offcanvas.is-open .offcanvas__panel { transform: translateX(0); }
.offcanvas__panel a {
  display: flex; align-items: center;
  height: 48px; padding: 0 12px;
  font-weight: 500; font-size: 16px;
  border-radius: 10px;
  transition: background var(--t-fast) var(--ease);
}
.offcanvas__panel a:hover { background: var(--c-bg-alt); }
.offcanvas__close {
  margin-left: auto;
  width: 44px; height: 44px;
  border: 1px solid var(--c-border); background: #fff;
  border-radius: 10px;
  font-size: 22px;
  margin-bottom: 16px;
}

/* ===== Кнопки ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 0; border-radius: 12px;
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--c-text); color: #fff; }
.btn-primary:hover { background: var(--c-accent); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(43,92,255,.25); }
.btn-accent { background: var(--c-accent); color: #fff; }
.btn-accent:hover { background: var(--c-accent-hover); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(43,92,255,.3); }
.btn-ghost { background: transparent; color: var(--c-text); border: 1px solid var(--c-border); }
.btn-ghost:hover { background: var(--c-bg-alt); border-color: var(--c-text); }
.btn-light { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px); }
.btn-light:hover { background: rgba(255,255,255,.2); transform: translateY(-1px); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 16px; border-radius: 14px; }
.btn .arrow { transition: transform var(--t-fast) var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + 80px);
  padding-bottom: 80px;
  overflow: hidden;
  background:
    radial-gradient(1000px 600px at 90% -10%, rgba(43,92,255,.08), transparent 60%),
    radial-gradient(800px 500px at -10% 20%, rgba(0,212,255,.06), transparent 60%),
    var(--c-bg);
}
.hero h1 { max-width: 14ch; }
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--c-accent), #00d4ff);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.hero .lead { max-width: 580px; margin-top: 20px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.hero__stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px; margin-top: 80px;
  padding-top: 40px; border-top: 1px solid var(--c-border);
}
.stat__value { font-size: clamp(32px, 4vw, 48px); font-weight: 700; letter-spacing: -0.03em; }
.stat__label { color: var(--c-text-muted); font-size: 14px; margin-top: 4px; }

/* ===== Секции ===== */
.section { padding: clamp(64px, 10vw, 120px) 0; position: relative; }
.section--dark { background: var(--c-bg-dark); color: #fff; }
.section--dark p { color: var(--c-text-light); }
.section--dark .eyebrow { color: #00d4ff; }
.section--dark .eyebrow::before { background: #00d4ff; }
.section--alt { background: var(--c-bg-alt); }
.section__head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 32px; margin-bottom: 56px; flex-wrap: wrap;
}
.section__head h2 { max-width: 16ch; }
.section__head p { max-width: 460px; }
.section__head-link { font-weight: 600; color: var(--c-accent); display: inline-flex; align-items: center; gap: 6px; }
.section__head-link:hover { gap: 10px; }

/* ===== Услуги (карточки) ===== */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.service-card {
  position: relative;
  padding: 32px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  transition: all var(--t-base) var(--ease);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.service-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(43,92,255,.04), transparent 50%);
  opacity: 0;
  transition: opacity var(--t-base) var(--ease);
  pointer-events: none;
}
.service-card:hover { transform: translateY(-6px); border-color: var(--c-accent); box-shadow: var(--shadow-md); }
.service-card:hover::before { opacity: 1; }
.service-card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--c-accent-soft); color: var(--c-accent);
  display: grid; place-items: center;
  margin-bottom: 24px;
  font-size: 24px;
  transition: all var(--t-base) var(--ease);
}
.service-card:hover .service-card__icon { background: var(--c-accent); color: #fff; transform: scale(1.08); }
.service-card h3 { margin-bottom: 12px; }
.service-card ul { list-style: none; padding: 0; margin: 16px 0 0; font-size: 14px; }
.service-card ul li {
  padding: 8px 0;
  border-top: 1px solid var(--c-border);
  display: flex; align-items: center; gap: 10px;
  color: var(--c-text-muted);
}
.service-card ul li::before {
  content: ""; width: 4px; height: 4px;
  background: var(--c-accent); border-radius: 50%;
}

/* ===== Стек технологий ===== */
.tech-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.tech-pill {
  padding: 18px 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  text-align: center;
  font-weight: 600; font-size: 14px;
  transition: all var(--t-fast) var(--ease);
}
.section--dark .tech-pill { color: #fff; }
.tech-pill:hover { background: rgba(255,255,255,.08); border-color: rgba(0,212,255,.5); transform: translateY(-2px); }
.tech-pill small { display: block; font-size: 11px; font-weight: 500; color: var(--c-text-light); margin-top: 2px; }

/* ===== Преимущества ===== */
.feats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}
.feat__num {
  font-size: 14px; font-weight: 600; color: var(--c-accent);
  margin-bottom: 12px;
}
.feat h4 { margin-bottom: 10px; }
.feat p { font-size: 15px; }

/* ===== Кейсы / портфолио ===== */
.cases {
  display: grid; grid-template-columns: 1fr; gap: 24px;
}
@media (min-width: 768px) { .cases { grid-template-columns: 1fr 1fr; } }
.case {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--c-bg-alt);
  aspect-ratio: 4/3;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 32px;
  cursor: pointer;
  transition: transform var(--t-base) var(--ease);
  isolation: isolate;
  color: #fff;
}
.case::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-size: cover; background-position: center;
  transition: transform var(--t-slow) var(--ease);
}
.case::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(10,14,26,.85) 0%, rgba(10,14,26,.2) 60%, transparent 100%);
}
.case:hover { transform: translateY(-4px); }
.case:hover::before { transform: scale(1.06); }
.case--placeholder {
  background: linear-gradient(135deg, #f0f3fa, #e6ebf5);
  color: var(--c-text);
  border: 2px dashed var(--c-border);
}
.case--placeholder::after { display: none; }
.case--1::before { background-image: linear-gradient(135deg, #2b5cff, #00d4ff); }
.case--2::before { background-image: linear-gradient(135deg, #0a0e1a, #2b5cff); }
.case--3::before { background-image: linear-gradient(135deg, #00a86b, #2b5cff); }
.case--4::before { background-image: linear-gradient(135deg, #ff6b6b, #f06595); }
.case__tag {
  display: inline-flex; align-items: center;
  padding: 6px 12px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
  backdrop-filter: blur(8px);
  margin-bottom: 14px;
  text-transform: uppercase; letter-spacing: 0.08em;
  align-self: flex-start;
}
.case--placeholder .case__tag { background: rgba(43,92,255,.1); border-color: rgba(43,92,255,.2); color: var(--c-accent); }
.case__title { font-size: clamp(22px, 2vw, 28px); font-weight: 700; margin: 0 0 8px; letter-spacing: -0.02em; }
.case__meta { font-size: 14px; opacity: 0.8; }
.case__placeholder-note {
  display: flex; align-items: center; gap: 10px;
  color: var(--c-accent); font-weight: 600; font-size: 14px;
  margin-top: 12px;
}

/* ===== Команда ===== */
.team-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.member {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--t-base) var(--ease);
  display: flex; flex-direction: column; align-items: flex-start;
}
.member:hover { transform: translateY(-4px); border-color: var(--c-accent); box-shadow: var(--shadow-md); }
.member__avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-accent), #00d4ff);
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 22px;
  margin-bottom: 16px;
  transition: transform var(--t-base) var(--ease);
}
.member:hover .member__avatar { transform: scale(1.06); }
.member__name { font-weight: 700; font-size: 18px; margin-bottom: 2px; }
.member__role { color: var(--c-accent); font-size: 13px; font-weight: 600; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.member__bio { color: var(--c-text-muted); font-size: 14px; line-height: 1.55; margin-bottom: 16px; }
.member__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.member__tags span {
  font-size: 12px; padding: 4px 10px;
  background: var(--c-bg-alt); border-radius: 999px;
  color: var(--c-text-muted); font-weight: 500;
}

/* ===== Контакты, форма ===== */
.contact-grid {
  display: grid; grid-template-columns: 1fr; gap: 32px;
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.1fr 1fr; } }
.contact-info dl { display: grid; gap: 20px; margin: 32px 0; }
.contact-info dt { color: var(--c-text-muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.contact-info dd { margin: 0; font-size: 18px; font-weight: 500; }
.contact-info a { border-bottom: 1px dashed transparent; transition: border-color var(--t-fast) var(--ease); }
.contact-info a:hover { color: var(--c-accent); border-bottom-color: var(--c-accent); }

.form {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 40px);
}
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--c-text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.form-row input, .form-row textarea {
  width: 100%; padding: 14px 18px;
  border: 1.5px solid var(--c-border);
  border-radius: 12px;
  background: #fff;
  font-size: 15px; color: var(--c-text);
  transition: all var(--t-fast) var(--ease);
}
.form-row input:focus, .form-row textarea:focus {
  outline: 0;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 4px rgba(43,92,255,.12);
}
.form-row textarea { resize: vertical; min-height: 120px; }
.form-check { display: flex; align-items: flex-start; gap: 12px; font-size: 13px; color: var(--c-text-muted); margin-bottom: 20px; }
.form-check input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--c-accent); }

/* ===== Page hero (внутренние страницы) ===== */
.page-hero {
  padding-top: calc(var(--header-h) + 80px);
  padding-bottom: 60px;
}
.page-hero h1 { font-size: clamp(36px, 5.5vw, 64px); }
.page-hero .lead { max-width: 640px; margin-top: 16px; }
.breadcrumbs { font-size: 13px; color: var(--c-text-muted); margin-bottom: 24px; }
.breadcrumbs a { color: var(--c-text-muted); }
.breadcrumbs a:hover { color: var(--c-accent); }
.breadcrumbs span { margin: 0 8px; }

/* ===== Footer ===== */
.footer {
  background: var(--c-bg-dark);
  color: #cbd2dd;
  padding: 64px 0 32px;
}
.footer a { color: #fff; }
.footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}
.footer .brand__name { color: #fff; }
.footer .brand__name small { color: var(--c-text-light); }
.footer h5 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { padding: 6px 0; }
.footer li a { color: #cbd2dd; font-size: 14px; transition: color var(--t-fast) var(--ease); }
.footer li a:hover { color: var(--c-accent); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 48px; padding-top: 24px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 13px; color: var(--c-text-light);
}

/* ===== Анимация появления (scroll-reveal) ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .4s; }

/* ===== Утилиты ===== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.divider { height: 1px; background: var(--c-border); margin: 80px 0; }
.section--dark .divider { background: rgba(255,255,255,.1); }

/* Marquee — бесконечная лента (например логотипы клиентов / тех. стек) */
.marquee {
  overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track {
  display: flex; gap: 48px;
  animation: marquee 40s linear infinite;
  width: max-content;
  padding: 8px 0;
}
.marquee__item {
  font-size: 22px; font-weight: 600; color: var(--c-text-muted);
  white-space: nowrap;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* CTA-блок */
.cta-block {
  background: var(--c-bg-dark);
  color: #fff;
  padding: clamp(40px, 6vw, 80px);
  border-radius: var(--radius-xl);
  display: flex; flex-direction: column; gap: 24px;
  align-items: flex-start;
  position: relative; overflow: hidden;
}
.cta-block::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(800px 400px at 100% 100%, rgba(43,92,255,.4), transparent 60%);
  pointer-events: none;
}
.cta-block h2 { color: #fff; max-width: 16ch; }
.cta-block p { color: var(--c-text-light); max-width: 520px; }
.cta-block .btn { z-index: 1; }

/* Mobile-only padding */
@media (max-width: 600px) {
  .hero { padding-top: calc(var(--header-h) + 48px); padding-bottom: 56px; }
  .section { padding: 56px 0; }
}
