/* ===================================
   CSS VARIABLES & RESET
   =================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #1a1a2e;
  background: #f8f9fc;
  overflow-x: hidden;
}

/* ===================================
   CSS VARIABLES
   =================================== */
:root {
  /* Colors */
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --primary-bg: #eff6ff;
  
  --secondary: #64748b;
  --secondary-dark: #475569;
  
  --accent: #f59e0b;
  --accent-dark: #d97706;
  
  --success: #10b981;
  --success-dark: #059669;
  
  --danger: #ef4444;
  --danger-dark: #dc2626;
  
  --text: #1e293b;
  --text-light: #64748b;
  --text-muted: #94a3b8;
  
  --bg: #ffffff;
  --bg-alt: #f8f9fc;
  --bg-dark: #0f172a;
  
  --border: #e2e8f0;
  --border-dark: #cbd5e1;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* Radius */
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition: 250ms ease;
  --transition-slow: 400ms ease;
  
  /* Spacing */
  --section-padding: 5rem;
  
  /* Container */
  --container-max: 1280px;
}

/* ===================================
   TYPOGRAPHY
   =================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: clamp(1.125rem, 2vw, 1.25rem); }

p {
  color: var(--text-light);
  line-height: 1.7;
}

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

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

/* ===================================
   CONTAINER & LAYOUT
   =================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--section-padding) 0;
}

.section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.section__subtitle {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.section__title {
  margin-bottom: 1rem;
}

.section__description {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.125rem;
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn__icon {
  font-size: 1.125rem;
  transition: transform var(--transition-fast);
}

.btn:hover .btn__icon {
  transform: translateX(4px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.btn--primary:hover {
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
  transform: translateY(-2px);
  color: white;
}

.btn--outline {
  background: transparent;
  border-color: var(--border-dark);
  color: var(--text);
}

.btn--outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-bg);
}

.btn--outline-white {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
}

.btn--outline-white:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.btn--white {
  background: white;
  color: var(--primary);
}

.btn--white:hover {
  background: var(--bg-alt);
  color: var(--primary-dark);
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

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

/* ===================================
   HEADER
   =================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

.header--scrolled {
  box-shadow: var(--shadow-md);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text);
}

.logo__icon {
  font-size: 2rem;
}

.logo__text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav__list {
  display: flex;
  list-style: none;
  gap: 0.75rem;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.1rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-light);
  border-radius: 999px;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.nav__link:hover,
.nav__link.active {
  color: var(--primary);
  background: var(--primary-bg);
  border-color: rgba(37, 99, 235, 0.12);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.header__auth-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.header__auth-link:hover {
  color: var(--primary);
  border-color: var(--border);
  background: var(--bg-alt);
}

.header__auth-user {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--text);
  transition: background var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.header__auth-user:hover {
  background: var(--primary-bg);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.header__auth-user-icon {
  font-size: 1rem;
}

.header__auth-user-name {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Бургер всегда в DOM, но скрыт на десктопе */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.header__phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.header__phone:hover {
  background: var(--bg-alt);
  color: var(--primary);
}

.header__phone-icon {
  font-size: 1.125rem;
}

.header__phone-text {
  white-space: nowrap;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  background-color: #0f172a;
  background-image: url('../images/hero-bg.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    155deg,
    rgba(15, 23, 42, 0.88) 0%,
    rgba(15, 23, 42, 0.58) 42%,
    rgba(30, 58, 95, 0.5) 100%
  );
  pointer-events: none;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 45% 40%, rgba(37, 99, 235, 0.18) 0%, transparent 52%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.hero__title {
  color: white;
  margin-bottom: 1.5rem;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
}

.hero__title-accent {
  display: block;
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: rgba(255, 255, 255, 0.8);
  max-width: 700px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 4rem;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(10px);
}

.stat {
  text-align: center;
}

.stat__value {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat__label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  animation: bounce 2s infinite;
}

.hero__scroll-arrow {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.5);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* ===================================
   PAGE HEADER
   =================================== */
.page-header {
  padding: 140px 0 3rem;
  background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
}

.page-header--sm {
  padding: 100px 0 2rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.breadcrumb__item {
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-fast);
}

.breadcrumb__item:hover {
  color: white;
}

.breadcrumb__item--active {
  color: white;
}

.breadcrumb__separator {
  color: rgba(255, 255, 255, 0.3);
}

.page-title {
  color: white;
  margin-bottom: 1rem;
}

.page-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.125rem;
  max-width: 600px;
}

/* ===================================
   SERVICES SECTION
   =================================== */
.services {
  background: var(--bg);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-8px);
  border-color: var(--primary-light);
}

.service-card__image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.service-card:hover .service-card__image img {
  transform: scale(1.1);
}

.service-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.375rem 0.75rem;
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.service-card__content {
  padding: 1.5rem;
}

.service-card__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.service-card__title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.service-card__text {
  font-size: 0.9375rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.service-card__specs {
  list-style: none;
  margin-bottom: 1.25rem;
}

.service-card__specs li {
  display: flex;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-light);
  padding: 0.375rem 0;
  border-bottom: 1px dashed var(--border);
}

.service-card__specs li:last-child {
  border-bottom: none;
}

.service-card__specs li span:first-child {
  font-weight: 600;
  color: var(--text);
}

.service-card__link {
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap var(--transition-fast);
}

.service-card__link:hover {
  gap: 0.5rem;
}

/* ===================================
   ABOUT SECTION
   =================================== */
.about {
  background: var(--bg-alt);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about__text {
  margin-bottom: 1.5rem;
  font-size: 1.0625rem;
}

.about__features {
  list-style: none;
  margin-bottom: 2rem;
}

.about__feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  font-size: 1rem;
  color: var(--text);
}

.about__feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--success);
  color: white;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.about__images {
  position: relative;
}

.about__image-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about__image-main img {
  width: 100%;
  height: auto;
  display: block;
}

.about__image-card {
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 4px solid white;
}

.about__image-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===================================
   CTA SECTION
   =================================== */
.cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 4rem 0;
}

.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.cta__content {
  flex: 1;
}

.cta__title {
  color: white;
  margin-bottom: 0.75rem;
}

.cta__text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
  margin: 0;
}

.cta__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===================================
   CONTACT SECTION
   =================================== */
.contact {
  background: var(--bg);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact__description {
  font-size: 1.0625rem;
  margin-bottom: 2rem;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact__item {
  display: flex;
  gap: 1rem;
}

.contact__item-icon {
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-bg);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.contact__item strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.contact__item p {
  margin: 0;
  font-size: 0.9375rem;
}

.contact__item a {
  color: var(--text-light);
}

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

.contact__form-wrapper {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.contact__form-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* ===================================
   FORMS
   =================================== */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.form-input:hover {
  border-color: var(--border-dark);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-select {
  cursor: pointer;
  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='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-error {
  display: block;
  color: var(--danger);
  font-size: 0.8125rem;
  margin-top: 0.375rem;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-light);
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
  cursor: pointer;
}

.form-checkbox label {
  cursor: pointer;
  line-height: 1.5;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__brand .logo {
  margin-bottom: 1rem;
}

.footer__brand .logo__text {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer__desc {
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer__socials {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  font-size: 1.25rem;
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer__title {
  color: white;
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: 0.75rem;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--transition-fast);
}

.footer__links a:hover {
  color: var(--primary-light);
  padding-left: 5px;
}

.footer__contact-list {
  list-style: none;
}

.footer__contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.footer__contact-icon {
  font-size: 1.125rem;
  flex-shrink: 0;
}

.footer__contact-list a {
  color: rgba(255, 255, 255, 0.6);
}

.footer__contact-list a:hover {
  color: var(--primary-light);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer__bottom a {
  color: rgba(255, 255, 255, 0.5);
}

.footer__bottom a:hover {
  color: var(--primary-light);
}

/* ===================================
   MODAL
   =================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.active {
  display: flex;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  animation: fadeIn var(--transition-fast) ease;
}

.modal__content {
  position: relative;
  width: 100%;
  max-width: 500px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-xl);
  animation: slideUp var(--transition) ease;
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  border: none;
  border-radius: var(--radius-full);
  font-size: 1.5rem;
  color: var(--text-light);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal__close:hover {
  background: var(--danger);
  color: white;
}

.modal__header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.modal__icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
}

.modal__title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.modal__subtitle {
  color: var(--text-light);
  font-size: 0.9375rem;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================================
   CATALOG & AUTH PAGES
   =================================== */
.page-catalog {
  padding-top: 80px;
}

.page-login main,
.page-account main,
.page-admin main {
  padding-bottom: var(--section-padding);
}

.auth-layout,
.account-layout,
.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
  gap: 2rem;
  margin-top: 2rem;
}

.auth-card,
.account-card,
.admin-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2rem;
}

.auth-card__tabs {
  display: inline-flex;
  padding: 0.25rem;
  border-radius: var(--radius-full);
  background: var(--bg-alt);
  margin-bottom: 1.5rem;
}

.auth-tab {
  border: none;
  background: transparent;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.auth-tab--active {
  background: #ffffff;
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.auth-card__body {
  margin-top: 0.5rem;
}

.auth-pane {
  display: none;
}

.auth-pane--active {
  display: block;
}

.auth-alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.auth-alert--error {
  background: rgba(239, 68, 68, 0.06);
  color: var(--danger-dark);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.auth-alert--success {
  background: rgba(16, 185, 129, 0.06);
  color: var(--success-dark);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.auth-form + .auth-form {
  margin-top: 1rem;
}

.form-hint {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.auth-aside__card,
.account-aside__card {
  background: #020617;
  color: #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-xl);
}

.auth-aside__card h3,
.account-aside__card h3 {
  color: #e5e7eb;
  margin-bottom: 0.75rem;
}

/* ===================================
   ADMIN PAGE
   =================================== */
.page-admin {
  padding-top: 80px;
}

.admin-layout {
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  align-items: flex-start;
}

.admin-sidebar {
  background: #020617;
  color: #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  height: fit-content;
}

.admin-sidebar__title {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-bottom: 1rem;
}

.admin-nav__item {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  color: #cbd5f5;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.admin-nav__item:hover {
  background: rgba(148, 163, 184, 0.2);
  transform: translateX(2px);
}

.admin-nav__item--active {
  background: #0f172a;
  color: #f9fafb;
}

.admin-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.admin-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.admin-summary-card {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.admin-summary-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
}

.admin-summary-value {
  font-size: 1.4rem;
  font-weight: 600;
}

.admin-panel {
  display: none;
}

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

.admin-panel__header h2 {
  margin-bottom: 0.25rem;
}

.admin-panel__header p {
  margin: 0;
  color: var(--text-muted);
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.admin-table-wrapper {
  max-height: 480px;
  overflow: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table thead {
  background: var(--bg-alt);
  position: sticky;
  top: 0;
  z-index: 1;
}

.admin-table th,
.admin-table td {
  padding: 0.4rem 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
  white-space: normal;
}

.admin-table th:first-child,
.admin-table td:first-child {
  white-space: nowrap;
}

.admin-table tbody tr:hover {
  background: rgba(15, 23, 42, 0.03);
}

.admin-table__action {
  border: none;
  background: transparent;
  font-size: 0.8rem;
  color: var(--primary);
  cursor: pointer;
  padding: 0.1rem 0.3rem;
}

.admin-table__action--danger {
  color: var(--danger);
}

.admin-alert {
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
}

.admin-alert--error {
  background: rgba(239, 68, 68, 0.06);
  color: var(--danger-dark);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.admin-alert--success {
  background: rgba(16, 185, 129, 0.06);
  color: var(--success-dark);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.status-badge--success {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.status-badge--danger {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.status-badge--admin {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}

.status-badge--muted {
  background: rgba(148, 163, 184, 0.15);
  color: #64748b;
}

.admin-form .form-row {
  margin-bottom: 0.9rem;
}

.admin-form .form-row label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.admin-form .form-row input,
.admin-form .form-row select {
  width: 100%;
}

.admin-form .form-row--inline {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.admin-form .checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
}

.admin-form .form-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

@media (max-width: 960px) {
  .admin-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-sidebar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .admin-sidebar__title {
    margin: 0;
  }
}

.auth-benefits,
.account-benefits {
  list-style: none;
  margin: 0.5rem 0 1rem;
  padding: 0;
}

.auth-benefits li,
.account-benefits li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.9rem;
  color: #cbd5f5;
  margin-bottom: 0.35rem;
}

.auth-benefits li::before,
.account-benefits li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
}

.auth-aside__hint {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-top: 0.5rem;
}

.account-card__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.account-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.account-name {
  font-size: 1.3rem;
}

.account-role {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.account-section {
  margin-top: 1rem;
}

.account-section h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.account-info {
  margin: 0;
}

.account-info__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px dashed var(--border);
}

.account-info__row dt {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.account-info__row dd {
  font-size: 0.9rem;
  color: var(--text);
}

.account-card__footer {
  margin-top: 1.5rem;
}

@media (max-width: 900px) {
  .auth-layout,
  .account-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.catalog__layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
}

/* Filters Sidebar */
.filters {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border);
  position: sticky;
  top: 100px;
  height: fit-content;
}

.filters__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.filters__title {
  font-size: 1.125rem;
  font-weight: 700;
}

.filters__reset {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: color var(--transition-fast);
}

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

.filter-group {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.filter-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.filter-group__title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.filter-group__options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9375rem;
  color: var(--text-light);
  transition: color var(--transition-fast);
}

.filter-option:hover {
  color: var(--text);
}

.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.filter-option--switch {
  justify-content: space-between;
}

.filter-option__switch {
  position: relative;
  width: 44px;
  height: 24px;
  background: var(--border);
  border-radius: var(--radius-full);
  transition: background var(--transition-fast);
}

.filter-option__switch::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}

.filter-option input:checked + .filter-option__switch,
.filter-option input:checked ~ .filter-option__switch {
  background: var(--primary);
}

.filter-option input:checked + .filter-option__switch::before,
.filter-option input:checked ~ .filter-option__switch::before {
  transform: translateX(20px);
}

/* Price Range */
.price-range {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.price-range__inputs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price-range__input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
}

.price-range__separator {
  color: var(--text-muted);
}

.price-range__slider {
  height: 4px;
  background: var(--border);
  border-radius: var(--radius-full);
  position: relative;
}

/* Catalog Toolbar */
.catalog__toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1rem 1.5rem;
  background: var(--bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.catalog__results {
  font-size: 0.9375rem;
  color: var(--text-light);
}

.catalog__view {
  display: flex;
  gap: 0.25rem;
}

.view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-light);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.view-btn:hover,
.view-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.products-grid--list {
  grid-template-columns: 1fr;
}

/* Product Card (Catalog) */
.product-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--primary-light);
}

.product-card__image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-card__image img {
  transform: scale(1.1);
}

.product-card__badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-card__badge {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-card__badge--popular {
  background: var(--accent);
  color: white;
}

.product-card__badge--stock {
  background: var(--success);
  color: white;
}

.product-card__content {
  padding: 1.25rem;
}

.product-card__category {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.product-card__title {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.product-card__desc {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.product-card__price {
  display: flex;
  flex-direction: column;
}

.product-card__price-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.product-card__price-unit {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.product-card__btn {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.pagination__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pagination__btn:hover,
.pagination__btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.pagination__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===================================
   PRODUCT PAGE
   =================================== */
.page-product {
  padding-top: 80px;
}

.product {
  background: var(--bg-alt);
}

.product__layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

/* Product Gallery */
.product__gallery {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.product__main-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1rem;
  aspect-ratio: 4/3;
}

.product__main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product__badges {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product__badge {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(10px);
}

.product__badge--popular {
  background: rgba(245, 158, 11, 0.95);
  color: white;
}

.product__badge--stock {
  background: rgba(16, 185, 129, 0.95);
  color: white;
}

.product__thumbnails {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.product__thumbnail {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-fast);
}

.product__thumbnail:hover,
.product__thumbnail.active {
  border-color: var(--primary);
}

.product__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Product Info */
.product__info {
  padding: 1rem 0;
}

.product__header {
  margin-bottom: 1.5rem;
}

.product__category {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.product__title {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.product__rating {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.product__stars {
  display: flex;
  gap: 0.125rem;
}

.star {
  color: var(--accent);
  font-size: 1.125rem;
}

.star--empty {
  color: var(--border);
}

.product__reviews {
  font-size: 0.875rem;
  color: var(--text-light);
}

/* Price Block */
.product__price-block {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: var(--primary-bg);
  border-radius: var(--radius-lg);
}

.product__price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.product__price-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1;
}

.product__price-unit {
  font-size: 1rem;
  color: var(--text-light);
}

.product__old-price {
  font-size: 1.25rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product__description {
  font-size: 1.0625rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}

/* Order Form */
.product__order {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.product__order-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.product__quantity {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.quantity__label {
  font-weight: 500;
  font-size: 0.9375rem;
}

.quantity {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.quantity__btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  border: none;
  font-size: 1.5rem;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.quantity__btn:hover {
  background: var(--primary);
  color: white;
}

.quantity__input {
  width: 80px;
  height: 44px;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
}

.quantity__input:focus {
  outline: none;
}

.product__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  margin-bottom: 1.25rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.product__total span:first-child {
  font-size: 1rem;
  color: var(--text-light);
}

.product__total-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.product__order .btn {
  margin-bottom: 0.75rem;
}

.product__meta {
  display: flex;
  gap: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.product__meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.product__meta-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.product__meta-value {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
}

/* Product Tabs */
.product__tabs {
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}

.tabs__item {
  flex: 1;
  padding: 1.25rem;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: all var(--transition-fast);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.tabs__item:hover {
  color: var(--text);
  background: var(--bg-alt);
}

.tabs__item--active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tabs__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 0.5rem;
  background: var(--primary-bg);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-left: 0.5rem;
}

.tabs__content {
  padding: 2rem;
}

.tabs__pane {
  display: none;
}

.tabs__pane--active {
  display: block;
}

.tabs__pane h3 {
  margin-bottom: 1.5rem;
}

/* Specs Table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr {
  border-bottom: 1px solid var(--border);
}

.specs-table tr:last-child {
  border-bottom: none;
}

.specs-table td {
  padding: 1rem 0;
  font-size: 0.9375rem;
}

.specs-table td:first-child {
  font-weight: 500;
  color: var(--text-light);
  width: 50%;
}

.specs-table td:last-child {
  color: var(--text);
}

/* Delivery Info */
.delivery-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.delivery-card {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
}

.delivery-card__icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.delivery-card__content h4 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.delivery-card__content p {
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
}

.delivery-card__content ul {
  list-style: disc;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-light);
}

.delivery-card__content li {
  margin-bottom: 0.375rem;
}

/* Reviews */
.reviews {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.review-card {
  padding: 1.5rem;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
}

.review-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.review-card__author {
  font-weight: 600;
  color: var(--text);
}

.review-card__date {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.review-card__rating {
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.review-card__text {
  font-size: 0.9375rem;
  line-height: 1.7;
  margin: 0;
}

/* Rating Input */
.rating-input {
  display: flex;
  gap: 0.5rem;
  font-size: 2rem;
}

.rating-star {
  color: var(--border);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.rating-star:hover,
.rating-star.active {
  color: var(--accent);
}

/* Related Products */
.related {
  padding-top: 3rem;
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 1024px) {
  .catalog__layout {
    grid-template-columns: 1fr;
  }
  
  .filters {
    position: relative;
    top: 0;
    margin-bottom: 2rem;
  }
  
  .product__layout {
    grid-template-columns: 1fr;
  }
  
  .product__gallery {
    position: relative;
    top: 0;
  }
  
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 3rem;
  }

  /* Header Mobile */
  .header__inner {
    height: 70px;
    gap: 1rem;
  }

  /* Бургер слева */
  .nav-toggle {
    display: flex;
    order: 0;
  }

  /* Логотип по центру */
  .logo {
    order: 1;
    margin: 0 auto;
  }

  .logo__icon {
    font-size: 1.75rem;
  }

  .logo__text {
    font-size: 1.25rem;
  }

  /* Телефон и кнопка скрыты */
  .header__phone {
    display: none;
  }

  .header__actions .btn--sm {
    display: none;
  }

  /* Mobile Navigation: маркетплейс-style дровер под шапкой */
  .nav {
    position: fixed;
    top: 70px; /* высота мобильной шапки */
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    background: #ffffff;
    flex-direction: column;
    padding: 1.25rem 1.5rem 1.75rem;
    width: 100%;
    transform: translateX(100%);
    transition: transform var(--transition);
  }

  .nav.show {
    transform: translateX(0);
  }

  .nav__list {
    flex-direction: column !important;
    gap: 0.5rem !important;
    padding-top: 0.5rem !important;
    height: 100% !important;
    overflow-y: auto !important;
    background: transparent !important;
    list-style: none !important;
    margin: 0 !important;
    padding-left: 0 !important;
  }

  .nav__list::before {
    content: 'Меню';
    display: block;
    padding: 0 0 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.9);
  }

  /* Nav Toggle - базовые стили для мобильной анимации */
  .nav-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1000;
  }

  .nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #1e293b;
    border-radius: 2px;
    transition: all var(--transition-fast);
  }

  .nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
  }

  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav__link {
    padding: 1rem 0;
    font-size: 1.05rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text);
    position: relative;
  }

  .nav__link:hover {
    background: rgba(15, 23, 42, 0.03);
  }

  .nav__link.active {
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
  }

  .nav__link.active::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0.4rem;
    bottom: 0.4rem;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
  }

  .nav__link::before {
    font-size: 1.25rem;
  }

  /* Иконки для основных пунктов меню */
  .nav__link[href="/"]::before { content: '🏠'; }
  .nav__link[href^="/catalog"]::before { content: '📦'; }
  .nav__link[href*="#services"]::before { content: '🛠️'; }
  .nav__link[href*="#about"]::before { content: '👥'; }
  .nav__link[href*="#faq"]::before { content: '❓'; }
  .nav__link[href*="#contact"]::before { content: '📞'; }

  .nav__link:last-child {
    border-bottom: none;
  }

  .nav__link.active {
    background: var(--primary-bg);
    color: var(--primary);
    border-left: 4px solid var(--primary);
    padding-left: calc(2rem - 4px);
  }

  .nav__link--phone {
    background: var(--primary);
    color: white !important;
    justify-content: center;
    font-weight: 700;
    margin: 1rem 2rem;
    border-radius: var(--radius-md);
    border: none !important;
    padding: 1rem 2rem !important;
  }

  .nav__link--phone:hover {
    background: var(--primary-dark);
  }

  /* Nav Overlay (под шапкой, размывает фон) */
  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 998;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
  }

  .nav-overlay.show {
    opacity: 1;
    visibility: visible;
    background: rgba(0, 0, 0, 0.6);
  }

  .hero__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .services__grid {
    grid-template-columns: 1fr;
  }
  
  .about__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .about__image-card {
    position: relative;
    bottom: auto;
    left: auto;
    width: 100%;
    margin-top: 1rem;
  }
  
  .cta__inner {
    flex-direction: column;
    text-align: center;
  }
  
  .cta__actions {
    justify-content: center;
  }
  
  .contact__grid {
    grid-template-columns: 1fr;
  }
  
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer__bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .catalog__toolbar {
    flex-direction: column;
    gap: 1rem;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .delivery-info {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .tabs__item {
    flex: none;
    padding: 1rem 1.5rem;
    white-space: nowrap;
  }

  /* FAQ Mobile */
  .faq__grid {
    grid-template-columns: 1fr;
  }

  .faq__question {
    font-size: 0.9375rem;
    padding: 1rem 1.25rem;
  }

  .faq__answer p {
    padding: 0 1.25rem 1rem;
    font-size: 0.875rem;
  }

  /* Chat Mobile */
  .chat-button {
    bottom: 1rem;
    right: 1rem;
    padding: 0.875rem 1.25rem;
  }

  .chat-button__text {
    display: none;
  }

  .chat-window {
    bottom: 5.5rem;
    right: 1rem;
    left: 1rem;
    width: auto;
    max-width: none;
    height: calc(100vh - 8rem);
    max-height: 500px;
  }

  .chat-window__header {
    padding: 0.875rem 1rem;
  }

  .chat-window__name {
    font-size: 0.9375rem;
  }

  .chat-window__messages {
    padding: 0.75rem;
  }

  .chat-message {
    max-width: 90%;
  }

  .chat-message__avatar {
    width: 32px;
    height: 32px;
    font-size: 1.125rem;
  }

  .chat-message__content p {
    font-size: 0.875rem;
  }

  .chat-window__quick-replies {
    padding: 0.5rem 0.75rem;
  }

  .quick-reply {
    padding: 0.4rem 0.875rem;
    font-size: 0.75rem;
  }

  .chat-window__input {
    padding: 0.75rem;
  }

  .chat-input {
    font-size: 0.875rem;
  }

  .chat-send {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__stats {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .stat__value {
    font-size: 1.75rem;
  }

  .stat__label {
    font-size: 0.8125rem;
  }

  .product__thumbnails {
    grid-template-columns: repeat(4, 1fr);
    overflow-x: auto;
  }

  .product__meta {
    flex-direction: column;
    gap: 1rem;
  }

  .modal__content {
    padding: 1.5rem;
  }

  /* Extra mobile optimizations */
  .header__inner {
    height: 70px;
  }

  .logo__text {
    font-size: 1.25rem;
  }

  .logo__icon {
    font-size: 1.75rem;
  }

  .btn--lg {
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
  }

  .section__title {
    font-size: 1.5rem;
  }

  .service-card__image {
    height: 180px;
  }

  .contact__form-wrapper {
    padding: 1.5rem;
  }

  .footer__grid {
    gap: 1.5rem;
  }

  /* FAQ extra mobile */
  .faq__question {
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
  }

  .faq__icon {
    width: 24px;
    height: 24px;
    font-size: 1rem;
  }

  /* Chat extra mobile */
  .chat-button {
    padding: 0.75rem 1rem;
  }

  .chat-button__icon {
    font-size: 1.25rem;
  }

  .chat-window {
    bottom: 4.5rem;
    height: calc(100vh - 7rem);
  }

  .quick-reply {
    padding: 0.375rem 0.75rem;
    font-size: 0.7rem;
  }
}

/* Mobile nav overrides: прячем десктопное меню, используем отдельный дровер */
@media (max-width: 768px) {
  .nav {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    top: auto;
    width: auto;
    height: auto;
    padding: 0;
    background: transparent;
    transform: none;
    display: none;
  }

  .mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    max-width: 80%;
    background: #ffffff;
    box-shadow: var(--shadow-md);
    transform: translateX(-100%);
    transition: transform var(--transition);
    z-index: 2001;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1rem 1.5rem;
  }

  .mobile-menu.open {
    transform: translateX(0);
  }

  .mobile-menu__nav {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }
}

/* Общие стили шапки и пунктов дровера (мобилка + ПК) */
.mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--border);
}

.mobile-menu__title {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.mobile-menu__close {
  border: none;
  background: transparent;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  color: var(--text-light);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.mobile-menu__close:hover {
  color: var(--primary);
}

.mobile-menu__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.25rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.mobile-menu__item:hover {
  background: var(--bg-alt);
  transform: translateX(2px);
}

.mobile-menu__item.is-active {
  background: var(--primary-bg);
  color: var(--primary);
}

.mobile-menu__item--phone {
  margin-top: 0.75rem;
  justify-content: center;
  background: var(--primary);
  color: #ffffff;
}

/* Desktop: тоже используем бургер + дровер вместо горизонтального меню */
@media (min-width: 769px) {
  .nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 320px;
    max-width: 80%;
    background: #ffffff;
    box-shadow: var(--shadow-md);
    transform: translateX(-100%);
    transition: transform var(--transition);
    z-index: 2001;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1.25rem 1.75rem;
  }

  .mobile-menu.open {
    transform: translateX(0);
  }

  .mobile-menu__nav {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }
}

/* ===================================
   UTILITIES & ANIMATIONS
   =================================== */
.fade-in {
  animation: fadeIn 0.5s ease;
}

.slide-up {
  animation: slideUp 0.5s ease;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-alt);
}

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

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

/* Selection */
::selection {
  background: var(--primary);
  color: white;
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ===================================
   FAQ SECTION
   =================================== */
.faq {
  background: var(--bg-alt);
}

.faq__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.faq__item {
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition);
}

.faq__item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.faq__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}

.faq__question:hover {
  background: var(--bg-alt);
}

.faq__question[aria-expanded="true"] {
  color: var(--primary);
  background: var(--primary-bg);
}

.faq__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-full);
  font-size: 1.25rem;
  font-weight: 700;
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq__question[aria-expanded="true"] .faq__icon {
  transform: rotate(45deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow) ease;
}

.faq__answer.active {
  max-height: 500px;
}

.faq__answer p {
  padding: 0 1.5rem 1.25rem;
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-light);
}

/* ===================================
   ONLINE CHAT
   =================================== */
.chat-button {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-lg), 0 0 0 4px rgba(37, 99, 235, 0.2);
  transition: all var(--transition);
}

.chat-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl), 0 0 0 6px rgba(37, 99, 235, 0.25);
}

.chat-button__icon {
  font-size: 1.5rem;
  animation: chatPulse 2s infinite;
}

@keyframes chatPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.chat-button__text {
  display: none;
}

@media (min-width: 480px) {
  .chat-button__text {
    display: inline;
  }
}

.chat-button__badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: var(--danger);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

.chat-button__badge.hidden {
  display: none;
}

/* Chat Window */
.chat-window {
  position: fixed;
  bottom: 6rem;
  right: 2rem;
  z-index: 1000;
  width: calc(100vw - 2rem);
  max-width: 400px;
  height: 550px;
  max-height: calc(100vh - 8rem);
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all var(--transition);
}

.chat-window.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chat-window__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
}

.chat-window__title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-window__icon {
  font-size: 2rem;
}

.chat-window__name {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: white;
}

.chat-window__status {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.chat-window__status::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: var(--radius-full);
  animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.chat-window__close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: var(--radius-full);
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.chat-window__close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.chat-window__messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--bg-alt);
}

.chat-message {
  display: flex;
  gap: 0.75rem;
  max-width: 85%;
  animation: messageSlide 0.3s ease;
}

@keyframes messageSlide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-message--bot {
  align-self: flex-start;
}

.chat-message--user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-message__avatar {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-bg);
  border-radius: var(--radius-full);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.chat-message--user .chat-message__avatar {
  background: var(--success);
}

.chat-message__content {
  background: var(--bg);
  padding: 0.875rem 1rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.chat-message--user .chat-message__content {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
}

.chat-message__content p {
  margin: 0 0 0.375rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.chat-message:last-child .chat-message__content p {
  margin-bottom: 0;
}

.chat-message__time {
  font-size: 0.6875rem;
  color: var(--text-muted);
  display: block;
  text-align: right;
}

.chat-message--user .chat-message__time {
  color: rgba(255, 255, 255, 0.7);
}

.chat-window__quick-replies {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  overflow-x: auto;
  border-top: 1px solid var(--border);
  background: var(--bg);
  -webkit-overflow-scrolling: touch;
}

.quick-reply {
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  background: var(--primary-bg);
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.quick-reply:hover {
  background: var(--primary);
  color: white;
}

.chat-window__input {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.chat-input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--text);
  transition: all var(--transition-fast);
}

.chat-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.chat-input::placeholder {
  color: var(--text-muted);
}

.chat-send {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: none;
  border-radius: var(--radius-full);
  color: white;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.chat-send:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.chat-send:active {
  transform: scale(0.95);
}

.chat-send svg {
  stroke-width: 2.5;
}

/* Typing indicator */
.chat-typing {
  display: flex;
  gap: 0.25rem;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border-radius: var(--radius-lg);
  width: fit-content;
}

.chat-typing span {
  width: 8px;
  height: 8px;
  background: var(--text-muted);
  border-radius: var(--radius-full);
  animation: typingBounce 1.4s infinite;
}

.chat-typing span:nth-child(2) {
  animation-delay: 0.2s;
}

.chat-typing span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingBounce {
  0%, 60%, 100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-8px);
  }
}
