/**
 * Artima — design system (from header mockup).
 * Font: Geologica everywhere. Site bg: header dark green.
 */

:root {
  --bg: #061d09;
  --bg-elevated: #0a2410;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.88);
  --accent: #c5aa39;
  --border: rgba(255, 255, 255, 0.85);
  --line: rgba(255, 255, 255, 0.85);
  --max: 1280px;
  --font: "Geologica", system-ui, sans-serif;
  --header-h: 94px;
  --logo-h: 72px;
  --hero-controls-h: 72px;
  --hero-rail-x: 0px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

.container {
  width: min(var(--max), calc(100% - 64px));
  margin-inline: auto;
}

.kicker {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

h1,
h2,
h3 {
  font-family: var(--font);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--text);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
}

p {
  margin: 0 0 20px;
  color: var(--text-muted);
  max-width: 36em;
  font-weight: 400;
}

/* —— Header —— */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--bg);
  overflow: visible;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 32px;
}

.site-logo {
  flex: 0 0 auto;
  line-height: 0;
}

.site-logo img,
.site-logo .custom-logo {
  height: var(--logo-h);
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.site-logo .custom-logo-link {
  display: block;
  line-height: 0;
}

.header-right {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-width: 0;
  height: var(--header-h);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 100%;
}

.primary-nav > a,
.primary-nav .nav-item__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.primary-nav > a:hover {
  color: var(--accent);
}

.primary-nav .nav-item:hover > .nav-item__link,
.primary-nav .nav-item.is-open > .nav-item__link,
.primary-nav .nav-item:focus-within > .nav-item__link {
  color: #fff;
}

.primary-nav > a.active,
.primary-nav .nav-item.is-current > .nav-item__link,
.primary-nav .nav-item__link.active {
  color: #fff;
}

.primary-nav > a.active::after,
.primary-nav .nav-item.is-current > .nav-item__link::after,
.primary-nav .nav-item.is-open > .nav-item__link::after,
.primary-nav .nav-item:hover > .nav-item__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  height: 2px;
  background: #fff;
}

.nav-item {
  position: static;
  display: flex;
  align-items: center;
  height: 100%;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  background: var(--bg);
  padding: 28px 0 40px;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.nav-item:hover > .mega-menu,
.nav-item:focus-within > .mega-menu,
.nav-item.is-open > .mega-menu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mega-menu__inner {
  width: min(var(--max), calc(100% - 64px));
  margin-inline: auto;
  display: flex;
  justify-content: center;
}

.mega-menu__grid {
  columns: 2;
  column-gap: 96px;
  width: max-content;
  max-width: 100%;
  text-align: left;
}

.mega-menu__link {
  display: block;
  break-inside: avoid;
  margin: 0 0 14px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  color: #fff;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.mega-menu__link:last-child {
  margin-bottom: 0;
}

.mega-menu__link:hover,
.mega-menu__link.active {
  color: var(--accent);
}

.header-utils {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  margin-left: 28px;
  height: var(--header-h);
}

.lang-switch,
.search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0 22px;
  height: 100%;
  background: transparent;
  border: 0;
  border-left: 1px solid var(--line);
  color: #fff;
  cursor: pointer;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
}

.lang-switch {
  position: relative;
  padding: 0;
}

.lang-switch__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0 22px;
  height: 100%;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.lang-switch__chevron {
  flex-shrink: 0;
  margin-top: 1px;
  transition: transform 0.2s ease;
}

.lang-switch.is-open .lang-switch__chevron {
  transform: rotate(180deg);
}

.lang-switch__menu {
  position: absolute;
  top: calc(100% - 8px);
  left: 0;
  right: 0;
  z-index: 80;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #0a2410;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.lang-switch__menu[hidden] {
  display: none;
}

.lang-switch__link {
  display: block;
  padding: 10px 18px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.lang-switch__link:hover,
.lang-switch__link.is-active {
  color: var(--accent);
}

.search-toggle {
  padding-inline: 18px 8px;
}

.search-toggle svg {
  display: block;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  margin-left: 12px;
  padding: 8px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 1px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 32px 28px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.mobile-nav[hidden] {
  display: none !important;
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav > a,
.mobile-nav__link {
  display: block;
  padding: 12px 0;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #fff;
}

.mobile-nav > a.active,
.mobile-nav__link.active,
.mobile-nav__item.is-current > .mobile-nav__row .mobile-nav__link {
  color: var(--accent);
}

.mobile-nav__item--has-children {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-nav__row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-nav__row .mobile-nav__link {
  flex: 1 1 auto;
  min-width: 0;
}

.mobile-nav__toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.mobile-nav__toggle span {
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.18s ease;
}

.mobile-nav__item.is-open > .mobile-nav__row .mobile-nav__toggle span {
  transform: rotate(225deg) translate(-2px, -2px);
}

.mobile-submenu {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 0 0 14px 12px;
}

.mobile-nav__item.is-open > .mobile-submenu {
  display: flex;
}

.mobile-submenu[hidden] {
  display: none !important;
}

.mobile-nav__item.is-open > .mobile-submenu[hidden] {
  display: flex !important;
}

.mobile-submenu__link {
  display: block;
  padding: 8px 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.mobile-submenu__link:hover,
.mobile-submenu__link.active {
  color: var(--accent);
}

.lang-switch--mobile {
  align-self: flex-start;
  border-left: 0;
  padding: 12px 0 0;
  height: auto;
  width: 100%;
}

.lang-switch--mobile .lang-switch__toggle {
  justify-content: flex-start;
  padding: 0;
  height: auto;
}

.lang-switch--mobile .lang-switch__menu {
  position: static;
  margin-top: 10px;
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 0;
}

.lang-switch--mobile .lang-switch__link {
  padding: 8px 0;
}

/* —— Buttons (blocks) —— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 4px;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.btn.primary {
  background: var(--accent);
  color: #061d09;
}

.btn.primary:hover {
  filter: brightness(1.08);
}

.btn.outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn.outline:hover {
  border-color: #fff;
}

/* —— Sections —— */

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow: hidden;
}

.hero-slides {
  position: relative;
  flex: 1 1 auto;
  min-height: calc(100svh - var(--header-h) - var(--hero-controls-h));
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-slide__media {
  position: absolute;
  inset: 0;
  container-type: size;
}

.hero-slide__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.hero-slide__video {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.65s ease, visibility 0.65s ease;
  pointer-events: none;
}

.hero-slide__video-player,
.hero-slide__video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 0 !important;
  pointer-events: none;
  max-width: none;
  max-height: none;
}

.hero-slide.is-video-ended .hero-slide__video {
  opacity: 0;
  visibility: hidden;
}

.hero-slide__shade {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.28) 28%,
    rgba(0, 0, 0, 0.08) 55%,
    rgba(0, 0, 0, 0) 78%
  );
  pointer-events: none;
}

.hero-slide__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 40px;
  padding: 48px 0 36px;
}

.hero-slide__copy {
  max-width: 34rem;
  padding-bottom: 8px;
}

.hero-slide__title {
  margin: 0 0 18px;
  font-family: var(--font);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #fff;
}

.hero-slide__body {
  margin: 0;
  max-width: 32rem;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
}

.hero-slide__btn {
  align-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  height: 46px;
  padding: 0 28px;
  margin-bottom: 10px;
  border: 1px solid #fff;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.hero-slide__btn:hover {
  background: #fff;
  color: var(--bg);
}

.hero-controls {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  min-height: var(--hero-controls-h);
  background: var(--bg);
}

.hero-controls__rule {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
  z-index: 1;
}

.hero-controls__rail {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--hero-rail-x);
  width: 1px;
  background: var(--line);
  z-index: 2;
  pointer-events: none;
}

.hero-controls__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: var(--hero-controls-h);
  padding-block: 18px;
  z-index: 3;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #fff;
  background: transparent;
  cursor: pointer;
}

.hero-dot.is-active {
  background: #fff;
}

.hero-arrows {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--hero-rail-x);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 140px;
  z-index: 4;
  pointer-events: none;
}

.hero-arrow {
  display: inline-flex;
  align-items: center;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  pointer-events: auto;
}

.hero-arrow--prev {
  justify-content: flex-end;
  padding-right: 18px;
}

.hero-arrow--next {
  justify-content: flex-start;
  padding-left: 18px;
}

.hero-arrow:hover {
  opacity: 0.75;
}

.hero-arrow svg {
  display: block;
  width: 34px;
  height: 18px;
}

.page-hero {
  padding: 0 0 8px;
  background: var(--bg);
}

.page-hero__header {
  padding: 40px 0 48px;
  text-align: center;
}

.page-hero__title {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(2rem, 4.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
}

/* —— TV Videos —— */

.tv-videos {
  padding: 0 0 96px;
  background: var(--bg);
}

.tv-videos__header {
  padding: 40px 0 48px;
  text-align: center;
}

.tv-videos__page-title {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(2rem, 4.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
}

.tv-videos__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 52px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tv-videos__item {
  margin: 0;
  width: 100%;
  min-width: 0;
}

.tv-videos__title {
  margin: 0 0 20px;
  font-family: var(--font);
  font-size: clamp(1.215rem, 2.16vw, 1.575rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  text-align: center;
}

.tv-videos__embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0a0a0a;
  border: 1px solid var(--line);
}

.tv-videos__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.tv-videos__empty {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

body:has(.tv-videos) .site-footer {
  margin-top: 0;
}

/* —— 404 —— */

.error-404 {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100svh - var(--header-h));
  padding: 72px 0 96px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(197, 170, 57, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 80%, rgba(10, 48, 18, 0.9), transparent 50%),
    radial-gradient(ellipse 55% 45% at 10% 70%, rgba(8, 36, 14, 0.85), transparent 45%),
    var(--bg);
}

.error-404__glow {
  position: absolute;
  width: min(72vw, 560px);
  height: min(72vw, 560px);
  top: 42%;
  left: 50%;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 170, 57, 0.18) 0%, rgba(197, 170, 57, 0.04) 42%, transparent 70%);
  pointer-events: none;
  animation: error-404-pulse 7s ease-in-out infinite;
}

.error-404__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
}

.error-404__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 720px;
}

.error-404__code {
  margin: 0 0 8px;
  font-family: var(--font);
  font-size: clamp(6.5rem, 22vw, 11rem);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: transparent;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(197, 170, 57, 0.75) 48%,
    rgba(197, 170, 57, 0.2) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 80px rgba(197, 170, 57, 0.15);
}

.error-404__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.error-404__kicker {
  margin-bottom: 16px;
}

.error-404__title {
  margin: 0 0 18px;
  max-width: 16ch;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
}

.error-404__text {
  margin: 0 0 36px;
  max-width: 34em;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.error-404__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 14px;
}

.error-404__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 28px;
  border: 1px solid #fff;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.error-404__btn:hover {
  background: #fff;
  color: var(--bg);
}

.error-404__btn--primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--bg);
}

.error-404__btn--primary:hover {
  filter: brightness(1.08);
  background: var(--accent);
  color: var(--bg);
}

@keyframes error-404-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.72;
  }
}

@media (prefers-reduced-motion: reduce) {
  .error-404__glow {
    animation: none;
  }
}

/* —— Catalog categories —— */

.catalog-categories {
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - var(--header-h));
  background: var(--bg);
  box-sizing: border-box;
}

.catalog-categories__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 0 96px;
}

.catalog-categories__header {
  margin-bottom: 40px;
  text-align: center;
}

.catalog-categories__title {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(2rem, 4.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
}

.catalog-categories__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.catalog-categories__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 22px;
  border: 1px solid #fff;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-align: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.catalog-categories__btn:hover {
  background: #fff;
  color: var(--bg);
}

.catalog-categories__empty {
  margin: 0;
  color: var(--text-muted);
  text-align: center;
}

body:has(.catalog-categories) .site-footer {
  margin-top: 0;
}

/* —— Shared section rail (aligns with hero --hero-rail-x) —— */

.has-section-rail {
  position: relative;
}

.section-rail {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--hero-rail-x);
  width: 1px;
  background: var(--line);
  z-index: 2;
  pointer-events: none;
}

/* —— Scroll reveal —— */

.reveal {
  opacity: 0;
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal--rise {
  transform: translateY(28px);
}

.reveal.is-inview {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* —— Company (Εταιρία) —— */

.company-block,
.company-page {
  background: var(--bg);
}

.company-block--home {
  padding-bottom: 8px;
}

.company-block__main,
.company-page__main {
  padding: 48px 0 72px;
}

.company-block--home .company-block__main {
  padding: 56px 0 80px;
}

.company-block__grid,
.company-page__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4.5vw, 64px);
  align-items: start;
}

.company-block--home .company-block__grid {
  padding-right: 48px;
}

.company-block__media,
.company-page__media {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
  margin: 0;
  overflow: hidden;
  background: #0a0a0a;
  z-index: 1;
}

.company-block__img,
.company-page__img {
  width: 100%;
  height: auto;
  aspect-ratio: 10 / 9;
  object-fit: cover;
  object-position: center;
  filter: grayscale(1);
}

.company-block__content,
.company-page__content {
  padding-top: 4px;
}

.company-block--home .company-block__content {
  padding-top: 12px;
}

.company-block__title,
.company-page__title {
  margin: 0 0 28px;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
}

.company-block__body,
.company-page__body {
  max-width: 38em;
}

.company-block__body p,
.company-page__body p {
  margin: 0 0 22px;
  max-width: none;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: #fff;
}

.company-block__body p:last-child,
.company-page__body p:last-child {
  margin-bottom: 0;
}

.company-block__body strong,
.company-block__body b,
.company-page__body strong,
.company-page__body b {
  color: var(--accent);
  font-weight: 700;
}

.company-block__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  height: 46px;
  margin-top: 32px;
  padding: 0 28px;
  border: 1px solid #fff;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, color 0.2s ease;
}

.company-block__btn:hover {
  background: #fff;
  color: var(--bg);
}

body:has(.company-block--home) .site-footer,
body:has(.company-page) .site-footer {
  margin-top: 0;
}

/* —— Catalog download CTA —— */

.catalog-cta {
  position: relative;
  background: var(--bg);
}

.catalog-cta__band {
  width: var(--hero-rail-x, 100%);
  max-width: 100%;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.catalog-cta__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-height: 0;
  padding-block: 120px;
  text-align: center;
}

.catalog-cta__title {
  margin: 0;
  max-width: none;
  font-family: var(--font);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

.catalog-cta__btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  height: 42px;
  padding: 0 28px;
  border: 1px solid #fff;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.catalog-cta__btn:hover {
  background: #fff;
  color: var(--bg);
}

.catalog-cta__btn--disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* —— News (Νέα) —— */

.news-block {
  position: relative;
  padding: 48px 0 0;
  background: var(--bg);
  overflow: hidden;
}

.news-block__band {
  width: var(--hero-rail-x, 100%);
  max-width: 100%;
  overflow: hidden;
}

.news-block__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-left: max(32px, calc((100% - var(--max)) / 2));
  padding-right: 16px;
  box-sizing: border-box;
}

.news-block__title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
}

.news-block__archive {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  height: 42px;
  padding: 0 24px;
  border: 1px solid #fff;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.news-block__archive:hover {
  background: #fff;
  color: var(--bg);
}

.news-block__viewport {
  overflow: hidden;
  padding-right: 0;
}

.news-block__track {
  display: flex;
  gap: 28px;
  width: 100%;
  transition: transform 0.45s ease;
  will-change: transform;
}

.news-block__empty {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

.news-block__track .news-card {
  flex: 0 0 calc((100% - 56px) / 2.2);
  width: calc((100% - 56px) / 2.2);
  max-width: calc((100% - 56px) / 2.2);
  min-width: 0;
  box-sizing: border-box;
}

.news-card {
  min-width: 0;
  box-sizing: border-box;
}

.news-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0a0a0a;
  margin-bottom: 14px;
}

.news-card__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.news-card__date {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 6px;
  background: #fff;
  color: #061d09;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}

.news-card__title {
  margin: 0 0 10px;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}

.news-card__title a {
  color: inherit;
}

.news-card__title a:hover {
  color: var(--accent);
}

.news-card__excerpt {
  margin: 0;
  max-width: none;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.news-block__controls {
  position: relative;
  margin-top: 28px;
  min-height: var(--hero-controls-h);
}

.news-block__rule {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--hero-rail-x, 100%);
  max-width: 100%;
  height: 1px;
  background: var(--line);
  z-index: 1;
}

.news-block__rail {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--hero-rail-x);
  width: 1px;
  background: var(--line);
  z-index: 2;
  pointer-events: none;
}

.news-block__dots {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--hero-controls-h);
  padding: 18px 0;
  width: min(var(--max), calc(100% - 64px));
  margin-inline: auto;
}

.news-block__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #fff;
  background: transparent;
  cursor: pointer;
}

.news-block__dot.is-active {
  background: #fff;
}

.news-block__arrows {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--hero-rail-x);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 140px;
  z-index: 4;
  pointer-events: none;
}

.news-block__arrow {
  display: inline-flex;
  align-items: center;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  pointer-events: auto;
}

.news-block__arrow--prev {
  justify-content: flex-end;
  padding-right: 18px;
}

.news-block__arrow--next {
  justify-content: flex-start;
  padding-left: 18px;
}

.news-block__arrow:hover {
  opacity: 0.75;
}

.news-block__arrow svg {
  display: block;
  width: 34px;
  height: 18px;
}

/* —— Our Brands —— */

.our-brands {
  position: relative;
  padding: 72px 0 96px;
  background: var(--bg);
}

.our-brands__band {
  width: var(--hero-rail-x, 100%);
  max-width: 100%;
}

.our-brands__inner {
  padding-right: 40px;
}

.our-brands__title {
  margin: 0 0 36px;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
}

.our-brands__empty {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

.our-brands__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.our-brands__item {
  margin: 0;
  min-width: 0;
}

.our-brands__card {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  width: 100%;
  padding: 18px 16px;
  border-radius: 28px;
  background: #fff;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.our-brands__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.our-brands__card img {
  display: block;
  width: auto;
  height: auto;
  max-width: 82%;
  max-height: 72%;
  object-fit: contain;
}

/* —— News archive / single —— */

.news-archive {
  padding: 0 0 80px;
  background: var(--bg);
}

.news-archive__header {
  padding: 40px 0 48px;
  text-align: center;
}

.news-archive__title {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(2rem, 4.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
}

.news-archive__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 28px;
}

.news-archive__grid .news-card__title {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
}

.news-archive__grid .news-card__excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

.news-archive__empty {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.news-archive .products-pagination {
  margin-top: 48px;
}

body.blog .site-footer,
body.home:not(.front-page) .site-footer {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  padding-top: 56px;
}

.news-single {
  padding: 48px 0 80px;
  background: var(--bg);
}

.news-single__header {
  margin-bottom: 28px;
}

.news-single__date {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.news-single__title {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #fff;
}

.news-single__media {
  margin-bottom: 32px;
}

.news-single__media img {
  width: 100%;
  height: auto;
  display: block;
}

.news-single__content {
  max-width: 42rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  line-height: 1.7;
}

.news-single__content p {
  color: inherit;
  max-width: none;
}

/* —— Single product —— */

.product-breadcrumbs {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.product-breadcrumbs__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 12px;
  min-height: 52px;
  padding-block: 14px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: #fff;
  text-align: center;
}

.product-breadcrumbs a {
  color: #fff;
  transition: color 0.15s ease;
}

.product-breadcrumbs a:hover {
  color: var(--accent);
}

.product-breadcrumbs__sep {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
}

.product-breadcrumbs__current {
  color: #fff;
}

.product-detail {
  padding: 56px 0 72px;
  background: var(--bg);
}

.product-detail__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: stretch;
}

.product-detail__media {
  background: #fff;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.product-detail__img,
.product-detail__placeholder {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #fff;
}

.product-detail__placeholder {
  display: block;
  background: #f3f3f3;
}

.product-detail__info {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding-block: 8px 4px;
}

.product-detail__header {
  margin-bottom: 0;
}

.product-detail__title {
  margin: 0 0 14px;
  font-family: var(--font);
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #fff;
}

.product-detail__code {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
}

.product-detail__desc {
  margin-top: auto;
  padding-top: clamp(40px, 8vw, 96px);
  max-width: 34rem;
}

.product-detail__desc p {
  margin: 0 0 16px;
  max-width: none;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
}

.product-detail__desc p:last-child {
  margin-bottom: 0;
}

/* —— Related products —— */

.related-products {
  padding: 24px 0 0;
  background: var(--bg);
}

.related-products__title {
  margin: 0 0 36px;
  font-family: var(--font);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
}

.related-products__viewport {
  overflow: hidden;
}

.related-products__track {
  display: flex;
  gap: 22px;
  position: relative;
  transition: transform 0.45s ease;
  will-change: transform;
}

.related-products__slide {
  flex: 0 0 calc((100% - 66px) / 4);
  min-width: 0;
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  color: #061d09;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-2px);
}

.product-card__media {
  display: block;
  aspect-ratio: 1 / 1;
  background: #fff;
  overflow: hidden;
}

.product-card__img,
.product-card__placeholder {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #fff;
}

.product-card__placeholder {
  display: block;
  background: #f0f0f0;
}

.product-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 16px 22px;
  text-align: center;
}

.product-card__title {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: #061d09;
  min-height: calc(1.35em * 2);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.product-card__code {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
  color: #061d09;
}

.related-products__controls {
  position: relative;
  margin-top: 36px;
  min-height: 72px;
}

.related-products__rule {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}

.related-products__controls-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding-block: 18px;
}

.related-products__dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.related-products__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #fff;
  background: transparent;
  cursor: pointer;
}

.related-products__dot.is-active {
  background: #fff;
}

.related-products__arrows {
  display: flex;
  align-items: center;
  gap: 0;
}

.related-products__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.related-products__arrow--prev {
  padding-right: 18px;
}

.related-products__arrow--next {
  padding-left: 18px;
}

.related-products__arrow:hover {
  opacity: 0.75;
}

.related-products__arrow svg {
  display: block;
}

.related-products__arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

body.single-product .site-footer {
  margin-top: 0;
  padding-top: 48px;
}

/* —— Product category / archive —— */

.products-archive {
  padding: 0 0 72px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.products-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 12px;
  padding: 22px 0 0;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: #fff;
  text-align: center;
}

.products-breadcrumb a {
  color: #fff;
  transition: color 0.15s ease;
}

.products-breadcrumb a:hover {
  color: var(--accent);
}

.products-breadcrumb__sep {
  color: rgba(255, 255, 255, 0.85);
}

.products-archive__header {
  padding: 40px 0 48px;
  text-align: center;
}

.products-archive__title {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(2rem, 4.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 22px;
}

.products-archive__empty {
  margin: 0;
  color: var(--text-muted);
  text-align: center;
}

.products-pagination {
  margin-top: 40px;
}

.products-pagination__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.products-pagination a,
.products-pagination__current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  color: #fff;
}

.products-pagination a:hover {
  color: var(--accent);
}

.products-pagination__current {
  background: #fff;
  color: #061d09;
  font-weight: 700;
}

.products-pagination__next a,
.products-pagination__last a {
  font-weight: 500;
}

body.tax-product_category .site-footer,
body.post-type-archive-product .site-footer {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  padding-top: 56px;
}

/* —— Quality Management —— */

.quality-block {
  padding: 48px 0 96px;
  background: var(--bg);
}

.quality-block__title {
  margin: 0 0 48px;
  font-family: var(--font);
  font-size: clamp(1.85rem, 3.6vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
}

.quality-block__title-mark {
  display: inline;
  padding-bottom: 10px;
  border-bottom: 4px solid var(--accent);
}

.quality-block__empty {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.7);
}

.quality-block__list {
  display: grid;
  gap: 56px;
  margin: 0 0 72px;
  padding: 0;
  list-style: none;
}

.quality-block__row {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.quality-block__aside {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.quality-block__logo {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 240px;
  min-height: 106px;
  padding: 18px 20px;
  border-radius: 16px;
  background: #fff;
}

.quality-block__logo img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 86px;
  object-fit: contain;
}

.quality-block__logo--placeholder {
  color: rgba(6, 29, 9, 0.45);
  font-size: 0.875rem;
  font-weight: 600;
}

.quality-block__meta {
  display: grid;
  gap: 4px;
}

.quality-block__standard,
.quality-block__number {
  margin: 0;
  font-family: var(--font);
  font-size: 0.95rem;
  line-height: 1.35;
  color: #fff;
}

.quality-block__standard {
  font-weight: 700;
}

.quality-block__number {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}

.quality-block__body {
  min-width: 0;
  font-size: clamp(0.98rem, 1.15vw, 1.05rem);
  line-height: 1.7;
  color: var(--text-muted);
}

.quality-block__body p {
  margin: 0 0 1em;
}

.quality-block__body p:last-child {
  margin-bottom: 0;
}

.quality-block__body strong {
  color: #fff;
  font-weight: 700;
}

.quality-block__certs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.quality-block__cert {
  margin: 0;
  min-width: 0;
}

.quality-block__cert-btn {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quality-block__cert-btn:hover,
.quality-block__cert-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.quality-block__cert-btn img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
}

.quality-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.82);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.quality-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.quality-lightbox__dialog {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
}

.quality-lightbox__img {
  display: block;
  width: auto;
  height: auto;
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.quality-lightbox__close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #061d09;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.quality-lightbox__close:hover,
.quality-lightbox__close:focus-visible {
  filter: brightness(1.05);
  outline: none;
}

body:has(.quality-block) .site-footer {
  margin-top: 0;
  border-top: 1px solid var(--line);
  padding-top: 56px;
}

/* —— Contact —— */

.contact-block {
  position: relative;
  padding: 48px 0 72px;
  background: var(--bg);
}

.contact-block__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: stretch;
}

.contact-block__grid:has(> :only-child) {
  grid-template-columns: 1fr;
}

.contact-block__form {
  min-width: 0;
}

.contact-block__title {
  margin: 0 0 28px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
}

.contact-block__form-placeholder {
  margin: 0;
  padding: 28px 24px;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.7);
}

.contact-block__form-body .wpcf7 {
  margin: 0;
}

.contact-block__form-body .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-block__form-body label,
.contact-block__form-body .wpcf7-form p {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}

.contact-block__form-body input[type="text"],
.contact-block__form-body input[type="email"],
.contact-block__form-body input[type="tel"],
.contact-block__form-body input[type="url"],
.contact-block__form-body input[type="number"],
.contact-block__form-body select,
.contact-block__form-body textarea {
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.contact-block__form-body textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-block__form-body input:focus,
.contact-block__form-body select:focus,
.contact-block__form-body textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(197, 170, 57, 0.06);
}

.contact-block__form-body input::placeholder,
.contact-block__form-body textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.contact-block__form-body input[type="submit"],
.contact-block__form-body .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  height: 46px;
  margin-top: 8px;
  padding: 0 28px;
  border: 1px solid #fff;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.contact-block__form-body input[type="submit"]:hover,
.contact-block__form-body .wpcf7-submit:hover {
  background: #fff;
  color: var(--bg);
}

.contact-block__form-body .wpcf7-not-valid-tip {
  margin-top: 6px;
  font-size: 13px;
  color: #f0a0a0;
}

.contact-block__form-body .wpcf7-response-output {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-color: rgba(255, 255, 255, 0.35);
  font-size: 14px;
}

.contact-block__map-wrap {
  min-width: 0;
  min-height: 100%;
  border: 1px solid var(--line);
  overflow: hidden;
}

.contact-block__map {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  background: #0a2410;
  z-index: 0;
}

body:has(.contact-block) .site-footer {
  margin-top: 0;
}

/* —— Footer —— */

.site-footer {
  position: relative;
  margin-top: 80px;
  padding: 64px 0 56px;
  background: var(--bg);
  color: #fff;
  overflow: visible;
}

.footer-rule {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 1px;
  background: var(--line);
  pointer-events: none;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "company ."
    "address ."
    "phones ."
    "fax quality"
    ". powered";
  column-gap: 48px;
  row-gap: 4px;
  align-items: center;
  padding-right: 56px;
}

.footer-company {
  grid-area: company;
  margin: 0 0 6px;
  font-family: var(--font);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-transform: uppercase;
  color: #fff;
}

.footer-line {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  color: #fff;
}

.footer-line--address {
  grid-area: address;
}

.footer-line--phones {
  grid-area: phones;
}

.footer-line--fax {
  grid-area: fax;
}

.footer-line a {
  color: #fff;
  text-decoration: none;
}

.footer-line a:hover {
  color: var(--accent);
}

.footer-label {
  margin-right: 4px;
}

.footer-quality {
  grid-area: quality;
  justify-self: end;
  align-self: center;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
}

.footer-quality:hover {
  color: var(--accent);
}

.footer-powered {
  grid-area: powered;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0 0;
  justify-self: end;
  font-family: var(--font);
  font-size: 13.2px;
  font-weight: 400;
  line-height: 1.4;
  color: #fff;
}

.footer-powered__brand {
  display: inline-flex;
  align-items: flex-start;
  line-height: 0;
}

.footer-powered__brand img {
  height: 13.2px;
  width: auto;
  display: block;
}

.back-to-top {
  position: fixed;
  right: 16px;
  bottom: calc(16px + 44px + 12px);
  top: auto;
  transform: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 34px;
  padding: 0 16px;
  background: #fff;
  color: #001b08;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease, left 0.15s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.has-hero-rail .back-to-top {
  left: calc(var(--hero-rail-x) + 16px);
  right: auto;
  bottom: 96px;
}

.back-to-top.is-visible:hover {
  opacity: 0.9;
}

.back-to-top span {
  writing-mode: horizontal-tb;
  transform: none;
  white-space: nowrap;
  line-height: 1;
}

/* —— Sticky EU funding banners —— */

.eu-banners {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 94;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 8px;
  max-width: calc(100vw - 96px);
  pointer-events: none;
}

.eu-banners__link {
  display: block;
  line-height: 0;
  pointer-events: auto;
}

.eu-banners__img {
  display: block;
  height: 44px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

/* —— Sticky map FAB + full-page popup —— */

.map-fab {
  position: fixed;
  left: 16px;
  bottom: 24px;
  z-index: 95;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.map-fab:hover,
.map-fab:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  outline: none;
}

.map-fab__icon {
  display: block;
  width: 22px;
  height: 28px;
}

.map-popup {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: none;
  background: #fff;
}

.map-popup.is-open {
  display: block;
}

.map-popup__panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: 100%;
  height: 100%;
  height: 100dvh;
}

.map-popup__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 12px 18px 12px 22px;
  background: #f3f3f3;
  border-bottom: 1px solid #e2e2e2;
}

.map-popup__title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font);
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  font-weight: 700;
  line-height: 1.35;
  color: #111;
}

.map-popup__close {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #111;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.map-popup__close:hover,
.map-popup__close:focus-visible {
  color: #000;
  outline: none;
}

.map-popup__map {
  position: relative;
  min-height: 0;
  background: #e8e8e8;
}

.map-popup__iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* —— Responsive —— */

@media (max-width: 1100px) {
  .primary-nav {
    gap: 18px;
  }

  .primary-nav > a,
  .primary-nav .nav-item__link,
  .mega-menu__link {
    font-size: 14px;
  }

  .mega-menu__grid {
    column-gap: 64px;
  }

  .primary-nav > a.active::after,
  .primary-nav .nav-item.is-current > .nav-item__link::after,
  .primary-nav .nav-item.is-open > .nav-item__link::after,
  .primary-nav .nav-item:hover > .nav-item__link::after {
    bottom: 24px;
  }

  .lang-switch,
  .search-toggle {
    font-size: 14px;
    padding-inline: 16px;
  }

  .search-toggle {
    padding-inline: 14px 0;
  }

  .related-products__slide {
    flex-basis: calc((100% - 44px) / 3);
  }

  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px 18px;
  }
}

@media (max-width: 960px) {
  :root {
    --header-h: 76px;
    --logo-h: 61px;
  }

  .container {
    width: min(var(--max), calc(100% - 40px));
  }

  .primary-nav,
  .header-utils {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-controls__rail,
  .section-rail {
    display: none;
  }

  .catalog-cta__band {
    width: 100%;
  }

  .catalog-cta__inner {
    flex-wrap: wrap;
    justify-content: center;
    min-height: 0;
    gap: 16px;
  }

  .quality-block {
    padding: 36px 0 72px;
  }

  .quality-block__title {
    margin-bottom: 36px;
  }

  .quality-block__list {
    gap: 40px;
    margin-bottom: 48px;
  }

  .quality-block__row {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .quality-block__aside {
    justify-items: center;
    text-align: center;
  }

  .quality-block__certs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .quality-lightbox {
    padding: 12px;
  }

  .quality-lightbox__dialog,
  .quality-lightbox__img {
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
  }

  .quality-lightbox__close {
    top: 8px;
    right: 8px;
  }

  .contact-block {
    padding: 36px 0 56px;
  }

  .contact-block__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-block__map {
    min-height: 280px;
    height: 280px;
  }

  .news-block {
    padding-top: 48px;
  }

  .news-block__header,
  .news-block__viewport {
    padding-right: 0;
  }

  .news-block__band {
    width: 100%;
    overflow: hidden;
  }

  .news-block__header {
    flex-wrap: wrap;
    margin-bottom: 24px;
    width: min(var(--max), calc(100% - 40px));
    max-width: none;
    margin-inline: auto;
    padding-left: 0;
  }

  .news-block__track .news-card {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }

  .news-archive__grid {
    grid-template-columns: 1fr;
  }

  .news-archive__header {
    padding: 32px 0 36px;
  }

  .news-block__rule {
    width: 100%;
  }

  .news-block__rail {
    display: none;
  }

  .news-block__arrows {
    position: absolute;
    right: 16px;
    left: auto;
    transform: none;
    width: auto;
    display: flex;
    gap: 8px;
    pointer-events: auto;
  }

  .news-block__arrow--prev,
  .news-block__arrow--next {
    justify-content: center;
    padding: 0 10px;
  }

  .our-brands {
    padding: 48px 0 64px;
  }

  .our-brands__band {
    width: 100%;
  }

  .our-brands__inner {
    padding-right: 0;
  }

  .our-brands__title {
    margin-bottom: 24px;
  }

  .our-brands__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .our-brands__card {
    border-radius: 22px;
    padding: 14px 12px;
  }

  .company-block__main,
  .company-page__main {
    padding: 36px 0 56px;
  }

  .catalog-categories__main {
    padding: 40px 0 72px;
  }

  .catalog-categories__header {
    margin-bottom: 28px;
  }

  .catalog-categories__btn {
    font-size: 13px;
    min-height: 42px;
    padding: 8px 18px;
  }

  .company-block--home .company-block__grid {
    padding-right: 0;
  }

  .company-block__grid,
  .company-page__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .company-block__media,
  .company-page__media {
    position: static;
    top: auto;
    max-width: 640px;
  }

  .product-detail {
    padding: 40px 0 56px;
  }

  .product-detail__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .product-detail__media {
    max-width: 520px;
  }

  .product-detail__desc {
    padding-top: 28px;
    margin-top: 0;
  }

  .related-products__slide {
    flex-basis: calc((100% - 22px) / 2);
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .products-archive__header {
    padding: 32px 0 36px;
  }
}

@media (max-width: 860px) {
  .footer-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding-right: 48px;
  }

  .footer-company {
    margin-bottom: 8px;
  }

  .footer-quality {
    margin-top: 20px;
    justify-self: start;
    white-space: normal;
  }

  .footer-powered {
    margin-top: 16px;
    justify-content: flex-start;
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(var(--max), calc(100% - 32px));
  }

  .tv-videos {
    padding: 12px 0 72px;
  }

  .tv-videos__list {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .our-brands__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .our-brands__card {
    border-radius: 18px;
    padding: 12px 10px;
  }

  .hero-slide__title {
    font-size: clamp(1.85rem, 9vw, 2.4rem);
  }

  .hero-slide__body {
    font-size: 14px;
  }

  .error-404 {
    padding: 48px 0 72px;
  }

  .error-404__title {
    max-width: none;
  }

  .error-404__text {
    font-size: 1rem;
    margin-bottom: 28px;
  }

  .error-404__btn {
    width: 100%;
    max-width: 280px;
  }

  .product-breadcrumbs__inner {
    font-size: 12px;
    gap: 6px 8px;
  }

  .related-products__title {
    margin-bottom: 24px;
  }

  .related-products__slide {
    flex-basis: 100%;
  }

  .products-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-inline: auto;
  }

  .products-breadcrumb {
    font-size: 12px;
    gap: 6px 8px;
  }

  .site-footer {
    padding: 48px 0 88px;
  }

  .footer-inner {
    padding-right: 0;
  }

  .back-to-top {
    position: fixed;
    right: 12px;
    bottom: calc(12px + 36px + 8px + 36px + 12px);
    top: auto;
    transform: none;
    width: auto;
    height: 40px;
    padding: 0 14px;
    border-radius: 999px;
  }

  .has-hero-rail .back-to-top {
    left: auto;
    right: 12px;
    bottom: calc(12px + 36px + 8px + 36px + 12px);
  }

  .back-to-top span {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 11px;
  }

  .back-to-top::before {
    content: none;
  }

  .eu-banners {
    right: 12px;
    bottom: 12px;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    max-width: calc(100vw - 76px);
  }

  .eu-banners__img {
    height: 36px;
    max-width: min(300px, calc(100vw - 76px));
  }

  .map-fab {
    left: 12px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }

  .map-popup__header {
    padding: 10px 12px 10px 14px;
    min-height: 48px;
  }

  .map-popup__title {
    font-size: 0.8rem;
  }
}
