/* ==========================================================================
   Poly Tech Group — основной CSS (дизайн-система)
   ========================================================================== */

:root {
  /* Цвета */
  --color-primary: #1e40af;
  --color-primary-dark: #1e3a8a;
  --color-primary-light: #3b82f6;
  --color-primary-lighter: #60a5fa;
  --color-primary-50: #eff6ff;
  --color-primary-100: #dbeafe;
  --color-primary-200: #bfdbfe;
  --color-primary-900: #0f1e52;

  --color-accent: #dc2626;
  --color-accent-dark: #b91c1c;
  --color-accent-light: #ef4444;
  --color-accent-50: #fef2f2;
  --color-accent-100: #fee2e2;

  --color-text: #0f172a;
  --color-text-muted: #475569;
  --color-text-soft: #64748b;
  --color-text-light: #94a3b8;
  --color-border: #e2e8f0;
  --color-border-soft: #f1f5f9;
  --color-bg: #ffffff;
  --color-bg-soft: #f8fafc;
  --color-bg-muted: #f1f5f9;
  --color-bg-dark: #0f172a;
  --color-bg-darker: #020617;

  /* Градиенты */
  --gradient-primary: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  --gradient-primary-soft: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  --gradient-accent: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  --gradient-hero: radial-gradient(ellipse at top left, rgba(59, 130, 246, 0.2) 0%, transparent 55%),
                   radial-gradient(ellipse at bottom right, rgba(220, 38, 38, 0.12) 0%, transparent 55%),
                   linear-gradient(180deg, #0f1e52 0%, #1e3a8a 50%, #1e40af 100%);
  --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  --gradient-mesh:
    radial-gradient(at 20% 30%, rgba(59, 130, 246, 0.15) 0%, transparent 40%),
    radial-gradient(at 80% 20%, rgba(220, 38, 38, 0.08) 0%, transparent 40%),
    radial-gradient(at 50% 80%, rgba(96, 165, 250, 0.1) 0%, transparent 50%);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --container-max: 1280px;
  --container-padding: 24px;
  --header-height: 92px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.08), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
  --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
  --shadow-primary: 0 10px 30px -8px rgba(30, 64, 175, 0.35);
  --shadow-accent: 0 10px 30px -8px rgba(220, 38, 38, 0.35);

  --transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--color-primary-dark); }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.75em;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-text);
}
h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.625rem, 3.2vw, 2.5rem); font-weight: 700; letter-spacing: -0.03em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--color-text-muted); }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: 0.4em; color: var(--color-text-muted); }
strong { color: var(--color-text); font-weight: 600; }
::selection { background: var(--color-primary); color: #fff; }

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

section { padding: 5rem 0; position: relative; }
section.section--sm { padding: 3rem 0; }
section.section--lg { padding: 7rem 0; }

.section--muted { background: var(--color-bg-soft); position: relative; }
.section--muted::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  opacity: 0.5;
  pointer-events: none;
}
.section--muted > .container { position: relative; z-index: 1; }

.section--dark {
  background: var(--gradient-dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.section--dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  opacity: 0.5;
  pointer-events: none;
}
.section--dark > .container { position: relative; z-index: 1; }
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: #fff; }
.section--dark p { color: rgba(255, 255, 255, 0.75); }

/* Eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--color-primary-50);
  color: var(--color-primary-dark);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-primary-100);
  margin-bottom: 1.5rem;
}
.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.15);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.15); }
  50% { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0.08); }
}
.eyebrow--light {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
}

.section-title { text-align: center; max-width: 760px; margin: 0 auto 3.5rem; }
.section-title .eyebrow { margin-bottom: 1.25rem; }
.section-title h2 { margin-bottom: 1rem; }
.section-title p { font-size: 1.1rem; color: var(--color-text-muted); margin: 0; line-height: 1.6; }

.red { color: var(--color-accent); }
.primary { color: var(--color-primary); }

.hl {
  position: relative;
  display: inline-block;
  color: var(--color-primary);
  white-space: nowrap;
}
.hl::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: 0.08em;
  height: 0.22em;
  background: var(--color-accent);
  opacity: 0.3;
  border-radius: 4px;
  z-index: -1;
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.2), transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s;
}
.btn:hover::before { transform: translateX(100%); }

.btn--primary { background: var(--gradient-primary); color: #fff; box-shadow: var(--shadow-primary); }
.btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 32px -10px rgba(30, 64, 175, 0.5); }

.btn--accent { background: var(--gradient-accent); color: #fff; box-shadow: var(--shadow-accent); }
.btn--accent:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 32px -10px rgba(220, 38, 38, 0.5); }

.btn--ghost { background: transparent; color: var(--color-text); border-color: var(--color-border); }
.btn--ghost:hover { color: var(--color-primary); border-color: var(--color-primary); background: var(--color-primary-50); }

.btn--light {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
}
.btn--light:hover { background: rgba(255, 255, 255, 0.95); color: var(--color-primary-dark); border-color: #fff; transform: translateY(-2px); }

.btn--white { background: #fff; color: var(--color-primary-dark); }
.btn--white:hover { color: var(--color-primary); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn--lg { padding: 1.1rem 2.25rem; font-size: 1rem; }
.btn--sm { padding: 0.625rem 1.25rem; font-size: 0.875rem; }
.btn--block { width: 100%; display: flex; }

.btn svg { width: 1.1em; height: 1.1em; transition: transform var(--transition); }
.btn:hover svg { transform: translateX(3px); }

/* Шапка */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  transition: all var(--transition);
}
.site-header.is-scrolled { background: rgba(255, 255, 255, 0.95); box-shadow: var(--shadow-sm); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: var(--header-height);
}

.site-header__logo { display: flex; align-items: center; flex-shrink: 0; }
.site-header__logo img { height: 56px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 0.25rem; flex: 1; }
.site-nav > a,
.site-nav__item > a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.625rem 0.9rem;
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
}
.site-nav > a:hover,
.site-nav__item > a:hover { color: var(--color-primary); background: var(--color-primary-50); }

.site-nav__item { position: relative; }
.site-nav__item--has-dropdown > a::after {
  content: '';
  width: 7px; height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 0.15rem;
  transition: transform var(--transition);
}
.site-nav__item--has-dropdown:hover > a::after { transform: rotate(225deg) translateY(2px); }

.site-nav__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 280px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.6rem;
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
}
.site-nav__item:hover > .site-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.site-nav__dropdown a {
  display: block;
  padding: 0.625rem 0.9rem;
  font-size: 0.925rem;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.site-nav__dropdown a:hover { background: var(--color-primary-50); color: var(--color-primary); padding-left: 1.1rem; }

.site-header__cta { margin-left: auto; flex-shrink: 0; }

.site-header__burger {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-left: auto;
  position: relative;
}
.site-header__burger span,
.site-header__burger span::before,
.site-header__burger span::after {
  display: block;
  position: absolute;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition);
}
.site-header__burger span { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.site-header__burger span::before { content: ''; top: -7px; left: 0; }
.site-header__burger span::after { content: ''; top: 7px; left: 0; }
.site-header__burger.is-open span { background: transparent; }
.site-header__burger.is-open span::before { top: 0; transform: rotate(45deg); }
.site-header__burger.is-open span::after { top: 0; transform: rotate(-45deg); }

/* Мобильное меню */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0; right: 0;
  max-height: calc(100vh - var(--header-height));
  background: #fff;
  padding: 1.25rem;
  z-index: 99;
  overflow-y: auto;
  border-top: 1px solid var(--color-border);
  box-shadow: var(--shadow-xl);
}
.mobile-menu.is-open { display: block; }
.mobile-menu a {
  display: block;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.mobile-menu a:hover { background: var(--color-primary-50); color: var(--color-primary); }
.mobile-menu__group-label {
  padding: 1.25rem 1rem 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-light);
  font-weight: 600;
}
.mobile-menu__sub a { padding-left: 1.75rem; color: var(--color-text-muted); }
.mobile-menu .btn { margin-top: 1rem; }

/* Подвал */
.site-footer {
  background: var(--gradient-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 5rem 0 2rem;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary-light), transparent);
}
.site-footer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  opacity: 0.4;
  pointer-events: none;
}
.site-footer > .container { position: relative; z-index: 1; }

.site-footer__main {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr 1.3fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.site-footer__brand p { color: rgba(255, 255, 255, 0.6); margin: 1rem 0 0; font-size: 0.925rem; line-height: 1.65; }
.site-footer__logo img { height: 44px; }

.site-footer__col h4 {
  color: #fff;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 1.25rem;
  font-weight: 700;
}
.site-footer__col ul { list-style: none; padding: 0; margin: 0; }
.site-footer__col li { margin-bottom: 0.6rem; }
.site-footer__col a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.925rem;
  transition: all var(--transition);
}
.site-footer__col a:hover { color: #fff; padding-left: 6px; }

.site-footer__contact-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.925rem;
  line-height: 1.55;
}
.site-footer__contact-item svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 0.15rem; color: var(--color-primary-lighter); }
.site-footer__contact-item a { color: rgba(255, 255, 255, 0.85); font-weight: 500; }
.site-footer__contact-item a:hover { color: #fff; }

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}
.site-footer__bottom a { color: rgba(255, 255, 255, 0.6); margin-left: 1.5rem; }
.site-footer__bottom a:first-of-type { margin-left: 0; }
.site-footer__bottom a:hover { color: #fff; }

/* Sticky CTA */
.sticky-cta {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 90;
  opacity: 0;
  transform: translateY(60px);
  transition: all 350ms cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}
.sticky-cta.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.sticky-cta .btn { box-shadow: 0 14px 40px -8px rgba(220, 38, 38, 0.5); padding: 1rem 1.75rem; }

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease-out, transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Page header */
.page-header {
  background: var(--gradient-dark);
  color: #fff;
  padding: 4.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  opacity: 0.8;
  pointer-events: none;
}
.page-header::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.page-header > .container { position: relative; z-index: 1; }

.page-header__breadcrumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.25rem;
}
.page-header__breadcrumbs a { color: rgba(255, 255, 255, 0.75); }
.page-header__breadcrumbs a:hover { color: #fff; }
.page-header__breadcrumbs .sep { color: rgba(255, 255, 255, 0.35); }

.page-header h1 { color: #fff; margin-bottom: 1rem; max-width: 840px; margin-left: auto; margin-right: auto; }
.page-header p { color: rgba(255, 255, 255, 0.75); font-size: 1.125rem; max-width: 720px; margin: 0 auto; line-height: 1.6; }

/* CTA-баннер */
.cta-banner {
  background: var(--gradient-primary);
  padding: 3.5rem 3rem;
  border-radius: var(--radius-xl);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(30, 64, 175, 0.4);
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 100%, rgba(255, 255, 255, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 90% 0%, rgba(220, 38, 38, 0.2) 0%, transparent 40%);
  pointer-events: none;
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { color: #fff; margin-bottom: 0.75rem; }
.cta-banner p { color: rgba(255, 255, 255, 0.85); font-size: 1.1rem; max-width: 620px; margin: 0 auto 2rem; }
.cta-banner__buttons { display: flex; gap: 0.875rem; justify-content: center; flex-wrap: wrap; }

/* Адаптив */
@media (max-width: 1024px) {
  .site-footer__main { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  :root { --header-height: 76px; }
  .site-header__logo img { height: 44px; }
  .site-nav { display: none; }
  .site-header__cta { display: none; }
  .site-header__burger { display: block; }
  .site-header__inner { gap: 1rem; }

  section { padding: 3.5rem 0; }
  section.section--lg { padding: 5rem 0; }

  .page-header { padding: 2.5rem 0 2.5rem; }

  .cta-banner { padding: 2.5rem 1.5rem; border-radius: var(--radius-lg); }
  .cta-banner p { font-size: 1rem; }

  .site-footer__main { grid-template-columns: 1fr; gap: 2rem; padding-bottom: 2rem; }
  .site-footer { padding: 3.5rem 0 2rem; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; text-align: left; }
  .site-footer__bottom a { margin-left: 0; margin-right: 1rem; }

  .sticky-cta { bottom: 0.75rem; right: 0.75rem; }
  .sticky-cta .btn { padding: 0.75rem 1.25rem; font-size: 0.875rem; }
}

@media (max-width: 480px) {
  :root { --container-padding: 16px; }
  h1 { font-size: clamp(1.625rem, 7vw, 2.25rem); }
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-2 { margin-top: 1rem; }

/* ─── Consent checkboxes ─── */
.consent-checks { display: flex; flex-direction: column; gap: 8px; margin: 1rem 0 0.5rem; }
.consent-label { display: flex; align-items: flex-start; gap: 8px; font-size: 0.875rem; color: var(--color-slate-700, #374151); line-height: 1.5; cursor: pointer; }
.consent-label input[type="checkbox"] { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; accent-color: var(--color-primary, #1e40af); cursor: pointer; }
.consent-label a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.consent-label a:hover { color: var(--color-primary, #1e40af); }

/* ─── Cookie banner ─── */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: #111827; color: rgba(255,255,255,0.82); font-size: 0.8rem; line-height: 1.55; padding: 14px 24px; display: flex; align-items: center; gap: 20px; z-index: 9999; box-shadow: 0 -2px 12px rgba(0,0,0,0.25); }
.cookie-banner p { margin: 0; flex: 1; }
.cookie-banner__btn { flex-shrink: 0; background: var(--color-primary, #1e40af); color: #fff; border: none; border-radius: 6px; padding: 8px 20px; font-size: 0.82rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: opacity 0.2s; }
.cookie-banner__btn:hover { opacity: 0.88; }
@media (max-width: 600px) { .cookie-banner { flex-direction: column; align-items: flex-start; } }
.mt-4 { margin-top: 2rem; }
