html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden; /* убираем горизонтальный скролл */
}

*, *::before, *::after { box-sizing: border-box; }
:root {
  --bg: #fafafa;
  --paper: #ffffff;
  --ink: #0a0a0a;
  --muted: #6b7280; /* neutral-500 */
  --line: #e5e7eb;  /* neutral-200 */
  --accent: #0f447a; /* blue-600 */
  --accent-2: #0f172a; /* slate-900 */
  --ok: #059669; /* emerald-600 */
  --radius: 16px;
  --shadow-sm: 0 4px 16px rgba(0,0,0,.06);
  --shadow-md: 0 10px 30px rgba(0,0,0,.08);
  
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: linear-gradient(to bottom, #f6f7fb, var(--bg)); color: var(--ink); font: 16px/1.6 'Montserrat', sans-serif; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* NAV */
.nav-wrap { position: fixed; inset: 0 auto auto 0; right: 0; height: 72px; z-index: 40; }
nav { margin: 12px auto 0; border: 1px solid var(--line); background: rgba(255,255,255,.85); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 16px; box-shadow: var(--shadow-sm); }
.nav-links a { padding: 8px 10px; border-radius: 10px; color: #374151; }
.nav-links a:hover { background: #f3f4f6; }
.chip { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: #374151; border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; background: rgba(255,255,255,.7); box-shadow: var(--shadow-sm); }
.btn { display:inline-flex; align-items:center; gap:10px; padding:12px 18px; border-radius: 12px; border:1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); font-weight: 600; }
.btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn.secondary { background: #fff; color: #0f447a; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.socials {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
  margin-right: 15px;
}

.socials img {
  width: 34px;
  height: 34px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.socials img:hover {
  transform: scale(1.1);
}

.divider {
  width: 1.4px;
  height: 50px;
  background-color: #d1d5db; /* нейтральный серый цвет */
  opacity: 0.7;
}
/* HERO */
.hero { position: relative; margin-top: 96px; }
.panel { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(to bottom, #fff, #f5f7fb); padding: 64px 28px; box-shadow: var(--shadow-sm); }
.eyebrow { display:inline-flex; gap:8px; align-items:center; border:1px solid var(--line); background: rgba(255,255,255,.7); padding: 6px 10px; border-radius: 999px; color:#374151; font-size: 12px; box-shadow: var(--shadow-sm); }
.title { font-size: clamp(36px, 6vw, 64px); font-weight: 900; line-height: 1.05; margin: 12px 0 8px; background: linear-gradient(90deg, var(--accent-2), var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: gradient 12s linear infinite; }
.subtitle { max-width: 820px; color: #374151; font-size: 20px; }
.metrics { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; margin-top: 32px; }
.metric .value { font-size: clamp(24px, 4vw, 40px); font-weight: 700; }
.metric .label { color: var(--muted); font-size: 14px; }
.actions { display:flex; flex-wrap: wrap; gap:12px; margin-top: 24px; }

.spotlight { pointer-events: none; position:absolute; inset:0; background: radial-gradient(700px circle at var(--mx,50%) var(--my,50%), rgba(37,99,235,.08), transparent 40%); }

/* GRID / CARDS */
.section { padding: 80px 0; }
.h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; margin: 0; }
.grid { display:grid; gap:16px; }
@media(min-width:768px){ .grid.cols-2 { grid-template-columns: repeat(2,1fr);} }
@media(min-width:1024px){ .grid.cols-3 { grid-template-columns: repeat(3,1fr);} .grid.cols-4 { grid-template-columns: repeat(4,1fr);} }
.card { position:relative; overflow:hidden; border:1px solid var(--line); background: var(--paper); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card .icon { display:inline-flex; align-items:center; justify-content:center; width: 38px; height: 38px; border:1px solid var(--line); border-radius: 14px; background:#f8fafc; font-size:18px; }
.chips { display:flex; flex-wrap: wrap; gap:8px; margin-top: 12px; }
.badge { font-size: 12px; color:#374151; background:#f3f4f6; border:1px solid var(--line); border-radius: 999px; padding: 6px 10px; }

/* CASCADE */
.panel-soft { border:1px solid var(--line); border-radius: 24px; background: radial-gradient(90rem 40rem at top left, rgba(15,23,42,.04), transparent 60%), #fff; padding: 36px; box-shadow: var(--shadow-sm); }
.step { border:1px solid var(--line); border-radius: 18px; background:#fff; padding: 16px; box-shadow: var(--shadow-sm); }
.step .h { color: var(--muted); font-size: 14px; margin-bottom: 6px; }

/* CLIENTS MARQUEE */
/* Только для блока клиентов */
.clients-section .clients-marquee {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.clients-section .clients-track {
  display: inline-block;
  white-space: nowrap;
  will-change: transform;
  padding: 12px 0;
  animation: clients-marquee 30s linear infinite;
}

@keyframes clients-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.clients-section .client-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  height: 60px;
  margin: 0 24px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.clients-section .client-logo img {
  display: block;
  height: 40px;
  width: auto;
  object-fit: contain;
  vertical-align: middle;
}

/* CASES */
.kpi { display:flex; align-items:center; gap:8px; color:#047857; font-weight:600; font-size:14px; }

/* CONTACT */
.form { display:grid; gap:12px; }
.input, .textarea { width:100%; border:1px solid var(--line); border-radius: 12px; padding: 12px 14px; background:#fff; font: inherit; }
.textarea { min-height: 120px; resize: vertical; }

/* FOOTER */
footer { border-top: 1px solid #e5e7eb; padding: 28px 0; color: var(--muted); }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ANIMS */
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes gradient { 0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } }
.burger-menu {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
}

@media (max-width: 768px) {
  .burger-menu {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1001;
    top: 50%;
    transform: translateY(-50%);
    color: #0f447a;
  }
	.hero .btn.primary { display: none; }

  .nav-links,
  .socials,
  #lang-toggle,
  nav .btn.primary {
    display: none !important;
  }
}
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 12px;
  background: white;
  padding: 20px;
  position: absolute;
  top: 70px;
  right: 0;
  left: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.mobile-menu a {
  font-size: 18px;
  text-decoration: none;
  color: #333;
}
.mobile-socials {
  display: flex;
  flex-direction: row; /* ставит иконки в линию, а не в столбик */
  justify-content: flex-start; /* по центру по горизонтали */
  align-items: center; /* по центру по вертикали */
  gap: 14px; /* расстояние между иконками */
  margin-top: 10px;
}
.mobile-socials a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-socials img {
  height: 32px;
  width: 32px;
  display: block;
  object-fit: contain;
  max-width: 100%;
}
/* === Псевдо-placeholder + красная * внутри поля === */
.input-wrap { position: relative; width: 100%; }

/* скрываем нативный placeholder — рисуем свой */
.input-wrap .input::placeholder { color: transparent !important; }

/* серый текст placeholder из data-placeholder */
.input-wrap::before {
  content: attr(data-placeholder);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  font: inherit;
  line-height: 1;
  z-index: 2;               /* поверх инпута */
}

/* красная * сразу после текста placeholder (JS задаёт ширину в --phw) */
.input-wrap[data-required="true"]::after {
  content: "*";
  position: absolute;
  left: calc(14px + var(--phw, 0px) + 4px);
  top: 50%;
  transform: translateY(-50%);
  color: #dc2626;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  z-index: 2;               /* поверх инпута */
}

/* чтобы псевдо-текст не мешал вводу: прячем его при фокусе и когда есть значение */
.input-wrap:focus-within::before,
.input-wrap:focus-within::after,
.input-wrap[data-has-value="true"]::before,
.input-wrap[data-has-value="true"]::after { display: none; }

/* сам инпут — под псевдо-placeholder */
.input-wrap .input { position: relative; z-index: 1; }
/* HERO: двухколоночный макет с формой справа */
#hero-panel {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}

.hero-form {
  padding: 20px;
}

.hero-form .form .input,
.hero-form .form .textarea {
  width: 100%;
}

.hero-form .answer {
  min-height: 18px;
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.carousel-3d {
	position: relative;
	width: 100%;             /* контейнер на всю ширину страницы */
	max-width: 800px;       /* можно регулировать, 1400–1600 самое то */
	margin: 0 auto;          /* центрируем */
	padding: 30px 100px;     /* увеличиваем внутренние отступы по бокам */
	perspective: 1200px;     /* больше глубины для 3D */
	display: flex;
	flex-direction: column;
	align-items: center;
	overflow: visible;       /* ВАЖНО — разрешаем стрелкам выходить за края */
	box-sizing: border-box;
}


.carousel-3d {
	transform: scale(1.2); /* увеличивает всё на 20% */
	transform-origin: center top; /* точка масштабирования */
}
.carousel-3d > * {
	flex: 0 0 auto;
}

.carousel-3d figure {
	margin: 0;
	width: 100%;
	transform-style: preserve-3d;
	transition: transform 0.5s;

}

.carousel-3d figure img,
.carousel-3d figure div {
	width: 100%;
	box-sizing: border-box;
	padding: 0;
}

.carousel-3d figure img {
	user-select: none;
}
.carousel-3d figure img {
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.30);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.carousel-3d figure img:hover {
  box-shadow: 0 12px 24px rgba(0,0,0,0.45);
  transform: scale(1.03);
}


.carousel-3d figure div:not(:first-of-type),
.carousel-3d figure img:not(:first-of-type) {
	position: absolute;
	left: 0;
	top: 0;
}

/* Кнопки-стрелки */
.carousel-3d .nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background-color: rgba(0, 0, 0, 0.5);
	color: #fff;
	font-size: 24px;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.3s ease, transform 0.3s ease;
	z-index: 10;
	user-select: none;
}

.carousel-3d .nav:hover {
	background-color: rgba(0, 0, 0, 0.8);
	transform: translateY(-50%) scale(1.1);
}

.carousel-3d .prev {
	left: 0px;
}

.carousel-3d .next {
	right: 0px;
}

/* Для адаптивности */
@media (max-width: 768px) {
	.carousel-3d figure {
		width: 80%;
	}
	.carousel-3d .nav {
		width: 40px;
		height: 40px;
		font-size: 20px;
	}
}

/* Мобилка: форма уходит под текст, на всю ширину */
@media (max-width: 900px) {
  #hero-panel { grid-template-columns: 1fr; }
  .hero-form { order: 2; }
}
/* 1) Ничего не режем у карточки формы на мобилке */
.form, .lead-form, .contact-form, .form-card, #contact, #lead {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  position: static !important;
}

/* 2) Кнопка и её контейнер: нормальный поток и видимы */
.form .actions,
.lead-form .actions,
.contact-form .actions {
  position: static !important;   /* НЕ absolute/relative-bottom */
  display: block !important;
  margin-top: 12px;
  z-index: 1;
}

/* 3) Сама кнопка — видна и доступна */
.form button[type="submit"],
.lead-form button[type="submit"],
.contact-form button[type="submit"],
button.submit, .btn-submit {
  display: inline-flex !important;
  width: 100%;
}

/* 4) Сетки полей на мобилке — в колонку, чтобы кнопка не уезжала вправо */
@media (max-width: 768px) {
  .form .fields,
  .lead-form .fields,
  .contact-form .fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* запас снизу, если была абсолютная кнопка */
  .form, .lead-form, .contact-form, .form-card {
    padding-bottom: 20px;
  }
}

/* 5) На всякий: ничего не прячем медиазапросами */
@media (max-width: 768px) {
  .form .actions,
  .lead-form .actions,
  .contact-form .actions,
  .form button[type="submit"],
  .lead-form button[type="submit"],
  .contact-form button[type="submit"],
  button.submit, .btn-submit {
    visibility: visible !important;
    opacity: 1 !important;
  }
}