@charset "UTF-8";
/* ========================================
BELIRICO - MAIN STYLESHEET
Modern CSS Architecture with BEM
======================================== */
/* ========================================
1. CSS CUSTOM PROPERTIES (Design Tokens)
======================================== */
:root {
  /* ─── Color Palette ─── */
  --color-primary: #8c49bd;
  --color-primary-dark: #570FB9;
  --color-primary-light: #f5f5ff;
  --color-text: #444444;
  --color-text-light: #777777;
  --color-text-inverse: #ffffff;
  --color-text-muted: #555555;
  --color-background: #E4D8F1;
  --color-background-alt: #0d0d0d;
  --color-background-secondary: #E4D8F1;
  --color-accent-gold: #d4af37;
  --color-accent-gold-dim: rgba(212, 175, 55, 0.75);
  --color-border: #e0e0e0;
  --color-border-light: rgba(200, 200, 200, 0.15);
  /* ─── Spacing Scale (4px baseline) ─── */
  --space-xxs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  --space-xxxl: 64px;
  --space-xxxxl: 96px;
  /* ─── Typography Scale ─── */
  --font-size-xs: 0.75rem; /* 12px */
  --font-size-sm: 0.875rem; /* 14px */
  --font-size-base: 1rem; /* 16px */
  --font-size-md: 1.125rem; /* 18px */
  --font-size-lg: 1.25rem; /* 20px */
  --font-size-xl: 1.5rem; /* 24px */
  --font-size-xxl: 2rem; /* 32px */
  --font-size-xxxl: 3rem; /* 48px */
  --font-size-display: clamp(2.5rem, 5vw, 4rem);
  --font-family-base: 'Montserrat', sans-serif;
  --font-family-heading: 'Montserrat', sans-serif;
  --font-weight-normal: 400;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  --line-height-tight: 1.2;
  --line-height-base: 1.6;
  --line-height-relaxed: 1.8;
  /* ─── Elevation & Shadows ─── */
  --shadow-sm: 0 2px 8px rgba(106, 13, 173, 0.15);
  --shadow-md: 0 4px 15px rgba(106, 13, 173, 0.3);
  --shadow-lg: 0 6px 20px rgba(106, 13, 173, 0.4);
  --shadow-xl: 0 10px 40px rgba(106, 13, 173, 0.5);
  /* ─── Animation & Transitions ─── */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
  --transition-slower: 900ms ease;
  --transition-ease-zoom: cubic-bezier(0.19, 1, 0.22, 1);
  --transition-ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --linear-ease: linear(
    0,
    0.068,
    0.19 2.7%,
    0.804 8.1%,
    1.037,
    1.199 13.2%,
    1.245,
    1.27 15.8%,
    1.274,
    1.272 17.4%,
    1.249 19.1%,
    0.996 28%,
    0.949,
    0.928 33.3%,
    0.926,
    0.933 36.8%,
    1.001 45.6%,
    1.013,
    1.019 50.8%,
    1.018 54.4%,
    1 63.1%,
    0.995 68%,
    1.001 85%,
    1
  );
  /* ─── Layout ─── */
  --container-max: 1440px;
  --container-narrow: 1200px;
  --header-height: 80px;
  /* ─── Border Radius ─── */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 50px;
  --radius-circle: 50%;
  /* ─── Z-Index Scale ─── */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 500;
  --z-fixed: 1000;
  --z-modal: 2000;
  --z-tooltip: 3000;
}

/* ========================================
2. MIXINS (DRY Principles)
======================================== */
/* ========================================
3. RESET & BASE STYLES
======================================== */
/* Box Sizing Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* HTML Root */
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  height: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
/* Body */
body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background-color: var(--color-background);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  max-width: 1440px;
  margin-inline: auto;
  /* Background — сплошной цвет без градиента */
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: #E4D8F1;
  background-attachment: fixed;
}

@media (prefers-reduced-motion: reduce) {
  body::before {
    background-attachment: scroll;
  }
}
/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-extrabold);
  line-height: var(--line-height-tight);
  color: var(--color-primary);
  text-wrap: balance;
}

h1 {
  font-size: var(--font-size-display);
}

h2 {
  font-size: var(--font-size-xxxl);
}

h3 {
  font-size: var(--font-size-xxl);
}

h4 {
  font-size: var(--font-size-xl);
}

p {
  text-wrap: pretty;
  max-width: 80ch;
}

/* Links */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: all var(--transition-base) ease;
}

a:hover {
  color: var(--color-primary-dark);
}

a:focus-visible {
  outline: 3px solid var(--color-accent-gold);
  outline-offset: 2px;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
  font-style: italic;
  color: var(--color-text-light);
}

/* Lists */
ul, ol {
  list-style: none;
}

/* Buttons Reset */
button {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* Form Elements */
input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* Focus Visible (Global) */
:focus-visible {
  outline: 3px solid var(--color-accent-gold);
  outline-offset: 2px;
}

/* Skip Link (Accessibility) */
.skip-link {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link:focus {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  position: fixed !important;
  top: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  height: auto;
  padding: var(--space-sm) var(--space-lg);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-radius: var(--radius-sm);
  z-index: var(--z-tooltip);
  clip: auto !important;
  font-weight: var(--font-weight-semibold);
}

/* Selection */
::-moz-selection {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

::selection {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

/* Scrollbar (Webkit) */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-background-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-dark);
}

/* ========================================
4. UTILITY CLASSES
======================================== */
.container {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: min(5vw, var(--space-xl));
}

@media (max-width: 767px) {
  .container {
    padding-inline: var(--space-lg);
  }
}
@media (max-width: 480px) {
  .container {
    padding-inline: var(--space-md);
  }
}
/* Offset for fixed header */
main {
  padding-top: calc(var(--header-height) + var(--space-md) * 2);
}

@media (max-width: 767px) {
  main {
    padding-top: calc(var(--header-height) + var(--space-sm));
  }
}
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ========================================
5. COMPONENT: BUTTONS
======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-md) var(--space-xl);
  background: #570FB9;
  color: var(--color-text-inverse);
  border: 2px solid #570FB9;
  border-radius: var(--radius-full);
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-md);
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all var(--transition-base) ease;
  box-shadow: var(--shadow-md);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn:focus-visible {
  outline: 3px solid var(--color-accent-gold);
  outline-offset: 2px;
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn {
  border-radius: 999px;
}

.btn--primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-md) var(--space-xl);
  background: #570FB9;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all var(--transition-base) ease;
  box-shadow: 3px 3px 10px #AD92CA, -3px -3px 10px #FFFFFF;
}

.btn--primary:hover {
  transform: translateY(-2px);
  background: #570FB9;
  color: #ffffff;
  box-shadow: 3px 3px 10px #AD92CA, -3px -3px 10px #FFFFFF;
}

.btn--primary:focus-visible {
  outline: 3px solid var(--color-accent-gold);
  outline-offset: 2px;
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-md) var(--space-xl);
  background: rgba(255, 255, 255, 0.2);
  color: #570FB9;
  border: none;
  border-radius: 999px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all var(--transition-base) ease;
  box-shadow: 3px 3px 10px #AD92CA, -3px -3px 10px #FFFFFF;
}

.btn--outline:hover {
  transform: none;
  background: #E4D8F1;
  color: #570FB9;
  box-shadow: inset 1px 1px 10px rgba(155, 120, 193, 0.5), inset -2px -2px 10px #FFFFFF, 3px 3px 10px #AD92CA, -3px -3px 10px #FFFFFF;
}

.btn--outline:focus-visible {
  transform: none;
  background: #E4D8F1;
  color: #570FB9;
  box-shadow: inset 1px 1px 10px rgba(155, 120, 193, 0.5), inset -2px -2px 10px #FFFFFF, 3px 3px 10px #AD92CA, -3px -3px 10px #FFFFFF;
  outline: 3px solid var(--color-accent-gold);
  outline-offset: 2px;
}

.btn--outline:active {
  transform: translateY(0);
}

.btn--outline:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Header CTA: hover как у .services__btn (блок услуг на главной) */
.header__btn.btn--primary:hover,
.header__btn.btn--primary:focus-visible {
  transform: none;
  background: #E4D8F1;
  color: #570FB9;
  font-family: "Montserrat", sans-serif;
  font-weight: var(--font-weight-semibold);
  box-shadow: inset 1px 1px 10px rgba(155, 120, 193, 0.5), inset -2px -2px 10px #FFFFFF, 3px 3px 10px #AD92CA, -3px -3px 10px #FFFFFF;
}

/* Service panel (активная вкладка): .btn--primary hover как у .services__btn */
.service-panel.active .btn.btn--primary:hover,
.service-panel.active .btn.btn--primary:focus-visible {
  transform: none;
  background: #E4D8F1;
  color: #570FB9;
  font-family: "Montserrat", sans-serif;
  font-weight: var(--font-weight-semibold);
  box-shadow: inset 1px 1px 10px rgba(155, 120, 193, 0.5), inset -2px -2px 10px #FFFFFF, 3px 3px 10px #AD92CA, -3px -3px 10px #FFFFFF;
}

.btn--gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-md) var(--space-xl);
  background: var(--color-accent-gold);
  color: #0d0d0d;
  border: 2px solid var(--color-accent-gold);
  border-radius: var(--radius-full);
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-md);
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all var(--transition-base) ease;
  box-shadow: var(--shadow-md);
}

.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--gold:focus-visible {
  outline: 3px solid var(--color-accent-gold);
  outline-offset: 2px;
}

.btn--gold:active {
  transform: translateY(0);
}

.btn--gold:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn--sm {
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--font-size-sm);
}

.btn--lg {
  padding: var(--space-lg) var(--space-xxl);
  font-size: var(--font-size-lg);
}

.btn--full {
  width: 100%;
}

@media (max-width: 767px) {
  .btn--full-mobile {
    width: 100%;
  }
}
/* Scroll Button */
.scroll-btn {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-circle);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(180, 180, 220, 0.4);
  color: var(--color-primary);
  box-shadow: 0 4px 20px rgba(106, 13, 173, 0.15);
  transition: all var(--transition-base) ease;
}

.scroll-btn:hover {
  color: var(--color-primary-dark);
  transform: translateY(4px);
  box-shadow: 0 6px 24px rgba(106, 13, 173, 0.25);
}

.scroll-btn__icon {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  animation: bounce 2s infinite;
}

.scroll-btn__icon svg {
  display: block;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-15px);
  }
  60% {
    transform: translateY(-8px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-btn__icon {
    animation: none;
  }
}
/* ========================================
6. COMPONENT: HEADER
======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding: var(--space-md) 0;
  z-index: var(--z-fixed);
  background: #E4D8F1;
  box-shadow: inset 0 -5px 10px #f2e5ff, 0 5px 10px rgba(173, 146, 202, 0.25);
  transition: all var(--transition-base) ease;
}

.header__container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: min(5vw, var(--space-xl));
  padding-inline: var(--space-md);
}

@media (max-width: 767px) {
  .header__container {
    padding-inline: var(--space-md);
  }
}
@media (max-width: 767px) {
  .header__logo-img {
    height: 56px;
  }
}
@media (max-width: 480px) {
  .header__logo-img {
    height: 48px;
  }
}
.header__logo {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: nowrap;
}

.header__logo-img {
  height: 70px;
  width: auto;
  display: block;
  -o-object-fit: contain;
     object-fit: contain;
}

.header__logo-text {
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-xxl);
  color: var(--color-primary);
}

.header {
  /* Язык + CTA в одной группе справа от навигации */
}

.header__actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-md);
  flex-shrink: 0;
  margin-left: auto;
  min-width: 0;
}

.header__actions .header__lang {
  margin-right: 0;
}

@media (max-width: 991px) {
  .header__actions {
    gap: var(--space-sm);
  }
}
.header__nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.header__lang {
  position: relative;
  flex-shrink: 0;
  margin-right: var(--space-md);
}

@media (max-width: 991px) {
  .header__lang {
    margin-right: var(--space-sm);
  }
}
.header__lang-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  color: #000;
  font-family: var(--font-family-base);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: all var(--transition-base) ease;
}

.header__lang-btn:hover {
  background: #E4D8F1;
  color: var(--color-primary);
  box-shadow: 3px 3px 10px rgba(173, 146, 202, 0.5), -3px -3px 10px rgb(255, 255, 255);
}

.header__lang-btn:focus-visible {
  outline: 3px solid var(--color-accent-gold);
  outline-offset: 2px;
}

.header__lang-icon {
  font-size: 1rem;
  opacity: 0.9;
}

.header__lang-chevron {
  font-size: 0.65rem;
  transition: transform var(--transition-base) ease;
}

.header__lang.is-open .header__lang-chevron {
  transform: rotate(180deg);
}

.header__lang-dropdown {
  position: absolute;
  top: calc(100% + var(--space-xs));
  right: 0;
  min-width: 140px;
  padding: var(--space-xs);
  background: #E4D8F1;
  border-radius: var(--radius-md);
  box-shadow: 3px 3px 10px rgb(173, 146, 202), -3px -3px 10px rgb(255, 255, 255);
  z-index: var(--z-dropdown);
}

.header__lang-dropdown[hidden] {
  display: none !important;
}

.header__lang-link {
  display: block;
  padding: var(--space-sm) var(--space-md);
  color: #000;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base) ease;
}

.header__lang-link:hover {
  background: rgba(140, 73, 189, 0.15);
  color: var(--color-primary);
}

.header__lang-link.active {
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
}

.header__translate-widget {
  width: 100%;
  position: relative;
}

.header__translate-btn {
  display: block;
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  background: rgba(140, 73, 189, 0.12);
  border: 1px solid rgba(140, 73, 189, 0.3);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-base) ease;
  text-align: left;
  margin-bottom: var(--space-xs);
}

.header__translate-btn:hover {
  background: rgba(140, 73, 189, 0.2);
  border-color: rgba(140, 73, 189, 0.45);
}

.header__translate-btn:focus-visible {
  outline: 3px solid var(--color-accent-gold);
  outline-offset: 2px;
}

.header #google_translate_element {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.header #google_translate_element .goog-te-gadget {
  font-family: var(--font-family-base) !important;
}

.header #google_translate_element .goog-te-gadget-icon,
.header #google_translate_element .goog-logo-link {
  display: none !important;
}

.header #google_translate_element .goog-te-gadget-simple img,
.header #google_translate_element .goog-te-menu-value img {
  display: none !important;
}

.header__btn {
  flex-shrink: 0;
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
}

@media (max-width: 991px) {
  .header__btn {
    display: none;
  }
}
.header__menu {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: var(--space-xl);
  color: #000;
}

.header__menu-item {
  padding: 0;
  position: relative;
  color: #000;
}

.header__menu-item:focus-within:has(:focus-visible) .header__menu-link {
  outline: 2px solid #000;
  outline-offset: 2px;
}

.header__menu-link {
  text-decoration: none;
  color: #000;
  font-weight: var(--font-weight-semibold);
  font-size: 16px;
  padding: 0.5em 0;
  transition: background 0.4s ease-in-out, color 0.4s ease-in-out, padding 0.4s ease-in-out, box-shadow 0.4s ease-in-out, border-radius 0.4s ease-in-out;
}

.header__menu-link:hover {
  background: #E4D8F1;
  color: #570FB9;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  text-decoration: none;
  padding: 0.5em 1em;
  border-radius: 999px;
  box-shadow: inset 1px 1px 10px rgba(155, 120, 193, 0.5), inset -2px -2px 10px rgb(255, 255, 255), 3px 3px 10px #AD92CA, -3px -3px 10px #ffffff;
}

.header {
  /* Gooey gravity effect elements */
}

.header__effect {
  position: fixed;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  opacity: 1;
  pointer-events: none;
  display: grid;
  place-items: center;
  z-index: calc(var(--z-fixed) + 1);
}

.header__effect--text {
  color: var(--color-text-inverse);
  z-index: 2;
  transition: color 0s ease;
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-md);
}

.header__effect--text.hidden {
  opacity: 0;
}

.header__effect--filter {
  position: absolute;
}

.header__effect--filter::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #8c49bd;
  scale: 0;
  opacity: 0;
  z-index: -1;
  border-radius: 100vw;
}

.header__effect--filter.active::after {
  animation: header-pill 2s var(--linear-ease) 0.2s both;
}

.header__particle {
  --time: 5s;
  display: block;
  opacity: 0;
  width: 20px;
  height: 20px;
  border-radius: 100%;
  transform-origin: center;
  position: absolute;
  top: calc(50% - 8px);
  left: calc(50% - 8px);
  animation: header-particle calc(var(--time)) ease 1 -350ms;
}

.header__particle-point {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 100%;
  transform-origin: center;
  background: var(--particle-color, #8c49bd);
  opacity: 1;
  animation: header-point calc(var(--time)) ease 1 -350ms;
}

.header {
  /* Toggle: hidden on desktop, visible only on mobile */
}

.header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  color: var(--color-primary);
  font-size: var(--font-size-xl);
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: calc(var(--z-fixed) + 1);
  transition: color var(--transition-base);
}

.header__toggle-line {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.header__toggle[aria-expanded=true] .header__toggle-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.header__toggle[aria-expanded=true] .header__toggle-line:nth-child(2) {
  opacity: 0;
}

.header__toggle[aria-expanded=true] .header__toggle-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.header {
  /* Mobile menu overlay + toggle visible */
}

@media (max-width: 991px) {
  .header__toggle {
    display: flex;
  }
  .header__nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transform: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #E4D8F1;
    z-index: var(--z-fixed);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--transition-base), visibility var(--transition-base), pointer-events var(--transition-base);
  }
  .header__nav.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .header__menu {
    flex-direction: column;
    gap: var(--space-xl);
  }
  .header__menu-link {
    font-size: var(--font-size-xl);
  }
}
.header.scrolled {
  background: #E4D8F1;
  box-shadow: inset 0 -5px 10px #f2e5ff, 0 5px 10px rgba(173, 146, 202, 0.25);
}

.header.scrolled .header__menu-link:hover {
  background: #E4D8F1;
  color: #570FB9;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  padding: 0.5em 1em;
  border-radius: 999px;
  box-shadow: inset 1px 1px 10px rgba(155, 120, 193, 0.5), inset -2px -2px 10px rgb(255, 255, 255), 3px 3px 10px #AD92CA, -3px -3px 10px #ffffff;
}

@media (max-width: 991px) {
  body.menu-open {
    overflow: hidden;
  }
}
/* Header gooey effect keyframes */
@keyframes header-pill {
  to {
    scale: 1;
    opacity: 1;
  }
}
@keyframes header-particle {
  0% {
    transform: rotate(0deg) translate(calc(var(--start-x) * 1px), calc(var(--start-y) * 1px));
    opacity: 1;
    animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45);
  }
  70% {
    transform: rotate(calc(var(--rotate) * 0.5deg)) translate(calc(var(--end-x) * 1.2px), calc(var(--end-y) * 1.2px));
    opacity: 1;
    animation-timing-function: ease;
  }
  85% {
    transform: rotate(calc(var(--rotate) * 0.66deg)) translate(calc(var(--end-x) * 1px), calc(var(--end-y) * 1px));
    opacity: 1;
  }
  100% {
    transform: rotate(calc(var(--rotate) * 1.2deg)) translate(calc(var(--end-x) * 0.5px), calc(var(--end-y) * 0.5px));
    opacity: 0;
  }
}
@keyframes header-point {
  0% {
    scale: 0;
    opacity: 0;
    animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45);
  }
  25% {
    scale: calc(var(--scale) * 0.25);
  }
  38% {
    opacity: 1;
  }
  65% {
    scale: var(--scale);
    opacity: 1;
    animation-timing-function: ease;
  }
  85% {
    scale: var(--scale);
    opacity: 1;
  }
  100% {
    scale: 0;
    opacity: 0;
  }
}
/* ========================================
7. COMPONENT: HERO SECTION
======================================== */
.hero {
  padding-block: var(--space-xxxxl) var(--space-xxxl);
  min-height: 100vh;
  position: relative;
}

.hero__container {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: min(5vw, var(--space-xl));
}

.hero__content-area {
  flex: 1.5;
  min-width: 45%;
  margin-right: -5rem;
  display: flex;
  flex-direction: column;
}

.hero__content {
  flex: 1;
}

.hero__title {
  font-size: 74px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  line-height: var(--line-height-tight);
  color: #570fb9;
  margin-bottom: var(--space-lg);
}

.hero__description {
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #2D0069;
  margin-bottom: var(--space-xxl);
  max-width: 600px;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-lg);
}

.hero__actions .btn {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 24px;
}

.hero__actions .btn:hover {
  background: #E4D8F1;
  color: var(--color-primary-dark);
  border-color: rgba(180, 150, 200, 0.4);
  transform: none;
  box-shadow: 3px 3px 10px #AD92CA, -3px -3px 10px #FFFFFF, inset -2px -2px 10px #FFFFFF, inset 1px 1px 10px rgba(155, 120, 193, 0.5);
}

.hero__scroll-link {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--color-primary-dark);
  text-decoration: none;
  transition: all var(--transition-base) ease;
}

.hero__scroll-text {
  flex-shrink: 0;
}

.hero__scroll-arrow {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--color-primary-dark);
  color: var(--color-primary-dark);
  flex-shrink: 0;
  box-shadow: 3px 3px 10px #AD92CA, -3px -3px 10px #FFFFFF;
}

.hero__scroll-arrow svg {
  display: block;
}

.hero__scroll-link--up .hero__scroll-arrow {
  transform: rotate(180deg);
}

.hero__image-wrapper {
  position: relative;
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: nowrap;
}

.hero__image-wrapper img {
  position: absolute;
  right: -16rem;
  max-width: 120%;
  width: auto;
  height: auto;
  -o-object-fit: contain;
     object-fit: contain;
  -o-object-position: right center;
     object-position: right center;
  transform: scale(1.4);
}

@media (max-width: 991px) {
  .hero {
    padding-block: var(--space-xxxl) var(--space-xxl);
    min-height: auto;
  }
  .hero__container {
    flex-direction: column;
    padding-inline: var(--space-lg);
  }
  .hero__content-area {
    display: contents;
  }
  .hero__content {
    order: 1;
    text-align: center;
    margin-right: 0;
    margin-bottom: 0;
    min-width: 100%;
  }
  .hero__image-wrapper {
    order: 2;
    justify-content: center;
    min-width: 100%;
    position: relative;
  }
  .hero__image-wrapper img {
    position: relative;
    max-width: 85%;
    min-width: 0;
    right: 0;
    transform: scale(1);
  }
  .hero__actions {
    order: 3;
    align-items: center;
    gap: var(--space-md);
  }
  .hero__title {
    font-size: clamp(2rem, 6vw, 3rem);
    margin-bottom: var(--space-md);
  }
  .hero__description {
    font-size: var(--font-size-md);
    margin-inline: auto;
    margin-bottom: var(--space-xl);
  }
  .hero__actions .btn {
    font-size: var(--font-size-base);
    padding: var(--space-sm) var(--space-lg);
  }
  .hero__scroll-link {
    font-size: var(--font-size-base);
  }
  .hero__scroll-arrow {
    width: 36px;
    height: 36px;
  }
}
@media (max-width: 767px) {
  .hero {
    padding-block: var(--space-xxl) var(--space-xl);
  }
  .hero__container {
    padding-inline: var(--space-md);
  }
  .hero__title {
    font-size: clamp(1.5rem, 8vw, 2.25rem);
  }
  .hero__description {
    font-size: var(--font-size-sm);
  }
  .hero__actions {
    flex-direction: column;
    width: 100%;
  }
  .hero__actions .btn {
    width: 100%;
  }
  .hero__image-wrapper img {
    max-width: 100%;
  }
}
@media (max-width: 480px) {
  .hero__title {
    font-size: 1.5rem;
  }
  .hero__scroll-link {
    flex-direction: column;
    gap: var(--space-sm);
  }
}
/* ========================================
8. COMPONENT: ABOUT COMPANY SECTION
======================================== */
.about {
  padding-block: var(--space-xxl) var(--space-xxxl);
  background: transparent;
}

.about__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: var(--space-xl);
  width: 100%;
}

.about__card {
  background: #E4D7F1;
  border-radius: 12px;
  padding: var(--space-xl);
  aspect-ratio: 404/248;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  box-shadow: 3px 3px 10px rgb(173, 146, 202), -3px -3px 10px rgb(255, 255, 255);
  transition: box-shadow var(--transition-base) ease, background var(--transition-base) ease;
}

.about__card:hover {
  box-shadow: 4px 4px 12px rgb(173, 146, 202), -4px -4px 12px rgb(255, 255, 255);
}

.about__card.active {
  background: #570FB9;
}

.about__card.active .about__number,
.about__card.active .about__label,
.about__card.active .about__text {
  color: #ffffff;
}

.about__number {
  font-family: Montserrat, sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: #570FB9;
  line-height: 1;
  margin-bottom: var(--space-xs);
  transition: color var(--transition-base) ease;
}

.about__number::before {
  content: ">";
}

.about__label {
  font-family: Montserrat, sans-serif;
  font-weight: 600;
  font-size: var(--font-size-base);
  color: #570FB9;
  margin: 0 0 var(--space-sm);
  transition: color var(--transition-base) ease;
}

.about__text {
  font-family: Montserrat, sans-serif;
  font-size: var(--font-size-sm);
  color: #570FB9;
  line-height: 1.5;
  margin: 0;
  opacity: 0.9;
  transition: color var(--transition-base) ease;
}

@media (max-width: 991px) {
  .about {
    padding-block: var(--space-xl) var(--space-xxl);
  }
  .about__cards {
    gap: var(--space-lg);
  }
}
@media (max-width: 767px) {
  .about {
    padding-block: var(--space-lg) var(--space-xl);
  }
  .about__cards {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .about__card {
    aspect-ratio: auto;
    min-height: 140px;
    padding: var(--space-lg);
  }
  .about__number {
    font-size: clamp(2rem, 8vw, 3rem);
  }
}
@media (max-width: 480px) {
  .about__card {
    padding: var(--space-md);
  }
}
/* ========================================
9. COMPONENT: SERVICES SECTION
======================================== */
.services,
.portfolio {
  padding-block: var(--space-xxl) var(--space-xxxl);
  background: transparent;
  position: relative;
}

.services__wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--space-xxl);
}

.services {
  /* Services page: sidebar and content side by side */
}

.services--page .services__wrapper {
  flex-direction: row;
  align-items: flex-start;
  gap: var(--space-xxl);
}

@media (max-width: 991px) {
  .services--page .services__wrapper {
    flex-direction: column;
  }
}
.services__title-wrapper,
.portfolio__title-wrapper,
.contact__title-wrapper {
  width: 100%;
  text-align: left;
}

.portfolio__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
  width: 100%;
}

.portfolio__card {
  display: block;
  width: 100%;
  aspect-ratio: 404/248;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 3px 3px 10px rgb(173, 146, 202), -3px -3px 10px rgb(255, 255, 255);
  transition: box-shadow var(--transition-base) ease;
}

.portfolio__card:hover {
  box-shadow: 4px 4px 12px rgba(173, 146, 202, 0.5), -4px -4px 12px rgba(255, 255, 255, 0.5);
}

.portfolio__card-image {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}

.portfolio__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-lg);
  justify-content: space-between;
  margin-top: var(--space-xl);
}

.portfolio__actions .services__cta-link {
  margin-top: 0;
}

@media (max-width: 767px) {
  .portfolio__cards {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin-top: var(--space-lg);
  }
  .portfolio__card {
    aspect-ratio: 16/10;
  }
  .portfolio__actions {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-md);
    margin-top: var(--space-lg);
  }
  .portfolio__actions .btn {
    width: 100%;
  }
  .portfolio__actions .services__cta-link {
    justify-content: center;
  }
}
@media (max-width: 480px) {
  .portfolio__card {
    aspect-ratio: 4/3;
  }
}
/* Portfolio/Services Filter — общие стили для workportfolio и services */
.portfolio-filter-block,
.services-filter-block {
  max-width: 1440px;
  margin: 0 auto;
  padding-inline: min(5vw, 2rem);
  margin-bottom: 2.5rem;
}

.portfolio-filter,
.services-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.75rem;
}

.portfolio-filter-line,
.services-filter-line {
  margin-top: 20px;
  height: 2px;
  background: #570FB9;
  width: 100%;
  box-shadow: 3px 3px 10px #AD92CA, -3px -3px 10px #ffffff;
}

.portfolio-filter__btn,
.services-filter__btn {
  padding: 0.5rem 1.25rem;
  font-family: var(--font-family-base);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  background: transparent;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.portfolio-filter__btn:hover,
.services-filter__btn:hover {
  background: #E4D8F1;
  color: #000000;
  box-shadow: 3px 3px 10px #AD92CA, -3px -3px 10px #ffffff;
}

.portfolio-filter__btn.active,
.services-filter__btn.active {
  background: #570FB9;
  color: #ffffff;
  box-shadow: 3px 3px 10px #AD92CA, -3px -3px 10px #ffffff;
}

.portfolio-filter__btn.active:hover,
.services-filter__btn.active:hover {
  background: #E4D8F1;
  color: #000000;
  box-shadow: 3px 3px 10px #AD92CA, -3px -3px 10px #ffffff;
}

@media (max-width: 1024px) {
  .portfolio-filter__btn,
  .services-filter__btn {
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
  }
}
@media (max-width: 768px) {
  .portfolio-filter,
  .services-filter {
    margin-bottom: 1.5rem;
    gap: 0.5rem;
  }
  .portfolio-filter__btn,
  .services-filter__btn {
    font-size: 0.8rem;
    padding: 0.35rem 0.9rem;
  }
}
@media (max-width: 480px) {
  .portfolio-filter,
  .services-filter {
    margin-bottom: 1.25rem;
  }
  .portfolio-filter__btn,
  .services-filter__btn {
    font-size: 0.75rem;
    padding: 0.3rem 0.75rem;
  }
}
/* Service category blocks (Маркетинг, Сайты и т.д.) */
.services-content {
  max-width: 1440px;
  margin: 0 auto;
  padding-inline: min(5vw, 2rem);
}

.service-category {
  margin-bottom: var(--space-xxxl);
}

.service-category[data-category-hidden=true] {
  display: none;
}

.service-category__title {
  font-family: var(--font-family-base);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #000000;
  text-align: center;
  margin-bottom: var(--space-lg);
}

.service-category__desc {
  font-family: var(--font-family-base);
  font-size: 1rem;
  font-weight: 400;
  color: #000000;
  line-height: 1.6;
  text-align: left;
  max-width: 900px;
  margin: 0 auto var(--space-xxl);
}

/* Service cards — стили как у about__card (секция «О нас») */
.service-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  width: 100%;
}

.service-card {
  background: #E4D7F1;
  border-radius: 12px;
  padding: var(--space-xl);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
  gap: var(--space-lg);
  box-shadow: 3px 3px 10px rgb(173, 146, 202), -3px -3px 10px rgb(255, 255, 255);
  transition: box-shadow var(--transition-base) ease, background var(--transition-base) ease;
}

.service-card:hover {
  box-shadow: 4px 4px 12px rgb(173, 146, 202), -4px -4px 12px rgb(255, 255, 255);
}

.service-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
}

.service-card__title {
  font-family: var(--font-family-base);
  font-size: 1.125rem;
  font-weight: 700;
  color: #000000;
  margin: 0 0 var(--space-sm);
  line-height: 1.3;
}

.service-card__price {
  font-family: var(--font-family-base);
  font-size: 1.5rem;
  font-weight: 700;
  color: #570FB9;
  margin: 0;
}

.service-card__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  justify-content: center;
  align-items: stretch;
  flex-shrink: 0;
}

/* ========== Базовые стили кнопки ========== */
.service-card__btn {
  font-family: var(--font-family-base);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  white-space: nowrap;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border: none;
}

/* ========== Кнопка Outline ========== */
.service-card__btn--outline {
  background: rgba(255, 255, 255, 0.2);
  color: #570FB9;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 3px 3px 10px rgb(173, 146, 202), -3px -3px 10px rgb(255, 255, 255);
}

.service-card__btn--outline:hover {
  background: #E4D8F1;
  color: #570FB9;
  box-shadow: inset 1px 1px 10px rgba(155, 120, 193, 0.3), inset -2px -2px 10px rgb(255, 255, 255), 3px 3px 10px rgb(173, 146, 202), -3px -3px 10px rgb(255, 255, 255);
}

/* ========== Кнопка Primary ========== */
.service-card__btn--primary {
  background: #570FB9;
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(87, 15, 185, 0.3);
}

.service-card__btn--primary:hover {
  background: #E4D8F1;
  color: #570FB9;
  box-shadow: inset 1px 1px 10px rgba(155, 120, 193, 0.3), inset -2px -2px 10px rgb(255, 255, 255), 3px 3px 10px rgb(173, 146, 202), -3px -3px 10px rgb(255, 255, 255);
}

@media (max-width: 767px) {
  .service-cards {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .service-card {
    aspect-ratio: auto;
    min-height: 140px;
    padding: var(--space-lg);
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
  }
  .service-card__content {
    margin-bottom: var(--space-md);
  }
  .service-card__actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .service-card__btn {
    flex: 1;
    min-width: 120px;
  }
  .service-category__desc {
    font-size: 0.95rem;
  }
}
@media (max-width: 480px) {
  .service-card {
    padding: var(--space-md);
  }
  .service-card__actions {
    flex-direction: column;
  }
  .service-card__btn {
    flex: none;
    width: 100%;
  }
}
.services__row {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: var(--space-xxl);
}

@media (max-width: 991px) {
  .services__row {
    flex-direction: column;
    gap: var(--space-xl);
  }
}
.services__sidebar {
  flex-shrink: 0;
  width: 320px;
  position: relative;
  padding-left: var(--space-lg);
}

@media (max-width: 991px) {
  .services__sidebar {
    width: 100%;
  }
}
.services__sidebar-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: var(--z-base);
}

.services__line {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 60px;
  width: 2px;
  background: #570FB9;
  border-radius: 1px;
  box-shadow: 3px 3px 10px rgb(173, 146, 202), -3px -3px 10px rgb(255, 255, 255);
}

.services {
  /* Category pill button (Маркетинг) — neo-morphism */
}

.services__category-btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  margin-bottom: var(--space-lg);
  border: none;
  border-radius: 999px;
  background: #570FB9;
  color: #fff;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  font-family: Montserrat, sans-serif;
  cursor: pointer;
  position: relative;
  z-index: var(--z-base);
  box-shadow: 3px 3px 10px rgba(173, 146, 202, 0.5), -3px -3px 10px rgba(255, 255, 255, 0.5);
  transition: box-shadow var(--transition-base) ease;
}

.services__category-btn::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--space-lg) + 1px - 5px);
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
}

.services__category-btn:hover {
  box-shadow: 4px 4px 12px rgba(173, 146, 202, 0.5), -4px -4px 12px rgba(255, 255, 255, 0.5);
}

.services__list {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.services__list-item {
  margin: 0;
}

.services__list-item .services__category-btn {
  display: block;
  width: 100%;
  margin-bottom: 0;
  text-align: left;
}

.services__list-item .services__category-btn:not(.active) {
  background: transparent;
  color: #000000;
  box-shadow: none;
}

.services__list-item .services__category-btn::before {
  background: transparent;
}

.services__list-item .services__category-btn.active::before {
  background: #570FB9;
  box-shadow: 0 0 0 1px #570FB9;
}

.services__list-item:hover .services__btn, .services__list-item:hover .services__category-btn {
  background: #E4D8F1;
  color: #570FB9;
  font-family: "Montserrat", sans-serif;
  box-shadow: inset 1px 1px 10px rgba(155, 120, 193, 0.5), inset -2px -2px 10px #FFFFFF, 3px 3px 10px #AD92CA, -3px -3px 10px #FFFFFF;
}

.services__list-link, .services__btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: var(--space-sm) var(--space-md);
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #000000;
  font-size: 18px;
  font-weight: var(--font-weight-regular);
  font-family: Montserrat, sans-serif;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  transition: background var(--transition-base) ease, color var(--transition-base) ease, box-shadow var(--transition-base) ease;
}

.services__list-link:hover, .services__btn:hover {
  background: #E4D8F1;
  color: #570FB9;
  font-family: "Montserrat", sans-serif;
  box-shadow: inset 1px 1px 10px rgba(155, 120, 193, 0.5), inset -2px -2px 10px #FFFFFF, 3px 3px 10px #AD92CA, -3px -3px 10px #FFFFFF;
}

.services__list-link.active, .services__btn.active {
  background: #570FB9;
  color: #ffffff;
  box-shadow: 3px 3px 10px rgb(173, 146, 202), -3px -3px 10px rgb(255, 255, 255);
}

.services__list-link.active:hover, .services__btn.active:hover {
  background: #570FB9;
  color: #ffffff;
  box-shadow: 3px 3px 10px rgb(173, 146, 202), -3px -3px 10px rgb(255, 255, 255);
}

.services__btn::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--space-lg) + 1px - 5px);
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: var(--radius-circle);
  background: transparent;
  transition: all var(--transition-base) ease;
}

.services__btn.active::before {
  background: #570FB9;
  box-shadow: 0 0 0 1px #570FB9;
}

.services__cta-link {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  margin-top: var(--space-xl);
  padding: 0;
  background: transparent;
  border: none;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--color-primary-dark);
  text-decoration: none;
  transition: all var(--transition-base) ease;
}

.services__cta-link:hover {
  color: var(--color-primary-dark);
}

.services__cta-text {
  flex-shrink: 0;
}

.services__cta-arrow {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--color-primary-dark);
  color: var(--color-primary-dark);
  flex-shrink: 0;
  box-shadow: 3px 3px 10px #AD92CA, -3px -3px 10px #FFFFFF;
}

.services__cta-arrow svg {
  display: block;
  transform: rotate(-90deg);
}

.services {
  /* Services page: restore pill CTA for "Обсудить проект" */
}

.services--page .services__cta-link {
  padding: var(--space-sm) var(--space-md);
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(31, 0, 72, 0.25);
  border-radius: 999px;
  font-size: var(--font-size-sm);
}

.services--page .services__cta-link:hover {
  background: rgba(255, 255, 255, 0.35);
}

.services__content {
  flex: 1;
  min-width: 0;
}

.services__main-title,
.portfolio__main-title,
.contact__main-title {
  width: 100%;
  font-size: 64px;
  font-weight: 700;
  font-family: Montserrat, sans-serif;
  color: #0C0C0C;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0;
  pointer-events: none;
}

@media (max-width: 991px) {
  .services__main-title,
  .portfolio__main-title,
  .contact__main-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
  }
}
@media (max-width: 991px) {
  .services__sidebar {
    padding-left: var(--space-md);
  }
  .services,
  .portfolio {
    padding-block: var(--space-xl) var(--space-xxl);
  }
}
@media (max-width: 767px) {
  .services__main-title,
  .portfolio__main-title,
  .contact__main-title {
    font-size: clamp(2rem, 10vw, 2.75rem);
  }
  .services,
  .portfolio {
    padding-block: var(--space-lg) var(--space-xl);
  }
  .services__wrapper {
    gap: var(--space-xl);
  }
  .services__row {
    gap: var(--space-lg);
  }
  .services__list-link,
  .services__btn {
    font-size: var(--font-size-base);
  }
  .services__cta-link {
    font-size: var(--font-size-lg);
  }
  .services__cta-arrow {
    width: 36px;
    height: 36px;
  }
  .service-panel {
    padding: var(--space-md);
  }
  .service-panel__heading {
    font-size: var(--font-size-lg);
  }
  .service-panel__actions {
    flex-direction: column;
    gap: var(--space-sm);
  }
  .service-panel__actions .btn {
    width: 100%;
  }
}
@media (max-width: 480px) {
  .services__category-btn {
    font-size: var(--font-size-xs);
    padding: var(--space-xs) var(--space-md);
  }
  .services__list {
    gap: var(--space-md);
  }
}
/* Service Panel */
.service-panel {
  display: none;
  padding: var(--space-lg);
  background: #E3D8F1;
  border-radius: 16px;
  border: none;
  box-shadow: 3px 3px 10px rgba(173, 146, 202, 0.5), -3px -3px 10px rgba(255, 255, 255, 0.5);
}

.service-panel.active {
  display: block;
}

.service-panel__heading {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: #1F0048;
  margin-bottom: var(--space-lg);
  line-height: var(--line-height-tight);
}

.service-panel__text {
  color: #1F0048;
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  margin-bottom: var(--space-lg);
  max-width: 80ch;
}

.service-panel__features {
  margin: 0 0 var(--space-lg);
  padding: 0;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
}

.service-panel__features li {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: #1F0048;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: nowrap;
  gap: var(--space-xs);
}

.service-panel__actions {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

/* Services marketing pills (non-clickable buttons) */
.services-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.services-pills__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 28px;
  border-radius: 999px;
  background: #E3D8F1;
  color: #570FB9;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  cursor: default;
  box-shadow: inset -2px -2px 10px #FFFFFF, inset 1px 1px 10px rgba(155, 120, 193, 0.5);
}

/* ========================================
9. COMPONENT: SLIDER (Modern with Floating Shapes)
======================================== */
.slider-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-xl) 0;
}

/* Floating background shapes */
.floating-shape {
  position: fixed;
  background: rgba(106, 13, 173, 0.15);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.shape1 {
  top: 10%;
  left: 10%;
  width: 180px;
  height: 180px;
  animation: floatAnimation 20s infinite alternate ease-in-out;
}

.shape2 {
  top: 70%;
  left: 20%;
  width: 120px;
  height: 120px;
  animation: floatAnimation 15s infinite alternate-reverse ease-in-out;
}

.shape3 {
  top: 30%;
  right: 15%;
  width: 150px;
  height: 150px;
  animation: floatAnimation 25s infinite alternate ease-in-out;
  animation-delay: 5s;
}

.shape4 {
  bottom: 15%;
  right: 10%;
  width: 200px;
  height: 200px;
  animation: floatAnimation 18s infinite alternate-reverse ease-in-out;
  animation-delay: 2s;
}

@keyframes floatAnimation {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(20px, 35px) rotate(5deg);
  }
  50% {
    transform: translate(-15px, 25px) rotate(-5deg);
  }
  75% {
    transform: translate(35px, -30px) rotate(3deg);
  }
  100% {
    transform: translate(-25px, -25px) rotate(-3deg);
  }
}
.slider-container {
  width: 800px;
  max-width: 90vw;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
  z-index: 5;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: appear 1s ease-out;
}

@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.slider {
  position: relative;
  height: 450px;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.5s ease;
  overflow: hidden;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
}

.slide img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 8s ease-in-out;
}

.slide.active img {
  transform: scale(1.1);
}

.slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
  transform: translateY(100%);
  transition: transform 0.7s ease, opacity 0.5s ease;
  opacity: 0;
}

.slide.active .slide-content {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.3s;
}

.slide:hover .slide-content {
  transform: translateY(0);
  opacity: 1;
}

/* Slide title and description parallax effects */
.slide-title {
  transform: translateX(-50px);
  opacity: 0;
  transition: transform 1s ease, opacity 1s ease;
  transition-delay: 0.2s;
  font-size: 1.5rem;
  margin-bottom: 8px;
  font-weight: var(--font-weight-bold);
}

.slide-description {
  transform: translateX(50px);
  opacity: 0;
  transition: transform 1s ease, opacity 1s ease;
  transition-delay: 0.4s;
  font-size: 1rem;
  opacity: 0.9;
}

.slide.active .slide-title,
.slide.active .slide-description {
  transform: translateX(0);
  opacity: 1;
}

/* Navigation arrows */
.navigation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  pointer-events: none;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.7);
  color: #333;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  pointer-events: auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 30;
  font-weight: bold;
}

.nav-btn.prev {
  left: 20px;
}

.nav-btn.next {
  right: 20px;
}

.nav-btn:hover {
  background-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-50%) scale(1.1);
}

/* Dots indicators */
.dots-container {
  display: flex;
  justify-content: center;
  position: absolute;
  bottom: 20px;
  width: 100%;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 5px;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.dot.active {
  background-color: white;
  transform: scale(1.2);
}

/* Animation keyframes for transitions */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideInRight {
  from {
    transform: translateX(50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes slideInLeft {
  from {
    transform: translateX(-50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes zoomIn {
  from {
    transform: scale(1.2);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes slideInUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
/* Transition effect classes */
.transition-fade .slide-content {
  animation: fadeIn 1s forwards;
}

.transition-slideRight .slide-content {
  animation: slideInRight 1s forwards;
}

.transition-slideLeft .slide-content {
  animation: slideInLeft 1s forwards;
}

.transition-zoom .slide-content {
  animation: zoomIn 1s forwards;
}

.transition-slideUp .slide-content {
  animation: slideInUp 1s forwards;
}

/* Legacy carousel styles (kept for compatibility) */
.carousel {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: var(--color-background-alt);
  /* Edge Fade Effect */
}

.carousel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 15;
  pointer-events: none;
  background: linear-gradient(to right, rgba(13, 13, 13, 0.3) 0%, transparent 3%, transparent 97%, rgba(13, 13, 13, 0.3) 100%);
}

.carousel__container {
  position: absolute;
  inset: 0;
}

.carousel__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  flex-wrap: nowrap;
  padding: 0 3% 8rem;
  z-index: 1;
  cursor: grab;
  overflow: hidden;
  /* Плавное появление через opacity и transform */
  opacity: 0;
  visibility: hidden;
  transform: scale(1.05);
  pointer-events: none;
  transition: opacity, visibility, transform 900ms var(--transition-ease-zoom) ease;
  /* Маска для неактивных слайдов */
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.carousel__slide:active {
  cursor: grabbing;
}

.carousel__slide {
  /* Активный слайд */
}

.carousel__slide--active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 10;
  pointer-events: auto;
  /* Убираем маску для активного слайда */
  mask-image: none;
  -webkit-mask-image: none;
}

.carousel__slide {
  /* Неактивные слайды */
}

.carousel__slide:not(.carousel__slide--active) {
  opacity: 0.3;
}

.carousel__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transition: transform 900ms var(--transition-ease-zoom) ease;
}

.carousel__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.2) 30%, rgba(0, 0, 0, 0.4) 70%, rgba(0, 0, 0, 0.6) 100%);
  z-index: 1;
  pointer-events: none;
}

.carousel {
  /* Фон активного слайда увеличивается */
}

.carousel__slide--active .carousel__bg {
  transform: scale(1.05);
}

.carousel__slide--active .carousel__bg::after {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.3) 30%, rgba(0, 0, 0, 0.5) 70%, rgba(0, 0, 0, 0.7) 100%);
}

.carousel__content {
  position: relative;
  z-index: 10;
  max-width: 600px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity, transform 800ms var(--transition-ease-smooth) ease;
}

.carousel__slide--active .carousel__content {
  opacity: 1;
  transform: translateY(0);
}

.carousel__title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-text-inverse);
  margin-bottom: var(--space-lg);
  line-height: var(--line-height-tight);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity, transform 800ms var(--transition-ease-smooth) 100ms;
}

.carousel__slide--active .carousel__title {
  opacity: 1;
  transform: translateY(0);
}

.carousel__description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-lg);
  line-height: var(--line-height-base);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity, transform 800ms var(--transition-ease-smooth) 200ms;
}

.carousel__slide--active .carousel__description {
  opacity: 1;
  transform: translateY(0);
}

.carousel__button {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity, transform 800ms var(--transition-ease-smooth) 300ms;
}

.carousel__slide--active .carousel__button {
  opacity: 1;
  transform: translateY(0);
}

.carousel__pagination {
  position: absolute;
  bottom: var(--space-xl);
  left: 0;
  right: 0;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: var(--space-sm);
  z-index: 20;
}

.carousel__nav {
  position: absolute;
  top: 50%;
  left: var(--space-xl);
  right: var(--space-xl);
  transform: translateY(-50%);
  z-index: 20;
  pointer-events: none;
  display: flex;
  justify-content: space-between;
}

@media (max-width: 767px) {
  .carousel__nav {
    left: var(--space-lg);
    right: var(--space-lg);
  }
}
.carousel__arrow {
  pointer-events: auto;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform, background, border-color var(--transition-base) ease;
}

.carousel__arrow:hover {
  transform: translateY(-1px) scale(1.03);
  background: rgba(0, 0, 0, 0.5);
  border-color: rgba(212, 175, 55, 0.6);
}

.carousel__arrow:active {
  transform: translateY(0) scale(0.98);
}

.carousel__arrow:focus-visible {
  outline: 2px solid var(--color-accent-gold);
  outline-offset: 2px;
}

.carousel__line {
  display: block;
  width: 100px;
  height: 2px;
  background: rgba(255, 255, 255, 0.25);
}

.carousel__dots {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: var(--space-sm);
}

.carousel__dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-circle);
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: transform, background var(--transition-base) ease;
  padding: 0;
}

.carousel__dot:hover {
  background: var(--color-accent-gold-dim);
}

.carousel__dot--active {
  background: var(--color-accent-gold);
  transform: scale(1.3);
}

.carousel__dot:focus-visible {
  outline: 2px solid var(--color-accent-gold);
  outline-offset: 2px;
}

.carousel__scroll-next {
  position: absolute;
  bottom: var(--space-xl);
  right: var(--space-xl);
  z-index: 20;
}

@media (max-width: 767px) {
  .carousel__scroll-next {
    bottom: var(--space-lg);
    right: var(--space-lg);
  }
}
.carousel {
  /* Адаптив для мобильных */
}

@media (max-width: 767px) {
  .carousel__slide {
    padding-left: 5%;
    padding-bottom: 6rem;
  }
  .carousel__content {
    max-width: 90%;
  }
  .carousel__title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
  }
  .carousel__description {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
  }
}
/* ========================================
10. COMPONENT: CONTACT SECTION
======================================== */
.contact {
  padding-block: var(--space-xxxl) var(--space-xxxl);
  background: #E4D8F1;
  position: relative;
  scroll-margin-top: 96px;
}

.contact__header {
  text-align: left;
  margin-bottom: var(--space-xxl);
}

.contact__title {
  font-size: var(--font-size-xxl);
  font-weight: var(--font-weight-bold);
  color: #1a1a1a;
  margin-bottom: var(--space-sm);
}

.contact__subtitle {
  color: var(--color-text-light);
  font-size: var(--font-size-md);
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  width: 50%;
  margin: 0;
  margin-top: var(--space-xl);
}

.contact__submit-btn {
  width: 270px;
}

@media (max-width: 991px) {
  .contact {
    padding-block: var(--space-xxl) var(--space-xxl);
  }
  .contact__form {
    width: 75%;
  }
}
@media (max-width: 767px) {
  .contact {
    padding-block: var(--space-xl) var(--space-xxl);
  }
  .contact__form {
    width: 100%;
    margin-top: var(--space-lg);
    gap: var(--space-md);
  }
  .contact__submit-btn {
    width: 100%;
  }
}
@media (max-width: 480px) {
  .contact {
    padding-block: var(--space-lg) var(--space-xl);
  }
}
.contact__form textarea:not(.form-textarea--home) {
  min-height: 120px;
  height: auto;
  resize: vertical;
  border-radius: var(--radius-lg);
}

/* Главная: форма как в макете — имя на всю ширину, email | телефон, сообщение (pill, тени) */
.contact__form.contact__form--home {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
  width: 100%;
  max-width: 720px;
}

.contact__form.contact__form--home .contact__form-row--full {
  grid-column: 1/-1;
}

.contact__form.contact__form--home .contact__form-row--split {
  display: contents;
}

.contact__form.contact__form--home .contact__submit-btn {
  grid-column: 1/-1;
  justify-self: start;
  width: auto;
  min-width: 270px;
}

@media (max-width: 991px) {
  .contact__form.contact__form--home {
    max-width: none;
  }
}
@media (max-width: 575px) {
  .contact__form.contact__form--home {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .contact__form.contact__form--home .contact__submit-btn {
    width: 100%;
    min-width: 0;
  }
}
.contact__form .contact__grid {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: var(--space-lg);
  margin: 0;
}

@media (max-width: 575px) {
  .contact__grid {
    flex-direction: column;
    gap: 0;
  }
}
@media (max-width: 767px) {
  .contact__title {
    font-size: var(--font-size-xl);
  }
}
.contact__form .form-group {
  margin-bottom: 0;
}

/* Contact page layout: CTA left, details right, map below */
.contact--page .contact__header {
  margin-bottom: var(--space-xxl);
}

.contact--page .contact__subtitle {
  display: none;
}

.contact--page .contact__intro {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-xxl);
  margin-bottom: var(--space-xxl);
}

@media (max-width: 767px) {
  .contact--page .contact__intro {
    flex-direction: column;
    gap: var(--space-xl);
  }
}
.contact--page .contact__cta {
  flex: 1;
  max-width: 50%;
}

@media (max-width: 767px) {
  .contact--page .contact__cta {
    max-width: 100%;
  }
}
.contact--page .contact__cta-line1 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.contact--page .contact__cta-line2 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-lg);
}

.contact--page .contact__details {
  flex: 1;
  max-width: 50%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg) var(--space-xl);
}

@media (max-width: 767px) {
  .contact--page .contact__details {
    max-width: 100%;
  }
}
@media (max-width: 575px) {
  .contact--page .contact__details {
    grid-template-columns: 1fr;
  }
}
.contact--page .contact__detail-item {
  font-size: 18px;
  color: var(--color-text);
  line-height: 1.5;
}

.contact--page .contact__detail-item strong {
  display: block;
  margin-bottom: var(--space-xxs);
  color: var(--color-text);
}

.contact--page .contact__detail-item a {
  color: inherit;
  text-decoration: none;
}

/* Contact page map - full width block */
.contact-map {
  padding: 0 0 var(--space-xxl);
  margin: 0;
  background: #E4D8F1;
}

.contact-map .container {
  padding-inline: min(5vw, var(--space-xl));
}

.contact-map__heading {
  font-size: var(--font-size-xxl);
  font-weight: var(--font-weight-bold);
  color: #1a1a1a;
  margin-bottom: var(--space-sm);
  text-align: left;
}

.contact-map__address {
  font-size: var(--font-size-base);
  color: var(--color-text);
  margin-bottom: var(--space-lg);
  text-align: left;
}

.contact-map__wrapper {
  width: 100%;
  max-width: none;
  padding: 0;
}

.contact-map__iframe {
  width: 100%;
  height: 400px;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.contact-map__link {
  display: block;
  text-align: center;
  padding: var(--space-md);
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  text-decoration: underline;
}

@media (max-width: 767px) {
  .contact-map {
    padding: 0 0 var(--space-xl);
  }
  .contact-map .container {
    padding-inline: var(--space-md);
  }
  .contact-map__heading {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
  }
  .contact-map__address {
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-md);
  }
  .contact-map__iframe {
    height: min(52vh, 380px);
    min-height: 260px;
    border-radius: var(--radius-md);
  }
  .contact-map__link {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--font-size-xs);
  }
}
@media (max-width: 480px) {
  .contact-map__iframe {
    height: min(48vh, 320px);
  }
}
/* Contact Certificates (Сертификаты и награды) */
.contact-certificates {
  padding: 0 0 var(--space-xxl);
  background: #E4D8F1;
}

.contact-certificates__title {
  font-size: var(--font-size-xxl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary-dark);
  margin-bottom: var(--space-xl);
  text-align: left;
}

.contact-certificates__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.contact-certificates__card {
  background: #E4D8F1;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: 3px 3px 10px rgba(173, 146, 202, 0.5), -3px -3px 10px rgb(255, 255, 255);
  transition: box-shadow var(--transition-base) ease;
}

.contact-certificates__card:hover {
  box-shadow: 4px 4px 12px rgba(173, 146, 202, 0.6), -4px -4px 12px rgb(255, 255, 255);
}

.contact-certificates__placeholder {
  aspect-ratio: 3/4;
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  box-shadow: inset 2px 2px 6px rgba(173, 146, 202, 0.3), inset -2px -2px 6px rgba(255, 255, 255, 0.5);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-certificates__placeholder img {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
  display: block;
}

.contact-certificates__label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary-dark);
  margin: 0;
  line-height: 1.3;
}

@media (max-width: 991px) {
  .contact-certificates__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 767px) {
  .contact-certificates {
    padding: 0 0 var(--space-xl);
  }
  .contact-certificates__title {
    font-size: clamp(1.375rem, 4vw, 1.75rem);
    margin-bottom: var(--space-lg);
  }
  .contact-certificates__card {
    padding: var(--space-md);
  }
  .contact-certificates__label {
    font-size: var(--font-size-xs);
    word-break: break-word;
  }
}
@media (max-width: 575px) {
  .contact-certificates__grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}
/* Contact Page Hero (центр) */
.contact-hero {
  padding: var(--space-xxxl) 0 var(--space-xxl);
  text-align: center;
  background: #E4D8F1;
}

.contact-hero__title {
  font-family: "Montserrat", sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: #570FB9;
  margin-bottom: var(--space-md);
  line-height: var(--line-height-tight);
  max-width: min(90vw, 42rem);
  margin-left: auto;
  margin-right: auto;
}

.contact-hero__subtitle {
  font-family: "Montserrat", sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #000000;
  width: 50%;
  max-width: 36rem;
  margin: 0 auto;
  line-height: var(--line-height-tight);
}

@media (max-width: 991px) {
  .contact-hero__title {
    max-width: none;
  }
  .contact-hero__subtitle {
    width: 85%;
  }
}
@media (max-width: 767px) {
  .contact-hero {
    padding: calc(var(--header-height) + var(--space-lg)) 0 var(--space-xl);
  }
  .contact-hero__title {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    padding-inline: var(--space-xs);
  }
  .contact-hero__subtitle {
    font-size: clamp(1.125rem, 3.5vw, 1.75rem);
    width: 100%;
    max-width: none;
    padding-inline: var(--space-xs);
  }
}
@media (max-width: 480px) {
  .contact-hero {
    padding-top: calc(var(--header-height) + var(--space-md));
  }
}
/* Наша история */
.contact-history {
  padding: 0 0 var(--space-xxl);
  background: #E4D8F1;
}

.contact-history__title {
  font-family: "Montserrat", sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #000000;
  margin-bottom: var(--space-xl);
  text-align: left;
}

.contact-history__quote {
  position: relative;
  margin: 0;
  padding: var(--space-lg) var(--space-xxl);
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: #000000;
  line-height: 1.6;
  width: 80%;
}

.contact-history__quote::before {
  content: '"';
  position: absolute;
  top: 0;
  left: 0;
  font-size: 4rem;
  font-weight: 700;
  color: #570FB9;
  line-height: 1;
}

.contact-history__quote::after {
  content: '"';
  position: absolute;
  bottom: 0;
  right: 0;
  font-size: 4rem;
  font-weight: 700;
  color: #570FB9;
  line-height: 1;
}

.contact-history__quote p {
  margin: 0;
}

@media (max-width: 991px) {
  .contact-history__quote {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
  }
}
@media (max-width: 767px) {
  .contact-history__title {
    font-size: clamp(1.375rem, 4vw, 1.875rem);
    margin-bottom: var(--space-lg);
  }
  .contact-history__quote {
    width: 100%;
    padding: var(--space-lg) var(--space-md) var(--space-md);
    font-size: clamp(0.9375rem, 3.2vw, 1.125rem);
  }
  .contact-history__quote::before, .contact-history__quote::after {
    font-size: 2.5rem;
  }
}
@media (max-width: 480px) {
  .contact-history__quote {
    padding-inline: var(--space-sm);
  }
}
/* Contact Mission Card (стиль «Миссия») */
.contact-mission {
  padding: 0 0 var(--space-xxl);
  background: #E4D8F1;
}

.contact-mission__card {
  background: rgba(255, 255, 255, 0.6);
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.contact-mission__title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary-dark);
  margin: 0;
  flex-shrink: 0;
}

.contact-mission__card--mission {
  background: #E4D8F1;
  box-shadow: 3px 3px 10px rgba(173, 146, 202, 0.5), -3px -3px 10px rgba(255, 255, 255, 0.5);
  width: 70%;
  margin-left: 0;
  margin-right: auto;
}

.contact-mission__card--mission .contact-mission__title {
  font-family: "Montserrat", sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #000000;
}

.contact-mission__text {
  flex: 1;
  min-width: 280px;
  font-family: "Montserrat", sans-serif;
  font-size: 32px;
  font-weight: 400;
  color: #000000;
  margin: 0;
  line-height: 1.6;
}

.contact-mission__line {
  flex: 1;
  min-width: 60px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  align-self: center;
  margin-top: 0.4em;
}

.contact-mission__content {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-mission__item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: var(--font-size-base);
  color: var(--color-text);
}

.contact-mission__item a {
  color: inherit;
  text-decoration: none;
}

.contact-mission__item a:hover {
  color: var(--color-primary);
}

.contact-mission__item--hours, .contact-mission__item--weekend {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
}

.contact-mission__icon {
  flex-shrink: 0;
  width: 24px;
  text-align: center;
  color: var(--color-primary);
}

@media (max-width: 991px) {
  .contact-mission__card--mission {
    width: 100%;
  }
}
@media (max-width: 767px) {
  .contact-mission__card {
    flex-direction: column;
    gap: var(--space-md);
  }
  .contact-mission__card--mission {
    width: 100%;
    padding: var(--space-lg);
  }
  .contact-mission__card--mission .contact-mission__title {
    font-size: clamp(1.375rem, 4vw, 1.75rem);
  }
  .contact-mission__text {
    font-size: clamp(1rem, 3.5vw, 1.25rem);
    min-width: 0;
  }
  .contact-mission__line {
    width: 100%;
    min-width: 0;
  }
}
/* Contact CTA Block (перед футером) */
.contact-cta-block {
  padding: var(--space-xxl) 0;
  text-align: center;
  background: #E4D8F1;
  /* Уже общий .container — заголовок и подзаголовок визуально ближе к макету */
}

.contact-cta-block .container {
  max-width: 38rem;
}

.contact-cta-block__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary-dark);
  margin-bottom: var(--space-sm);
  line-height: var(--line-height-tight);
}

.contact-cta-block__subtitle {
  font-size: var(--font-size-md);
  color: var(--color-text);
  margin-bottom: var(--space-xl);
}

.contact-cta-block__btn {
  display: inline-block;
  padding: var(--space-md) var(--space-xxl);
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-semibold);
}

@media (max-width: 767px) {
  .contact-cta-block {
    padding: var(--space-xl) 0;
  }
  .contact-cta-block .container {
    max-width: min(38rem, 100%);
    padding-inline: var(--space-md);
  }
  .contact-cta-block__subtitle {
    margin-bottom: var(--space-lg);
  }
}
@media (max-width: 575px) {
  .contact-cta-block__btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
  }
}
/* Form Group */
.form-group {
  flex: 1;
  margin-bottom: var(--space-lg);
}

.contact__form .form-group {
  margin-bottom: 0;
}

@media (max-width: 575px) {
  .form-group {
    margin-bottom: var(--space-lg);
  }
  .contact__form .form-group {
    margin-bottom: 0;
  }
  .contact__form .contact__grid {
    flex-direction: column;
    gap: var(--space-lg);
  }
}
.form-label {
  display: block;
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
  font-size: var(--font-size-base);
}

.form-input {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: none;
  border-radius: 100px;
  font-size: var(--font-size-base);
  transition: all var(--transition-base) ease;
  font-family: inherit;
  background-color: #E4D8F1;
  box-shadow: 3px 3px 10px rgb(173, 146, 202), -3px -3px 10px rgb(255, 255, 255);
}

.form-input::-moz-placeholder {
  color: #616161;
  opacity: 1;
}

.form-input::placeholder {
  color: #616161;
  opacity: 1;
}

.form-input:focus {
  outline: none;
  box-shadow: 3px 3px 10px rgb(173, 146, 202), -3px -3px 10px rgb(255, 255, 255), 0 0 0 2px rgba(87, 15, 185, 0.3);
}

.form-group--error .form-input {
  border: 1px solid #E91C1C;
}

.form-group--error .form-input:focus {
  border-color: #E91C1C;
  box-shadow: 3px 3px 10px rgb(173, 146, 202), -3px -3px 10px rgb(255, 255, 255), 0 0 0 1px rgba(233, 28, 28, 0.35);
}

.form-error {
  display: block;
  margin: 6px 0 0;
  padding: 0;
  font-size: 14px;
  font-weight: var(--font-weight-regular);
  font-family: var(--font-family-base);
  color: #E91C1C;
  line-height: 1.35;
}

.form-error:empty {
  display: none;
  margin: 0;
}

.form-textarea {
  resize: none;
  min-height: 48px;
  height: 48px;
  padding: var(--space-sm) var(--space-md);
  line-height: 1.2;
}

/* Главная: поле сообщения — одна строка по умолчанию, как в макете; можно растянуть по вертикали */
.form-textarea--home {
  resize: vertical;
  height: auto;
  min-height: 48px;
  max-height: 220px;
  line-height: 1.35;
  border-radius: 100px;
  padding-top: 12px;
  padding-bottom: 12px;
}

/* Select Custom Arrow */
select.form-input {
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236a0dad' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-md) center;
  padding-right: var(--space-xl);
}

select.form-input:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234b0082' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

select.form-input option {
  padding: var(--space-sm);
}

/* ========================================
11. COMPONENT: FOOTER
======================================== */
.footer {
  background-color: #E4D8F1;
  color: #000;
  font-size: 16px;
  padding-block: var(--space-xxl) var(--space-xxl);
  line-height: var(--line-height-base);
  font-family: var(--font-family-heading);
  position: relative;
  /* Как у .header по теням, но «вверх»: inset сверху + внешняя тень над футером; на всю ширину вьюпорта */
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  box-sizing: border-box;
  box-shadow: inset 0 5px 10px #f2e5ff, 0 -5px 10px rgba(173, 146, 202, 0.25);
}

.footer__container {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: min(5vw, var(--space-xl));
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: var(--space-xxl);
}

@media (max-width: 991px) {
  .footer__container {
    flex-direction: column;
  }
}
.footer__col {
  flex: 1;
}

.footer__col--left {
  max-width: 400px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  flex-wrap: nowrap;
}

@media (max-width: 991px) {
  .footer__col--left {
    max-width: 100%;
    margin-bottom: var(--space-xxl);
  }
}
.footer__col--right {
  max-width: 350px;
}

@media (max-width: 991px) {
  .footer__col--right {
    max-width: 100%;
  }
}
.footer__logo-area {
  margin-bottom: var(--space-md);
}

.footer__logo {
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-xxl);
  color: var(--color-primary);
  display: inline-block;
}

.footer__logo-img {
  height: 48px;
  width: auto;
  display: block;
  -o-object-fit: contain;
     object-fit: contain;
}

.footer__description {
  font-size: 16px;
  color: #000;
  margin-bottom: var(--space-xl);
}

.footer__socials {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: nowrap;
  gap: var(--space-lg);
  margin-bottom: var(--space-xxl);
}

.footer__socials-link, .footer__socials .footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #E4D8F1;
  color: #570FB9;
  font-size: 20px !important;
  transition: all var(--transition-base) ease;
  box-shadow: 3px 3px 10px rgba(173, 146, 202, 0.5), -3px -3px 10px rgba(255, 255, 255, 0.8);
}

.footer__socials-link i,
.footer__socials-link .fab, .footer__socials .footer__social-link i,
.footer__socials .footer__social-link .fab {
  font-size: inherit;
}

.footer__socials-link:hover, .footer__socials .footer__social-link:hover {
  box-shadow: inset 3px 3px 6px rgba(173, 146, 202, 0.3), inset -3px -3px 6px rgba(255, 255, 255, 0.5);
  transform: translateY(1px);
}

.footer__copyright {
  font-size: 16px;
  color: #000;
}

.footer__copyright-link, .footer__policy-link {
  color: #000;
  text-decoration: underline;
  margin-left: var(--space-sm);
}

.footer__title {
  color: #000;
  font-weight: var(--font-weight-semibold);
  font-size: 16px;
  margin-bottom: var(--space-lg);
  display: block;
}

.footer__address {
  font-style: normal;
}

.footer__contact-item {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: nowrap;
  margin-bottom: var(--space-md);
  font-size: 16px;
}

.footer__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  min-width: 36px;
  margin-right: var(--space-md);
  margin-top: 0;
  font-size: var(--font-size-sm);
  color: #570FB9;
  background: #E4D8F1;
  border-radius: 50%;
  box-shadow: 3px 3px 8px rgba(173, 146, 202, 0.5), -3px -3px 8px rgba(255, 255, 255, 0.8);
}

.footer__link {
  color: inherit;
  text-decoration: none;
}

.footer__link:hover {
  color: #333;
}

.footer__hours {
  margin-top: var(--space-xl);
  font-size: 16px;
  color: #000;
}

.footer__hours p {
  margin-bottom: var(--space-xxs);
}

@media (max-width: 767px) {
  .footer {
    padding-block: var(--space-xl) var(--space-lg);
  }
  .footer__container {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xl);
    padding-inline: var(--space-lg);
  }
  .footer__col--left {
    margin-bottom: 0;
  }
  .footer__description {
    margin-bottom: var(--space-lg);
  }
  .footer__socials {
    margin-bottom: var(--space-lg);
  }
  .footer__copyright {
    font-size: var(--font-size-sm);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
  }
  .footer__policy-link {
    margin-left: 0;
  }
}
@media (max-width: 480px) {
  .footer__container {
    padding-inline: var(--space-md);
  }
  .footer__logo-img {
    height: 40px;
  }
  .footer__socials .footer__social-link {
    width: 40px;
    height: 40px;
    font-size: 18px !important;
  }
}
/* ========================================
12. RESPONSIVE UTILITIES
======================================== */
/* Hide on mobile */
@media (max-width: 767px) {
  .hide-mobile {
    display: none !important;
  }
}
/* Hide on desktop */
@media (min-width: 992px) {
  .hide-desktop {
    display: none !important;
  }
}
/* Text sizing responsive */
.text-responsive {
  font-size: clamp(var(--font-size-lg), 3vw, var(--font-size-xxl));
}

/* ========================================
13. PRINT STYLES
======================================== */
@media print {
  header,
  footer,
  .scroll-btn,
  .hero__scroll-link,
  .carousel,
  .skip-link {
    display: none !important;
  }
  body {
    background: white;
    color: black;
  }
  a {
    text-decoration: underline;
  }
  .container {
    width: 100%;
    max-width: none;
  }
}
/* ========================================
14. REDUCED MOTION
======================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* ========================================
15. DARK MODE SUPPORT (Optional)
======================================== */
[data-theme=dark] {
  --color-background: #0d0d0d;
  --color-text: #f5f5ff;
  --color-text-light: #aaaaaa;
  --color-border: #333333;
  --color-background-secondary: #1a1a1a;
}

[data-theme=dark] body::before {
  background: radial-gradient(circle at 1% 0%, rgba(179, 147, 216, 0.2) 0%, transparent 50%), radial-gradient(circle at 40% 23%, rgba(188, 151, 230, 0.15) 0%, transparent 50%), #0d0d0d;
}

[data-theme=dark] .header.scrolled {
  background: rgba(13, 13, 13, 0.95);
}

[data-theme=dark] .scroll-btn {
  background: rgba(13, 13, 13, 0.95);
  border-color: rgba(106, 13, 173, 0.4);
}

/* ========================================
16. COMPONENT: CAROUSEL (Production Infinite Slider)
======================================== */
.carousel {
  /* Используем переменные бренда */
  --carousel-accent: var(--color-primary);
  --carousel-text: var(--color-text-inverse);
  --carousel-overlay: rgba(0, 0, 0, 0.6);
  --carousel-gap: var(--slider-gap, 20px);
  --carousel-slide-width-normal: var(--slide-width-normal, calc(33.333% - 14px));
  --carousel-slide-width-active: var(--slide-width-active, calc(50% - 14px));
  --carousel-slide-height: var(--slide-height, 450px);
  --carousel-transition-speed: var(--transition-speed, 600ms);
  --carousel-transition-easing: var(--transition-easing, cubic-bezier(0.4, 0, 0.2, 1));
  --carousel-shadow-normal: var(--shadow-md);
  --carousel-shadow-active: var(--shadow-lg);
  position: relative;
  width: 100%;
}

.carousel__viewport {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.carousel__wrapper {
  display: flex;
  gap: var(--carousel-gap);
  transition: transform var(--carousel-transition-speed) var(--carousel-transition-easing);
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.carousel {
  /* ===== SLIDE ===== */
}

.carousel .slide {
  flex: 0 0 var(--carousel-slide-width-normal);
  height: var(--carousel-slide-height);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all var(--carousel-transition-speed) var(--carousel-transition-easing);
  box-shadow: var(--carousel-shadow-normal);
  contain: layout style paint;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.carousel .slide:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring, 0 0 0 3px rgba(106, 13, 173, 0.5)), var(--carousel-shadow-normal);
}

.carousel .slide--active {
  flex: 0 0 var(--carousel-slide-width-active);
  z-index: 10;
  box-shadow: var(--carousel-shadow-active);
}

.carousel {
  /* ===== IMAGE ===== */
}

.carousel .slide__image {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform var(--carousel-transition-speed) ease;
  will-change: transform;
}

.carousel .slide--active .slide__image {
  transform: scale(1.05);
}

.carousel {
  /* ===== OVERLAY ===== */
}

.carousel .slide__overlay {
  position: absolute;
  inset: 0;
  background: var(--carousel-overlay);
  transition: opacity var(--carousel-transition-speed) ease;
  z-index: 1;
  pointer-events: none;
}

.carousel .slide--active .slide__overlay {
  opacity: 0;
}

.carousel {
  /* ===== CONTENT ===== */
}

.carousel .slide__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-lg);
  color: var(--carousel-text);
  z-index: 2;
  transition: all var(--carousel-transition-speed) ease;
  pointer-events: none;
}

.carousel .slide--active .slide__content {
  padding: var(--space-xl);
}

.carousel .slide__tag {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  margin-bottom: var(--space-sm);
  transition: all var(--carousel-transition-speed) ease;
}

.carousel .slide--active .slide__tag {
  font-size: var(--font-size-sm);
  padding: var(--space-sm) var(--space-lg);
}

.carousel .slide__title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-xs);
  transition: font-size var(--carousel-transition-speed) ease;
  font-family: var(--font-family-heading);
}

.carousel .slide--active .slide__title {
  font-size: var(--font-size-xl);
}

.carousel .slide__description {
  font-size: var(--font-size-sm);
  opacity: 0.9;
  line-height: var(--line-height-base);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: font-size var(--carousel-transition-speed) ease;
}

.carousel .slide--active .slide__description {
  font-size: var(--font-size-base);
  -webkit-line-clamp: 5;
}

.carousel {
  /* ===== NAVIGATION ===== */
}

.carousel__nav {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.carousel__btn {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-circle);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.95);
  color: var(--carousel-accent);
  font-size: var(--font-size-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel__btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--carousel-accent);
}

.carousel__btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring, 0 0 0 3px rgba(106, 13, 173, 0.5));
}

.carousel__btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

.carousel {
  /* ===== INDICATORS ===== */
}

.carousel__indicators {
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
  margin-top: var(--space-md);
}

.carousel__indicator {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-circle);
  background: rgba(106, 13, 173, 0.3);
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  padding: 0;
}

.carousel__indicator:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring, 0 0 0 3px rgba(106, 13, 173, 0.5));
}

.carousel__indicator--active {
  background: var(--carousel-accent);
  width: 30px;
  border-radius: var(--radius-sm);
}

.carousel {
  /* ===== LAZY LOAD PLACEHOLDER ===== */
}

.carousel .slide__image[data-src] {
  background: linear-gradient(90deg, var(--color-background-secondary) 25%, #e0e0e0 50%, var(--color-background-secondary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
/* ===== CAROUSEL SECTION (glassmorphism без фона, цвет primary-dark) ===== */
.carousel-section {
  padding: var(--space-xxl) var(--space-md);
  overflow-x: hidden;
  color: var(--color-text-inverse);
}

.carousel-section__inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

/* ===== INFINITE CAROUSEL (from test5 - mainCarousel) ===== */
.carousel-section .carousel {
  --carousel-gap: 20px;
  --carousel-slide-width-normal: calc(33.333% - 14px);
  --carousel-slide-width-active: calc(50% - 14px);
  --carousel-slide-height: 450px;
  --carousel-transition: 600ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-speed: 600ms;
  --transition-easing: cubic-bezier(0.4, 0, 0.2, 1);
  --carousel-shadow-normal: 0 8px 32px rgba(87, 15, 185, 0.25);
  --carousel-shadow-active: 0 16px 48px rgba(87, 15, 185, 0.35);
  --carousel-accent: var(--color-primary);
  --carousel-text: var(--color-text-inverse);
  --carousel-focus-ring: 0 0 0 3px rgba(118, 75, 162, 0.5);
  /* Переопределяем Legacy .carousel (чёрный фон и min-height) */
  min-height: auto;
  background: transparent;
  overflow: visible;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  isolation: isolate;
  /* Убираем edge fade от Legacy */
}

.carousel-section .carousel::before {
  display: none;
}

.carousel-section .carousel__viewport {
  overflow: hidden;
  width: 100%;
  min-height: var(--carousel-slide-height, 450px);
  position: relative;
}

.carousel-section .carousel__wrapper {
  display: flex;
  gap: var(--carousel-gap);
  transition: transform var(--carousel-transition);
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.carousel-section .carousel .slide {
  flex: 0 0 var(--carousel-slide-width-normal);
  height: var(--carousel-slide-height);
  border-radius: 20px;
  position: relative;
  opacity: 1;
  overflow: hidden;
  cursor: pointer;
  transition: all var(--carousel-transition);
  box-shadow: 0 8px 32px rgba(87, 15, 185, 0.25);
  border: 1px solid rgba(245, 245, 255, 0.2);
  contain: layout style paint;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.carousel-section .carousel .slide:focus-visible {
  outline: none;
  box-shadow: var(--carousel-focus-ring), 0 8px 32px rgba(87, 15, 185, 0.25);
}

.carousel-section .carousel .slide--active {
  flex: 0 0 var(--carousel-slide-width-active);
  z-index: 10;
  box-shadow: 0 16px 48px rgba(87, 15, 185, 0.35);
  border-color: rgba(245, 245, 255, 0.35);
}

.carousel-section .carousel .slide__image {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform var(--carousel-transition) ease;
  will-change: transform;
}

.carousel-section .carousel .slide--active .slide__image {
  transform: scale(1.05);
}

.carousel-section .carousel .slide__overlay {
  position: absolute;
  inset: 0;
  background: rgba(87, 15, 185, 0.45);
  backdrop-filter: blur(14px);
  transition: all var(--carousel-transition) ease;
  z-index: 1;
  pointer-events: none;
}

.carousel-section .carousel .slide--active .slide__overlay {
  background: rgba(87, 15, 185, 0.35);
  backdrop-filter: blur(12px);
}

.carousel-section .carousel .slide__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  color: var(--carousel-text);
  z-index: 2;
  transition: all var(--carousel-transition) ease;
  pointer-events: none;
}

.carousel-section .carousel .slide--active .slide__content {
  padding: 50px;
}

.carousel-section .carousel .slide__tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(87, 15, 185, 0.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(245, 245, 255, 0.25);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-primary-light);
  margin-bottom: 12px;
  transition: all var(--carousel-transition) ease;
}

.carousel-section .carousel .slide--active .slide__tag {
  font-size: 13px;
  padding: 8px 18px;
  background: rgba(87, 15, 185, 0.6);
  border-color: rgba(245, 245, 255, 0.35);
}

.carousel-section .carousel .slide__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary-light);
  margin-bottom: 8px;
  transition: font-size var(--carousel-transition) ease;
}

.carousel-section .carousel .slide--active .slide__title {
  font-size: 32px;
}

.carousel-section .carousel .slide__description {
  font-size: 13px;
  color: rgba(245, 245, 255, 0.9);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: font-size var(--carousel-transition) ease;
}

.carousel-section .carousel .slide--active .slide__description {
  font-size: 18px;
  -webkit-line-clamp: 5;
}

.carousel-section .carousel__nav {
  position: static;
  transform: none;
  pointer-events: auto;
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.carousel-section .carousel__btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 6px 6px 12px rgba(87, 15, 185, 0.25), -6px -6px 12px rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-section .carousel__btn:hover {
  box-shadow: inset 4px 4px 8px rgba(87, 15, 185, 0.15), inset -4px -4px 8px rgba(255, 255, 255, 0.8);
  transform: translateY(1px);
}

.carousel-section .carousel__btn:active {
  box-shadow: inset 6px 6px 12px rgba(87, 15, 185, 0.2), inset -6px -6px 12px rgba(255, 255, 255, 0.6);
  transform: translateY(2px);
}

.carousel-section .carousel__btn:focus-visible {
  outline: none;
  box-shadow: var(--carousel-focus-ring), 6px 6px 12px rgba(87, 15, 185, 0.25), -6px -6px 12px rgba(255, 255, 255, 0.9);
}

.carousel-section .carousel__btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

.carousel-section .carousel__indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.carousel-section .carousel__indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(87, 15, 185, 0.4);
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  padding: 0;
}

.carousel-section .carousel__indicator:hover {
  background: rgba(87, 15, 185, 0.6);
}

.carousel-section .carousel__indicator:focus-visible {
  outline: none;
  box-shadow: var(--carousel-focus-ring);
}

.carousel-section .carousel__indicator--active {
  background: var(--color-primary-dark);
  width: 24px;
  border-radius: 5px;
}

@media (max-width: 968px) {
  .carousel-section .carousel {
    --carousel-slide-width-normal: calc(50% - 10px);
    --carousel-slide-width-active: calc(70% - 10px);
    --carousel-slide-height: 400px;
  }
}
@media (max-width: 640px) {
  .carousel-section .carousel {
    --carousel-slide-width-normal: 100%;
    --carousel-slide-width-active: 100%;
    --carousel-slide-height: 350px;
    --carousel-gap: 15px;
  }
  .carousel-section .carousel .slide__title {
    font-size: 20px;
  }
  .carousel-section .carousel .slide--active .slide__title {
    font-size: 28px;
  }
}
.carousel-section .carousel .slide__image[data-src] {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: carousel-shimmer 1.5s infinite;
}

@keyframes carousel-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .carousel .slide {
    flex: 0 0 calc(50% - 10px);
    height: 400px;
  }
  .carousel .slide--active {
    flex: 0 0 calc(70% - 10px);
  }
  .carousel .slide__title {
    font-size: var(--font-size-lg);
  }
  .carousel .slide--active .slide__title {
    font-size: var(--font-size-xl);
  }
  .carousel-section {
    padding: var(--space-xl) var(--space-md);
  }
}
@media (max-width: 767px) {
  .carousel .slide {
    flex: 0 0 100%;
    height: 350px;
  }
  .carousel .slide--active {
    flex: 0 0 100%;
  }
  .carousel .slide__content {
    padding: var(--space-md);
  }
  .carousel .slide--active .slide__content {
    padding: var(--space-lg);
  }
  .carousel .slide__title {
    font-size: var(--font-size-md);
  }
  .carousel .slide--active .slide__title {
    font-size: var(--font-size-lg);
  }
  .carousel-section {
    padding: var(--space-lg) var(--space-md);
  }
}
/* ===== REDUCED MOTION FOR CAROUSEL ===== */
@media (prefers-reduced-motion: reduce) {
  .carousel__wrapper,
  .carousel .slide,
  .carousel .slide__image,
  .carousel .slide__overlay,
  .carousel .slide__content,
  .carousel .slide__title,
  .carousel .slide__description,
  .carousel .slide__tag, .carousel__btn, .carousel__indicator {
    transition: none !important;
    animation: none !important;
  }
}
/* ===== GLASS CARDS (cards) ===== */
.glass-cards {
  padding: var(--space-xxxl) var(--space-md);
  background: transparent;
}

.glass-cards__container {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.glass-cards__card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(87, 15, 185, 0.15);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.glass-cards__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(87, 15, 185, 0.25);
}

.glass-cards__image-wrap {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.glass-cards__image {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform var(--transition-slow);
}

.glass-cards__card:hover .glass-cards__image {
  transform: scale(1.05);
}

.glass-cards__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(87, 15, 185, 0.6) 0%, transparent 50%);
  opacity: 0.6;
  transition: opacity var(--transition-base);
}

.glass-cards__card:hover .glass-cards__overlay {
  opacity: 0.8;
}

.glass-cards__content {
  padding: var(--space-lg);
  position: relative;
}

.glass-cards__number {
  font-size: var(--font-size-xxl);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-primary-dark);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.glass-cards__title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.glass-cards__text {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: var(--line-height-base);
  margin-bottom: var(--space-md);
}

.glass-cards__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary-dark);
  text-decoration: none;
  transition: color var(--transition-fast), gap var(--transition-fast);
}

.glass-cards__link:hover {
  color: var(--color-primary);
  gap: var(--space-sm);
}

@media (max-width: 991px) {
  .glass-cards__container {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 767px) {
  .glass-cards {
    padding: var(--space-xxl) var(--space-md);
  }
  .glass-cards__container {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}
/*# sourceMappingURL=style.css.map */