

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary:        #1a56db;
  --primary-dark:   #1343b0;
  --primary-light:  #e8f0fd;
  --accent:         #f59e0b;
  --accent-dark:    #d97706;

  --dark:           #0f172a;
  --gray-900:       #1e293b;
  --gray-700:       #334155;
  --gray-500:       #64748b;
  --gray-300:       #cbd5e1;
  --gray-200:       #e2e8f0;
  --gray-100:       #f1f5f9;
  --white:          #ffffff;

  --bg:             #ffffff;
  --bg-alt:         #f1f5f9;
  --bg-elevated:    #ffffff;
  --bg-section-dark:#0f172a;

  --text:           #1e293b;
  --text-muted:     #64748b;
  --text-strong:    #0f172a;

  --border:         #cbd5e1;
  --border-soft:    #e2e8f0;

  --header-bg:      rgba(255, 255, 255, .85);
  --header-bg-solid:#ffffff;
  --header-border:  rgba(15, 23, 42, .08);
  --header-shadow:  0 1px 0 rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);

  --card-bg:        #ffffff;
  --card-border:    #e2e8f0;

  --input-bg:       #ffffff;
  --input-border:   #cbd5e1;

  --scrollbar-thumb:       rgba(26, 86, 219, .35);
  --scrollbar-thumb-hover: rgba(26, 86, 219, .65);

  --radius:         12px;
  --shadow-sm:      0 1px 3px rgba(0, 0, 0, .08);
  --shadow-md:      0 4px 16px rgba(0, 0, 0, .12);
  --shadow-lg:      0 12px 40px rgba(0, 0, 0, .16);
  --transition:     .25s ease;
}

[data-theme="dark"] {
  --bg:             #0b1220;
  --bg-alt:         #111a2e;
  --bg-elevated:    #16213a;
  --bg-section-dark:#070d1a;

  --text:           #e5e9f1;
  --text-muted:     #94a3b8;
  --text-strong:    #ffffff;

  --border:         #25304a;
  --border-soft:    #1c2742;

  --header-bg:      rgba(11, 18, 32, .85);
  --header-bg-solid:#0b1220;
  --header-border:  rgba(255, 255, 255, .08);
  --header-shadow:  0 1px 0 rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);

  --card-bg:        #16213a;
  --card-border:    #25304a;

  --input-bg:       #111a2e;
  --input-border:   #25304a;

  --primary-light:  rgba(26, 86, 219, .18);

  --scrollbar-thumb:       rgba(96, 165, 250, .35);
  --scrollbar-thumb-hover: rgba(96, 165, 250, .7);

  --shadow-sm:      0 1px 3px rgba(0, 0, 0, .35);
  --shadow-md:      0 4px 16px rgba(0, 0, 0, .45);
  --shadow-lg:      0 12px 40px rgba(0, 0, 0, .55);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  background: var(--bg);
  
  overflow-x: hidden;
}

html.is-switching-lang,
html.is-switching-lang body {
  scroll-behavior: auto !important;
}
html.is-switching-lang *,
html.is-switching-lang *::before,
html.is-switching-lang *::after {
  transition: none !important;
  animation: none !important;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color .3s ease, color .3s ease;
  
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
  html.is-switching-theme,
  html.is-switching-theme *,
  html.is-switching-theme *::before,
  html.is-switching-theme *::after {
    transition: background-color .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease, fill .3s ease, stroke .3s ease !important;
    transition-delay: 0s !important;
  }
}

#main-content { flex: 1 0 auto; }
footer        { flex-shrink: 0; }

#header,
#mobile-menu,
#success-modal,
#product-modal,
#scroll-top,
#cookie-banner { flex: 0 0 0; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; }

* {
  
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) transparent;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  background: transparent;
}

::-webkit-scrollbar-track,
::-webkit-scrollbar-track-piece {
  background: transparent !important;
  border: none;
  box-shadow: none;
}

::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar-thumb);
  border-radius: 999px;
  border: none;
  transition: background-color var(--transition);
}

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

::-webkit-scrollbar-button {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

::-webkit-scrollbar-corner {
  background: transparent;
}

.img-frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-alt);
  isolation: isolate;
}

.img-frame::after {
  content: '';
  position: absolute;
  inset: -20px;
  z-index: 0;
  background-image: var(--bg-img, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(28px) saturate(1.1) brightness(.85);
  opacity: .55;
  pointer-events: none;
  transition: opacity .3s ease;
}

[data-theme="dark"] .img-frame::after {
  opacity: .35;
  filter: blur(28px) saturate(1.1) brightness(.6);
}

.img-frame > img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.img-frame.img-frame-cover > img {
  object-fit: cover;
}

.img-frame.img-frame-cover::after {
  display: none;
}

.img-frame::before {
  content: '\f03e';
  font-family: 'Font Awesome 6 Free';
  font-weight: 400;
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 56px;
  opacity: .35;
  pointer-events: none;
  background: linear-gradient(135deg, var(--bg-alt), var(--card-bg));
}

.img-frame[data-failed="1"] > img { visibility: hidden; }
.img-frame[data-failed="1"]::before { display: flex; }
.img-frame[data-failed="1"]::after { display: none; }

.portfolio-item .img-frame[data-failed="1"]::before {
  background: transparent;
  color: rgba(255, 255, 255, .5);
}

.hero-image-wrap .img-frame[data-failed="1"]::before {
  background: transparent;
  color: rgba(255, 255, 255, .35);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: inherit;
  white-space: nowrap;
  line-height: 1.2;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 86, 219, .35);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }

.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, .35);
}

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

.btn-block { width: 100%; font-size: 14px; padding: 10px; }

.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, .35);
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, .1);
  border-color: #fff;
}

.btn-hero { font-size: 16px; padding: 14px 28px; }

.section-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

[data-theme="dark"] .section-tag { color: #93b6ff; }

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--text-strong);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 580px;
}

.section-head-center {
  text-align: center;
  margin-bottom: 60px;
}

.section-head-center .section-sub { margin: 0 auto; }

#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--header-border);
  transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease;
}

header.scrolled {
  background: var(--header-bg-solid);
  box-shadow: var(--header-shadow);
}

#header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-width: 240px;
}

.header-logo-icon {
  width: 42px;
  height: 42px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  flex-shrink: 0;
}

.header-logo-text { display: flex; flex-direction: column; }

.header-logo-title {
  font-weight: 800;
  font-size: 17px;
  color: var(--text-strong);
  line-height: 1.1;
  white-space: nowrap;
}

.header-logo-sub {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

#main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.nav-link {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: background-color var(--transition), color var(--transition);
  white-space: nowrap;
  line-height: 1.4;
}
.nav-link:hover {
  background: var(--bg-alt);
  color: var(--primary);
}

.nav-cta {
  font-size: 14px;
  padding: 0 18px;
  margin-left: 4px;
  white-space: nowrap;
  height: 40px;
  flex-shrink: 0;
  
  min-width: 215px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border-left: 1px solid var(--border-soft);
  border-right: 1px solid var(--border-soft);
  margin: 0 4px;
  flex-shrink: 0;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: var(--transition);
  padding: 0;
  flex-shrink: 0;
}
.icon-btn:hover {
  background: var(--bg-alt);
  color: var(--primary);
}

.theme-toggle .fa-moon { display: inline-block; }
.theme-toggle .fa-sun  { display: none; }
[data-theme="dark"] .theme-toggle .fa-moon { display: none; }
[data-theme="dark"] .theme-toggle .fa-sun  { display: inline-block; }

.lang-switcher { position: relative; flex-shrink: 0; }

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .3px;
  transition: var(--transition);
  height: 38px;
  min-width: 88px;
  justify-content: center;
}
.lang-btn:hover { background: var(--bg-alt); }

.lang-btn .fa-chevron-down {
  font-size: 10px;
  transition: transform var(--transition);
  opacity: .7;
}

.lang-switcher.open .lang-btn .fa-chevron-down { transform: rotate(180deg); }

.flag-icon {
  width: 22px;
  height: 16px;
  border-radius: 3px;
  display: inline-block;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
  overflow: hidden;
  line-height: 0;
}

.flag-icon svg { display: block; width: 100%; height: 100%; }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 6px;
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 100;
}

.lang-switcher.open .lang-menu { display: block; }

.lang-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  transition: var(--transition);
}
.lang-item:hover { background: var(--bg-alt); }
.lang-item.active {
  background: var(--primary-light);
  color: var(--primary);
}

#services-dropdown { position: relative; }

.dropdown-btn {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  font-family: inherit;
  white-space: nowrap;
  line-height: 1.4;
}
.dropdown-btn:hover {
  background: var(--bg-alt);
  color: var(--primary);
}

.dropdown-btn .fa-chevron-down {
  font-size: 10px;
  transition: transform var(--transition);
}

#services-dropdown.open .dropdown-btn .fa-chevron-down { transform: rotate(180deg); }

#dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  min-width: 240px;
  padding: 8px;
  border: 1px solid var(--card-border);
  z-index: 100;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

#services-dropdown.open #dropdown-menu { display: block; }

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
}
.dropdown-item:hover {
  background: var(--bg-alt);
  color: var(--primary);
}
.dropdown-item i {
  width: 18px;
  text-align: center;
  color: var(--primary);
  font-size: 14px;
}

#burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  color: var(--text-strong);
  font-size: 22px;
}

#mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .96);
  backdrop-filter: blur(10px);
  z-index: 1100;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 80px 20px 40px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

#mobile-menu.is-open { display: flex; }

@media (max-height: 640px) {
  #mobile-menu { justify-content: flex-start; gap: 16px; padding-top: 70px; }
}

[data-theme="dark"] #mobile-menu { background: rgba(7, 13, 26, .98); }

.mobile-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, .1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
}

.mobile-link { font-size: 22px; font-weight: 700; color: #fff; }

.mobile-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .15);
  width: 100%;
  max-width: 280px;
  justify-content: center;
}

.mobile-tools .icon-btn,
.mobile-tools .lang-btn { color: #fff; }
.mobile-tools .icon-btn:hover,
.mobile-tools .lang-btn:hover {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.mobile-tools .lang-menu { background: var(--card-bg); }

#home {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1a56db 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 96px;
  padding-bottom: 60px;
}

.hero-grid-bg { position: absolute; inset: 0; opacity: .06; }

.hero-glow-right {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(26, 86, 219, .3) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-glow-left {
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245, 158, 11, .15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 56px;
  align-items: center;
}

.hero-content {
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, .15);
  border: 1px solid rgba(245, 158, 11, .3);
  color: #fbbf24;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
  margin-bottom: 28px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: #fbbf24;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-title-accent {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 18px;
  color: rgba(255, 255, 255, .75);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, .15);
}

.hero-stat-number {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.hero-stat-accent { color: #fbbf24; }

.hero-stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, .6);
  margin-top: 4px;
}

.hero-image-col {
  position: relative;
  min-width: 0;
}

.hero-image-wrap {
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 24px;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 5/4;
}

.hero-image-wrap .img-frame {
  background: transparent;
  width: 100%;
  height: 100%;
}
.hero-image-wrap .img-frame > img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.hero-image-wrap .img-frame::after { display: none; }
.hero-image-wrap img { opacity: .9; }

.hero-badge-bottom {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--card-bg);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-badge-bottom-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 18px;
}

.hero-badge-bottom-label { font-size: 13px; color: var(--text-muted); }
.hero-badge-bottom-value { font-size: 15px; font-weight: 700; color: var(--text-strong); }

.hero-badge-top {
  position: absolute;
  top: -20px;
  right: -20px;
  background: var(--accent);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 8px 32px rgba(245, 158, 11, .4);
  color: #fff;
}

.hero-badge-top-label { font-size: 13px; opacity: .85; }
.hero-badge-top-value { font-size: 15px; font-weight: 700; }

.hero-scroll-arrow {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  color: rgba(255, 255, 255, .6);
  font-size: 22px;
}

.section-arrow {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  color: var(--text-muted);
  font-size: 22px;
  opacity: .55;
  z-index: 5;
  transition: opacity .2s ease, color .2s ease;
}

section.has-section-arrow {
  position: relative;
  padding-bottom: 90px;
}

@media (max-width: 980px) {
  .section-arrow { display: none; }
  section.has-section-arrow { padding-bottom: inherit; }
}

.section-arrow:hover {
  opacity: 1;
  color: var(--primary);
}

#about { padding: 100px 0; background: var(--bg-alt); }

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
}

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 36px;
}

.about-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--card-border);
}

.about-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 16px;
}

.about-card-icon.blue   { background: var(--primary-light); color: var(--primary); }
.about-card-icon.yellow { background: #fef3c7; color: #d97706; }
.about-card-icon.green  { background: #d1fae5; color: #059669; }
.about-card-icon.purple { background: #ede9fe; color: #7c3aed; }

[data-theme="dark"] .about-card-icon.yellow { background: rgba(217, 119, 6, .18); color: #fbbf24; }
[data-theme="dark"] .about-card-icon.green  { background: rgba(5, 150, 105, .18); color: #34d399; }
[data-theme="dark"] .about-card-icon.purple { background: rgba(124, 58, 237, .18); color: #a78bfa; }

.about-card-title { font-weight: 700; font-size: 15px; margin-bottom: 4px; color: var(--text-strong); }
.about-card-desc  { font-size: 13px; color: var(--text-muted); }

.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.about-stat-main {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 20px;
  padding: 36px;
  color: #fff;
  text-align: center;
}

.about-stat-main-number { font-size: 56px; font-weight: 800; line-height: 1; }
.about-stat-main-accent { color: #fbbf24; }
.about-stat-main-label  { font-size: 16px; opacity: .85; margin-top: 8px; }

.about-stat-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 28px;
  text-align: center;
  border: 1px solid var(--card-border);
}

.about-stat-card-number { font-size: 44px; font-weight: 800; line-height: 1; color: var(--text-strong); }
.about-stat-card-accent { color: var(--primary); }
.about-stat-card-label  { font-size: 14px; color: var(--text-muted); margin-top: 8px; }

#services { padding: 100px 0; background: var(--bg); }

.services-title { max-width: 600px; margin: 0 auto 16px; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.category-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  text-decoration: none;
  color: var(--text-strong);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.category-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle at top right, var(--primary-light), transparent 70%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

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

.category-card:hover::after { opacity: 1; }

.category-card-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition);
}

.category-card:hover .category-card-icon {
  background: var(--primary);
  color: #fff;
}

.category-card-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-strong);
  line-height: 1.2;
  margin: 0;
}

.category-card-count {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: -4px;
}

.category-card-arrow {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  transition: gap var(--transition);
}

.category-card:hover .category-card-arrow { gap: 14px; }

.category-card-arrow i { font-size: 12px; }

#technologies { padding: 100px 0; background: var(--bg-section-dark); }

#values  { padding: 100px 0; background: var(--bg-alt); }
#history { padding: 100px 0; background: var(--bg); }

#process    { padding: 100px 0; background: var(--bg); }
#materials  { padding: 100px 0; background: var(--bg-alt); }
#advantages { padding: 100px 0; background: var(--bg); }

#privacy-content { padding: 60px 0 100px; background: var(--bg); }

.legal-content {
  max-width: 760px;
  margin: 0 auto;
  font-size: 16px;
  color: var(--text);
  line-height: 1.75;
}

.legal-intro {
  font-size: 17px;
  color: var(--text-muted);
  padding: 20px 24px;
  background: var(--bg-alt);
  border-radius: 12px;
  border-left: 4px solid var(--primary);
  margin-bottom: 36px;
}

.legal-h {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-strong);
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-p {
  font-size: 16px;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 16px;
}

.process-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: steps;
}

.process-step {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 28px;
  position: relative;
  transition: var(--transition);
}

.process-step:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.process-step-num {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(26, 86, 219, .3);
}

.process-step-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 10px;
  line-height: 1.3;
}

.process-step-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

.tech-tag {
  display: inline-block;
  background: rgba(26, 86, 219, .2);
  color: #60a5fa;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.tech-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
}

.tech-sub {
  font-size: 17px;
  color: rgba(255, 255, 255, .6);
  max-width: 600px;
  margin: 0 auto;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tech-card {
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 20px;
  padding: 32px;
  transition: var(--transition);
}

.tech-card:hover {
  background: rgba(26, 86, 219, .2);
  border-color: rgba(26, 86, 219, .5);
  transform: translateY(-4px);
}

.tech-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #fff;
  font-size: 24px;
}

.tech-card-icon.blue    { background: var(--primary); }
.tech-card-icon.green   { background: #059669; }
.tech-card-icon.orange  { background: #d97706; }
.tech-card-icon.purple  { background: #7c3aed; }
.tech-card-icon.red     { background: #dc2626; }
.tech-card-icon.cyan    { background: #0891b2; }

.tech-card.light-tech-card {
  background: var(--card-bg);
  border-color: var(--card-border);
}
.tech-card.light-tech-card:hover {
  background: var(--card-bg);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
.tech-card.light-tech-card .tech-card-title { color: var(--text-strong); }
.tech-card.light-tech-card .tech-card-desc  { color: var(--text-muted); }

.tech-card-title {
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.tech-card-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, .65);
  line-height: 1.7;
}

.tech-cta-wrap {
  text-align: center;
  margin-top: 56px;
}

.tech-cta-wrap .btn {
  font-size: 15px;
  padding: 14px 36px;
}

#portfolio { padding: 100px 0; background: var(--bg-alt); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.portfolio-item {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  padding: 0;
  font-family: inherit;
  width: 100%;
}

.portfolio-item.bg-blue   { background: linear-gradient(135deg, #1e3a5f, #1a56db); }
.portfolio-item.bg-green  { background: linear-gradient(135deg, #0f4c2a, #059669); }
.portfolio-item.bg-orange { background: linear-gradient(135deg, #4c1d0f, #d97706); }
.portfolio-item.bg-purple { background: linear-gradient(135deg, #2d1b69, #7c3aed); }
.portfolio-item.bg-teal   { background: linear-gradient(135deg, #1a3a4c, #0891b2); }
.portfolio-item.bg-dark   { background: linear-gradient(135deg, #1f1f1f, #374151); }

.portfolio-item .img-frame { background: transparent; }

.portfolio-overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  gap: 6px;
  z-index: 2;
}

.portfolio-item:hover .portfolio-overlay { opacity: 1; }

.portfolio-overlay.bg-blue   { background: rgba(26, 86, 219, .85); }
.portfolio-overlay.bg-green  { background: rgba(5, 150, 105, .85); }
.portfolio-overlay.bg-orange { background: rgba(217, 119, 6, .85); }
.portfolio-overlay.bg-purple { background: rgba(124, 58, 237, .85); }
.portfolio-overlay.bg-teal   { background: rgba(8, 145, 178, .85); }
.portfolio-overlay.bg-dark   { background: rgba(55, 65, 81, .9); }

.portfolio-overlay-icon { font-size: 36px; margin-bottom: 8px; }
.portfolio-overlay-title { font-size: 16px; font-weight: 700; }
.portfolio-overlay-sub   { font-size: 13px; opacity: .8; }

.portfolio-cta { text-align: center; margin-top: 40px; }
.portfolio-cta .btn { font-size: 15px; padding: 14px 36px; }

#testimonials { padding: 100px 0; background: var(--bg); }

.testimonials-wrap {
  position: relative;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonials-grid[data-carousel="1"] {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 24px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 4px 12px;
}

.testimonials-grid[data-carousel="1"]::-webkit-scrollbar {
  display: none;
}

.testimonials-grid[data-carousel="1"] .testimonial-card {
  flex: 0 0 calc((100% - 48px) / 3);
  scroll-snap-align: start;
  min-width: 0;
}

.testimonials-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  z-index: 5;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease, opacity .2s ease, transform .2s ease;
}

.testimonials-nav:hover:not([disabled]) {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}

.testimonials-nav[disabled] {
  opacity: 0;
  pointer-events: none;
}

.testimonials-nav.prev { left: -24px; }
.testimonials-nav.next { right: -24px; }

[data-theme="dark"] .testimonials-nav {
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}

@media (max-width: 980px) {
  .testimonials-grid[data-carousel="1"] .testimonial-card {
    flex: 0 0 calc((100% - 24px) / 2);
  }
  .testimonials-nav { width: 42px; height: 42px; font-size: 16px; }
  .testimonials-nav.prev { left: -8px; }
  .testimonials-nav.next { right: -8px; }
}

@media (max-width: 600px) {
  .testimonials-grid[data-carousel="1"] .testimonial-card {
    flex: 0 0 calc(100% - 8px);
  }
}

.testimonial-card {
  border-radius: 20px;
  padding: 32px;
  position: relative;
}

.testimonial-card.light {
  background: var(--bg-alt);
  border: 1px solid var(--card-border);
}

.testimonial-card.featured { background: var(--primary); }

.testimonial-stars {
  color: #fbbf24;
  font-size: 16px;
  margin-bottom: 16px;
  display: flex;
  gap: 2px;
}

.testimonial-text {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-card.light .testimonial-text   { color: var(--text); }
.testimonial-card.featured .testimonial-text { color: rgba(255, 255, 255, .9); }

.testimonial-author { display: flex; align-items: center; gap: 12px; }

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.testimonial-avatar.blue   { background: var(--primary); }
.testimonial-avatar.yellow { background: #fbbf24; color: var(--dark); }
.testimonial-avatar.green  { background: #059669; }

.testimonial-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-strong);
}

.testimonial-card.featured .testimonial-name { color: #fff; }

.testimonial-city { font-size: 13px; color: var(--text-muted); }

.testimonial-card.featured .testimonial-city { color: rgba(255, 255, 255, .7); }

#cta-banner {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  position: relative;
  overflow: hidden;
}

.cta-dots-bg { position: absolute; inset: 0; opacity: .08; }

.cta-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-title {
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.cta-sub { font-size: 17px; color: rgba(255, 255, 255, .8); }

.cta-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.cta-actions .btn { font-size: 16px; padding: 14px 28px; }

#contact-form { padding: 100px 0; background: var(--bg-alt); }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 36px;
}

.contact-info { display: flex; flex-direction: column; gap: 20px; }

.contact-info-item { display: flex; align-items: center; gap: 16px; }

.contact-info-icon {
  width: 52px;
  height: 52px;
  background: var(--primary-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
  font-size: 20px;
}

.contact-info-label { font-size: 13px; color: var(--text-muted); }

.contact-info-value {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-strong);
}

.contact-info-value.small { font-size: 15px; font-weight: 600; }

.form-card {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--card-border);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group { margin-bottom: 16px; }
.form-group.last { margin-bottom: 24px; }
.form-turnstile { margin-bottom: 20px; min-height: 65px; }

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--input-border);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
  color: var(--text-strong);
  background: var(--input-bg);
}

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

.form-input:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(26, 86, 219, .15);
}

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

.form-submit { width: 100%; font-size: 16px; padding: 14px; }

.form-privacy {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
}

.form-privacy a { color: var(--primary); }

#contacts { padding: 80px 0; background: var(--bg); }

.map-head { text-align: center; margin-bottom: 40px; }

.map-wrap {
  border-radius: 20px;
  overflow: hidden;
  height: 400px;
  border: 1px solid var(--card-border);
}

.map-wrap iframe { width: 100%; height: 100%; border: 0; }

[data-theme="dark"] .map-wrap iframe { filter: invert(.9) hue-rotate(180deg); }

footer {
  background: var(--bg-section-dark);
  color: #fff;
  padding: 60px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-brand-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
}

.footer-brand-name { font-weight: 800; font-size: 16px; }
.footer-brand-sub  { font-size: 11px; color: rgba(255, 255, 255, .5); }

.footer-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, .6);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 280px;
}

.footer-socials { display: flex; gap: 12px; }

.social-btn {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, .1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: #fff;
  font-size: 16px;
}

.social-btn.fb:hover       { background: var(--primary); }
.social-btn.youtube:hover  { background: #dc2626; }
.social-btn.insta:hover    { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-btn.telegram:hover { background: #0088cc; }

.footer-heading {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }

.footer-link {
  font-size: 14px;
  color: rgba(255, 255, 255, .6);
  transition: var(--transition);
}
.footer-link:hover { color: #fff; }

.footer-contacts { display: flex; flex-direction: column; gap: 12px; }

.footer-contact-item { font-size: 14px; color: rgba(255, 255, 255, .6); }
.footer-contact-phone { font-size: 15px; font-weight: 600; color: #fff; }

.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy { font-size: 13px; color: rgba(255, 255, 255, .4); }
.footer-legal { display: flex; gap: 24px; }

.footer-legal-link {
  font-size: 13px;
  color: rgba(255, 255, 255, .4);
  transition: var(--transition);
}
.footer-legal-link:hover { color: rgba(255, 255, 255, .8); }

#scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 100;
  transition: var(--transition), opacity .25s ease, visibility .25s ease, transform .25s ease;
  font-size: 18px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}

#scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#scroll-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

#success-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#success-modal.is-open { display: flex; }

.modal-card {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 48px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.modal-icon {
  width: 72px;
  height: 72px;
  background: #d1fae5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: #059669;
  font-size: 32px;
}

[data-theme="dark"] .modal-icon { background: rgba(5, 150, 105, .18); color: #34d399; }

.modal-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-strong);
  margin-bottom: 12px;
}

.modal-desc {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

#product-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .7);
  backdrop-filter: blur(6px);
  z-index: 2100;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

#product-modal.is-open { display: flex; }

@media (max-height: 600px) {
  #product-modal {
    align-items: flex-start;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

.product-modal-card {
  background: var(--card-bg);
  border-radius: 24px;
  width: 100%;
  max-width: 1280px;
  height: calc(100vh - 48px);
  max-height: 820px;
  display: flex;
  flex-direction: row;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: fadeInScale .3s ease;
}

.product-modal-card.is-portfolio {
  background: #0a0e1a;
  max-width: min(85vw, 1500px);
  height: calc(100vh - 48px);
  max-height: 900px;
}

.product-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 23, 42, .55);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  z-index: 10;
  transition: background-color var(--transition), transform var(--transition);
  backdrop-filter: blur(4px);
}
.product-modal-close:hover {
  background: rgba(15, 23, 42, .85);
  transform: rotate(90deg);
}

.product-gallery {
  background: #0f172a;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  position: relative;
  flex: 1 1 auto;
  overflow: hidden;
}

.product-modal-card.is-portfolio .product-gallery {
  background: transparent;
}

.product-gallery-main {
  position: relative;
  flex-grow: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0f172a;
  isolation: isolate;
}

.product-gallery-main::after {
  content: '';
  position: absolute;
  inset: -20px;
  z-index: 0;
  background-image: var(--bg-img, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(36px) saturate(1.1) brightness(.6);
  opacity: .5;
  pointer-events: none;
}

.product-modal-card.is-portfolio .product-gallery-main {
  background: transparent;
}

.product-gallery-main img {
  position: absolute;
  inset: 12px;
  z-index: 1;
  max-width: calc(100% - 24px);
  max-height: calc(100% - 24px);
  width: auto;
  height: auto;
  margin: auto;
  object-fit: contain;
  display: block;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
}

.product-gallery-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .55);
  gap: 14px;
  padding: 40px;
  text-align: center;
}

.product-gallery-empty i { font-size: 72px; opacity: .5; }
.product-gallery-empty span { font-size: 15px; font-weight: 500; opacity: .85; }

.product-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(15, 23, 42, .5);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  backdrop-filter: blur(10px);
  z-index: 5;
  border: 1px solid rgba(255, 255, 255, .18);
}
.product-gallery-arrow:hover {
  background: rgba(15, 23, 42, .75);
  border-color: rgba(255, 255, 255, .3);
}
.product-gallery-arrow:active { transform: translateY(-50%) scale(.94); }
.product-gallery-arrow.prev { left: 24px; }
.product-gallery-arrow.next { right: 24px; }
.product-gallery-arrow[disabled] { opacity: 0; pointer-events: none; }

.product-gallery-counter {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, .55);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .3px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, .1);
}

.product-gallery-title {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.product-gallery-title-inner {
  background: rgba(0, 0, 0, .65);
  color: #fff;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  max-width: 100%;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .12);
  pointer-events: auto;
}

.product-modal-card.has-counter .product-gallery-title { bottom: 56px; }

.product-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 36px;
  background: var(--card-bg);
  border-left: 1px solid var(--card-border);
  flex: 0 0 380px;
  max-width: 380px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.product-content-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}

.product-content {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) transparent;
}

.product-content::-webkit-scrollbar {
  width: 6px;
}
.product-content::-webkit-scrollbar-track {
  background: transparent;
}
.product-content::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 3px;
}
.product-content::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

.product-content-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.product-modal-card.is-portfolio .product-content { display: none; }

.product-content-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  align-self: flex-start;
}

[data-theme="dark"] .product-content-tag { color: #93b6ff; }

.product-content-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-strong);
  line-height: 1.2;
  margin: 0;
}

.product-content-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

.product-content-price {
  background: var(--bg-alt);
  border-radius: 14px;
  padding: 16px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  border: 1px solid var(--card-border);
  flex: 0 0 auto;
}

.product-content-price-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .4px;
  font-weight: 600;
}

.product-content-price-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
}

.product-content-cta {
  width: 100%;
  font-size: 16px;
  padding: 16px;
  flex: 0 0 auto;
}

#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .94);
  z-index: 3000;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
  animation: lightboxIn .25s ease;
}

#lightbox.is-open { display: flex; }

.lightbox-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity .2s ease;
}

.lightbox-img.is-loading { opacity: 0; }

.lightbox-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .15);
  border-top-color: rgba(255, 255, 255, .85);
  animation: spin .8s linear infinite;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.lightbox-spinner.is-visible { opacity: 1; }

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 3010;
  backdrop-filter: blur(8px);
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, .18);
  border-color: rgba(255, 255, 255, .25);
  transform: rotate(90deg);
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 3010;
  backdrop-filter: blur(8px);
  transition: background .2s ease, border-color .2s ease, opacity .2s ease;
}
.lightbox-arrow:hover {
  background: rgba(255, 255, 255, .18);
  border-color: rgba(255, 255, 255, .25);
}
.lightbox-arrow.prev { left: 24px; }
.lightbox-arrow.next { right: 24px; }
.lightbox-arrow[disabled],
#lightbox.no-nav .lightbox-arrow { display: none; }

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, .1);
  color: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .3px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .12);
  z-index: 3010;
}

#lightbox.no-nav .lightbox-counter { display: none; }

.lightbox-zoomable {
  cursor: zoom-in;
  transition: filter .2s ease;
}
.lightbox-zoomable:hover { filter: brightness(1.04); }

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

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 600px) {
  #lightbox { padding: 12px; }
  .lightbox-close { width: 42px; height: 42px; top: 12px; right: 12px; font-size: 16px; }
  .lightbox-arrow { width: 44px; height: 44px; font-size: 15px; }
  .lightbox-arrow.prev { left: 8px; }
  .lightbox-arrow.next { right: 8px; }
  .lightbox-counter { bottom: 16px; padding: 6px 14px; font-size: 13px; }
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(.97); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .6; transform: scale(1.3); }
}

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

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

.animate-in { animation: fadeInUp .6s ease forwards; }

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

.nav-link.is-active {
  color: var(--primary);
  background: var(--primary-light);
}
[data-theme="dark"] .nav-link.is-active { color: #93b6ff; }

#services-dropdown.is-active-section .dropdown-btn {
  color: var(--primary);
  background: var(--primary-light);
}
[data-theme="dark"] #services-dropdown.is-active-section .dropdown-btn { color: #93b6ff; }

.breadcrumbs {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border-soft);
  padding: 14px 0;
  margin-top: 72px; 
  font-size: 13px;
}

.breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.breadcrumbs-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}

.breadcrumbs-item a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.breadcrumbs-item a:hover { color: var(--primary); }

.breadcrumbs-item [aria-current="page"] {
  color: var(--text-strong);
  font-weight: 600;
}

.breadcrumbs-sep {
  font-size: 9px;
  opacity: .5;
  margin: 0 2px;
}

.breadcrumbs + .page-hero { margin-top: 0; }

.page-hero {
  padding: 60px 0 40px;
  background: var(--bg);
}

section.page-hero:first-of-type { margin-top: 72px; padding-top: 50px; }

.page-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.page-hero-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}

.page-hero-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
[data-theme="dark"] .page-hero-tag { color: #93b6ff; }

.page-hero-title {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
  color: var(--text-strong);
  line-height: 1.15;
  margin-bottom: 16px;
}

.page-hero-desc {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto;
}

.page-hero-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.page-hero-feature {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.page-hero-feature i {
  color: var(--primary);
  font-size: 12px;
}

.geo-block {
  background: var(--bg-alt);
  padding: 70px 0;
}

.geo-block-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.geo-block-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  color: var(--text-strong);
  margin-bottom: 16px;
}

.geo-block-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.geo-cities {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.geo-city {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  transition: var(--transition);
}

.geo-city:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.geo-city i {
  color: var(--primary);
  font-size: 11px;
}

.faq-block { padding: 90px 0; background: var(--bg); }

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item[open] { border-color: var(--primary); }

.faq-summary {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  color: var(--text-strong);
  list-style: none;
  user-select: none;
}

.faq-summary::-webkit-details-marker { display: none; }

.faq-summary i {
  color: var(--primary);
  font-size: 14px;
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-item[open] .faq-summary i { transform: rotate(180deg); }

.faq-answer {
  padding: 0 24px 22px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.catalogue-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 60px 0;
}

.product-card {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

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

.product-card-img {
  background: var(--bg-alt);
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.product-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card-tag {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.product-card-tag.accent { color: var(--accent-dark); }
[data-theme="dark"] .product-card-tag.accent { color: #fbbf24; }

.product-card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-strong);
}

.product-card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.product-card-price {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.product-card-price strong { color: var(--primary); font-weight: 800; font-size: 16px; }

.product-card-cta {
  width: 100%;
  font-size: 14px;
  padding: 11px;
}

.page-404 {
  padding: 90px 0 60px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.page-404-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.page-404-code {
  font-size: clamp(120px, 20vw, 200px);
  font-weight: 800;
  line-height: .9;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}

.page-404-title {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  color: var(--text-strong);
  margin-bottom: 16px;
}

.page-404-desc {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.page-404-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 1180px) {
  #main-nav .nav-link,
  #main-nav .dropdown-btn { padding: 8px 10px; }
  .nav-cta { padding: 0 14px; font-size: 13px; min-width: 195px; }
  #header .container { gap: 8px; }
  .header-logo { min-width: 0; }

  #product-modal { padding: 16px; }
  .product-modal-card { max-width: calc(100vw - 32px); }
  .product-modal-card.is-portfolio { max-width: calc(100vw - 32px); }
  .product-gallery-arrow {
    width: 46px;
    height: 46px;
    font-size: 14px;
  }
  .product-gallery-arrow.prev { left: 14px; }
  .product-gallery-arrow.next { right: 14px; }
  .product-content { padding: 24px 28px 28px; }
}

@media (max-width: 980px) {
  #main-nav { display: none; }
  #burger    { display: flex; }
  .header-tools { display: none; }

  .hero-inner,
  .about-inner,
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }

  .hero-content { max-width: none; }
  .hero-image-wrap { min-height: 0; aspect-ratio: 5/4; }

  .footer-inner { grid-template-columns: 1fr 1fr; }

  .category-grid     { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .tech-grid         { grid-template-columns: 1fr 1fr; }
  .portfolio-grid    { grid-template-columns: 1fr 1fr; }
  .catalogue-grid    { grid-template-columns: 1fr 1fr; gap: 18px; }

  #about,
  #services,
  #technologies,
  #portfolio,
  #testimonials,
  #contact-form { padding: 70px 0; }

  .geo-block { padding: 56px 0; }
  #values, #history, #process, #materials, #advantages { padding: 70px 0; }
  .process-steps { grid-template-columns: 1fr 1fr; gap: 18px; }
  .faq-block { padding: 70px 0; }
  .page-hero { padding: 50px 0 32px; }
  .page-hero-title { font-size: clamp(26px, 5vw, 36px); }
  .page-hero-desc  { font-size: 16px; }

  .hero-badge-bottom { left: 0; bottom: -10px; }
  .hero-badge-top    { right: 0; top: -10px; }

  .product-modal-card {
    flex-direction: column;
    height: calc(100vh - 32px);
    max-height: calc(100vh - 32px);
  }
  .product-modal-card .product-gallery {
    flex: 0 0 55vh;
  }

  .product-modal-card.is-portfolio {
    max-width: calc(100vw - 32px);
    height: calc(100vh - 32px);
    max-height: calc(100vh - 32px);
  }
  .product-modal-card.is-portfolio .product-gallery { flex: 1 1 auto; }

  .product-gallery-main { min-height: 0; }
  .product-content {
    flex: 1 1 auto;
    max-width: none;
    padding: 24px 28px 28px;
    gap: 14px;
    border-left: none;
    border-top: 1px solid var(--card-border);
  }
  .product-content-title { font-size: 22px; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }

  .category-grid    { grid-template-columns: 1fr; }
  .footer-inner     { grid-template-columns: 1fr; }
  .tech-grid        { grid-template-columns: 1fr; }
  .portfolio-grid   { grid-template-columns: 1fr; }
  .about-cards      { grid-template-columns: 1fr; }
  .form-row         { grid-template-columns: 1fr; }
  .catalogue-grid   { grid-template-columns: 1fr; gap: 16px; }

  .cta-inner   { flex-direction: column; text-align: center; }
  .cta-actions { justify-content: center; }

  .hero-stats { flex-wrap: wrap; gap: 20px; }

  .form-card  { padding: 28px 20px; }
  .modal-card { padding: 32px 24px; }

  #product-modal { padding: 0; }
  .product-modal-card {
    border-radius: 0;
    max-width: 100vw;
    width: 100vw;
    max-height: 100vh;
    height: 100vh;
  }
  .product-modal-card .product-gallery {
    flex: 0 0 50vh;
  }
  .product-content { padding: 20px; }
  .product-content-price { padding: 14px 18px; }
  .product-content-price-value { font-size: 20px; }
  .product-content-cta { padding: 14px; font-size: 15px; }
  .product-gallery-arrow { width: 44px; height: 44px; font-size: 15px; }
  .product-gallery-arrow.prev { left: 12px; }
  .product-gallery-arrow.next { right: 12px; }
  .product-modal-close { width: 36px; height: 36px; top: 12px; right: 12px; }

  .category-card { padding: 24px; }
  .category-card-title { font-size: 18px; }

  .breadcrumbs { padding: 12px 0; font-size: 12px; }
  .page-hero { padding: 40px 0 24px; }
  .page-hero-icon { width: 60px; height: 60px; font-size: 24px; }
  .page-hero-actions { flex-direction: column; }
  .page-hero-features { gap: 8px; }
  .page-hero-feature { font-size: 12px; padding: 6px 12px; }

  .geo-block { padding: 48px 0; }
  .process-steps { grid-template-columns: 1fr; gap: 14px; }
  .geo-cities { gap: 8px; }
  .geo-city { font-size: 12px; padding: 6px 12px; }

  .faq-summary { padding: 16px 18px; font-size: 15px; }
  .faq-answer  { padding: 0 18px 18px; font-size: 14px; }

  .page-404-actions { flex-direction: column; }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1);
  will-change: opacity, transform;
}

[data-reveal][data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal][data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal][data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal][data-reveal-delay="4"] { transition-delay: .32s; }
[data-reveal][data-reveal-delay="5"] { transition-delay: .40s; }

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

#cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1500;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 20px 24px;
  display: none;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 880px;
  margin: 0 auto;
  animation: cookieSlideUp .5s cubic-bezier(.22, 1, .36, 1);
}

#cookie-banner.is-open { display: flex; }

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

.cookie-text {
  flex: 1 1 280px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.55;
  margin: 0;
}

.cookie-text a {
  color: var(--primary);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-family: inherit;
}

.cookie-btn-accept {
  background: var(--primary);
  color: #fff;
}
.cookie-btn-accept:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.cookie-btn-decline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--card-border);
}
.cookie-btn-decline:hover {
  background: var(--bg-alt);
}

@media (max-width: 600px) {
  #cookie-banner {
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 16px;
    border-radius: 12px;
  }
  .cookie-actions {
    width: 100%;
    justify-content: stretch;
  }
  .cookie-btn { flex: 1; }
}

.form-input.is-error,
.form-textarea.is-error {
  border-color: #dc2626;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, .12);
}

.form-state {
  font-size: 14px;
  margin-top: 12px;
  text-align: center;
  min-height: 20px;
}
.form-state.is-error   { color: #dc2626; }
.form-state.is-success { color: #059669; }
[data-theme="dark"] .form-state.is-error   { color: #f87171; }
[data-theme="dark"] .form-state.is-success { color: #34d399; }

.form-submit:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.form-submit.is-loading {
  position: relative;
  color: transparent !important;
}
.form-submit.is-loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  top: 50%;
  left: 50%;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
