/* Graphic system borrowed from the Re&Der motion language, in ENEF colours. */

body {
  background: #090a0c;
  background-image: none;
}

h1, .page-hero h1 {
  font-weight: 520;
  letter-spacing: -0.055em;
  line-height: 0.9;
}
h2 {
  font-weight: 520;
  letter-spacing: -0.048em;
  line-height: 0.94;
  font-size: clamp(2.3rem, 5vw, 4.4rem);
}
.page-hero h1 { font-size: clamp(2.5rem, 6vw, 4.8rem); max-width: 14ch; }

header {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
}
header.is-solid {
  background: rgba(9, 10, 12, 0.84);
  backdrop-filter: blur(18px);
  border-bottom-color: rgba(246, 243, 236, 0.12);
}
.nav-links a:not(.btn-primary) {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}
.menu-toggle { display: flex; }
.logo {
  letter-spacing: 0.12em;
  font-weight: 560;
  font-size: 1.05rem;
  background: none;
  -webkit-text-fill-color: var(--text);
  color: var(--text);
}

.btn-primary, .sticky-cta {
  background: #075985;
  color: #fff;
}
.btn-primary:hover, .sticky-cta:hover { background: #0c4a6e; }
.btn-primary, .btn-outline, .sticky-cta {
  border-radius: 0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 560;
}
.btn-primary::after { display: none; }
.btn-primary:hover, .btn-outline:hover { transform: none; }

.hero {
  min-height: 100svh;
  align-items: flex-end;
  padding: 0 0 28px;
  background-attachment: scroll;
  background-image:
    linear-gradient(180deg, rgba(5, 8, 15, 0.82) 0%, rgba(5, 8, 15, 0.7) 46%, rgba(5, 8, 15, 0.92) 100%),
    url('hero.webp');
  background-position: center, center calc(40% + var(--shift, 0px));
  background-size: auto, cover;
  background-repeat: no-repeat;
}
.hero-content {
  max-width: 1440px;
  width: min(1440px, calc(100% - clamp(20px, 6vw, 80px)));
  margin: 0 auto;
  padding-bottom: 8px;
}
.badge {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin-bottom: 18px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: #bae6fd;
  backdrop-filter: none;
}
.hero h1 {
  margin-bottom: 22px;
  max-width: 11ch;
  background: none;
  -webkit-text-fill-color: #f6f3ec;
  color: #f6f3ec;
  font-size: clamp(3.3rem, 8.2vw, 7.4rem);
}
.hero h1 em {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: #7dd3fc;
  letter-spacing: -0.04em;
}
.hero p { max-width: 36ch; font-size: 1.05rem; color: #f4f1ea; }
.hero-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid rgba(246, 243, 236, 0.2);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #d6d3d1;
}
.hero .btn-outline {
  color: #f6f3ec;
  -webkit-text-fill-color: #f6f3ec;
  border-color: rgba(246, 243, 236, 0.72);
  background: rgba(5, 8, 15, 0.45);
}
.hero-rail { display: none; }

.stats {
  margin: 0 auto;
  max-width: 1440px;
  background: transparent;
  border-top: 1px solid rgba(246, 243, 236, 0.12);
  border-radius: 0;
  box-shadow: none;
}
.stat {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  border-right: 1px solid rgba(246, 243, 236, 0.12);
}
.stat:last-child { border-right: 0; }
.stat:hover { transform: none; }
.stat strong { font-size: clamp(2.2rem, 4vw, 3.4rem); }

.card, .value, .calculator, .cta, .logo-slot, .faq details {
  border-radius: 0;
}
.card:hover { transform: none; }
.card img, .project-card img { border-radius: 0; }
.project-card { position: relative; }
.project-card picture, .project-card img { display: block; }
.project-card img { height: 240px; width: 100%; object-fit: cover; }
.project-card .card-body { position: static; background: transparent; }
a.project-card { display: block; color: inherit; }
.fleet { width: 100%; border-collapse: collapse; margin-top: 28px; font-size: 0.95rem; }
.fleet th, .fleet td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.fleet th { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.fleet td:first-child { width: 3rem; color: var(--text-muted); }
.project-card h3, .project-card p, .project-card .tag { color: #f6f3ec; }
.project-card p { color: #d6d3d1; }
.tag { border-radius: 0; letter-spacing: 0.12em; text-transform: uppercase; }

.value { border-radius: 0; background: transparent; }
.value:hover { transform: none; }
.form-group input, .form-group textarea, .form-group select, .calc-mail input {
  border-radius: 0;
}

.mobile-menu {
  inset: 0;
  width: auto;
  right: 0;
  left: 0;
  align-items: stretch;
  justify-content: flex-end;
  gap: 0;
  padding: 18vh 7vw 8vh;
  background: rgba(9, 10, 12, 0.97);
  transform: translateY(-102%);
  counter-reset: navitem;
}
.mobile-menu.open { transform: none; }
.mobile-menu a:not(.btn-primary) {
  counter-increment: navitem;
  width: 100%;
  min-height: 64px;
  justify-content: space-between;
  border-radius: 0;
  border-top: 1px solid rgba(246, 243, 236, 0.14);
  font-size: clamp(1.8rem, 5vw, 3.8rem);
  font-weight: 520;
  letter-spacing: -0.045em;
  padding: 8px 0;
}
.mobile-menu a:not(.btn-primary)::after {
  content: counter(navitem, decimal-leading-zero);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: #7dd3fc;
  width: auto;
  height: auto;
  background: none;
  position: static;
}
.mobile-menu a:not(.btn-primary):hover { background: transparent; color: #7dd3fc; }
.mobile-menu a.btn-primary { align-self: flex-start; margin-top: 22px; border-radius: 0; }
body.menu-open .nav-links { visibility: hidden; }

.scroll-line {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: #38bdf8;
  transform: scaleX(0);
  transform-origin: left center;
  z-index: 160;
  pointer-events: none;
}
.preloader {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: #090a0c;
  color: #f6f3ec;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 7vh 7vw;
  transition: opacity 0.45s ease;
}
.preloader.is-done { opacity: 0; pointer-events: none; }
.preloader__brand { font-size: clamp(2rem, 5vw, 4rem); letter-spacing: 0.14em; font-weight: 560; }
.preloader__brand span { color: #7dd3fc; }
.preloader__line { margin-top: 22px; height: 1px; background: rgba(246, 243, 236, 0.2); }
.preloader__line span { display: block; height: 100%; background: #38bdf8; transform: scaleX(0); transform-origin: left; }
.preloader__count { margin-top: 12px; letter-spacing: 0.16em; font-size: 0.8rem; color: #d6d3d1; }

.grain {
  position: fixed;
  inset: -20%;
  pointer-events: none;
  z-index: 45;
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: radial-gradient(rgba(255, 255, 255, 0.45) 0.6px, transparent 0.7px);
  background-size: 3px 3px;
}
body::before {
  content: "";
  position: fixed;
  inset: -20%;
  pointer-events: none;
  z-index: 45;
  opacity: 0.14;
  mix-blend-mode: overlay;
  background-image: radial-gradient(rgba(255, 255, 255, 0.5) 0.55px, transparent 0.65px);
  background-size: 3px 3px;
}

body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }
body.has-cursor input, body.has-cursor textarea, body.has-cursor select,
body.has-cursor input *, body.has-cursor textarea * { cursor: text; }
.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 180;
  pointer-events: none;
  mix-blend-mode: difference;
}
.cursor i, .cursor b {
  position: absolute;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor i { width: 6px; height: 6px; background: #fff; }
.cursor b {
  width: 36px; height: 36px;
  border: 1px solid #fff;
  transition: width 0.25s, height 0.25s;
}
.cursor.is-hot b { width: 64px; height: 64px; }
.cursor.is-off { opacity: 0; }

.cta { border-radius: 0; }

html[data-theme="light"] body { background: #f3f0e8; }
html[data-theme="light"] header.is-solid { background: rgba(243, 240, 232, 0.9); }
html[data-theme="light"] .mobile-menu { background: rgba(243, 240, 232, 0.98); }
html[data-theme="light"] .stat,
html[data-theme="light"] .stats,
html[data-theme="light"] .hero-foot,
html[data-theme="light"] .mobile-menu a:not(.btn-primary) { border-color: rgba(20, 18, 14, 0.12); }
html[data-theme="light"] header .logo {
  background: none;
  color: #0f172a;
  -webkit-text-fill-color: #0f172a;
}
html[data-theme="light"] header .nav-links a:not(.btn-primary) {
  color: #334155;
  background: transparent;
}
html[data-theme="light"] header .btn-primary {
  background: #075985;
  color: #fff;
  -webkit-text-fill-color: #fff;
}
html[data-theme="light"] header .icon-btn,
html[data-theme="light"] header .menu-toggle {
  color: #0f172a;
  background: transparent;
  border-color: rgba(15, 23, 42, 0.2);
}
html[data-theme="light"] header .menu-toggle span,
html[data-theme="light"] header .menu-toggle span::before,
html[data-theme="light"] header .menu-toggle span::after {
  background: #0f172a;
}
html[data-theme="light"] .hero h1,
html[data-theme="light"] .hero p { color: #f6f3ec; -webkit-text-fill-color: #f6f3ec; }
html[data-theme="light"] .project-card h3,
html[data-theme="light"] .project-card .tag { color: var(--text); }
html[data-theme="light"] .project-card p { color: var(--text-muted); }

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.news-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
}
.news-card .card-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
}
.news-card h2 {
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  overflow-wrap: break-word;
}
.news-card p { overflow-wrap: break-word; }
.news-card details { margin-top: auto; }
@media (max-width: 800px) {
  .news-grid { grid-template-columns: 1fr; }
}

.footer-grid h3 {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 16px;
  font-weight: 600;
}
@media (max-width: 800px) {
  .hero {
    background-image:
      linear-gradient(180deg, rgba(5, 8, 15, 0.82) 0%, rgba(5, 8, 15, 0.7) 46%, rgba(5, 8, 15, 0.92) 100%),
      url('hero-sm.webp');
  }
}
@media (max-width: 900px) {
  .hero {
    min-height: 100svh;
    align-items: flex-start;
    padding: 92px 0 40px;
    overflow: visible;
  }
  .hero-content {
    width: 100%;
    max-width: none;
  }
  .badge {
    font-size: 0.64rem;
    letter-spacing: 0.1em;
    line-height: 1.4;
    max-width: 100%;
  }
  .hero h1 {
    font-size: clamp(2.2rem, 9vw, 3rem);
    line-height: 1;
    letter-spacing: -0.03em;
    max-width: 100%;
  }
  .hero p { font-size: 1rem; line-height: 1.45; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-actions .btn-primary,
  .hero-actions .btn-outline { width: 100%; }
  .hero-foot {
    flex-wrap: wrap;
    gap: 8px 14px;
    letter-spacing: 0.08em;
  }
  .nav { height: 64px; gap: 8px; }
  .logo { font-size: 0.95rem; letter-spacing: 0.06em; }
  .lang-switch { height: 38px; padding: 3px; }
  .lang-switch a { height: 30px; min-width: 32px; padding: 0 6px; }
  .icon-btn { width: 38px; height: 38px; }
  .stats { margin-top: 0; }
  .project-card img { height: 220px; }
  .nav-links { display: none; }
}
@media (max-width: 768px) {
  body:has(.hero) .sticky-cta {
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  body:has(.hero) .sticky-cta.is-ready:not(.is-parked) {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .preloader { display: none; }
  .cursor { display: none; }
  body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: auto; }
}

.card .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  margin-top: 18px;
  padding: 12px 14px;
  white-space: normal;
  text-align: center;
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-transform: none;
  font-size: 0.95rem;
}
.card .card-body { min-width: 0; }
.logo-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.logo-row li {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  min-height: 104px;
  display: grid;
  place-items: center;
  padding: 18px 22px;
}
.logo-row img {
  width: auto;
  max-width: 78%;
  max-height: 52px;
  height: auto;
  object-fit: contain;
}
.logo-row img.logo-emblem {
  max-width: 86%;
  max-height: 78px;
}
@media (max-width: 900px) {
  .logo-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  gap: 2px;
}
.lang-switch a {
  min-width: 36px;
  height: 34px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-decoration: none;
}
.lang-switch a[aria-current="page"] {
  color: var(--text);
  background: rgba(56, 189, 248, 0.16);
}
.mobile-menu .lang-switch { margin: 8px 0 16px; }
html[data-theme="light"] header .lang-switch,
html[data-theme="light"] .mobile-menu .lang-switch {
  border-color: rgba(15, 23, 42, 0.2);
  background: transparent;
}
html[data-theme="light"] header .lang-switch a,
html[data-theme="light"] .mobile-menu .lang-switch a {
  color: #64748b;
  background: transparent;
}
html[data-theme="light"] header .lang-switch a[aria-current="page"],
html[data-theme="light"] .mobile-menu .lang-switch a[aria-current="page"] {
  color: #0f172a;
  background: rgba(7, 89, 133, 0.12);
}

/* Бренд-блок: знак E + ENEF.TECH + Энергоэффективные технологии (21.10.2026) */
.logo, .footer-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; background: none;
  -webkit-text-fill-color: initial; color: var(--text); letter-spacing: 0; font-size: 1rem; }
.logo .mark, .footer-logo .mark { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 10px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.28), 0 6px 18px rgba(2, 6, 14, 0.35); }
.logo .mark svg, .footer-logo .mark svg { display: block; width: 100%; height: 100%; }
.logo .text, .footer-logo .text { display: flex; flex-direction: column; line-height: 1; }
.logo .word, .footer-logo .word { font-size: 1.32rem; font-weight: 800; letter-spacing: -0.03em; color: var(--text); }
.logo .word i, .footer-logo .word i { font-style: normal; color: #7dd3fc; }
.logo .desc, .footer-logo .desc { margin-top: 5px; font-size: 0.6rem; font-weight: 600; letter-spacing: 0.17em; text-transform: uppercase;
  color: var(--text-muted); white-space: nowrap; }
.footer-logo { margin-bottom: 14px; }
.footer-logo .mark { width: 44px; height: 44px; flex-basis: 44px; }
.footer-legal { margin-top: 14px; font-size: 0.8rem; line-height: 1.5; color: var(--text-muted); }
.preloader__desc { margin-top: 10px; font-size: clamp(0.72rem, 1.2vw, 0.95rem); letter-spacing: 0.26em; text-transform: uppercase; color: #a9bdd4; }
html[data-theme="light"] .logo, html[data-theme="light"] .footer-logo { background: none; -webkit-text-fill-color: initial; }
html[data-theme="light"] .logo .word, html[data-theme="light"] .footer-logo .word { color: #0f172a; }
html[data-theme="light"] .logo .word i, html[data-theme="light"] .footer-logo .word i { color: #0284c7; }
@media (min-width: 901px) and (max-width: 1360px) { .logo .desc { display: none; } }
@media (max-width: 600px) { .logo .mark { width: 34px; height: 34px; flex-basis: 34px; } .logo .word { font-size: 1.15rem; } .logo .desc { font-size: 0.54rem; } }

/* цвета бренд-блока задаём явно: text-fill-color наследуется от .logo и перебивал color */
.logo .word, .footer-logo .word { -webkit-text-fill-color: var(--text); }
.logo .word i, .footer-logo .word i { -webkit-text-fill-color: #7dd3fc; }
.logo .desc, .footer-logo .desc { -webkit-text-fill-color: var(--text-muted); }
html[data-theme="light"] .logo .word, html[data-theme="light"] .footer-logo .word { color: #0f172a; -webkit-text-fill-color: #0f172a; }
html[data-theme="light"] .logo .word i, html[data-theme="light"] .footer-logo .word i { color: #0284c7; -webkit-text-fill-color: #0284c7; }
html[data-theme="light"] .logo .desc, html[data-theme="light"] .footer-logo .desc { color: #475569; -webkit-text-fill-color: #475569; }
