/* 🎨 Regno ОТ — Минималистичный дизайн */

/* ============================================
   ГЛОБАЛЬНЫЙ RESET ДЛЯ СЕРОГО ПОДСВЕЧИВАНИЯ
   ============================================ */
* {
  -webkit-tap-highlight-color: transparent !important;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  touch-action: manipulation; /* Отключает double-tap zoom */
}

input, textarea, button, select, a {
  -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
}

/* Разрешаем выделение текста в полях ввода */
input, textarea {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* ============================================
   ЦВЕТОВАЯ ПАЛИТРА
   ============================================ */
:root {
  --primary: #5680E9;
  --secondary: #84CEEB;
  --accent: #5AB9EA;
  --light: #C1C8E4;
  --purple: #8860D0;
  
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8F9FA;
  --text-primary: #2C3E50;
  --text-secondary: #6C757D;
  --text-muted: #ADB5BD;
  
  --card-bg: #FFFFFF;
  --card-border: rgba(86, 128, 233, 0.1);
  --shadow: 0 2px 12px rgba(86, 128, 233, 0.08);
  --shadow-hover: 0 8px 24px rgba(86, 128, 233, 0.15);
  
  --radius: 12px;
  --radius-lg: 16px;
  --transition: 0.3s ease;
}

/* ============================================
   БАЗОВЫЕ СТИЛИ
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  background: var(--bg-secondary);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent; /* глобально убираем серое подсвечивание */
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}

a:hover {
  color: var(--accent);
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 32px;
  height: 92px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  animation: slideDown 0.6s ease;
  gap: 48px; /* расстояние между brand и nav */
}

.brand {
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.main-nav a {
  font-weight: 700;
  color: #fff;
  transition: var(--transition);
  font-size: 1.25rem;
}

.main-nav a:hover {
  color: #fff;
}

.header-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-left: auto; /* кнопки прижимаются к правому краю */
}

.header-actions .btn {
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
}

.header-actions .btn + .btn {
  margin-left: -0.25rem;
}

/* ============================================
   MOBILE NAVIGATION (for landing page)
   ============================================ */
.mobile-nav-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
  opacity: 1;
}

.mobile-nav-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: #fff;
  z-index: 2000;
  padding: 60px 20px 20px;
  transition: right 0.3s ease;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
}

.mobile-nav-menu.open {
  right: 0;
}

.mobile-nav-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0.5rem;
}

.mobile-nav-close:hover {
  color: var(--primary);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-links a {
  padding: 1rem;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: var(--radius);
  transition: var(--transition);
}

.mobile-nav-links a:hover {
  background: rgba(86, 128, 233, 0.1);
  color: var(--primary);
}

.mobile-nav-links hr {
  margin: 1rem 0;
  border: none;
  border-top: 1px solid var(--card-border);
}

.mobile-nav-links .btn {
  text-align: center;
  margin-top: 0.5rem;
}

/* Black tile under header with only right rounded corner visible */
.hero-tile {
  height: 60vh;
  background: #000;
  border-bottom-right-radius: 150px;
  margin-top: 92px; /* отступ равен высоте хедера, чтобы плитка не заходила под него */
  width: 100%;
  animation: slideDown 0.6s ease;
  display: flex;
  align-items: flex-start;
  justify-content: center; /* центрируем общий блок hero-content */
  padding: 64px 0; /* паддинг сверху/снизу 64px, слева/справа 0 */
  color: #fff;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 183px; /* увеличенный зазор между текстом и лого */
  text-align: left;
  padding: 0 80px; /* верх/низ 0, слева/справа 80px */
  margin: 0 auto;
  height: 350px; /* фиксированная высота */
  max-width: 1400px; /* ограничение ширины */
}

.hero-content__text {
  flex: 1 1 auto;
}

.hero-content h1 {
  color: #fff;
  font-size: 2.6rem; /* уменьшен заголовок */
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-content p {
  color: rgba(255,255,255,0.85);
  font-size: 1.25rem; /* увеличено описание */
  max-width: 720px;
  margin-bottom: 1.5rem;
}

.hero-content__logo {
  display: block;
  height: 400px;
  max-height: 40vh;
  flex-shrink: 0;
}

/* ============================================
   КНОПКИ
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  font-size: 1rem;
  transition: var(--transition);
  text-decoration: none;
  font-family: 'Manrope', sans-serif;
  -webkit-tap-highlight-color: transparent; /* убрать серое подсветивание на мобильных */
  background-color: transparent; /* по умолчанию без серого */
}
.btn--solid:active { background-color: var(--accent); }

/* Для обычных ссылок убираем фон при тапе, но не для кнопок */
.link-button:active,
.main-nav a:not(.btn):active {
  background-color: transparent;
}

.btn--solid {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow);
}

.btn--solid:hover {
  background: var(--accent);
  box-shadow: var(--shadow-hover);
}

/* убираем серое подсветивание при активном клике */
.btn:active,
.btn--outline:active {
  filter: none;
  box-shadow: var(--shadow);
}

/* Нажатая сплошная кнопка должна оставаться видимой */
.btn--solid:active {
  filter: none;
  box-shadow: var(--shadow);
  background: var(--accent); /* сохраняем заливку при удержании */
}

.btn:focus { outline: none; }

.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn--outline:hover {
  background: var(--primary);
  color: white;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8rem 5% 4rem;
  animation: fadeIn 1s ease;
}

.hero-section h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
  animation: fadeInUp 0.8s ease;
}

.hero-section p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 2.5rem;
  animation: fadeInUp 1s ease;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  animation: fadeInUp 1.2s ease;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-section {
  padding: 4rem 5%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
  animation: fadeInUp 0.6s ease;
  animation-delay: calc(var(--card-index, 0) * 0.1s);
  opacity: 0;
  animation-fill-mode: forwards;
  border-left: 4px solid var(--primary);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 50%, var(--secondary) 100%);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-hover);
  border-left-color: var(--accent);
}

.feature-card:hover::before {
  width: 6px;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: inline-block;
  padding: 0.75rem;
  background: rgba(86, 128, 233, 0.1);
  border-radius: var(--radius);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
  padding: 4rem 5%;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.about-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.about-section p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 2rem 5%;
  text-align: center;
  background: var(--card-bg);
  border-top: 1px solid var(--card-border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer a {
  color: var(--primary);
  text-decoration: underline;
}

/* ============================================
   AUTH PAGES
   ============================================ */
.page--auth {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  background: linear-gradient(135deg, var(--light) 0%, var(--secondary) 100%);
}

.auth-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  width: 100%;
  max-width: 450px;
  animation: fadeInUp 0.6s ease;
}

.auth-card h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
  color: var(--primary);
}

.auth-card--wide {
  max-width: 960px;
  padding: clamp(2.5rem, 2vw + 2rem, 4rem);
  box-shadow: 0 18px 45px rgba(86, 128, 233, 0.18);
}

.auth-card--wide h1 {
  text-align: left;
  margin-bottom: 1rem;
}

.auth-card__subtitle {
  margin-bottom: 2rem;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .auth-card--wide h1,
  .auth-card--wide .auth-card__subtitle {
    text-align: center;
  }
}

/* ============================================
   FORMS
   ============================================ */
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-stack--two-column {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem 1.75rem;
}

@media (min-width: 900px) {
  .form-stack--two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-field span {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.form-field input {
  padding: 0.875rem 1rem;
  border: 2px solid var(--card-border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: 'Manrope', sans-serif;
  background: var(--bg-secondary);
  color: var(--text-primary);
  transition: var(--transition);
}

.form-field select {
  padding: 0.875rem 1rem;
  border: 2px solid var(--card-border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: 'Manrope', sans-serif;
  background: var(--bg-secondary);
  color: var(--text-primary);
  transition: var(--transition);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230a55df' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-field select:hover {
  border-color: var(--primary);
}

.form-field select:focus {
  outline: none;
  border-color: var(--primary);
  background-color: white;
  box-shadow: 0 0 0 3px rgba(10, 85, 223, 0.1);
}

.form-field select option {
  background: white;
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  border-radius: var(--radius);
  border: 2px solid var(--primary);
}

.form-field select option:hover {
  background: linear-gradient(135deg, rgba(10, 85, 223, 0.08) 0%, rgba(10, 85, 223, 0.12) 100%);
  color: var(--primary);
  border-color: var(--primary);
}

.form-field select option:checked {
  background: linear-gradient(135deg, var(--primary) 0%, #0845b8 100%);
  color: white;
  font-weight: 600;
  border-color: var(--primary);
}

.form-field select option[value=""] {
  color: var(--text-muted);
  font-style: italic;
}

.form-field input:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
}

.form-field input[type="password"] {
  font-size: 0.9rem;
  letter-spacing: -0.05em;
  font-weight: 400;
  height: 54px;
}

.form-field input[type="password"]:focus {
  font-size: 0.9rem;
  letter-spacing: -0.05em;
  font-weight: 400;
}

.form-field input[type="password"]::placeholder {
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: normal;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 0.4rem; /* уменьшено расстояние между квадратиком и текстом */
  font-size: 0.9rem;
  color: var(--text-secondary);
  /* Кликабельность только на сам квадрат */
  pointer-events: none;
  user-select: none; /* предотвращаем залипание активного состояния при выделении текста */
}

.checkbox-field a {
  pointer-events: auto; /* ссылки внутри чекбокса должны быть кликабельными */
  color: var(--primary);
  text-decoration: none;
  position: relative;
  z-index: 1; /* поднимаем ссылку выше чекбокса */
}

.checkbox-field a:hover {
  color: var(--accent);
}

/* Отключаем ховер эффект чекбокса когда наводим на ссылку */
.checkbox-field:has(a:hover) input[type="checkbox"] {
  border-color: var(--primary);
  box-shadow: 0 2px 6px rgba(86,128,233,0.15);
}

.checkbox-field input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  cursor: pointer;
  border: 1.5px solid var(--primary); /* менее жирный контур пустого квадрата */
  border-radius: 6px;
  background: #fff; /* фиксируем белый фон по умолчанию */
  transition: var(--transition);
  position: relative;
  box-shadow: 0 2px 6px rgba(86,128,233,0.15);
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent; /* убираем серое подсвечивание при нажатии на мобильных */
  -webkit-focus-ring-color: transparent; /* убираем серый фокус кольца в WebKit */
  touch-action: manipulation; /* устраняет залипание :active на мобильных */
  user-select: none; /* запрещаем выделение */
}

/* Галочка */
.checkbox-field input[type="checkbox"]::after {
  content: '';
  position: absolute;
  inset: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 13l4 4L19 7' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 48% center; /* слегка левее */
  background-size: 110% 110%;
  opacity: 0;
  transform: scale(0.85);
  transition: 0.18s ease;
}

.checkbox-field input[type="checkbox"]:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(86,128,233,0.25);
  background: #fff; /* без серого/заливки при ховере */
}

/* при нажатии убираем серое подсвечивание */
.checkbox-field input[type="checkbox"]:active {
  outline: none;
  box-shadow: none;
  background: #fff; /* сохраняем белый фон при нажатии, чтобы не было серого */
}

/* Если чекбокс не отмечен, выдерживаем белый фон даже в :active */
.checkbox-field input[type="checkbox"]:not(:checked):active {
  background: #fff !important;
  background-color: #fff !important;
}

/* На всякий случай гасим актив при потере фокуса */
.checkbox-field input[type="checkbox"]:not(:active) {
  background: #fff;
}

/* Радикальное решение: перебиваем все возможные состояния */
.checkbox-field input[type="checkbox"]:not(:checked) {
  background: #fff !important;
  background-color: #fff !important;
}

.checkbox-field input[type="checkbox"]:not(:checked):hover,
.checkbox-field input[type="checkbox"]:not(:checked):focus,
.checkbox-field input[type="checkbox"]:not(:checked):active,
.checkbox-field input[type="checkbox"]:not(:checked):focus-visible {
  background: #fff !important;
  background-color: #fff !important;
}

/* на фокус и focus-visible не даём менять фон/выделение */
.checkbox-field input[type="checkbox"]:focus,
.checkbox-field input[type="checkbox"]:focus-visible {
  outline: none;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(0,0,0,0);
}

.checkbox-field input[type="checkbox"]:focus {
  outline: none; /* убираем серое/синеватое выделение */
  box-shadow: 0 0 0 3px rgba(86,128,233,0.35);
}

.checkbox-field input[type="checkbox"]:checked {
  background: var(--primary); /* заливка и контур одного цвета */
  border-color: var(--primary);
  box-shadow: none;
}

.checkbox-field input[type="checkbox"]:checked:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.checkbox-field input[type="checkbox"]:checked:active {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: none;
}

/* Дополнительно: убираем серый tap highlight в iOS/Safari */
@supports (-webkit-touch-callout: none) {
  .checkbox-field input[type="checkbox"] {
    -webkit-tap-highlight-color: transparent;
  }
}

/* Firefox: убираем внутренний серый фокус у кнопок и чекбокса */
.btn::-moz-focus-inner,
.checkbox-field input[type="checkbox"]::-moz-focus-inner {
  border: 0;
}

.checkbox-field input[type="checkbox"]:checked::after {
  opacity: 1;
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .checkbox-field input[type="checkbox"],
  .checkbox-field input[type="checkbox"]::after {
    transition: none;
  }
}

.form-hint {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.form-actions .btn {
  flex-shrink: 0;
}

.form-actions .form-hint {
  margin: 0;
  text-align: left;
}

.form-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(86, 128, 233, 0.2);
  background: rgba(86, 128, 233, 0.08);
}

.form-notice__icon {
  font-size: 1.75rem;
}

.form-notice__content {
  flex: 1;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.form-notice__content strong {
  display: block;
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.form-notice .btn {
  margin-left: auto;
}

@media (max-width: 600px) {
  .form-notice .btn {
    width: 100%;
  }
}

.form-hint a {
  color: var(--primary);
  font-weight: 600;
}

.form-error {
  padding: 0.875rem;
  background: #FEE;
  border: 1px solid #FCC;
  color: #C33;
  border-radius: var(--radius);
  font-size: 0.9rem;
  text-align: center;
}

.form-success {
  padding: 0.875rem;
  background: #EFE;
  border: 1px solid #CFC;
  color: #3C3;
  border-radius: var(--radius);
  font-size: 0.9rem;
  text-align: center;
}

.link-button {
  background: none;
  border: none;
  color: var(--primary);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0;
  text-align: center;
  font-family: 'Manrope', sans-serif;
}

.link-button:hover {
  color: var(--accent);
}

/* ============================================
   DASHBOARD
   ============================================ */
.dashboard-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100vh;
  background: var(--bg-secondary);
}

.sidebar {
  background: rgba(86, 128, 233, 0.08); /* мягкий прозрачный синий */
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px); /* легкое размытие для глубины */
  border-right: 1px solid rgba(86, 128, 233, 0.2); /* правый контур */
}

.sidebar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2rem;
  font-family: 'Montserrat', sans-serif;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-nav a {
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition);
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: rgba(86, 128, 233, 0.1);
  color: var(--primary);
}

.main-content {
  padding: 2rem;
  overflow-y: auto;
  position: relative;
}

.main-content__header {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  z-index: 10;
}

.profile-btn {
  background: transparent;
  border: none;
  color: var(--primary);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.5rem 0;
  transition: var(--transition);
  text-decoration: none;
}

.profile-btn:hover {
  color: var(--accent);
}

/* User Dropdown */
.user-dropdown {
  position: relative;
}

.user-dropdown__toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: none;
  color: #000; /* черный цвет */
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  font-family: 'Manrope', sans-serif;
  transition: var(--transition);
}

.user-dropdown__toggle:hover {
  color: #333;
  background: rgba(86, 128, 233, 0.08);
}

.user-dropdown.open .user-dropdown__toggle {
  background: rgba(86, 128, 233, 0.12); /* синий прозрачный фон при открытии */
  color: var(--primary);
}

.user-dropdown__arrow {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

.user-dropdown.open .user-dropdown__arrow {
  transform: rotate(180deg);
}

.user-dropdown__menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 180px;
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
}

.user-dropdown.open .user-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown__item {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Manrope', sans-serif;
  text-decoration: none;
}

.user-dropdown__item:hover {
  background: rgba(86, 128, 233, 0.08);
  color: var(--primary);
}

.user-dropdown__item--logout {
  color: #C33;
}

.user-dropdown__item--logout:hover {
  background: rgba(204, 51, 51, 0.08);
  color: #C33;
}

.user-dropdown__divider {
  margin: 0.5rem 0;
  border: none;
  border-top: 1px solid var(--card-border);
}

/* Plan info styles */
.plan-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.plan-info p {
  margin: 0;
  color: var(--text-secondary);
}

.plan-info strong {
  color: var(--text-primary);
}

.plan-status {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.plan-status--active {
  background: rgba(76, 175, 80, 0.15);
  color: #4CAF50;
}

.plan-status--expired {
  background: rgba(244, 67, 54, 0.15);
  color: #F44336;
}

.content-header {
  margin-bottom: 2rem;
}

.content-header h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.content-header p {
  color: var(--text-secondary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.stat-card h3 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.section-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

/* Обёртка для таблиц со скроллом на мобильных */
.section-card .table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  background: var(--card-bg);
}

/* Убираем двойную рамку для таблиц внутри table-scroll */
.section-card .table-scroll table {
  border: none;
  border-radius: 0;
  margin: 0;
  min-width: 900px;
}

.section-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

/* ============================================
   ТАБЛИЦЫ
   ============================================ */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
}

table {
  width: 100%;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card-bg);
}

/* Рамка и закругление для таблиц внутри section-card */
.section-card table {
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
}

/* Закругление углов для таблицы */
.section-card table thead tr:first-child th:first-child {
  border-top-left-radius: var(--radius);
}

.section-card table thead tr:first-child th:last-child {
  border-top-right-radius: var(--radius);
}

.section-card table tbody tr:last-child td:first-child {
  border-bottom-left-radius: var(--radius);
}

.section-card table tbody tr:last-child td:last-child {
  border-bottom-right-radius: var(--radius);
}

thead {
  background: rgba(86, 128, 233, 0.05);
}

th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--primary);
  border-bottom: 2px solid var(--card-border);
  white-space: nowrap;
}

td {
  padding: 1rem;
  border-bottom: 1px solid var(--card-border);
  color: var(--text-secondary);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover {
  background: rgba(86, 128, 233, 0.03);
}

/* ============================================
   ВСПОМОГАТЕЛЬНЫЕ КЛАССЫ
   ============================================ */
.content-view {
  display: none;
}

.content-view.active {
  display: block;
}

.features-list {
  list-style: none;
  padding: 0;
}

.features-list li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  font-size: 1rem;
}

.file-upload-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.file-upload-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 2px dashed var(--card-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.file-upload-label:hover {
  border-color: var(--primary);
  background: rgba(86, 128, 233, 0.03);
}

.file-upload-label input[type="file"] {
  display: none;
}

.file-upload-label span {
  color: var(--text-secondary);
  font-weight: 500;
}

textarea {
  padding: 0.875rem 1rem;
  border: 2px solid var(--card-border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: 'Manrope', sans-serif;
  background: var(--bg-secondary);
  color: var(--text-primary);
  transition: var(--transition);
  resize: vertical;
}

textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
}

/* ============================================
   АНИМАЦИИ
   ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

/* ============================================
   МОДАЛЬНЫЕ ОКНА
   ============================================ */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal.open {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
}

.modal.open .modal-content {
  transform: scale(1) translateY(0);
}

.modal-content--wide {
  max-width: 700px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--card-border);
}

.modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.modal-content .form-stack {
  padding: 1.5rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--card-border);
}

.form-section-title {
  font-weight: 600;
  color: var(--primary);
  margin: 1.5rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--card-border);
}

.form-section-title:first-child {
  margin-top: 0;
}

/* ============================================
   SECTION CARD HEADER
   ============================================ */
.section-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-card__header h3 {
  margin: 0;
}

.btn-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ============================================
   ФИЛЬТРЫ
   ============================================ */
.filter-bar {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.filter-bar select,
.filter-bar input {
  padding: 0.5rem 1rem;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.875rem;
  background: var(--bg-secondary);
  color: var(--text-primary);
  min-width: 150px;
}

.filter-bar select:focus,
.filter-bar input:focus {
  outline: none;
  border-color: var(--primary);
}

/* ============================================
   STATUS BADGES
   ============================================ */
.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge--draft {
  background: rgba(173, 181, 189, 0.2);
  color: var(--text-muted);
}

.status-badge--active {
  background: rgba(86, 128, 233, 0.15);
  color: var(--primary);
}

.status-badge--signed {
  background: rgba(0, 255, 136, 0.15);
  color: #00cc6a;
}

.status-badge--ok {
  background: rgba(0, 255, 136, 0.15);
  color: #00cc6a;
}

.status-badge--pending {
  background: rgba(255, 165, 0, 0.15);
  color: #e69500;
}

.status-badge--overdue,
.status-badge--failed {
  background: rgba(204, 51, 51, 0.15);
  color: #C33;
}

/* ============================================
   ICON BUTTONS
   ============================================ */
.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  font-size: 1rem;
  border-radius: var(--radius);
  transition: var(--transition);
}

.btn-icon:hover {
  background: var(--bg-secondary);
}

/* ============================================
   КАЛЕНДАРЬ
   ============================================ */
.calendar-container {
  margin-bottom: 1.5rem;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.calendar-header span {
  font-weight: 600;
  font-size: 1.1rem;
}

.calendar-grid {
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--card-border);
}

.calendar-weekdays span {
  padding: 0.75rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.calendar-day {
  padding: 0.75rem;
  text-align: center;
  border-right: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  position: relative;
  cursor: pointer;
  transition: var(--transition);
}

.calendar-day:nth-child(7n) {
  border-right: none;
}

.calendar-day:hover {
  background: var(--bg-secondary);
}

.calendar-day--empty {
  background: var(--bg-secondary);
  cursor: default;
}

.calendar-day--pending::after,
.calendar-day--passed::after,
.calendar-day--overdue::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.calendar-day--pending::after {
  background: #ffa500;
}

.calendar-day--passed::after {
  background: #00ff88;
}

.calendar-day--overdue::after {
  background: #C33;
}

.calendar-legend {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.legend-dot--pending {
  background: #ffa500;
}

.legend-dot--passed {
  background: #00ff88;
}

.legend-dot--overdue {
  background: #C33;
}

/* ============================================
   EVENTS LIST
   ============================================ */
.events-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.event-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--bg-secondary);
  margin-bottom: 0.5rem;
  align-items: center;
}

.event-item--overdue {
  background: rgba(204, 51, 51, 0.1);
  border-left: 3px solid #C33;
}

.event-date {
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

.event-title {
  color: var(--text-secondary);
}

/* ============================================
   EMPLOYEE CARD
   ============================================ */
.employee-card {
  display: grid;
  gap: 1.5rem;
}

.employee-card__section {
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius);
}

.employee-card__section h4 {
  margin-bottom: 0.75rem;
  color: var(--primary);
  font-size: 0.9rem;
  text-transform: uppercase;
}

.employee-card__section p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

.mini-table {
  width: 100%;
  font-size: 0.85rem;
}

.mini-table th,
.mini-table td {
  padding: 0.5rem;
}

/* ============================================
   MOBILE MENU BUTTON
   ============================================ */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius);
  transition: var(--transition);
}

.mobile-menu-btn:hover {
  background: rgba(86, 128, 233, 0.1);
}

.sidebar-close {
  display: none;
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0.5rem;
  border-radius: 50%;
}

.sidebar-close:hover {
  background: rgba(86, 128, 233, 0.1);
  color: var(--primary);
}

/* Overlay for mobile sidebar */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
}

/* ============================================
   RESPONSIVE TABLE WRAPPER
   ============================================ */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -1rem;
  padding: 0 1rem;
}

.table-responsive table {
  min-width: 600px;
}

/* ============================================
   АДАПТИВНОСТЬ - ПЛАНШЕТЫ
   ============================================ */
@media (max-width: 1024px) {
  .hero-content {
    gap: 60px;
    padding: 0 40px;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content__logo {
    height: 300px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   АДАПТИВНОСТЬ - МОБИЛЬНЫЕ (768px)
   ============================================ */
@media (max-width: 768px) {
  /* HEADER */
  .site-header {
    padding: 0 16px;
    height: 70px;
    gap: 16px;
  }

  .brand {
    font-size: 1.6rem;
  }

  .main-nav {
    display: none;
  }

  .mobile-nav-btn {
    display: block;
    margin-left: auto;
  }

  .mobile-nav-overlay {
    display: block;
    pointer-events: none;
  }

  .mobile-nav-overlay.active {
    pointer-events: auto;
  }

  .mobile-nav-menu {
    display: block;
  }

  .header-actions {
    display: none;
  }

  /* HERO TILE */
  .hero-tile {
    height: auto;
    min-height: 50vh;
    margin-top: 70px;
    border-bottom-right-radius: 60px;
    padding: 40px 0;
  }

  .hero-content {
    flex-direction: column;
    gap: 30px;
    padding: 0 20px;
    height: auto;
    text-align: center;
  }

  .hero-content__text {
    order: 1;
  }

  .hero-content h1 {
    font-size: 1.8rem;
    text-align: center;
  }

  .hero-content p {
    font-size: 1rem;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-content__logo {
    order: 0;
    height: 150px;
    max-height: 25vh;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  /* FEATURES */
  .features-section {
    grid-template-columns: 1fr;
    padding: 2rem 16px;
    gap: 1rem;
  }

  .feature-card {
    padding: 1.5rem;
  }

  /* ABOUT */
  .about-section {
    padding: 2rem 16px;
  }

  .about-section h2 {
    font-size: 1.8rem;
  }

  .about-section p {
    font-size: 1rem;
  }

  /* DASHBOARD */
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .mobile-menu-btn {
    display: block;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    z-index: 1001;
    transition: left 0.3s ease;
    padding-top: 60px;
  }

  .sidebar.open {
    left: 0;
  }

  .sidebar-close {
    display: block;
  }

  .sidebar-overlay {
    display: block;
    pointer-events: none;
  }

  .sidebar-overlay.active {
    pointer-events: auto;
  }

  /* Белый цвет для ссылок в sidebar на мобильных (сильная специфичность) */
  .sidebar .sidebar-nav a,
  .sidebar .sidebar-nav a:link,
  .sidebar .sidebar-nav a:visited {
    color: #fff !important;
  }

  .sidebar .sidebar-nav a:hover,
  .sidebar .sidebar-nav a.active {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #fff !important;
  }

  .main-content {
    padding: 1rem;
    padding-top: 60px;
  }

  .main-content__header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 100;
  }

  .content-header h2 {
    font-size: 1.5rem;
  }

  /* CARDS */
  .section-card {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .section-card__header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .section-card__header h3 {
    font-size: 1.1rem;
  }

  .btn-group {
    flex-direction: column;
  }

  .btn-group .btn {
    width: 100%;
  }

  /* STATS */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .stat-card {
    padding: 1rem;
  }

  .stat-card h3 {
    font-size: 1.5rem;
  }

  .stat-card p {
    font-size: 0.8rem;
  }

  /* TABLES - мобильный скролл */
  .section-card {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table {
    font-size: 0.85rem;
    min-width: 600px; /* минимальная ширина для скролла */
  }

  table th,
  table td {
    padding: 0.5rem 0.4rem;
  }

  /* FILTERS */
  .filter-bar {
    flex-direction: column;
    gap: 0.5rem;
  }

  .filter-bar select,
  .filter-bar input {
    width: 100%;
    min-width: auto;
  }

  /* MODAL */
  .modal-content {
    width: 95%;
    max-width: none;
    max-height: 90vh;
    margin: 1rem;
    border-radius: var(--radius);
  }

  .modal-content--wide {
    max-width: none;
  }

  .modal-header {
    padding: 1rem;
  }

  .modal-header h3 {
    font-size: 1.1rem;
  }

  .modal-content .form-stack {
    padding: 1rem;
  }

  .form-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .form-actions .btn {
    width: 100%;
  }

  /* CALENDAR */
  .calendar-weekdays span {
    padding: 0.5rem 0.25rem;
    font-size: 0.65rem;
  }

  .calendar-day {
    padding: 0.5rem 0.25rem;
    font-size: 0.85rem;
  }

  .calendar-legend {
    flex-direction: column;
    gap: 0.5rem;
  }

  /* USER DROPDOWN */
  .user-dropdown__toggle {
    padding: 0.4rem 0.6rem;
    font-size: 0.9rem;
  }

  .user-dropdown__menu {
    min-width: 160px;
  }

  /* AUTH */
  .auth-card {
    padding: 1.5rem;
  }

  .auth-card h1 {
    font-size: 1.8rem;
  }

  .auth-card--wide {
    padding: 1.5rem;
  }

  /* FORMS */
  .form-field input,
  .form-field select,
  .form-field textarea {
    font-size: 16px; /* Prevents iOS zoom */
  }

  /* Grid columns in forms - stack on mobile */
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* EVENTS */
  .event-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* ============================================
   АДАПТИВНОСТЬ - МАЛЕНЬКИЕ МОБИЛЬНЫЕ (480px)
   ============================================ */
@media (max-width: 480px) {
  .site-header {
    padding: 0 12px;
  }

  .brand {
    font-size: 1.4rem;
  }

  .header-actions .btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
  }

  .hero-tile {
    padding: 30px 0;
    border-bottom-right-radius: 40px;
  }

  .hero-content {
    padding: 0 12px;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-content p {
    font-size: 0.9rem;
  }

  .hero-content__logo {
    height: 120px;
  }

  /* DASHBOARD */
  .main-content {
    padding: 0.75rem;
    padding-top: 56px;
  }

  .content-header {
    margin-bottom: 1rem;
  }

  .content-header h2 {
    font-size: 1.3rem;
  }

  .content-header p {
    font-size: 0.85rem;
  }

  /* STATS */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .stat-card {
    padding: 0.75rem;
  }

  .stat-card h3 {
    font-size: 1.25rem;
  }

  .stat-card p {
    font-size: 0.7rem;
  }

  /* BUTTONS */
  .btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  /* TABLE */
  table th,
  table td {
    padding: 0.4rem 0.3rem;
    font-size: 0.8rem;
  }

  .btn-icon {
    padding: 0.3rem;
    font-size: 0.9rem;
  }

  /* STATUS BADGES */
  .status-badge {
    padding: 0.2rem 0.5rem;
    font-size: 0.65rem;
  }

  /* SECTION CARD */
  .section-card {
    padding: 0.75rem;
  }

  /* MODAL */
  .modal-content {
    margin: 0.5rem;
    border-radius: 12px;
  }

  .modal-header {
    padding: 0.75rem;
  }

  .modal-content .form-stack {
    padding: 0.75rem;
  }

  .form-field span {
    font-size: 0.85rem;
  }

  /* EMPLOYEE CARD */
  .employee-card__section {
    padding: 0.75rem;
  }

  .employee-card__section h4 {
    font-size: 0.8rem;
  }

  .employee-card__section p {
    font-size: 0.85rem;
  }

  /* AUTH */
  .page--auth {
    padding: 1rem;
  }

  .auth-card {
    padding: 1.25rem;
  }

  .auth-card h1 {
    font-size: 1.5rem;
  }

  /* FEATURES LIST */
  .features-list {
    font-size: 0.9rem;
  }

  .features-list li {
    padding: 0.4rem 0;
  }
}
