/* ==========================================================================
   Technonewur - Design System
   Futuristic dark UI with neon/gradient accents and glassmorphism
   BEM naming convention throughout
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  --color-bg: #06070d;
  --color-bg-alt: #0b0d18;
  --color-surface: rgba(20, 24, 42, 0.55);
  --color-surface-solid: #11142a;
  --color-border: rgba(122, 138, 255, 0.18);
  --color-text: #e7ebff;
  --color-text-muted: #9aa3c7;
  --color-heading: #ffffff;

  --color-neon-cyan: #2ad8ff;
  --color-neon-violet: #8b5cff;
  --color-neon-magenta: #ff4ecd;
  --color-accent: #6c8bff;

  --gradient-brand: linear-gradient(120deg, #2ad8ff 0%, #8b5cff 50%, #ff4ecd 100%);
  --gradient-hero: linear-gradient(125deg, #0a0a1f, #14123a, #0b1b3a, #2a0f3a);

  --font-sans: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-glow: 0 0 30px rgba(108, 139, 255, 0.25);
  --shadow-card: 0 18px 40px rgba(0, 0, 0, 0.45);

  --maxw: 1200px;
  --header-h: 72px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-neon-cyan);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

a:hover {
  color: var(--color-neon-magenta);
}

h1, h2, h3, h4 {
  color: var(--color-heading);
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

:focus-visible {
  outline: 3px solid var(--color-neon-cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4.5rem 0;
}

.section--tight {
  padding: 3rem 0;
}

.section__head {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.section__eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-neon-cyan);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.section__title {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
}

.section__subtitle {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  text-align: center;
}

.btn--primary {
  background: var(--gradient-brand);
  color: #06070d;
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(139, 92, 255, 0.45);
  color: #06070d;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--color-border);
  color: var(--color-text);
}

.btn--ghost:hover {
  border-color: var(--color-neon-cyan);
  color: var(--color-neon-cyan);
  transform: translateY(-3px);
}

.btn--block {
  width: 100%;
  justify-content: center;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  background: rgba(6, 7, 13, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), height 0.3s var(--ease);
}

.header--scrolled {
  background: rgba(6, 7, 13, 0.85);
  border-bottom-color: var(--color-border);
  height: 62px;
}

.header__inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-heading);
  letter-spacing: 0.02em;
}

.header__logo:hover {
  color: var(--color-heading);
}

.header__logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--gradient-brand);
  box-shadow: var(--shadow-glow);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  transition: width 0.3s var(--ease);
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-heading);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  cursor: pointer;
  padding: 0 9px;
}

.burger__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.burger--open .burger__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger--open .burger__bar:nth-child(2) {
  opacity: 0;
}

.burger--open .burger__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 5rem) 0 5rem;
  overflow: hidden;
  background: var(--color-bg);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  background-size: 300% 300%;
  animation: heroGradient 18s ease infinite;
  opacity: 0.9;
  z-index: 0;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(42, 216, 255, 0.18), transparent 45%),
              radial-gradient(circle at 80% 70%, rgba(255, 78, 205, 0.18), transparent 45%);
}

@keyframes heroGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero__content {
  max-width: 600px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--color-border);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-neon-cyan);
  margin-bottom: 1.3rem;
}

.hero__title {
  font-size: clamp(2.3rem, 5.5vw, 4rem);
  line-height: 1.05;
  margin-bottom: 1.2rem;
}

.hero__text {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

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

.hero__media {
  position: relative;
}

.hero__img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  object-fit: cover;
  width: 100%;
  height: 420px;
}

.hero__stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.hero__stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  display: block;
}

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

/* Hero entrance animation */
.hero__animate {
  opacity: 0;
  transform: translateY(24px);
  animation: heroIn 0.9s var(--ease) forwards;
}

.hero__animate--1 { animation-delay: 0.1s; }
.hero__animate--2 { animation-delay: 0.25s; }
.hero__animate--3 { animation-delay: 0.4s; }
.hero__animate--4 { animation-delay: 0.55s; }
.hero__animate--5 { animation-delay: 0.7s; }

@keyframes heroIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Glass card base ---------- */
.glass {
  background: var(--color-surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

/* ---------- Featured article ---------- */
.featured {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2rem;
  align-items: stretch;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.featured__media {
  position: relative;
  min-height: 340px;
}

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

.featured__body {
  padding: 2.5rem 2.5rem 2.5rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured__tag {
  align-self: flex-start;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-neon-magenta);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.featured__title {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  margin-bottom: 0.8rem;
}

.featured__text {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

/* ---------- Card grid ---------- */
.grid {
  display: grid;
  gap: 1.6rem;
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

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

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--color-border);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: rgba(42, 216, 255, 0.4);
}

.card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.card:hover .card__img {
  transform: scale(1.07);
}

.card__tag {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(6, 7, 13, 0.7);
  border: 1px solid var(--color-border);
  color: var(--color-neon-cyan);
}

.card__body {
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card__title {
  font-size: 1.15rem;
  margin-bottom: 0.55rem;
}

.card__title a {
  color: var(--color-heading);
}

.card__title a:hover {
  color: var(--color-neon-cyan);
}

.card__text {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  flex: 1;
}

.card__meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.card__meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-neon-violet);
}

/* ---------- Categories ---------- */
.cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

.cat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.8rem 1.5rem;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.cat:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 78, 205, 0.45);
}

.cat__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  font-size: 1.5rem;
}

.cat__title {
  font-size: 1.2rem;
  color: var(--color-heading);
  margin: 0;
}

.cat__text {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.cat__count {
  font-size: 0.8rem;
  color: var(--color-neon-cyan);
  font-weight: 600;
}

/* ---------- Newsletter ---------- */
.newsletter {
  position: relative;
  padding: 3rem;
  border-radius: var(--radius-lg);
  background: var(--color-surface-solid);
  border: 1px solid var(--color-border);
  overflow: hidden;
  text-align: center;
}

.newsletter::before {
  content: "";
  position: absolute;
  inset: -50% -10% auto;
  height: 200%;
  background: radial-gradient(circle, rgba(139, 92, 255, 0.22), transparent 60%);
  pointer-events: none;
}

.newsletter__inner {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}

.newsletter__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.newsletter__text {
  color: var(--color-text-muted);
  margin-bottom: 1.8rem;
}

.newsletter__form {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter__input {
  flex: 1;
  min-width: 220px;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text);
  font-size: 0.95rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.newsletter__input:focus {
  border-color: var(--color-neon-cyan);
  box-shadow: 0 0 0 3px rgba(42, 216, 255, 0.18);
  outline: none;
}

.newsletter__btn {
  position: relative;
  overflow: hidden;
}

.newsletter__feedback {
  margin-top: 1rem;
  min-height: 1.3rem;
  font-size: 0.9rem;
  color: var(--color-neon-cyan);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.newsletter__feedback--show {
  opacity: 1;
  transform: translateY(0);
}

/* Newsletter button micro-interaction ripple */
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255, 255, 255, 0.5);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(3.5);
    opacity: 0;
  }
}

/* ---------- Page hero (interior pages) ---------- */
.pagehero {
  position: relative;
  padding: calc(var(--header-h) + 3.5rem) 0 3rem;
  overflow: hidden;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

.pagehero__bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  background-size: 300% 300%;
  animation: heroGradient 20s ease infinite;
  opacity: 0.55;
}

.pagehero__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.pagehero__title {
  font-size: clamp(2rem, 4.5vw, 3rem);
}

.pagehero__text {
  color: var(--color-text-muted);
  font-size: 1.1rem;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.8rem;
}

.breadcrumb a {
  color: var(--color-text-muted);
}

.breadcrumb a:hover {
  color: var(--color-neon-cyan);
}

/* ---------- Filters (news/reviews) ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.filters__btn {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-text-muted);
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.filters__btn:hover,
.filters__btn--active {
  color: var(--color-heading);
  border-color: var(--color-neon-cyan);
  background: rgba(42, 216, 255, 0.1);
}

/* ---------- Article body ---------- */
.article {
  padding: 3.5rem 0;
}

.article__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 3rem;
  align-items: start;
}

.article__main {
  max-width: 760px;
}

.article__hero-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  margin-bottom: 2rem;
}

.article__body p {
  color: var(--color-text);
  font-size: 1.08rem;
}

.article__body h2 {
  font-size: 1.6rem;
  margin-top: 2.2rem;
}

.article__body h3 {
  font-size: 1.3rem;
  margin-top: 1.8rem;
}

.article__body blockquote {
  margin: 2rem 0;
  padding: 1.2rem 1.6rem;
  border-left: 3px solid var(--color-neon-cyan);
  background: rgba(42, 216, 255, 0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--color-text);
  font-style: italic;
}

.article__body ul {
  color: var(--color-text);
  padding-left: 1.3rem;
}

.article__body figure {
  margin: 2rem 0;
}

.article__body figure img {
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.article__body figcaption {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.6rem;
  text-align: center;
}

.article__byline {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 1.5rem 0 2rem;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

.article__avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--color-border);
}

.article__share {
  display: flex;
  gap: 0.6rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.aside {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.aside__box {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.aside__title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-neon-cyan);
  margin-bottom: 1rem;
}

.aside__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.aside__item a {
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 500;
}

.aside__item a:hover {
  color: var(--color-neon-cyan);
}

.aside__item-meta {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

/* ---------- Reviews ---------- */
.review-card__score {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: var(--gradient-brand);
  color: #06070d;
}

.rating {
  display: inline-flex;
  gap: 2px;
  color: var(--color-neon-cyan);
}

/* ---------- About / Team ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about__img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 460px;
}

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.value {
  padding: 1.8rem;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.value__icon {
  font-size: 1.7rem;
  margin-bottom: 0.6rem;
}

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

.member {
  text-align: center;
  padding: 1.8rem 1.2rem;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: transform 0.3s var(--ease);
}

.member:hover {
  transform: translateY(-5px);
}

.member__avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 2px solid var(--color-neon-violet);
}

.member__name {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.member__role {
  color: var(--color-neon-cyan);
  font-size: 0.85rem;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form__label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

.form__input,
.form__textarea,
.form__select {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  border-color: var(--color-neon-cyan);
  box-shadow: 0 0 0 3px rgba(42, 216, 255, 0.16);
  outline: none;
}

.form__textarea {
  resize: vertical;
  min-height: 140px;
}

.form__feedback {
  font-size: 0.92rem;
  color: var(--color-neon-cyan);
  min-height: 1.2rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.contact-info__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-info__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info__label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-info__value {
  color: var(--color-heading);
  font-weight: 500;
}

.map {
  margin-top: 1.5rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  height: 260px;
}

.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.3) invert(0.9) hue-rotate(180deg);
}

/* ---------- Legal pages ---------- */
.legal {
  padding: 3rem 0 4rem;
}

.legal__content {
  max-width: 820px;
}

.legal__content h2 {
  font-size: 1.5rem;
  margin-top: 2.4rem;
}

.legal__content h3 {
  font-size: 1.2rem;
  margin-top: 1.6rem;
}

.legal__content p,
.legal__content li {
  color: var(--color-text-muted);
}

.legal__content a {
  color: var(--color-neon-cyan);
}

.legal__updated {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 3.5rem 0 1.8rem;
  margin-top: 2rem;
}

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

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--color-heading);
  margin-bottom: 1rem;
}

.footer__about {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  max-width: 320px;
}

.footer__col-title {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-heading);
  margin-bottom: 1.1rem;
}

.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer__list a {
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.footer__list a:hover {
  color: var(--color-neon-cyan);
}

.footer__socials {
  display: flex;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.footer__social {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 0.9rem;
  transition: all 0.25s var(--ease);
}

.footer__social:hover {
  border-color: var(--color-neon-cyan);
  color: var(--color-neon-cyan);
  transform: translateY(-3px);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.footer__legal-links {
  display: flex;
  gap: 1.3rem;
  flex-wrap: wrap;
}

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed;
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%) translateY(160%);
  width: min(960px, calc(100% - 2rem));
  z-index: 2000;
  padding: 1.4rem 1.6rem;
  border-radius: var(--radius-md);
  background: rgba(11, 13, 24, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  transition: transform 0.5s var(--ease);
}

.cookie--visible {
  transform: translateX(-50%) translateY(0);
}

.cookie__text {
  flex: 1;
  min-width: 260px;
  font-size: 0.92rem;
  color: var(--color-text-muted);
  margin: 0;
}

.cookie__actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.cookie__btn {
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text);
  transition: all 0.25s var(--ease);
}

.cookie__btn--accept {
  background: var(--gradient-brand);
  color: #06070d;
  border-color: transparent;
}

.cookie__btn--accept:hover {
  transform: translateY(-2px);
}

.cookie__btn:hover {
  border-color: var(--color-neon-cyan);
}

/* Cookie settings modal */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: none;
  place-items: center;
  padding: 1rem;
  background: rgba(3, 4, 9, 0.7);
  backdrop-filter: blur(4px);
}

.cookie-modal--open {
  display: grid;
}

.cookie-modal__panel {
  width: min(520px, 100%);
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--color-surface-solid);
  border: 1px solid var(--color-border);
}

.cookie-modal__option {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
}

.cookie-modal__option-text {
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.cookie-modal__actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.5rem;
  justify-content: flex-end;
}

/* Toggle switch */
.switch {
  position: relative;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch__slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: background 0.25s var(--ease);
}

.switch__slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 4px;
  top: 4px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.25s var(--ease);
}

.switch input:checked + .switch__slider {
  background: var(--color-neon-violet);
}

.switch input:checked + .switch__slider::before {
  transform: translateX(20px);
}

.switch input:disabled + .switch__slider {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.mt-2 { margin-top: 2rem; }
.center { text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .hero__img { height: 300px; }
  .featured { grid-template-columns: 1fr; }
  .featured__media { min-height: 240px; }
  .featured__body { padding: 2rem; }
  .grid--3,
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: 1fr; }
  .article__layout { grid-template-columns: 1fr; }
  .aside { position: static; }
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .burger { display: flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: rgba(6, 7, 13, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 1.25rem 1.5rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  }
  .nav--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }
  .nav__item {
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }
  .nav__link {
    display: block;
    padding: 0.9rem 0;
    width: 100%;
  }
  .nav__link::after { display: none; }
  .nav .btn { margin-top: 1rem; }
}

@media (max-width: 560px) {
  .grid--3,
  .grid--4,
  .cats,
  .team { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .section { padding: 3rem 0; }
  .newsletter { padding: 2rem 1.4rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@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;
  }
  .reveal { opacity: 1; transform: none; }
}
