/* ==========================================================================
   V2 — SWISS EDITORIAL STYLE
   ========================================================================== */

/* VARIABLES */
:root {
  --cream:     #F4F1E8;
  --cream-dark:#E8E4D8;
  --navy:      #002B49;
  --muted:     #7A8A96;
  --divider:   #D8D3C8;
  --white:     #ffffff;
  --ease:      cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--cream);
  color: var(--navy);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  animation: fadeInBody 0.8s ease-out forwards;
}

@keyframes fadeInBody {
  from { opacity: 0; }
  to { opacity: 1; }
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; background: none; border: none; }
img { display: block; max-width: 100%; }

/* TYPOGRAPHY BASE */
h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  line-height: 1.05;
  font-weight: 600;
}
h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
}

/* CONTAINER */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}
@media (max-width: 768px) { .container { padding: 0 24px; } }

/* SECTION HELPERS */
.text-center { text-align: center; }
.bg-white { background: var(--white); }

/* ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.--visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   HEADER — CENTERED EDITORIAL
   ========================================================================== */
body {
  padding-top: 140px;
}
@media (max-width: 768px) {
  body { padding-top: 70px; }
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--divider);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.header--hidden {
  transform: translateY(-100%);
}

/* ==========================================================================
   HAMBURGER & MOBILE MENU
   ========================================================================== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 200;
}
@media (max-width: 768px) { .hamburger { display: flex; } }

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--navy);
  transition: all 0.3s var(--ease);
}

.header-cta {
  display: inline-flex;
}
@media (max-width: 768px) { .header-cta { display: none; } }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateY(0);
  pointer-events: all;
}

.mobile-menu__lang {
  margin: 40px 0;
  width: 100%;
}

.lang-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.lang-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--cream);
  padding: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn:hover, .lang-btn.active {
  background: var(--cream);
  color: var(--navy);
  border-color: var(--cream);
}

.mobile-menu__close {
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: 2rem;
  color: var(--cream);
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  line-height: 1;
}
.mobile-menu__close:hover { opacity: 1; }

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.mobile-menu__link {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--cream);
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.mobile-menu__link:hover { opacity: 1; }

.mobile-menu__cta {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  padding: 14px 32px;
  border: 1px solid rgba(244, 241, 232, 0.4);
  color: var(--cream);
  margin-top: 16px;
}

.header__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 48px 0;
}
@media (max-width: 768px) {
  .header__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
  }
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  text-decoration: none;
  color: var(--navy);
  white-space: nowrap; /* Prevent wrapping at any cost */
  flex-shrink: 0;      /* Ensure logo doesn't collapse */
}
@media (max-width: 768px) { .logo { padding-bottom: 0; } }

.logo__icon { display: none; } /* Hide the old green circle */

.logo__monogram {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1;
}

.logo__divider {
  display: block;
  width: 1px;
  height: 48px;
  background: var(--divider);
  flex-shrink: 0;
}
@media (max-width: 768px) { .logo__divider { height: 32px; } }

.logo__text-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.logo__name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--navy);
  line-height: 1;
}

.logo__sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  line-height: 1;
}
@media (max-width: 768px) {
  .logo__monogram { font-size: 1.8rem; }
  .logo__name { font-size: 0.95rem; letter-spacing: 0.12em; }
  .logo__sub { font-size: 0.55rem; }
  .logo { gap: 12px; }
}

@media (max-width: 480px) {
  .logo__monogram { font-size: 1.6rem; }
  .logo__name { font-size: 0.85rem; letter-spacing: 0.1em; }
  .logo__sub { font-size: 0.5rem; }
  .logo { gap: 8px; }
}

@media (max-width: 360px) {
  .logo__monogram { font-size: 1.3rem; }
  .logo__name { font-size: 0.7rem; letter-spacing: 0.05em; }
  .logo__divider { height: 20px; }
  .logo { gap: 6px; }
}

@media (max-width: 320px) {
  .logo__monogram { font-size: 1.1rem; }
  .logo__name { font-size: 0.65rem; letter-spacing: 0.02em; }
  .logo__divider { height: 18px; }
  .logo { gap: 4px; }
}

/* NAVIGATION */
.nav {
  display: flex;
  gap: 48px;
  border-top: 1px solid var(--divider);
  width: 100%;
  justify-content: center;
  padding: 16px 0;
}
@media (max-width: 768px) { .nav { display: none; } }

.nav__link {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}
.nav__link:hover { color: var(--navy); }

/* HEADER ACTIONS */
.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
@media (min-width: 769px) {
  /* On desktop, actions float right alongside the logo row */
  .header__inner { position: relative; }
  .header__actions {
    position: absolute;
    right: 48px;
    top: 28px;
  }
}

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

.lang-switcher { display: flex; align-items: center; }
/* Custom Language Selector */
.custom-select {
  position: relative;
  user-select: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy);
  min-width: 60px;
}

.custom-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--divider);
  border-radius: 4px;
  transition: all 0.2s ease;
  background: transparent;
}

.custom-select__trigger:hover {
  background: rgba(0,0,0,0.02);
  border-color: var(--navy);
}

.custom-select__trigger .arrow {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--navy);
  border-bottom: 1.5px solid var(--navy);
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform 0.2s ease;
}

.custom-select.open .arrow {
  transform: rotate(-135deg);
  margin-top: 1px;
}

.custom-select__options {
  position: absolute;
  top: calc(100% + 4px); /* Всегда вниз */
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--divider);
  border-radius: 4px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  display: none;
  z-index: 1000;
  overflow: hidden;
  min-width: 70px;
}

.custom-select.open .custom-select__options {
  display: block;
  animation: slideDown 0.2s ease forwards;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.custom-select__option {
  padding: 8px 12px;
  display: block;
  transition: all 0.2s ease;
  color: var(--muted);
}

.custom-select__option:hover {
  background: var(--cream);
  color: var(--navy);
}

.lang-select { display: none; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--navy);
  transition: all 0.3s var(--ease);
  cursor: pointer;
}
.btn--primary {
  background: var(--navy);
  color: var(--cream);
}
.btn--primary:hover {
  background: transparent;
  color: var(--navy);
}
.btn--secondary {
  background: transparent;
  color: var(--navy);
}
.btn--secondary:hover {
  background: var(--navy);
  color: var(--cream);
}
.btn--sm { padding: 10px 20px; font-size: 0.65rem; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-bottom: 1px solid var(--divider);
  background-color: var(--cream);
  background-image: linear-gradient(rgba(244, 241, 232, 0.85), rgba(244, 241, 232, 0.95)), url('assets/hero_bg_v2.png');
  background-size: cover;
  background-position: center 30%;
  background-attachment: fixed;
  padding: 40px 0 80px;
}
@media (max-width: 768px) {
  .hero { background-attachment: scroll; }
}

.hero .container {
  position: relative;
  z-index: 2;
  margin-top: -8vh; /* Moves content higher up */
}

.hero__badge {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 48px;
  margin-bottom: 24px;
}

.hero__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--navy);
  margin-top: 60px;
  margin-bottom: 24px;
  line-height: 1.05;
}

.hero-amp {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.8em;
  display: inline-block;
  margin: 16px 0;
}

/* Override the text-gradient span to just be navy */
.hero__title .text-gradient {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: var(--navy);
  background-clip: unset;
  color: var(--navy);
}

.hero__subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 36px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
  .hero__actions .btn {
    width: 100%;
    min-height: 54px; /* Ensure equal height */
  }
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section { padding: 100px 0; border-bottom: 1px solid var(--divider); }

.section__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 5vw, 3.5rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.1;
  hyphens: auto;
  word-wrap: break-word;
}

.section__subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 64px;
  letter-spacing: 0.02em;
  line-height: 1.8;
}

.section-marker {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
}

/* ==========================================================================
   STATS COUNTERS
   ========================================================================== */
.stats { padding: 0; border-bottom: 1px solid var(--divider); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

.stat-item {
  padding: 56px 32px;
  text-align: center;
  border-right: 1px solid var(--divider);
}
.stat-item:last-child { border-right: none; }
@media (max-width: 768px) {
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3),
  .stat-item:nth-child(4) { border-top: 1px solid var(--divider); }
  .stat-item:nth-child(4) { border-right: none; }
}

.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 400;
  color: var(--navy);
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
}
.stat-suffix {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 2.5vw, 2.5rem);
  font-weight: 400;
  color: var(--navy);
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
}
.stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-top: 16px;
  display: block;
}

/* ==========================================================================
   PRODUCTS (HORIZONTAL ROWS — EDITORIAL STYLE)
   ========================================================================== */
.products { background: var(--cream); }

.bento-grid {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--divider);
  margin-top: 64px;
}

.bento-item {
  display: grid;
  grid-template-columns: 80px 350px 1fr;
  gap: 0;
  padding: 40px 0;
  border-bottom: 1px solid var(--divider);
  align-items: start;
  transition: background 0.2s var(--ease);
}
.bento-item:hover { background: var(--cream-dark); }
@media (max-width: 768px) {
  .bento-item { grid-template-columns: 40px 1fr; gap: 8px; padding: 28px 0; }
}

.bento-icon { display: none; } /* Replaced with row-number approach */

/* Row counter via CSS */
.bento-grid { counter-reset: product-counter; }
.bento-item {
  counter-increment: product-counter;
}
.bento-item::before {
  content: "0" counter(product-counter);
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding-top: 6px;
}
@media (max-width: 768px) {
  .bento-item::before { font-size: 0.6rem; }
}

.bento-item h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 1.8vw, 1.5rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy);
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 20px;
}
@media (max-width: 768px) {
  .bento-item h3 { font-size: 1.3rem; }
  /* On mobile, push description below the title */
  .bento-item > p {
    grid-column: 2 / 3;
  }
}

.bento-item p {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.8;
  align-self: center;
  padding-left: 32px;
}
@media (max-width: 768px) {
  .bento-item p { padding-left: 0; margin-top: 8px; }
}

/* ==========================================================================
   PROCESS STEPS
   ========================================================================== */
.process { background: var(--white); }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 25%);
  border-top: 1px solid var(--divider);
  margin-top: 64px;
  width: 100%;
}
@media (max-width: 900px) { .process-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .process-steps { grid-template-columns: 1fr; } }

.process-step {
  padding: 48px 32px;
  border-right: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.process-step:last-child { border-right: none; }
@media (max-width: 900px) {
  .process-step:nth-child(2) { border-right: none; }
  .process-step:last-child { border-right: none; }
}
@media (max-width: 480px) {
  .process-step { 
    border-right: none; 
    padding: 40px 20px;
  }
}

.step-num {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  display: block;
  margin-bottom: 32px;
}

.process-step h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.1rem, 1.4vw, 1.5rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy);
  margin-bottom: 16px;
  hyphens: auto;
  word-wrap: break-word;
  width: 100%;
  min-height: 3.5rem; /* Фиксирует высоту заголовка для выравнивания текста ниже */
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-step p {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.8;
  margin-top: auto;
}

/* ==========================================================================
   GEOGRAPHY / SUPPLY NETWORK
   ========================================================================== */
.geography { background: var(--cream); }

.map-wrapper {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 0;
  border: 1px solid var(--divider);
  margin-top: 64px;
}
@media (max-width: 900px) { .map-wrapper { grid-template-columns: 1fr; } }

.map-svg-container {
  padding: 48px;
  border-right: 1px solid var(--divider);
  background: var(--white);
  min-height: 280px;
}
@media (max-width: 900px) {
  .map-svg-container { 
    border-right: none; 
    border-bottom: 1px solid var(--divider); 
    padding: 24px; /* Reduced padding from 48px to show map larger */
    min-height: 350px; /* Increased min-height for better visibility */
  }
}

.network-map { width: 100%; }
.network-svg { width: 100%; height: auto; display: block; }

/* Animated flow lines — keep navy palette */
.path-line {
  stroke-dasharray: 8 8;
  animation: flowLine 2s linear infinite;
}
@keyframes flowLine { to { stroke-dashoffset: -16; } }

.map-regions {
  display: flex;
  flex-direction: column;
}

.region-item {
  padding: 32px 40px;
  border-bottom: 1px solid var(--divider);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 0.2s var(--ease);
}
.region-item:last-child { border-bottom: none; }
.region-item:hover { background: var(--cream-dark); }

.region-dot { display: none; } /* Not needed in editorial style */

.region-item strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy);
  display: block;
}

.region-item p {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

/* map labels strip (below svg) */
.map-labels { display: none; }

/* ==========================================================================
   TEAM
   ========================================================================== */
.team { background: var(--white); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--divider);
  margin-top: 64px;
}
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .team-grid { grid-template-columns: 1fr; } }

.team-member {
  padding: 40px 32px;
  border-right: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  text-align: left;
  transition: background 0.2s var(--ease);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.team-member:hover { background: var(--cream); }
.team-member:last-child { border-right: none; }
@media (max-width: 900px) {
  .team-member:nth-child(2n) { border-right: none; }
}
@media (max-width: 480px) {
  .team-member { border-right: none; }
}

.team-member h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy);
  margin-bottom: 8px;
  min-height: 4.5rem; /* Учитывает имена в две строки */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.team-role {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  display: block;
  margin-bottom: 24px;
  font-weight: 600;
  flex-grow: 1;
}

.team-email {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: var(--navy);
  border-bottom: 1px solid var(--navy);
  padding-bottom: 2px;
  white-space: nowrap;
  display: inline-block;
  transition: opacity 0.2s var(--ease);
}
.team-email:hover { opacity: 0.6; }

/* ==========================================================================
   TRADE STANDARDS
   ========================================================================== */
.standards { background: var(--cream); }

.standards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--divider);
  margin-top: 64px;
}
@media (max-width: 900px) { .standards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .standards-grid { grid-template-columns: 1fr; } }

.standard-item {
  padding: 48px 32px;
  border-right: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
}
.standard-item:last-child { border-right: none; }
@media (max-width: 900px) {
  .standard-item:nth-child(2n) { border-right: none; }
}
@media (max-width: 480px) {
  .standard-item { 
    border-right: none; 
    padding: 40px 20px;
  }
}

.standard-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 12px;
  min-height: 2rem; /* Выравнивает начало значений (Incoterms и т.д.) */
  display: flex;
  align-items: center;
  justify-content: center;
}

.standard-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy);
  line-height: 1.2;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--navy);
  color: var(--cream);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 48px;
  margin-bottom: 64px;
  border-bottom: 1px solid rgba(244, 241, 232, 0.1);
  padding-bottom: 64px;
}

.footer-col h3 {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(244, 241, 232, 0.4);
  margin-bottom: 20px;
}

.footer-col p {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: rgba(244, 241, 232, 0.7);
  line-height: 1.8;
}
.footer-col a {
  font-family: 'Inter', sans-serif;
  color: rgba(244, 241, 232, 0.7);
  border-bottom: 1px solid rgba(244, 241, 232, 0.2);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--cream); }

.footer-col--banking p {
  font-size: 0.8rem;
  color: rgba(244, 241, 232, 0.5);
  line-height: 1.8;
}

.footer-bottom {
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 241, 232, 0.3);
}

/* ==========================================================================
   FLOATING WHATSAPP
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  background: var(--navy);
  color: var(--cream);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 43, 73, 0.4);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(0, 43, 73, 0.6);
}

/* MISC */
.mt-4 { margin-top: 16px; }

/* LEGAL TERMS & MODALS */
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 40px;
}

.footer-legal-links {
  display: flex;
  gap: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.footer-legal-links a {
  color: rgba(244, 241, 232, 0.4);
  transition: color 0.2s var(--ease);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
}

.footer-legal-links a:hover {
  color: var(--cream);
}

.footer-divider {
  color: rgba(244, 241, 232, 0.2);
}

.legal-modal {
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 500;
  padding: 80px 24px;
  display: none;
  overflow-y: auto;
  color: var(--navy);
}

.legal-modal.open { display: block; }

.legal-modal__content {
  max-width: 800px;
  margin: 0 auto;
  font-family: 'Inter', sans-serif;
  line-height: 1.8;
}

.legal-modal__content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  margin-bottom: 40px;
}

.legal-modal__content h3 {
  font-size: 1.2rem;
  margin-top: 32px;
  margin-bottom: 16px;
  text-transform: none;
  letter-spacing: normal;
}

.legal-modal__content p {
  font-size: 0.95rem;
  margin-bottom: 16px;
  color: var(--muted);
}

.legal-modal__close {
  position: fixed;
  top: 24px;
  right: 24px;
  font-size: 2.5rem;
  color: var(--navy);
  background: none;
  border: none;
  cursor: pointer;
}
