/* factory-en-minimal — Brutalist typography-first theme */
:root {
  --fmn-black: #000;
  --fmn-white: #FFF;
  --fmn-gray: #E5E5E5;
  --pb-active: #000;
  --fmn-font: Arial, Helvetica, sans-serif;
  --fmn-max: 1280px;
  --fmn-header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

.fmn-theme {
  margin: 0;
  font-family: var(--fmn-font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--fmn-black);
  background: var(--fmn-white);
  -webkit-font-smoothing: antialiased;
}

.fmn-theme img { max-width: 100%; height: auto; display: block; }
.fmn-theme a { color: inherit; text-decoration: none; }
.fmn-theme a:hover { opacity: 0.75; }
.fmn-theme ul { list-style: none; margin: 0; padding: 0; }
.fmn-theme h1, .fmn-theme h2, .fmn-theme h3,
.fmn-theme h4, .fmn-theme h5, .fmn-theme h6 {
  font-family: var(--fmn-font);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

.fmn-wrap {
  width: 100%;
  max-width: var(--fmn-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ── */
.fmn-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--fmn-header-h);
  background: var(--fmn-black);
  color: var(--fmn-white);
}

.fmn-header-inner {
  max-width: var(--fmn-max);
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.fmn-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  color: var(--fmn-white);
}

.fmn-logo img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
}

.fmn-logo-text {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.7;
}

.fmn-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.fmn-nav li a {
  display: block;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fmn-white);
  border: 1px solid transparent;
  transition: border-color 0.15s;
}

.fmn-nav li a:hover {
  opacity: 1;
  border-color: var(--fmn-white);
}

.fmn-nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--fmn-white);
  color: var(--fmn-white);
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 16px;
}

/* ── Hero split banner ── */
.fmn-hero {
  margin-top: var(--fmn-header-h);
  min-height: calc(100vh - var(--fmn-header-h));
  max-height: 720px;
}

.fmn-hero-split {
  display: flex;
  height: calc(100vh - var(--fmn-header-h));
  max-height: 720px;
}

.fmn-hero-text {
  flex: 0 0 40%;
  background: var(--fmn-black);
  color: var(--fmn-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}

.fmn-hero-caption {
  position: absolute;
  inset: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s, transform 0.5s;
  pointer-events: none;
}

.fmn-hero-caption.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.fmn-hero-caption h1 {
  font-size: clamp(28px, 4vw, 48px);
  margin-bottom: 16px;
  color: var(--fmn-white);
}

.fmn-hero-caption p {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.65;
  margin: 0 0 28px;
  line-height: 1.7;
}

.fmn-hero-caption .fmn-btn {
  align-self: flex-start;
}

.fmn-hero-visual {
  flex: 0 0 60%;
  position: relative;
  background: var(--fmn-gray);
  overflow: hidden;
}

.fmn-hero-visual .swiper-container,
.fmn-hero-visual .swiper-wrapper,
.fmn-hero-visual .swiper-slide {
  height: 100%;
}

.fmn-hero-visual .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fmn-hero-visual .swiper-pagination {
  bottom: 24px;
  right: 24px;
  left: auto;
  width: auto;
}

.fmn-hero-visual .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: var(--fmn-white);
  opacity: 0.5;
  border-radius: 0;
}

.fmn-hero-visual .swiper-pagination-bullet-active {
  background: var(--fmn-black);
  opacity: 1;
}

/* ── Buttons ── */
.fmn-btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 2px solid var(--fmn-black);
  background: transparent;
  color: var(--fmn-black);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.fmn-btn:hover {
  opacity: 1;
  background: var(--fmn-black);
  color: var(--fmn-white);
}

.fmn-btn-white {
  border-color: var(--fmn-white);
  color: var(--fmn-white);
}

.fmn-btn-white:hover {
  background: var(--fmn-white);
  color: var(--fmn-black);
}

.fmn-btn-solid {
  background: var(--fmn-black);
  color: var(--fmn-white);
}

.fmn-btn-solid:hover {
  background: var(--fmn-white);
  color: var(--fmn-black);
}

/* ── Section blocks ── */
.fmn-section {
  padding: 80px 0;
  border-bottom: 2px solid var(--fmn-gray);
}

.fmn-section-head {
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 4px solid var(--fmn-black);
}

.fmn-section-head .fmn-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
  opacity: 0.5;
}

.fmn-section-head h2 {
  font-size: clamp(24px, 3vw, 36px);
}

.fmn-section-foot {
  margin-top: 48px;
  text-align: center;
}

/* ── Products: 2-col large blocks ── */
.fmn-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--fmn-gray);
}

.fmn-product-block {
  background: var(--fmn-white);
  display: block;
  color: var(--fmn-black);
}

.fmn-product-block:hover { opacity: 1; }

.fmn-product-block .fmn-product-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--fmn-gray);
}

.fmn-product-block .fmn-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.fmn-product-block:hover .fmn-product-img img {
  transform: scale(1.03);
}

.fmn-product-block .fmn-product-info {
  padding: 24px 20px 32px;
  border-top: 2px solid var(--fmn-black);
}

.fmn-product-block h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.fmn-product-block p {
  font-size: 13px;
  color: var(--fmn-black);
  opacity: 0.55;
  margin: 0;
  line-height: 1.5;
}

/* ── News: text-only list ── */
.fmn-news-list {
  border-top: 2px solid var(--fmn-black);
}

.fmn-news-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--fmn-gray);
  align-items: start;
}

.fmn-news-date {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.4;
  opacity: 0.45;
  padding-top: 4px;
}

.fmn-news-body h3 {
  font-size: 15px;
  margin-bottom: 8px;
}

.fmn-news-body h3 a:hover { opacity: 0.6; }

.fmn-news-body p {
  font-size: 13px;
  opacity: 0.55;
  margin: 0;
  line-height: 1.6;
}

/* ── Advantages: numbered vertical list ── */
.fmn-advantages-list {
  counter-reset: adv;
}

.fmn-advantage-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 2px solid var(--fmn-gray);
  align-items: start;
}

.fmn-advantage-num {
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  opacity: 0.15;
  font-variant-numeric: tabular-nums;
}

.fmn-advantage-num::before {
  counter-increment: adv;
  content: counter(adv, decimal-leading-zero);
}

.fmn-advantage-body h4 {
  font-size: 18px;
  margin-bottom: 10px;
}

.fmn-advantage-body p {
  font-size: 14px;
  opacity: 0.6;
  margin: 0;
  max-width: 560px;
}

/* ── Page head ── */
.fmn-page-head {
  margin-top: var(--fmn-header-h);
  padding: 48px 0 40px;
  background: var(--fmn-black);
  color: var(--fmn-white);
}

.fmn-page-head h1 {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--fmn-white);
  margin-top: 0;
}

.fmn-breadcrumb-wrap {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 28px;
  border: 2px solid var(--fmn-white);
  max-width: 100%;
  overflow-x: auto;
}

.fmn-breadcrumb-tag {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 10px 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--fmn-white);
  color: var(--fmn-black);
}

.fmn-breadcrumb {
  flex: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 0;
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: transparent;
  color: var(--fmn-white);
  opacity: 1;
  min-width: 0;
}

.fmn-breadcrumb a {
  color: var(--fmn-white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.fmn-breadcrumb a:hover {
  background: var(--fmn-white);
  color: var(--fmn-black);
  border-bottom-color: var(--fmn-white);
}

.fmn-breadcrumb a:last-child {
  border-bottom: none;
  opacity: 0.55;
  pointer-events: none;
}

.fmn-breadcrumb-sep {
  display: inline-block;
  margin: 0 8px;
  opacity: 0.4;
  font-weight: 400;
}

.fmn-page-head .fmn-subtitle {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.55;
  margin: 8px 0 0;
}

/* ── About ── */
.fmn-about-body {
  padding: 64px 0;
}

.fmn-about-body .content {
  max-width: 760px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.8;
}

.fmn-about-body .content p { margin-bottom: 1.2em; }

.fmn-story-hero {
  margin-top: var(--fmn-header-h);
  max-height: 420px;
  overflow: hidden;
}

.fmn-story-hero img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  filter: grayscale(100%);
}

/* ── Contact split ── */
.fmn-contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}

.fmn-contact-dark {
  background: var(--fmn-black);
  color: var(--fmn-white);
  padding: 56px 48px;
}

.fmn-contact-dark h2 {
  font-size: 24px;
  color: var(--fmn-white);
  margin-bottom: 12px;
}

.fmn-contact-dark > p {
  opacity: 0.55;
  font-size: 14px;
  margin-bottom: 40px;
}

.fmn-contact-line {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.fmn-contact-line label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.45;
  margin-bottom: 8px;
}

.fmn-contact-line p { margin: 0 0 4px; font-size: 14px; }
.fmn-contact-line a { color: var(--fmn-white); }

.fmn-contact-qr img {
  width: 120px;
  border: 2px solid var(--fmn-white);
}

.fmn-contact-form {
  padding: 56px 48px;
  background: var(--fmn-white);
  border-left: 2px solid var(--fmn-gray);
}

.fmn-contact-form h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.fmn-contact-form > p {
  font-size: 13px;
  opacity: 0.55;
  margin-bottom: 32px;
}

.fmn-field {
  margin-bottom: 20px;
}

.fmn-field label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.fmn-field input,
.fmn-field textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--fmn-font);
  font-size: 14px;
  border: 2px solid var(--fmn-black);
  background: var(--fmn-white);
  border-radius: 0;
  outline: none;
}

.fmn-field input:focus,
.fmn-field textarea:focus {
  background: var(--fmn-gray);
}

.fmn-field textarea {
  min-height: 140px;
  resize: vertical;
}

.fmn-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ── Category tabs ── */
.fmn-cat-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 40px;
  border: 2px solid var(--fmn-black);
}

.fmn-cat-bar a {
  padding: 12px 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-right: 2px solid var(--fmn-black);
}

.fmn-cat-bar a:last-child { border-right: none; }

.fmn-cat-bar a.active,
.fmn-cat-bar a:hover {
  background: var(--fmn-black);
  color: var(--fmn-white);
  opacity: 1;
}

/* ── Product catalog rows ── */
.fmn-catalog-list {
  border-top: 2px solid var(--fmn-black);
}

.fmn-catalog-row {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--fmn-gray);
  align-items: center;
}

.fmn-catalog-row img {
  width: 200px;
  height: 140px;
  object-fit: cover;
  border: 2px solid var(--fmn-black);
}

.fmn-catalog-row h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.fmn-catalog-row p {
  font-size: 13px;
  opacity: 0.55;
  margin: 0;
}

/* ── Product detail ── */
.fmn-pdetail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.fmn-pdetail-gallery img {
  width: 100%;
  border: 2px solid var(--fmn-black);
}

.fmn-pdetail-info .content {
  font-size: 15px;
  line-height: 1.8;
}

/* ── Article ── */
.fmn-article {
  max-width: 760px;
  margin: 0 auto;
}

.fmn-article h1 {
  font-size: clamp(24px, 3.5vw, 36px);
  margin-bottom: 16px;
}

.fmn-article-meta {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.45;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--fmn-gray);
}

.fmn-article .content {
  font-size: 16px;
  line-height: 1.85;
}

.fmn-article-nav {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid var(--fmn-black);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  font-size: 13px;
}

/* ── Advantages page grid ── */
.fmn-values-list .fmn-advantage-item {
  cursor: default;
}

.fmn-values-list a.fmn-advantage-item {
  cursor: pointer;
  color: inherit;
}

.fmn-values-list a.fmn-advantage-item:hover h4 {
  text-decoration: underline;
}

/* ── Search ── */
.fmn-search-form {
  display: flex;
  max-width: 560px;
  margin: 0 auto 48px;
  border: 2px solid var(--fmn-black);
}

.fmn-search-form input {
  flex: 1;
  padding: 16px 20px;
  border: none;
  font-family: var(--fmn-font);
  font-size: 14px;
  outline: none;
}

.fmn-search-form button {
  padding: 16px 24px;
  background: var(--fmn-black);
  color: var(--fmn-white);
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.fmn-search-result {
  padding: 28px 0;
  border-bottom: 1px solid var(--fmn-gray);
}

.fmn-search-result h4 {
  font-size: 15px;
  margin-bottom: 8px;
}

.fmn-search-meta {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.4;
  margin-bottom: 10px;
}

/* ── Message ── */
.fmn-message-wrap {
  max-width: 640px;
  margin: 0 auto;
}

.fmn-message-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--fmn-gray);
}

.fmn-message-item h5 {
  font-size: 14px;
  margin-bottom: 8px;
}

.fmn-message-reply {
  margin-top: 16px;
  padding: 16px;
  background: var(--fmn-gray);
  border-left: 4px solid var(--fmn-black);
}

/* ── Footer: black single row ── */
.fmn-footer {
  background: var(--fmn-black);
  color: var(--fmn-white);
  padding: 20px 24px;
}

.fmn-footer-row {
  max-width: var(--fmn-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.fmn-footer-left {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.fmn-footer-left img {
  height: 28px;
  filter: brightness(0) invert(1);
}

.fmn-footer-info {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.55;
  line-height: 1.6;
}

.fmn-footer-social {
  display: flex;
  align-items: center;
  gap: 0;
}

.fmn-footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.25);
  border-right: none;
  color: var(--fmn-white);
  font-size: 14px;
}

.fmn-footer-social a:last-child { border-right: 1px solid rgba(255,255,255,0.25); }

.fmn-footer-social a img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

.fmn-footer-copy {
  width: 100%;
  text-align: center;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.35;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

/* ── Float: bottom-right stacked squares ── */
.fmn-float {
  position: fixed;
  right: 24px;
  bottom: 80px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fmn-float-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--fmn-black);
  color: var(--fmn-white);
  border: 2px solid var(--fmn-black);
  font-size: 16px;
  transition: background 0.15s, color 0.15s;
}

.fmn-float-item:hover {
  opacity: 1;
  background: var(--fmn-white);
  color: var(--fmn-black);
}

.fmn-float-item--top {
  background: var(--fmn-white);
  color: var(--fmn-black);
}

.fmn-float-item--top:hover {
  background: var(--fmn-black);
  color: var(--fmn-white);
}

.fmn-float-item img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.fmn-float-item:hover img {
  filter: none;
}

/* ── Responsive ── */
@media (max-width: 992px) {
  .fmn-hero-split {
    flex-direction: column;
    height: auto;
    max-height: none;
  }

  .fmn-hero-text {
    flex: none;
    min-height: 280px;
    padding: 32px 24px;
  }

  .fmn-hero-caption { inset: 32px 24px; }

  .fmn-hero-visual {
    flex: none;
    height: 50vw;
    min-height: 260px;
  }

  .fmn-products-grid { grid-template-columns: 1fr; }

  .fmn-contact-split { grid-template-columns: 1fr; }

  .fmn-contact-form { border-left: none; border-top: 2px solid var(--fmn-gray); }

  .fmn-pdetail { grid-template-columns: 1fr; }

  .fmn-catalog-row {
    grid-template-columns: 120px 1fr;
  }

  .fmn-catalog-row .fmn-btn { grid-column: 1 / -1; justify-self: start; }

  .fmn-catalog-row img { width: 120px; height: 90px; }
}

@media (max-width: 768px) {
  .fmn-nav-toggle { display: flex; align-items: center; justify-content: center; }

  .fmn-nav {
    display: none;
    position: fixed;
    top: var(--fmn-header-h);
    left: 0;
    right: 0;
    background: var(--fmn-black);
    flex-direction: column;
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,0.15);
  }

  .fmn-nav.open { display: flex; }

  .fmn-nav li { width: 100%; }

  .fmn-nav li a {
    display: block;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .fmn-news-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .fmn-advantage-item {
    grid-template-columns: 56px 1fr;
    gap: 16px;
  }

  .fmn-advantage-num { font-size: 32px; }

  .fmn-form-row { grid-template-columns: 1fr; }

  .fmn-footer-row { flex-direction: column; align-items: flex-start; }

  .fmn-breadcrumb-wrap { flex-direction: column; }
  .fmn-breadcrumb-tag { justify-content: center; }
  .fmn-breadcrumb { padding: 12px 14px; }

  .fmn-float { bottom: 16px; right: 16px; }
}

@media (max-width: 767px) {
  .fmn-float { display: none; }
}
