/* English locale refinements */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

img {
  max-width: 100%;
}

a,
button {
  font-family: inherit;
}

.site-page main {
  padding-top: var(--nav-h);
}

.nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: 0;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::before {
  z-index: 0;
}

.hero::after {
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-particles .particle {
  position: absolute;
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero h1 {
  color: #fff;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.section {
  max-width: var(--max);
  margin-right: auto;
  margin-left: auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: "";
}

.feat-grid,
.pb-grid,
.cert-grid,
.cases-grid,
.contact-grid {
  display: grid;
}

.station-meta,
.pb-meta {
  display: flex;
  flex-wrap: wrap;
}

.pb-card {
  display: flex;
}

.pb-visual {
  position: relative;
  overflow: hidden;
}

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

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.factory-item .fi-img {
  position: relative;
  overflow: hidden;
}

.factory-item .fi-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.global-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  gap: 14px;
}

.contact-item .label {
  flex: 0 0 82px;
}

.form-group label {
  display: block;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: inherit;
}

.form-group textarea {
  resize: vertical;
}

.fade-in {
  opacity: 0;
  transform: translateY(28px);
  animation: fadeInUp 0.7s var(--ease-out) forwards;
}

.cta-banner {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-banner > * {
  position: relative;
  z-index: 1;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.nav-language {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 32px;
  padding: 7px 10px !important;
  color: rgba(255, 255, 255, 0.78) !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  font-family: var(--font-display);
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em;
}

.nav-language:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.42);
}

.nav-language::after {
  display: none !important;
}

.en-page {
  font-family: var(--font-body);
}

.en-page .hero h1 {
  max-width: 930px;
  font-size: clamp(50px, 6.5vw, 92px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.en-page .hero h1 em {
  max-width: 760px;
  font-size: 0.48em;
  line-height: 1.12;
}

.en-page .hero p {
  max-width: 650px;
}

.en-page .subpage-hero h1 {
  max-width: 940px;
  font-size: clamp(44px, 6vw, 86px);
}

.en-page .subpage-hero p {
  max-width: 720px;
}

.en-page .showcase-card h3 {
  font-size: clamp(24px, 3vw, 42px);
}

.en-page .showcase-stack .showcase-card h3 {
  font-size: clamp(20px, 2.1vw, 28px);
}

.en-page .station-info::after {
  content: none;
}

.en-page .feat-card,
.en-page .process-card {
  min-height: 285px;
}

.en-page .section-title {
  max-width: 980px;
}

.en-page .cta-banner h3 {
  max-width: 980px;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.module-card {
  position: relative;
  min-height: 260px;
  padding: 30px 26px;
  background: #fff;
}

.module-card__index {
  display: block;
  margin-bottom: 54px;
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.module-card h3 {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.module-card p {
  color: var(--text2);
  font-size: 13px;
  line-height: 1.72;
}

.module-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.module-card:hover::after {
  transform: scaleX(1);
}

.scenario-link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.scenario-link-card {
  min-height: 155px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.scenario-link-card:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.scenario-link-card span {
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.scenario-link-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.faq-item {
  min-height: 180px;
  padding: 28px;
  background: #fff;
}

.faq-item h3 {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.03em;
}

.faq-item p {
  color: var(--text2);
  font-size: 14px;
  line-height: 1.75;
}

.form-status {
  min-height: 22px;
  margin-top: 12px;
  color: var(--text2);
  font-size: 13px;
}

.plain-link-button {
  padding: 0;
  background: transparent;
  border: 0;
  font: inherit;
}

.contact-grid .contact-info {
  min-height: 100%;
}

.contact-grid form {
  border-radius: 0;
}

.case-card .case-stats {
  margin-top: 18px;
}

.global-banner .btn {
  margin-top: 8px;
}

.legal-page body {
  max-width: none;
}

@media (max-width: 1100px) {
  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    right: 0;
    left: 0;
    padding: 26px clamp(22px, 6vw, 48px);
    background: rgba(5, 7, 11, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    animation: dropIn 0.25s var(--ease-out);
  }

  .nav-language {
    align-self: flex-start;
  }

  .en-page .hero h1 {
    font-size: clamp(43px, 11vw, 68px);
  }

  .en-page .hero h1 em {
    font-size: 0.56em;
  }
}

@media (max-width: 720px) {
  .module-grid,
  .scenario-link-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .module-card {
    min-height: 0;
  }

  .module-card__index {
    margin-bottom: 28px;
  }
}

@media (max-width: 420px) {
  .contact-item {
    flex-direction: column;
    gap: 5px;
  }

  .contact-item .label {
    flex: 0 0 auto;
  }
}
