/* ══════════════════════════════════════
   PND PLAST — Unified Stylesheet
   ══════════════════════════════════════ */

:root {
  --bg:         #0b1929;   /* основной фон — тёмно-синий */
  --panel:      #0d1e35;   /* панели, карточки */
  --deep:       #091422;   /* самый тёмный */
  --teal:       #2ec4c4;   /* бирюза */
  --teal-dim:   #1d9090;   /* приглушённая бирюза */
  --teal-glow:  rgba(46,196,196,0.18);
  --white:      #e8f0f8;
  --muted:      rgba(232,240,248,0.50);
  --border:     rgba(46,196,196,0.20);
  --grid:       rgba(46,196,196,0.055);
  --error:      #ff5a6e;
  --success:    #2ec47a;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  /* Always reserve scrollbar gutter — prevents layout shift when page height changes */
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  font-family: 'Exo 2', sans-serif;
  background: var(--bg);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* ══════════ BACKGROUNDS ══════════ */
.hero-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg,
      rgba(11,25,41,0.55) 0%,
      rgba(11,25,41,0.80) 50%,
      var(--bg) 100%),
    url('background.jpg') center center / cover no-repeat,
    linear-gradient(160deg, #0d1e35 0%, #091422 100%);
  transition: opacity 0.5s ease;
}

.hero-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 44px 44px;
}

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  z-index: -1;
}
.glow-1 {
  width: 520px; height: 520px;
  background: var(--teal);
  opacity: 0.10;
  top: -160px; left: -160px;
}
.glow-2 {
  width: 380px; height: 380px;
  background: var(--teal);
  opacity: 0.08;
  bottom: 40px; right: -120px;
}

/* ══════════ NAVBAR ══════════ */
.nav-wrap {
  position: relative;
  z-index: 100;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 24px 20px 0;
  flex-shrink: 0;
}

.navbar {
  width: 100%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0 32px;
  background: rgba(13,30,53,0.80);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 18px;
  box-shadow:
    0 4px 32px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(46,196,196,0.12);
}

.nav-logo {
  width: 160px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.nav-links a {
  text-decoration: none;
  color: rgba(232,240,248,0.75);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 8px;
  position: relative;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 16px; height: 2px;
  background: var(--teal);
  border-radius: 2px;
  transition: transform 0.25s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--teal);
  background: rgba(46,196,196,0.07);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-cta {
  text-decoration: none;
  background: transparent;
  color: var(--teal);
  border: 1.5px solid var(--teal-dim);
  padding: 9px 22px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, color 0.2s;
  flex-shrink: 0;
}
.nav-cta:hover,
.nav-cta.active {
  background: var(--teal);
  color: var(--deep);
  border-color: var(--teal);
  box-shadow: 0 0 22px rgba(46,196,196,0.40);
}

/* ══════════ DYNAMIC PAGE CONTAINER ══════════ */
#app-main {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: opacity, transform;
  
  /* CSS-Transition-based animations setup */
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.32s cubic-bezier(0.25, 1, 0.5, 1), 
              transform 0.32s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Page is fully loaded and active (fades in) */
#app-main.page-active {
  opacity: 1;
  transform: translateY(0);
}

/* Page is fading out / exiting */
#app-main.page-exit {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.15s ease-in, 
              transform 0.15s ease-in;
}

/* ══════════ PAGE LAYOUTS ══════════ */
.page-main {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px 85px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Article detail page layout */
.page-article {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 20px 85px;
  display: flex;
  flex-direction: column;
}

.article-page-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* ══════════ PRODUCT DETAIL VIEW ══════════ */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 24px;
  width: 100%;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.product-main-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: rgba(13,30,53,0.30);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.product-main-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: opacity 0.2s ease;
  padding: 16px;
}

.product-thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.product-thumb-item {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(13,30,53,0.50);
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 4px;
}

.product-thumb-item:hover,
.product-thumb-item.active {
  border-color: var(--teal);
  box-shadow: 0 0 10px rgba(46,196,196,0.3);
  background: rgba(46,196,196,0.05);
}

.product-thumb-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-detail-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.product-detail-info .product-cat {
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.product-detail-info .product-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--white);
  margin-bottom: 16px;
}

.product-detail-info .product-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 24px;
}

.product-detail-specs {
  width: 100%;
  margin-bottom: 30px;
}

.product-detail-specs h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.btn-back-articles {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  margin-bottom: 24px;
  text-decoration: none;
  color: rgba(232,240,248,0.70);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  border: 1.5px solid rgba(232,240,248,0.18);
  border-radius: 8px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.btn-back-articles:hover {
  color: var(--teal);
  border-color: var(--teal);
  background: rgba(46,196,196,0.05);
}
.btn-back-articles svg {
  flex-shrink: 0;
}

.page-header {
  text-align: center;
  margin-bottom: 50px;
  width: 100%;
}

.page-header .eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
  opacity: 0.85;
}

.page-header h1 {
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 16px;
}

.page-header h1 span {
  color: var(--teal);
}

.page-header p {
  font-size: 15px;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ══════════ HOME PAGE (HERO) ══════════ */
.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 70px;
  max-width: 820px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 24px;
}
.hero-tag::before,
.hero-tag::after {
  content: '';
  display: block;
  width: 28px; height: 1px;
  background: var(--teal-dim);
}

.hero-title {
  font-size: clamp(36px, 7.5vw, 92px);
  font-weight: 800;
  line-height: 1.00;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 20px;
}
.hero-title em {
  font-style: normal;
  color: var(--teal);
}

.hero-sub {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.80;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 44px;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-fill {
  background: var(--teal);
  color: var(--deep);
  padding: 13px 34px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: none; cursor: pointer;
  box-shadow: 0 4px 22px rgba(46,196,196,0.38);
  transition: box-shadow 0.2s, transform 0.15s, background 0.2s;
  display: inline-block;
}
.btn-fill:hover {
  background: #3dd6d6;
  box-shadow: 0 6px 32px rgba(46,196,196,0.55);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: rgba(232,240,248,0.80);
  padding: 12px 34px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1.5px solid rgba(232,240,248,0.22);
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-2px);
}

.stats {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.stat {
  background: rgba(13,30,53,0.70);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 20px;
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.stat:hover {
  transform: translateY(-6px);
  background: rgba(46,196,196,0.07);
  border-color: rgba(46,196,196,0.50);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.50),
    0 0 20px rgba(46,196,196,0.15);
}
.stat-n {
  font-size: 40px;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
  letter-spacing: -0.01em;
}
.stat-l {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

/* ══════════ ABOUT PAGE ══════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  width: 100%;
  max-width: 1000px;
  align-items: center;
  margin-top: 20px;
}

.about-text {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(232,240,248,0.85);
}

.about-text p {
  margin-bottom: 20px;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.about-feat-card {
  background: rgba(13,30,53,0.60);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-feat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(46,196,196,0.50);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.50),
    0 0 20px rgba(46,196,196,0.15);
}

.about-feat-card h3 {
  color: var(--teal);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.about-feat-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* ══════════ CATALOG PAGE ══════════ */
.catalog-controls {
  width: 100%;
  max-width: 1000px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 36px;
  background: rgba(13,30,53,0.50);
  border: 1px solid var(--border);
  padding: 16px 20px;
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.category-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(46,196,196,0.30);
  padding: 8px 18px;
  border-radius: 30px;
  font-family: 'Exo 2', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-btn:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: rgba(46,196,196,0.05);
}

.filter-btn.active {
  background: var(--teal);
  color: var(--deep);
  border-color: var(--teal);
  box-shadow: 0 0 14px rgba(46,196,196,0.30);
}

.search-wrap {
  position: relative;
  max-width: 320px;
  width: 100%;
}

.search-input {
  width: 100%;
  background: rgba(9,20,34,0.70);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 9px 16px 9px 38px;
  color: var(--white);
  font-family: 'Exo 2', sans-serif;
  font-size: 13px;
  outline: none;
  transition: all 0.2s;
}

.search-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(46,196,196,0.12);
  background: rgba(9,20,34,0.90);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  fill: var(--teal);
  opacity: 0.6;
  pointer-events: none;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 1000px;
}

.product-item {
  position: relative;
  background: rgba(13,30,53,0.70);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.30);
}

.product-item:hover {
  transform: translateY(-6px);
  border-color: rgba(46,196,196,0.50);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.50),
    0 0 20px rgba(46,196,196,0.15);
}

.product-img-wrap {
  width: 100%;
  height: 180px;
  background: rgba(9,20,34,0.50);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(46,196,196,0.10);
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-item:hover .product-img {
  transform: scale(1.05);
}

.product-info {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-cat {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--teal);
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}

.product-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 10px;
}

.product-name a,
.product-name a:visited,
.product-name a:active,
.product-name a:focus {
  color: var(--white) !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.product-item:hover .product-name a {
  color: var(--teal) !important;
}

.product-full-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.product-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

.product-specs {
  background: rgba(9,20,34,0.40);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 20px;
  font-size: 12px;
}

.product-spec-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px solid rgba(232,240,248,0.05);
}

.product-spec-row:last-child {
  border-bottom: none;
}

.product-spec-label {
  color: var(--muted);
}

.product-spec-val {
  font-weight: 600;
  color: var(--white);
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.product-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--teal);
}

.product-order-btn {
  position: relative;
  z-index: 2;
  padding: 8px 18px;
  background: transparent;
  color: var(--teal);
  border: 1px solid var(--teal);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}

.product-order-btn:hover {
  background: var(--teal);
  color: var(--deep);
  box-shadow: 0 0 12px rgba(46,196,196,0.30);
}

/* ══════════ ARTICLES PAGE ══════════ */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  width: 100%;
  max-width: 1000px;
}

.article-card {
  background: rgba(13,30,53,0.70);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.article-card:hover {
  transform: translateY(-6px);
  border-color: rgba(46,196,196,0.50);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.50),
    0 0 20px rgba(46,196,196,0.15);
}

.article-img-wrap {
  width: 100%;
  height: 180px;
  overflow: hidden;
  position: relative;
}

.article-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card:hover .article-img {
  transform: scale(1.04);
}

.article-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-date {
  font-size: 11px;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.article-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--white);
  margin-bottom: 12px;
}

.article-summary {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.article-more {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--teal);
}

.article-more svg {
  width: 12px;
  height: 12px;
  fill: var(--teal);
  transition: transform 0.2s;
}

.article-card:hover .article-more svg {
  transform: translateX(4px);
}

/* ══════════ ARTICLE DETAIL PAGE ══════════ */
.article-detail-wrap {
  width: 100%;
  margin: 0 auto;
  background: rgba(13,30,53,0.70);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.55);
}

.article-detail-hero {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  max-height: 440px;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid rgba(46,196,196,0.15);
}

.article-detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* No overlay for cover photo to keep it bright and crisp */

.article-detail-content {
  padding: 40px 48px 52px;
}

.article-detail-meta {
  font-size: 12px;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.article-detail-title {
  font-size: clamp(24px, 4.5vw, 36px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 24px;
}

.article-detail-text {
  font-size: 15px;
  color: rgba(232,240,248,0.85);
  line-height: 1.8;
  white-space: pre-line;
  margin-bottom: 36px;
}

.article-detail-attachments {
  border-top: 1px solid rgba(46,196,196,0.15);
  padding-top: 24px;
}

.article-detail-attachments h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.attachment-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.attach-item {
  background: rgba(9,20,34,0.60);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
  transition: all 0.2s;
}

.attach-item:hover {
  background: rgba(46,196,196,0.08);
  border-color: var(--teal);
}

.attach-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.attach-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.attach-name {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.attach-type {
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 700;
}

/* ══════════ CONTACT FORM CARD ══════════ */
.form-card {
  width: 100%;
  max-width: 600px;
  background: rgba(13,30,53,0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 44px 48px;
  box-shadow:
    0 8px 48px rgba(0,0,0,0.50),
    inset 0 1px 0 rgba(46,196,196,0.10);
  margin: 0 auto;
}

.form-group {
  margin-bottom: 24px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(232,240,248,0.60);
  margin-bottom: 9px;
}

.form-group label span.req {
  color: var(--teal);
  margin-left: 3px;
}

.input-wrap {
  position: relative;
}

.input-wrap .field-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  opacity: 0.45;
  pointer-events: none;
  fill: var(--teal);
}

.input-wrap input,
.input-wrap select,
.input-wrap textarea {
  width: 100%;
  background: rgba(9,20,34,0.70);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--white);
  font-family: 'Exo 2', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 13px 16px 13px 44px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.input-wrap textarea {
  resize: vertical;
  min-height: 110px;
  padding-top: 14px;
  line-height: 1.5;
}

.select-wrap::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid rgba(46,196,196,0.60);
  pointer-events: none;
}

.input-wrap input:focus,
.input-wrap select:focus,
.input-wrap textarea:focus {
  border-color: rgba(46,196,196,0.55);
  box-shadow: 0 0 0 3px rgba(46,196,196,0.10);
  background: rgba(9,20,34,0.90);
}

.input-wrap input::placeholder,
.input-wrap textarea::placeholder {
  color: rgba(232,240,248,0.22);
}

.input-wrap select option {
  background: #0d1e35;
  color: var(--white);
}

.input-wrap input.is-error,
.input-wrap select.is-error,
.input-wrap textarea.is-error {
  border-color: rgba(255,90,110,0.60);
  box-shadow: 0 0 0 3px rgba(255,90,110,0.10);
}

.input-wrap input.is-ok,
.input-wrap select.is-ok,
.input-wrap textarea.is-ok {
  border-color: rgba(46,196,122,0.50);
}

.field-error {
  font-size: 11px;
  color: var(--error);
  margin-top: 7px;
  padding-left: 4px;
  display: none;
  letter-spacing: 0.03em;
}

.field-hint {
  font-size: 11px;
  color: rgba(232,240,248,0.28);
  margin-top: 7px;
  padding-left: 4px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.product-card {
  position: relative;
  cursor: pointer;
}

.product-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}

.product-card label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(9,20,34,0.50);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  line-height: 1.3;
  user-select: none;
}

.product-card label .prod-icon {
  font-size: 26px;
  line-height: 1;
}

.product-card input[type="radio"]:checked + label {
  border-color: var(--teal);
  background: rgba(46,196,196,0.10);
  box-shadow: 0 0 18px rgba(46,196,196,0.15);
  color: var(--teal);
}

.product-card label:hover {
  border-color: rgba(46,196,196,0.45);
  background: rgba(46,196,196,0.06);
  color: var(--white);
}

.products-error {
  font-size: 11px;
  color: var(--error);
  margin-top: 9px;
  padding-left: 4px;
  display: none;
}

.form-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 10px 0 28px;
}

.btn-submit {
  width: 100%;
  padding: 15px;
  background: var(--teal);
  color: var(--deep);
  border: none;
  border-radius: 10px;
  font-family: 'Exo 2', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s, opacity 0.2s;
  box-shadow: 0 4px 24px rgba(46,196,196,0.30);
  position: relative;
  overflow: hidden;
}

.btn-submit:hover:not(:disabled) {
  background: #3dd8d8;
  box-shadow: 0 6px 32px rgba(46,196,196,0.45);
  transform: translateY(-1px);
}

.btn-submit:active:not(:disabled) { transform: translateY(0); }

.btn-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-submit .spinner {
  display: none;
  width: 16px; height: 16px;
  border: 2px solid rgba(9,20,34,0.35);
  border-top-color: var(--deep);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto;
}

.btn-submit.loading .btn-text { display: none; }
.btn-submit.loading .spinner { display: block; }

.form-alert {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  display: none;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
}

.form-alert.success {
  background: rgba(46,196,122,0.12);
  border: 1px solid rgba(46,196,122,0.30);
  color: #4de8a0;
  display: flex;
}

.form-alert.error {
  background: rgba(255,90,110,0.10);
  border: 1px solid rgba(255,90,110,0.30);
  color: #ff7a88;
  display: flex;
}

.alert-icon { font-size: 18px; flex-shrink: 0; }

/* ══════════ DIVIDERS ══════════ */
.line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}

/* ══════════ FOOTER ══════════ */
footer {
  background: var(--deep);
  padding: 28px 20px;
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}
.foot-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.foot-logo {
  width: 120px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-decoration: none;
}
.foot-logo span {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(46,196,196,0.35);
}
.foot-copy {
  font-size: 11px;
  color: rgba(232,240,248,0.28);
}
.foot-links {
  display: flex;
  gap: 22px;
}
.foot-links a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(232,240,248,0.38);
  text-decoration: none;
  transition: color 0.2s;
}
.foot-links a:hover { color: var(--teal); }

/* ══════════ ANIMATIONS ══════════ */
@keyframes up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ══════════ ADMIN PAGE ══════════ */
.admin-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  z-index: 10;
}

.admin-login-card {
  width: 100%;
  max-width: 400px;
  background: rgba(13,30,53,0.80);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.50);
  backdrop-filter: blur(15px);
  text-align: center;
}

.admin-login-card h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 28px;
  letter-spacing: 0.05em;
  color: var(--white);
}

.admin-login-card h2 span {
  color: var(--teal);
}

.admin-wrap {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  position: relative;
  z-index: 10;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(46,196,196,0.15);
  padding-bottom: 20px;
  margin-bottom: 30px;
}

.admin-header h1 {
  font-size: 24px;
  font-weight: 800;
}

.admin-header h1 span {
  color: var(--teal);
}

.admin-nav {
  display: flex;
  gap: 10px;
}

.admin-tab-btn {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(232,240,248,0.15);
  padding: 8px 18px;
  border-radius: 8px;
  font-family: 'Exo 2', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-tab-btn:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.admin-tab-btn.active {
  background: rgba(46,196,196,0.12);
  border-color: var(--teal);
  color: var(--teal);
}

.admin-logout-btn {
  background: transparent;
  color: var(--error);
  border: 1px solid rgba(255,90,110,0.30);
  padding: 8px 16px;
  border-radius: 8px;
  font-family: 'Exo 2', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.admin-logout-btn:hover {
  background: var(--error);
  color: var(--deep);
  border-color: var(--error);
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
}

.admin-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.admin-btn-add {
  background: var(--teal);
  color: var(--deep);
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-family: 'Exo 2', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(46,196,196,0.25);
  transition: all 0.2s;
}

.admin-btn-add:hover {
  background: #3dd6d6;
  transform: translateY(-1px);
}

/* Tables */
.admin-table-wrap {
  background: rgba(13,30,53,0.50);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th,
.admin-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(46,196,196,0.10);
  font-size: 13px;
}

.admin-table th {
  background: rgba(9,20,34,0.40);
  color: var(--teal);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.1em;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background: rgba(46,196,196,0.02);
}

.admin-thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: rgba(9,20,34,0.50);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(46,196,196,0.15);
}

.admin-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.admin-btn-edit {
  background: transparent;
  color: var(--teal);
  border: 1px solid var(--teal);
  padding: 6px 12px;
  border-radius: 6px;
  font-family: 'Exo 2', sans-serif;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  margin-right: 6px;
}

.admin-btn-edit:hover {
  background: var(--teal);
  color: var(--deep);
}

.admin-btn-delete {
  background: transparent;
  color: var(--error);
  border: 1px solid var(--error);
  padding: 6px 12px;
  border-radius: 6px;
  font-family: 'Exo 2', sans-serif;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-btn-delete:hover {
  background: var(--error);
  color: var(--deep);
}

/* Modals inside Admin */
.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 20px;
}

.admin-modal.active {
  opacity: 1;
  pointer-events: all;
}

.admin-modal-container {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.50);
  transform: scale(0.96);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1010;
}

.admin-modal.active .admin-modal-container {
  transform: scale(1);
}

.admin-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(46,196,196,0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-modal-header h3 {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.admin-modal-close {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
}

.admin-modal-close:hover {
  color: var(--white);
}

.admin-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.admin-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(46,196,196,0.10);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.admin-btn-cancel {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(232,240,248,0.15);
  padding: 10px 20px;
  border-radius: 8px;
  font-family: 'Exo 2', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-btn-cancel:hover {
  border-color: var(--white);
  color: var(--white);
}

/* File Upload styling */
.admin-file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(9,20,34,0.40);
  border: 1px dashed rgba(46,196,196,0.20);
  padding: 10px 14px;
  border-radius: 8px;
  margin-top: 8px;
}

.admin-file-name {
  font-size: 12px;
  font-weight: 600;
  max-width: 70%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-file-remove {
  color: var(--error);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.admin-file-remove:hover {
  text-decoration: underline;
}

/* ══════════ RESPONSIVE ══════════ */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .catalog-controls { flex-direction: column; align-items: stretch; gap: 14px; }
  .search-wrap { max-width: none; }
}


@media (max-width: 800px) {
  .navbar {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }
  .nav-links {
    grid-column: 1 / -1;
    justify-content: center;
    flex-wrap: wrap;
  }
  .nav-cta { grid-row: 1; grid-column: 2; justify-self: end; }
  .stats { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .form-card { padding: 32px 24px; }
  .products-grid { grid-template-columns: 1fr; gap: 8px; }
  .product-card label {
    flex-direction: row;
    padding: 13px 16px;
    justify-content: flex-start;
    gap: 14px;
    text-align: left;
  }
  .art-modal-scroll { padding: 20px 24px 30px; }
  .art-modal-hero { height: 180px; }
  .article-detail-hero { aspect-ratio: 16 / 9; }
  .article-detail-content { padding: 24px 20px 30px; }
  .admin-header { flex-direction: column; align-items: flex-start; gap: 14px; }
}

@media (max-width: 500px) {
  .navbar { grid-template-columns: 1fr; justify-items: center; gap: 12px; }
  .nav-cta { justify-self: center; }
}

/* Honeypot field for bot protection */
.honeypot-wrap {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.article-gallery-item {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(46,196,196,0.15);
  background: rgba(9,20,34,0.30);
  cursor: pointer;
}

.article-gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.article-gallery-item img:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}
