/* ═══════════════════════════════════════════════════════════
   KANCOO — Main Stylesheet
   ═══════════════════════════════════════════════════════════ */

/* ── HEADER ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  padding: var(--space-5) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background var(--duration-normal) var(--ease-out),
              padding var(--duration-normal) var(--ease-out),
              border-color var(--duration-normal) var(--ease-out);
}

.header.is-scrolled {
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  padding: var(--space-3) 0;
  border-bottom-color: rgba(255, 255, 255, 0.07);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

.header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header__logo-img {
  height: 48px;
  width: auto;
  transition: opacity var(--duration-fast) var(--ease-out);
  object-fit: contain;
}

.header__logo-img:hover {
  opacity: 0.85;
}

.footer__logo-img {
  height: 56px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  object-fit: contain;
}

.header__nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.header__nav-list {
  display: flex;
  gap: var(--space-8);
  list-style: none;
}

.header__nav-link {
  position: relative;
  display: block;
  white-space: nowrap;
  padding: var(--space-2) 0;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.68);
  transition: color var(--duration-normal) var(--ease-out);
}

.header__nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.header__nav-link:hover,
.header__nav-link.is-current {
  color: var(--color-white);
}

.header__nav-link:hover::after,
.header__nav-link.is-current::after {
  transform: scaleX(1);
}

.header__nav-link:focus-visible {
  outline: 1px solid var(--color-accent);
  outline-offset: 4px;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-shrink: 0;
}

.header__lang {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding-right: var(--space-6);
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.header__lang-btn {
  font-size: 0.6875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: var(--tracking-wider);
  padding: var(--space-1) var(--space-2);
  transition: color var(--duration-fast);
}

.header__lang-btn.active {
  color: var(--color-white);
}

.header__lang-btn:hover {
  color: var(--color-accent-light);
}

.header__lang-btn:focus-visible {
  outline: 1px solid var(--color-accent);
  outline-offset: 2px;
}

.header__lang-sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: var(--text-xs);
  font-weight: 300;
}

.header__cta {
  padding: 0 var(--space-6);
  min-height: 42px;
  font-size: 0.6875rem;
  letter-spacing: var(--tracking-wider);
  border-radius: 2px;
}

/* Burger */
.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
}

.header__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-white);
  border-radius: 1px;
  transition: transform var(--duration-normal) var(--ease-out),
              opacity var(--duration-fast);
}

.header__burger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__burger.is-active span:nth-child(2) {
  opacity: 0;
}

.header__burger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 22, 40, 0.92) 0%, rgba(10, 22, 40, 0.75) 50%, rgba(10, 22, 40, 0.6) 100%),
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(200, 135, 95, 0.08) 0%, transparent 60%);
}

.hero__grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent);
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__text {
  max-width: 720px;
}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.hero__label-dot {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(200, 135, 95, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(200, 135, 95, 0); }
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: var(--tracking-tight);
  color: var(--color-white);
  margin-bottom: var(--space-6);
}

.hero__title-accent {
  background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  color: var(--color-gray-200);
  max-width: 580px;
  margin-bottom: var(--space-10);
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ── STATS BAR ── */
.stats-bar {
  background: var(--color-white);
  padding: var(--space-10) 0;
  border-bottom: 1px solid var(--color-gray-100);
  position: relative;
  z-index: 2;
}

.stats-bar__grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stats-bar__item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex: 1;
  justify-content: center;
}

.stats-bar__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-medium);
  flex-shrink: 0;
}

.stats-bar__data {
  display: flex;
  flex-direction: column;
}

.stats-bar__value {
  display: flex;
  align-items: baseline;
}

.stats-bar__number {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.stats-bar__suffix {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-accent);
  margin-left: 2px;
}

.stats-bar__label {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
  margin-top: var(--space-1);
}

.stats-bar__divider {
  width: 1px;
  height: 48px;
  background: var(--color-gray-100);
  flex-shrink: 0;
}


/* ── GEOGRAPHY ── */
.geography {
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--color-gray-100);
}

.geography__inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.geography__label {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-gray-300);
  white-space: nowrap;
  flex-shrink: 0;
}

.geography__sep {
  width: 1px;
  height: 24px;
  background: var(--color-gray-100);
  flex-shrink: 0;
}

.geography__flags {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.geography__item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: opacity var(--duration-fast) var(--ease-out);
}

.geography__item:hover {
  opacity: 0.7;
}

.geography__item img {
  width: 24px;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.geography__item span {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-gray-500);
}

@media (max-width: 768px) {
  .geography__inner {
    flex-direction: column;
    gap: var(--space-3);
  }

  .geography__sep {
    display: none;
  }

  .geography__flags {
    justify-content: center;
    gap: var(--space-4);
  }

  .geography__item span {
    display: none;
  }

  .geography__item img {
    width: 32px;
  }
}

/* ── SECTION HEADER ── */
.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-header .text-h2 {
  margin-bottom: var(--space-6);
}

.section-header .divider {
  margin: 0 auto var(--space-6);
}

.section-header .text-body-lg {
  max-width: 600px;
  margin: 0 auto;
}

/* ── CAPABILITIES SECTION BLUEPRINT BG ── */
.capabilities {
  position: relative;
  isolation: isolate;
}

.capabilities::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.06;
  background:
    url('../images/1.png') left top / 50% 50% no-repeat,
    url('../images/2.png') right top / 50% 50% no-repeat,
    url('../images/3.png') left bottom / 50% 50% no-repeat,
    url('../images/4.png') right bottom / 50% 50% no-repeat;
}

.capabilities__blueprint {
  position: absolute;
  inset: 0;
  color: var(--color-primary);
  pointer-events: none;
  overflow: hidden;
}

.capabilities__blueprint svg {
  width: 100%;
  height: 100%;
  display: block;
}

.capabilities > .container {
  position: relative;
  z-index: var(--z-above);
}


/* ── CAPABILITY CARDS ── */
.capability-card {
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.capability-card__photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-off-white);
}

.capability-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--duration-slow) var(--ease-out);
}

.capability-card:hover .capability-card__photo img {
  transform: scale(1.05);
}

/* Кадрирование первого фото + сохранение ховер-зума */
.capability-card__photo img.capability-card__img--tight {
  transform: scale(1.25);
}

.capability-card:hover .capability-card__photo img.capability-card__img--tight {
  transform: scale(1.31);
}

.capability-card__photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.capability-card__body {
  padding: var(--space-5) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.capability-card__body .text-h4 {
  font-size: var(--text-lg);
}

.capability-card__body .text-body {
  font-size: var(--text-sm);
  line-height: 1.6;
}

.capability-card .text-h4 {
  margin-bottom: 0;
}

.capability-card .text-body {
  flex: 1;
}

.capability-card__tolerance {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: var(--color-off-white);
  border-radius: var(--radius-sm);
  color: var(--color-accent-ink);
  font-size: var(--text-xs);
  width: fit-content;
}

/* ── ABOUT ── */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.about__content .text-h2 {
  margin-bottom: var(--space-6);
}

.about__content .divider {
  margin-bottom: var(--space-6);
}

.about__content .text-body-lg {
  margin-bottom: var(--space-4);
}

.about__content .text-body {
  margin-bottom: var(--space-8);
}

.about__highlights {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.about__highlight {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-gray-100);
}

.about__visual {
  position: relative;
}

.about__image-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.about__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 400px;
  display: block;
}

.factory__image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: var(--space-8);
}

.factory__image-placeholder {
  background: var(--color-gray-50);
  min-height: 480px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-gray-100);
}

.factory__video {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-gray-100);
  background: var(--color-primary);
}

.factory__video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.about__gallery {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about__gallery-arrow {
  position: absolute;
  top: calc(50% - 19px);
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--color-white);
  background: rgba(10, 22, 40, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: var(--z-above);
  transition: background var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out);
}

.about__gallery-arrow:hover {
  background: rgba(10, 22, 40, 0.55);
  border-color: var(--color-accent);
}

.about__gallery-arrow:focus-visible {
  outline: 1px solid var(--color-accent);
  outline-offset: 2px;
}

.about__gallery-arrow--prev {
  left: var(--space-4);
}

.about__gallery-arrow--next {
  right: var(--space-4);
}

.about__gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.about__gallery-track::-webkit-scrollbar {
  display: none;
}

.about__gallery-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.about__gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 400px;
  display: block;
}

.about__gallery-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) 0;
  background: var(--color-primary);
}

.about__gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--duration-fast) var(--ease-out);
}

.about__gallery-dot.is-active {
  background: var(--color-accent);
}

.about__gallery-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.about__badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--color-accent);
  color: var(--color-white);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
}

.about__badge-year {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 800;
  line-height: 1;
}

.about__badge-text {
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: 1.3;
  opacity: 0.9;
}

/* ── PROCESS ── */
.process {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.process__bg-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr 1fr;
  pointer-events: none;
  opacity: 0.07;
}

.process__bg-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.process__timeline {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.process__line {
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--color-gray-100);
}

.process__step {
  display: flex;
  gap: var(--space-8);
  padding-bottom: var(--space-10);
  position: relative;
}

.process__step:last-child {
  padding-bottom: 0;
}

.process__step-marker {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  z-index: 1;
}

.process__step-marker .text-mono {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-accent);
}

.process__step-content {
  padding-top: var(--space-2);
}

.process__step-content .text-h4 {
  margin-bottom: var(--space-2);
}

.process__step-content .text-body {
  margin-bottom: var(--space-3);
}

.process__step-time {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: var(--color-accent-glow);
  color: var(--color-accent-ink);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
}

/* ── INDUSTRIES ── */
.industries {
  position: relative;
  overflow: hidden;
}

.industries > .container {
  position: relative;
  z-index: var(--z-above);
}

.industries__blueprint {
  position: absolute;
  inset: 0;
  color: var(--color-primary);
  pointer-events: none;
}

.industries__blueprint svg {
  width: 100%;
  height: 100%;
  display: block;
}

.bp-label {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
}

/* Прорисовка линий, как на плоттере */
.bp-draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: bpDraw 14s var(--ease-in-out) infinite;
}

@keyframes bpDraw {
  0% { stroke-dashoffset: 1; opacity: 0; }
  4% { opacity: 1; }
  38% { stroke-dashoffset: 0; }
  82% { stroke-dashoffset: 0; opacity: 1; }
  94% { stroke-dashoffset: 0; opacity: 0; }
  100% { stroke-dashoffset: 1; opacity: 0; }
}

/* Бегущий штрихпунктир осевых линий */
.bp-dash {
  stroke-dasharray: 14 5 2 5;
  animation: bpMarch 30s linear infinite;
}

@keyframes bpMarch {
  to { stroke-dashoffset: -52; }
}

/* Медленное вращение кольца рисок */
.bp-rotor {
  animation: bpRotate 80s linear infinite;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes bpRotate {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .bp-draw,
  .bp-dash,
  .bp-rotor {
    animation: none !important;
  }
}

.industry-card {
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.industry-card__visual {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-medium);
}

/* ── FACTORY ── */
.factory__showcase {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.factory__equipment-grid {
  gap: var(--space-6);
}

.equipment-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-5) var(--space-6);
  background: var(--color-white);
  border: 1px solid var(--color-gray-100);
  border-radius: 2px;
  transition: border-color var(--duration-normal) var(--ease-out),
              transform var(--duration-normal) var(--ease-out);
}

.equipment-item::before,
.equipment-item::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border: 0 solid var(--color-gray-200);
  transition: border-color var(--duration-normal) var(--ease-out);
}

.equipment-item::before {
  top: 6px;
  left: 6px;
  border-top-width: 1px;
  border-left-width: 1px;
}

.equipment-item::after {
  bottom: 6px;
  right: 6px;
  border-bottom-width: 1px;
  border-right-width: 1px;
}

.equipment-item:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.equipment-item:hover::before,
.equipment-item:hover::after {
  border-color: var(--color-accent);
}

.equipment-item__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-medium);
}

.equipment-item__data {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.equipment-item__count {
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: 500;
  line-height: 1;
  color: var(--color-accent);
}

.equipment-item__name {
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
  color: var(--color-gray-500);
}

/* ── QUALITY ── */
.quality {
  position: relative;
  overflow: hidden;
}

.quality__bg {
  position: absolute;
  inset: 0;
}

.quality__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 65%;
}

.quality__bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    rgba(10, 22, 40, 0.97) 0%,
    rgba(10, 22, 40, 0.93) 55%,
    rgba(10, 22, 40, 0.85) 100%);
}

.quality .container {
  position: relative;
  z-index: var(--z-above);
}

.quality__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.quality__content .text-h2 {
  margin-bottom: var(--space-6);
}

.quality__content .divider {
  margin-bottom: var(--space-6);
}

.quality__steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.quality__step {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  transition: border-color var(--duration-normal) var(--ease-out),
              background var(--duration-normal) var(--ease-out);
}

.quality__step:hover {
  border-color: rgba(200, 135, 95, 0.2);
  background: rgba(200, 135, 95, 0.04);
}

.quality__step-num {
  color: var(--color-accent);
  font-size: var(--text-sm);
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 2px;
}

.quality__step h3 {
  margin-bottom: var(--space-1);
}

/* ── RFQ FORM ── */
.rfq__form {
  margin-top: var(--space-8);
}

.rfq__form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

.rfq__field {
  margin-bottom: var(--space-6);
}

.rfq__form-grid .rfq__field {
  margin-bottom: 0;
}

.rfq__label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-gray-600);
  margin-bottom: var(--space-2);
}

.rfq__label span {
  color: var(--color-accent);
}

.rfq__input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-gray-600);
  background: var(--color-off-white);
  border: 1.5px solid var(--color-gray-100);
  border-radius: var(--radius-md);
  transition: border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
  min-height: 48px;
}

.rfq__input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-glow);
}

.rfq__input::placeholder {
  color: var(--color-gray-500);
}

.rfq__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239BA1AE' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-right: var(--space-10);
  cursor: pointer;
}

.rfq__textarea {
  resize: vertical;
  min-height: 120px;
}

.rfq__upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-8);
  border: 2px dashed var(--color-gray-100);
  border-radius: var(--radius-lg);
  background: var(--color-off-white);
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-out),
              background var(--duration-fast) var(--ease-out);
  position: relative;
  text-align: center;
}

.rfq__upload:hover,
.rfq__upload:focus-within {
  border-color: var(--color-accent);
  background: var(--color-accent-glow);
}

.rfq__file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.rfq__submit {
  width: 100%;
  margin-top: var(--space-2);
}

.rfq__privacy {
  text-align: center;
  margin-top: var(--space-4);
}

.rfq__honey {
  display: none;
}

.rfq__error {
  margin-top: var(--space-1);
  font-size: var(--text-xs);
  color: var(--color-error);
}

.rfq__input--error {
  border-color: var(--color-error);
}

.rfq__input--error:focus {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(196, 69, 54, 0.12);
}

.rfq__status {
  margin-top: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}

.rfq__status--success {
  background: rgba(46, 139, 87, 0.08);
  border-color: rgba(46, 139, 87, 0.35);
  color: #1F6B41;
}

.rfq__status--error {
  background: rgba(196, 69, 54, 0.07);
  border-color: rgba(196, 69, 54, 0.35);
  color: #A33327;
}

.rfq__status a {
  color: inherit;
  text-decoration: underline;
  font-weight: 600;
}

/* ── CTA BANNER ── */
.cta-banner {
  padding: var(--space-20) 0;
}

.cta-banner__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-banner__contacts {
  display: flex;
  gap: var(--space-8);
  margin-top: var(--space-10);
  flex-wrap: wrap;
  justify-content: center;
}

.cta-banner__contact {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  color: var(--color-gray-100);
  font-weight: 500;
  transition: all var(--duration-normal) var(--ease-out);
}

.cta-banner__contact:hover {
  border-color: var(--color-accent);
  color: var(--color-accent-light);
  background: rgba(200, 135, 95, 0.06);
}

/* ── FOOTER ── */
.footer {
  background: var(--color-primary);
  padding: var(--space-16) 0 var(--space-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: var(--space-10);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__heading {
  margin-bottom: var(--space-4);
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__link {
  font-size: var(--text-sm);
  color: var(--color-gray-300);
  transition: color var(--duration-fast);
}

.footer__link:hover {
  color: var(--color-accent-light);
}

.footer__address {
  color: var(--color-gray-300);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-8);
  color: var(--color-gray-400);
}

/* ── STICKY CTA (Mobile) ── */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  padding: var(--space-3) var(--gutter);
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  transform: translateY(100%);
  transition: transform var(--duration-normal) var(--ease-out);
  display: none;
}

.sticky-cta.is-visible {
  transform: translateY(0);
}

.sticky-cta__btn {
  width: 100%;
}

/* ═══════════ RESPONSIVE ═══════════ */

@media (max-width: 1024px) {
  .header__nav {
    display: none;
  }

  .header__burger {
    display: flex;
  }

  .header__actions {
    margin-left: auto;
  }

  /* Tablet / mobile nav (открывается бургером) */
  .header__nav.is-open {
    display: flex;
    position: fixed;
    inset: 0;
    top: 70px;
    background: var(--color-primary);
    padding: var(--space-8) var(--gutter);
    z-index: var(--z-overlay);
    flex-direction: column;
    animation: fadeIn 0.2s var(--ease-out);
  }

  .header__nav.is-open .header__nav-list {
    flex-direction: column;
    gap: 0;
  }

  .header__nav.is-open .header__nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .header__nav.is-open .header__nav-link {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.85);
    padding: var(--space-5) 0;
  }

  .header__nav.is-open .header__nav-link::after {
    display: none;
  }

  .header__nav.is-open .header__nav-link:hover,
  .header__nav.is-open .header__nav-link.is-current {
    color: var(--color-accent-light);
  }

  .about__grid,
  .quality__grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .stats-bar__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }

  .stats-bar__divider {
    display: none;
  }

  .stats-bar__item {
    justify-content: flex-start;
    padding: var(--space-4);
    background: var(--color-off-white);
    border-radius: var(--radius-md);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .rfq__form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header__cta {
    display: none;
  }

  /* КП-кнопка скрыта — разделитель переключателя языка не нужен */
  .header__lang {
    border-right: none;
    padding-right: 0;
  }

  .hero__title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
    text-align: center;
    font-size: var(--text-xs);
    padding: var(--space-4) var(--space-5);
  }



  .about__badge {
    bottom: -10px;
    right: 10px;
    padding: var(--space-3) var(--space-5);
  }

  .about__badge-year {
    font-size: var(--text-xl);
  }

  .process__line {
    left: 23px;
  }

  .process__step {
    gap: var(--space-5);
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }

  .section {
    padding: var(--space-16) 0;
  }

  .section-header {
    margin-bottom: var(--space-10);
  }

  .sticky-cta {
    display: block;
  }

  .footer {
    padding-bottom: 80px;
  }
}

@media (max-width: 480px) {
  .capability-card,
  .industry-card {
    padding: var(--space-6);
  }

  .cta-banner__contacts {
    flex-direction: column;
    width: 100%;
  }

  .cta-banner__contact {
    justify-content: center;
  }
}
