/* Exspect — light flexbox redesign (brand palette from original) */
@font-face {
  font-family: "MgOpen Moderna";
  src: url("../fonts/MgOpenModernaRegular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "MgOpen Moderna";
  src: url("../fonts/MgOpenModernaBold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "MgOpen Moderna";
  src: url("../fonts/MgOpenModernaOblique.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --ex-red: #ff0a04;
  --ex-red-dark: #a80905;
  --ex-ink: #121212;
  --ex-muted: #868686;
  --ex-line: #d8d8d8;
  --ex-bg: #f4f4f4;
  --ex-white: #ffffff;
  --ex-header: #1a1a1a;
  --ex-max: 1100px;
  --font: "MgOpen Moderna", "Trebuchet MS", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ex-ink);
  background:
    linear-gradient(180deg, #e8e8e8 0%, var(--ex-bg) 180px, var(--ex-white) 420px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ex-red-dark);
  text-decoration: none;
}
a:hover {
  color: var(--ex-red);
  text-decoration: underline;
}

.site-header {
  background: var(--ex-header);
  color: var(--ex-white);
  border-bottom: 3px solid var(--ex-red);
}

.site-header__inner {
  max-width: var(--ex-max);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.site-logo img {
  display: block;
  height: 42px;
  width: auto;
}
.site-logo span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.site-nav {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
}

.site-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-right: 1px solid #3a3a3a;
  transition: color 0.2s ease, background 0.2s ease;
}
.site-nav a:last-child {
  border-right: none;
}
.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ex-red);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
}

.site-main {
  flex: 1 1 auto;
  width: 100%;
  max-width: var(--ex-max);
  margin: 0 auto;
  padding: 28px 20px 48px;
}

.page-header {
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--ex-ink);
}
.page-header h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  color: var(--ex-ink);
}

.layout-with-side {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.layout-with-side__side {
  flex: 0 0 220px;
}
.layout-with-side__main {
  flex: 1 1 280px;
  min-width: 0;
}

.side-box {
  background: var(--ex-white);
  border: 1px solid var(--ex-line);
  padding: 14px 16px;
  margin-bottom: 16px;
}
.side-box h5 {
  margin: 0 0 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ex-red-dark);
  border-bottom: 1px solid var(--ex-line);
  padding-bottom: 6px;
}
.side-box ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.side-box li {
  margin: 0 0 6px;
}
.side-box li a {
  color: var(--ex-ink);
  font-size: 14px;
}
.side-box li.main a {
  font-weight: 700;
  color: var(--ex-red-dark);
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 28px;
  animation: fadeUp 0.7s ease both;
}
.hero__brand {
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ex-ink);
  margin: 0;
}
.hero__lead {
  margin: 0;
  max-width: 36em;
  font-size: 17px;
  color: #333;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--ex-red-dark);
  background: var(--ex-red);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn:hover {
  background: var(--ex-red-dark);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--ex-ink);
  border-color: var(--ex-ink);
}
.btn--ghost:hover {
  background: var(--ex-ink);
  color: #fff;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 8px 0 32px;
  animation: fadeUp 0.8s ease 0.12s both;
}
.feature-grid a {
  flex: 1 1 200px;
  display: block;
  overflow: hidden;
  background: #111;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-grid a:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  text-decoration: none;
}
.feature-grid img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.home-news {
  background: var(--ex-white);
  border: 1px solid var(--ex-line);
  padding: 18px 20px;
  animation: fadeUp 0.85s ease 0.2s both;
}
.home-news h2 {
  margin: 0 0 12px;
  font-size: 18px;
  border-bottom: 2px solid var(--ex-ink);
  padding-bottom: 8px;
}
.home-news ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.home-news a {
  color: var(--ex-ink);
  font-weight: 700;
}

.product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.product-card {
  flex: 1 1 200px;
  max-width: 260px;
  background: var(--ex-white);
  border: 1px solid var(--ex-line);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s ease;
}
.product-card:hover {
  border-color: var(--ex-red);
}
.product-card h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
}
.product-card .sku {
  color: var(--ex-muted);
  font-size: 13px;
}
.product-card .button a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--ex-red-dark);
  background: var(--ex-red);
  color: #fff;
}
.product-card .button a:hover {
  background: var(--ex-red-dark);
  color: #fff;
  text-decoration: none;
}

.product-card .info h3 a {
  color: var(--ex-ink);
}
.product-card .info h3 a:hover {
  color: var(--ex-red);
}

.news-list article {
  background: var(--ex-white);
  border: 1px solid var(--ex-line);
  padding: 16px 18px;
  margin-bottom: 14px;
}
.news-list h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.news-list .meta {
  color: var(--ex-muted);
  font-size: 13px;
  margin-top: 10px;
}

.paging,
.show-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 13px;
}
.paging .page a,
.show-controls .page a {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid var(--ex-line);
  color: var(--ex-ink);
}
.paging .page.selected,
.show-controls .page.selected {
  background: var(--ex-ink);
  color: #fff;
  padding: 4px 8px;
}

.contact-form label {
  display: block;
  margin: 12px 0 4px;
  font-weight: 700;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="password"],
.contact-form textarea {
  width: 100%;
  max-width: 420px;
  padding: 8px 10px;
  border: 1px solid #393939;
  font-family: inherit;
  font-size: 14px;
}
.contact-form input[type="submit"],
.contact-form button[type="submit"] {
  margin-top: 14px;
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--ex-red-dark);
  background: var(--ex-red);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}
.helpertext .email,
.contact-form .email {
  color: var(--ex-red);
}

.romlicontainer {
  max-width: 100%;
}
.romlidata {
  margin: 24px 0;
}

.blog-container {
  width: 100%;
}
.blog-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.blog-card {
  flex: 1 1 280px;
  background: var(--ex-white);
  border: 1px solid var(--ex-line);
  padding: 16px 18px;
}
.blog-title {
  margin: 0 0 8px;
  font-size: 18px;
}
.blog-preview p {
  margin: 0;
  color: #444;
}

.site-footer {
  background: #fafafa;
  border-top: 1px solid var(--ex-line);
  margin-top: auto;
  background-image: linear-gradient(180deg, #fff 0%, #f0f0f0 100%);
}
.site-footer__inner {
  max-width: var(--ex-max);
  margin: 0 auto;
  padding: 28px 20px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px 32px;
}
.footer-col h6 {
  margin: 0 0 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-col li {
  margin: 0 0 6px;
}
.footer-col a {
  color: var(--ex-ink);
}
.footer-supporters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.footer-supporters img {
  height: 36px;
  width: auto;
  object-fit: contain;
}
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.footer-social img {
  height: 22px;
  width: auto;
}
.footer-copy {
  width: 100%;
  padding-top: 12px;
  border-top: 1px dotted #ccc;
  font-size: 12px;
  color: #555;
}

.sitewide-block {
  max-width: var(--ex-max);
  margin: 0 auto;
  padding: 0 20px 20px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .site-nav {
    width: 100%;
  }
  .site-nav a {
    border-right: none;
    border-bottom: 1px solid #333;
    padding: 10px 0;
    width: 100%;
  }
  .layout-with-side__side {
    flex: 1 1 100%;
  }
  .product-card {
    max-width: none;
  }
}
