/* ============================================
   SWELA — Base CSS (common.css section)
   Pink Rose palette, Open Sans, Pill BR-5
   Generated by styling agent for template 6
   ============================================ */

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: 'Rubik', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: #4B5563;
  background: #FDF2F8;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; }

/* --- Rubik (variable font, weight 400-700) --- */
@font-face {
  font-family: 'Rubik';
  src: url('/assets/fonts/rubik-cyrillic.woff2?v=1') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Rubik';
  src: url('/assets/fonts/rubik-latin.woff2?v=1') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- CSS Variables --- */
:root {
  /* Colour palette */
  --color-primary: #DB2777;
  --color-primary-hover: #BE185D;
  --color-primary-light: #FCE7F3;
  --color-text: #1F2937;
  --color-text-secondary: #4B5563;
  --color-muted: #9CA3AF;
  --color-bg: #FDF2F8;
  --color-surface: #FFFFFF;
  --color-border: #F3E8F0;
  --color-footer-bg: #1F2937;
  --color-footer-text: #D1D5DB;
  --color-theme: #DB2777;

  /* Typography */
  --font-family: 'Rubik', system-ui, -apple-system, sans-serif;
  --font-size-base: 15px;
  --font-size-sm: 13px;
  --font-size-lg: 18px;
  --font-size-h1: 24px;
  --font-size-h2: 20px;
  --font-size-h3: 17px;

  /* Border radius — BR-5 (Pill) */
  --radius-card: 24px;
  --radius-button: 999px;
  --radius-input: 999px;
  --radius-badge: 999px;

  /* Shadows — SH-4 (Colored pink glow) */
  --shadow-card: 0 4px 16px rgba(219, 39, 119, 0.12);
  --shadow-card-hover: 0 8px 24px rgba(219, 39, 119, 0.20);
  --shadow-button: 0 4px 12px rgba(219, 39, 119, 0.25);

  /* Spacing — SD-2 (Normal) */
  --gap-cards: 16px;
  --padding-card: 16px;
  --padding-section: 32px 0;
  --gap-elements: 12px;
}

/* --- Container --- */
.sw-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 900px) {
  .sw-container {
    padding: 0 24px;
  }
}

/* --- Utilities --- */
.sw-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.sw-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sw-line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sw-line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Buttons — BT-1 (Pill) --- */
.sw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius-button);
  font-family: var(--font-family);
  font-weight: 600;
  font-size: var(--font-size-base);
  line-height: 1.3;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.sw-btn--primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-button);
}
.sw-btn--primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(219, 39, 119, 0.35);
}
.sw-btn--primary:active {
  transform: translateY(0);
}
.sw-btn--secondary {
  background: var(--color-primary-light);
  color: var(--color-primary);
  box-shadow: none;
}
.sw-btn--secondary:hover {
  background: #F9D0E7;
  transform: translateY(-1px);
}
.sw-btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.sw-btn--outline:hover {
  background: var(--color-primary-light);
  transform: translateY(-1px);
}
.sw-btn--sm {
  padding: 6px 16px;
  font-size: var(--font-size-sm);
}
.sw-btn--lg {
  padding: 14px 32px;
  font-size: var(--font-size-lg);
}
.sw-btn--block {
  width: 100%;
}
.sw-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* --- Footer — FT-1 (Dark) --- */
.sw-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 48px 0 24px;
  margin-top: auto;
}
.sw-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}
.sw-footer__brand {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
}
.sw-footer__tagline {
  font-size: var(--font-size-sm);
  color: var(--color-footer-text);
  margin-top: 4px;
  line-height: 1.5;
}
.sw-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.sw-footer__link {
  font-size: var(--font-size-sm);
  color: var(--color-footer-text);
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.sw-footer__link:hover {
  color: #fff;
}
.sw-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
}
.sw-footer__copy {
  font-size: var(--font-size-sm);
  color: #9CA3AF;
}

@media (min-width: 640px) {
  .sw-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

/* --- Animations — AN-2 (Smooth Transitions) --- */
/* Base transition for interactive elements */
a, button {
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- 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;
  }
}
/* --- Header (Template 6 / Swela / prefix: sw-) --- */

/* === Variables (sw-* legacy aliases for header/menu blocks) === */
:root {
  --sw-primary: #DB2777;
  --sw-primary-hover: #BE185D;
  --sw-primary-light: #FCE7F3;
  --sw-text: #1F2937;
  --sw-body: #4B5563;
  --sw-muted: #9CA3AF;
  --sw-bg: #FDF2F8;
  --sw-surface: #FFFFFF;
  --sw-border: #F3E8F0;
  --sw-footer-bg: #1F2937;
  --sw-footer-text: #D1D5DB;
  --sw-gradient: linear-gradient(135deg, #DB2777, #9333EA);
  --sw-radius: 8px;
  --sw-radius-pill: 20px;
  --sw-font: 'Rubik', system-ui, -apple-system, sans-serif;
}

/* === Header (H-COLOR-4: gradient pink→purple) === */
.sw-header {
  position: sticky;
  top: 0;
  z-index: 300;
  background: var(--sw-gradient);
  box-shadow: 0 2px 12px rgba(147, 51, 234, 0.25);
}

.sw-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header row: logo left, burger right */
.sw-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 12px;
}

/* Logo — крупное, прижато влево */
.sw-header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.sw-header__logo-img {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.sw-header__logo-text {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .sw-header__logo-img {
    width: 48px;
    height: 48px;
  }
  .sw-header__logo-text {
    font-size: 24px;
  }
  .sw-header__row {
    min-height: 72px;
  }
}

/* Burger button */
.sw-header__burger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--sw-radius);
  cursor: pointer;
  color: #fff;
  transition: background 0.2s;
  padding: 0;
  flex-shrink: 0;
}

.sw-header__burger:hover {
  background: rgba(255, 255, 255, 0.25);
}

.sw-header__burger svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
  fill: none;
}

/* === Fullscreen Menu (H-MOBILE-4) === */
.sw-fullscreen-menu {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: stretch;
  pointer-events: none;
}

.sw-fullscreen-menu.is-open {
  pointer-events: auto;
}

/* Backdrop */
.sw-fullscreen-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 41, 55, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.sw-fullscreen-menu.is-open .sw-fullscreen-menu__backdrop {
  opacity: 1;
}

/* Panel — takes full width on mobile, max-width on desktop */
.sw-fullscreen-menu__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 420px;
  background: var(--sw-surface);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.sw-fullscreen-menu.is-open .sw-fullscreen-menu__panel {
  transform: translateX(0);
}

/* Top bar inside panel */
.sw-fullscreen-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--sw-gradient);
  flex-shrink: 0;
}

.sw-fullscreen-menu__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}

.sw-fullscreen-menu__logo img {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  display: block;
}

.sw-fullscreen-menu__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--sw-radius);
  cursor: pointer;
  color: #fff;
  padding: 0;
  transition: background 0.2s;
}

.sw-fullscreen-menu__close:hover {
  background: rgba(255, 255, 255, 0.35);
}

.sw-fullscreen-menu__close svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
  fill: none;
}

/* Menu content area */
.sw-fullscreen-menu__content {
  flex: 1;
  padding: 8px 0;
  overflow-y: auto;
}

/* Section title */
.sw-fullscreen-menu__section {
  padding: 4px 0;
}

.sw-fullscreen-menu__section-title {
  padding: 10px 20px 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sw-muted);
}

/* Group toggle button */
.sw-fullscreen-menu__group {
  border-bottom: 1px solid var(--sw-border);
}

.sw-fullscreen-menu__group:last-child {
  border-bottom: none;
}

.sw-fullscreen-menu__group-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 13px 20px;
  background: none;
  border: none;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: var(--sw-text);
  cursor: pointer;
  font-family: var(--sw-font);
  transition: background 0.15s;
}

.sw-fullscreen-menu__group-toggle:hover {
  background: var(--sw-primary-light);
}

.sw-fullscreen-menu__group-icon {
  display: flex;
  align-items: center;
  color: var(--sw-primary);
  flex-shrink: 0;
}

.sw-fullscreen-menu__group-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
}

.sw-fullscreen-menu__group-label {
  flex: 1;
}

.sw-fullscreen-menu__group-arrow {
  display: flex;
  align-items: center;
  color: var(--sw-muted);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.sw-fullscreen-menu__group-arrow svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
}

.sw-fullscreen-menu__group.is-expanded .sw-fullscreen-menu__group-arrow {
  transform: rotate(180deg);
}

/* Group items accordion */
.sw-fullscreen-menu__items {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.sw-fullscreen-menu__group.is-expanded .sw-fullscreen-menu__items {
  max-height: 600px;
}

.sw-fullscreen-menu__link {
  display: block;
  padding: 10px 20px 10px 46px;
  font-size: 14px;
  color: var(--sw-body);
  text-decoration: none;
  border-top: 1px solid var(--sw-border);
  transition: background 0.15s, color 0.15s;
}

.sw-fullscreen-menu__link:hover {
  background: var(--sw-primary-light);
  color: var(--sw-primary);
}

/* Footer static links */
.sw-fullscreen-menu__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 16px 20px;
  border-top: 1px solid var(--sw-border);
  flex-shrink: 0;
}

.sw-fullscreen-menu__footer a {
  font-size: 12px;
  color: var(--sw-muted);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: var(--sw-radius-pill);
  border: 1px solid var(--sw-border);
  transition: color 0.15s, border-color 0.15s;
}

.sw-fullscreen-menu__footer a:hover {
  color: var(--sw-primary);
  border-color: var(--sw-primary-light);
}

/* === Backdrop (generic, used by dropdowns, etc.) === */
.sw-nav__backdrop {
  display: none; /* Fullscreen menu uses its own backdrop */
}

/* === Main container === */
.sw-main {
  min-height: 60vh;
  padding-bottom: 40px;
}

