
/* ================================================================
   MEIVA Engineering — Design System
   McKinsey-inspired professional consultancy aesthetic
   ================================================================ */

/* --- Custom Properties --- */
:root {
  --font-display: 'Carlito', 'Segoe UI', -apple-system, sans-serif;
  --font-body: 'Carlito', 'Segoe UI', -apple-system, sans-serif;

  --color-primary: #8ebdb8;
  --color-primary-light: #b4d3d0;
  --color-primary-pale: #f4f8f8;
  --color-primary-hover: #7aaba6;
  --color-text: #3c3c3b;
  --color-text-light: #6e6e6d;
  --color-bg: #ffffff;
  --color-bg-alt: #f7f8f8;
  --color-border: #e6e6e6;
  --color-dark: #3c3c3b;
}

/* --- Reset & Base --- */
*,*::before,*::after { box-sizing: border-box; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text);
  background: #f0f0f0;
  margin: 0;
  padding: 0;
}
a { color: var(--color-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-primary-light); }
button { font-family: var(--font-body); cursor: pointer; border: 0; background: transparent; font-size: inherit; }
img { max-width: 100%; height: auto; }
ul, ol { padding-left: 1.4em; }
.clear { clear: both; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--color-text);
  margin: 0 0 .6em;
  line-height: 1.25;
}
h1 { font-size: 42px; letter-spacing: -0.02em; }
h2 { font-size: 32px; letter-spacing: -0.01em; }
h3 { font-size: 22px; font-weight: 400; }
h4 { font-size: 18px; }
p { margin: 0 0 1em; }

/* --- Layout --- */
#general_wrapper {
  margin: auto;
  max-width: 1500px;
  background: var(--color-bg);
  box-shadow: 0 0 40px rgba(0,0,0,.06);
}
#content_wrapper { width: 100%; }
.c1 { max-width: 1400px; margin: 0 auto; padding: 0 32px; }
.c2 { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.c3 { max-width: 900px; margin: 0 auto; padding: 0 32px; }

/* --- Fade Animation --- */
.fadein { animation: opac 1s }
@keyframes opac { from { opacity: 0 } to { opacity: 1 } }


/* ================================================================
   NAVIGATION — McKinsey-style top tabs
   ================================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav__logo { display: flex; align-items: center; flex-shrink: 0; }
.nav__logo img { height: 40px; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
}
.nav__item {
  position: relative;
  display: flex;
  align-items: center;
  height: 72px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--color-text);
  text-decoration: none;
  transition: color .2s;
  white-space: nowrap;
}
.nav__item:hover,
.nav__item:focus { color: var(--color-primary); }

/* Active underline */
.nav__item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transition: transform .25s ease;
}
.nav__item:hover::after,
.nav__item--active::after { transform: scaleX(1); }

/* Dropdown trigger */
.nav__item--has-dropdown { cursor: default; }
.nav__dropdown-arrow {
  display: inline-block;
  margin-left: 5px;
  font-size: 9px;
  transition: transform .25s ease;
}
.nav__item--has-dropdown:hover .nav__dropdown-arrow { transform: rotate(180deg); }

/* CTA button in nav */
.nav__item--cta {
  margin-left: 8px;
  padding: 0 24px;
  height: 40px;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .03em;
  text-transform: uppercase;
  transition: all .2s;
}
.nav__item--cta::after { display: none; }
.nav__item--cta:hover {
  background: var(--color-primary);
  color: #fff;
}

/* Dropdown panel */
.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-top: 2px solid var(--color-primary);
  box-shadow: 0 12px 40px rgba(0,0,0,.08);
  min-width: 260px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all .25s ease;
  z-index: 1001;
}
.nav__item--has-dropdown:hover .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav__dropdown-link {
  display: block;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 400;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid #f2f3f4;
  transition: all .15s;
}
.nav__dropdown-link:last-child { border-bottom: 0; }
.nav__dropdown-link:hover {
  background: var(--color-primary-pale);
  color: var(--color-primary);
  padding-left: 28px;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  padding: 8px;
}
.nav__hamburger img { height: 24px; }


/* ================================================================
   HERO CAROUSEL (Swiper)
   ================================================================ */

.swiper-container { width: 100%; height: 100%; }
.swiper-slide {
  font-size: 18px;
  color: #fff;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  padding: 120px 60px;
}
.parallax-bg {
  position: absolute;
  left: 0; top: 0;
  width: 130%;
  height: 100%;
  background-size: cover;
  background-position: center;
}
/* Dark overlay for text readability */
.parallax-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,25,35,.55), rgba(15,25,35,.35));
}
.swiper-slide .title {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.02em;
  position: relative;
}
.swiper-slide .subtitle {
  font-size: 20px;
  font-weight: 300;
  padding: 16px 0;
  max-width: 540px;
  line-height: 1.6;
  position: relative;
  opacity: .9;
}
.swiper-slide .text {
  font-size: 16px;
  max-width: 500px;
  line-height: 25px;
  position: relative;
}
.swiper-pagination-bullet { background: #fff; }
.swiper-pagination-bullet-active { background: var(--color-primary-light); }
.swiper_button_img { height: 36px; opacity: .7; transition: opacity .2s; }
.swiper_button_img:hover { opacity: 1; }


/* ================================================================
   PAGE HERO — Sub-page banners
   ================================================================ */

.page-hero {
  background: linear-gradient(135deg, var(--color-dark) 0%, #2a2a29 100%);
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(142,189,184,.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}
.page-hero > .c2 { position: relative; z-index: 2; }

/* Image-backed hero — dark wash + teal accent bar over a per-page photo.
   Fixed height ensures all topic heroes line up visually across pages. */
.page-hero--image {
  min-height: 440px;
  padding: 80px 0;
  display: flex;
  align-items: center;
}
.page-hero--image > .c2 { width: 100%; }
.page-hero--image::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--color-primary);
  z-index: 2;
}
.page-hero--plm,
.page-hero--ai,
.page-hero--aerospace,
.page-hero--acs {
  background-color: var(--color-dark);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.page-hero--plm {
  background-image:
    linear-gradient(90deg, rgba(32,32,32,.88) 0%, rgba(32,32,32,.55) 55%, rgba(32,32,32,.3) 100%),
    linear-gradient(0deg, rgba(32,32,32,.35) 0%, rgba(32,32,32,0) 50%),
    url('../images/topics/plm-factory.jpg');
}
.page-hero--ai {
  background-image:
    linear-gradient(90deg, rgba(32,32,32,.9) 0%, rgba(32,32,32,.6) 55%, rgba(32,32,32,.35) 100%),
    linear-gradient(0deg, rgba(32,32,32,.4) 0%, rgba(32,32,32,0) 50%),
    url('../images/topics/ai-code.jpg');
}
.page-hero--aerospace {
  background-image:
    linear-gradient(90deg, rgba(32,32,32,.85) 0%, rgba(32,32,32,.5) 55%, rgba(32,32,32,.25) 100%),
    linear-gradient(0deg, rgba(32,32,32,.35) 0%, rgba(32,32,32,0) 50%),
    url('../images/topics/aerospace-cockpit.jpg');
}
.page-hero--acs {
  background-image:
    linear-gradient(90deg, rgba(32,32,32,.88) 0%, rgba(32,32,32,.55) 55%, rgba(32,32,32,.25) 100%),
    linear-gradient(0deg, rgba(32,32,32,.35) 0%, rgba(32,32,32,0) 50%),
    url('../images/topics/acs-hangar.jpg');
}
.page-hero__title {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.page-hero__subtitle {
  font-size: 19px;
  font-weight: 300;
  color: rgba(255,255,255,.82);
  max-width: 640px;
  line-height: 1.65;
  margin: 0;
}
.page-hero__breadcrumb {
  font-size: 13px;
  color: rgba(255,255,255,.55);
  margin-bottom: 24px;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.page-hero__breadcrumb a { color: rgba(255,255,255,.7); }
.page-hero__breadcrumb a:hover { color: #fff; }


/* ================================================================
   CONTENT SECTIONS
   ================================================================ */

.section { padding: 80px 0; }
.section--alt { background: var(--color-bg-alt); }
.section--teal { background: var(--color-primary-pale); }
.section--dark {
  background: var(--color-dark);
  color: rgba(255,255,255,.85);
}
.section--dark h2,
.section--dark h3 { color: #fff; }

.section__title {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  margin-bottom: 16px;
  color: var(--color-text);
}
.section__lead {
  font-size: 19px;
  line-height: 1.7;
  color: var(--color-text-light);
  max-width: 700px;
  margin-bottom: 48px;
}

/* Two-column layout */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.content-grid--reverse { direction: rtl; }
.content-grid--reverse > * { direction: ltr; }

/* Slogan accent */
.slogan-accent {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 400;
  color: var(--color-primary-light);
  line-height: 1.35;
  border-left: 2px solid var(--color-primary-light);
  padding-left: 32px;
  margin: 24px 0;
}
/* Plain variant — no accent bar, typographic only */
.slogan-accent--plain {
  border-left: 0;
  padding-left: 0;
}

/* Content text blocks */
.content-text { font-size: 17px; line-height: 1.75; color: var(--color-text); }
.content-text strong { font-weight: 600; color: var(--color-text); }
.content-text ul {
  margin: 16px 0 24px;
  padding-left: 20px;
}
.content-text ul li {
  margin-bottom: 8px;
  line-height: 1.6;
}


/* ================================================================
   SERVICE CARDS — Overview grid
   ================================================================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.service-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: 40px 32px;
  transition: all .3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.service-card:hover {
  border-color: var(--color-primary-light);
  box-shadow: 0 16px 48px rgba(0,0,0,.06);
  transform: translateY(-4px);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card__number {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 400;
  color: var(--color-primary-light);
  opacity: .5;
  line-height: 1;
  margin-bottom: 20px;
}
.service-card__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--color-text);
}
.service-card__desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-text-light);
  flex: 1;
  margin-bottom: 24px;
}
.service-card__link {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .2s;
}
.service-card__link:hover { gap: 10px; }
.service-card__link::after { content: '\2192'; }


/* ================================================================
   HOMEPAGE — Slogan & Three-Column
   ================================================================ */

#slogan_left {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 400;
  color: var(--color-primary-light);
  line-height: 1.35;
  border-left: 2px solid var(--color-primary-light);
  padding-left: 32px;
  margin: 48px 0;
}
#slogan_right {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 400;
  color: var(--color-primary-light);
  line-height: 1.35;
  border-right: 2px solid var(--color-primary-light);
  padding-right: 32px;
  text-align: right;
  margin: 48px 0;
}

.background1 { background: var(--color-primary-pale); }
.background2 { background: var(--color-primary-light); }
.background3 { background: var(--color-bg-alt); }
.background4 { background: url(../images/background.jpg) right no-repeat; background-size: auto 100%; }
.background5 { background: url(../images/background.jpg) left no-repeat; background-size: auto 100%; }
.background6 { background: url(../images/background/background1.jpg) no-repeat center; background-size: cover; }


/* ================================================================
   FEATURE LIST — Sub-page content blocks
   ================================================================ */

.feature-list { list-style: none; padding: 0; margin: 24px 0; }
.feature-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 16px;
  line-height: 1.6;
}
.feature-list li:last-child { border-bottom: 0; }
.feature-list li strong {
  display: block;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}

/* Table styles */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 15px;
}
.data-table th {
  text-align: left;
  padding: 14px 16px;
  background: var(--color-dark);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}
.data-table tr:hover td { background: var(--color-primary-pale); }
.data-table td strong { font-weight: 600; color: var(--color-text); }

/* Audience tags */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 32px 0;
}
.audience-card {
  padding: 24px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-primary);
  font-size: 15px;
  line-height: 1.6;
}
.audience-card strong { display: block; margin-bottom: 4px; }

/* Why-us items */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 32px 0;
}
.why-item { padding: 0; }
.why-item__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text);
}
.why-item__text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-text-light);
}

/* References list */
.ref-list { list-style: none; padding: 0; counter-reset: ref; }
.ref-list li {
  counter-increment: ref;
  padding: 12px 0 12px 40px;
  position: relative;
  border-bottom: 1px solid #f0f0f0;
  font-size: 15px;
  line-height: 1.6;
}
.ref-list li::before {
  content: counter(ref, decimal-leading-zero);
  position: absolute;
  left: 0;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary-light);
}


/* ================================================================
   CTA SECTION
   ================================================================ */

.cta-section {
  text-align: center;
  padding: 80px 0;
}
.cta-section__title {
  font-family: var(--font-display);
  font-size: 34px;
  margin-bottom: 32px;
}


/* ================================================================
   BUTTONS
   ================================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  border: 1.5px solid transparent;
  transition: all .25s ease;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-body);
}
.btn--primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn--primary:hover {
  background: transparent;
  color: var(--color-primary);
}
.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn--outline:hover {
  background: var(--color-primary);
  color: #fff;
}
.btn--white {
  background: #fff;
  color: var(--color-text);
  border-color: #fff;
}
.btn--white:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.4);
}
.btn--ghost:hover {
  border-color: #fff;
  background: rgba(255,255,255,.1);
}
.btn--lg { padding: 16px 36px; font-size: 16px; }
.btn--sm { padding: 10px 20px; font-size: 14px; }

/* Legacy button compat */
.webbutton {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; margin: 24px 0;
  background: var(--color-primary); border: 1.5px solid var(--color-primary);
  font-size: 16px; font-weight: 500; color: #fff;
  cursor: pointer; transition: all .25s;
  font-family: var(--font-body);
}
.webbutton:hover { background: transparent; color: var(--color-primary); }
.webbutton2 { display: inline-flex; padding: 12px 24px; background: var(--color-primary); border: 1.5px solid var(--color-primary); font-size: 16px; color: #fff; cursor: pointer; transition: all .25s; font-family: var(--font-body); }
.webbutton2:hover { background: transparent; color: var(--color-primary); }
.webbutton3 { padding: 14px 28px; background: var(--color-primary); border: 1.5px solid var(--color-primary); font-size: 16px; color: #fff; cursor: pointer; transition: all .25s; font-family: var(--font-body); }
.webbutton3:hover { background: transparent; color: var(--color-primary); }
.webbutton4 { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: transparent; font-size: 16px; color: var(--color-primary); font-weight: 600; cursor: pointer; transition: opacity .2s; font-family: var(--font-body); }
.webbutton4:hover { opacity: .6; }
.webbutton4img { height: 18px; width: 18px; }
.webbutton5 { padding: 0; border: 0; background: transparent; font-size: 16px; color: #fff; cursor: pointer; transition: opacity .2s; }
.webbutton5:hover { opacity: .6; }


/* ================================================================
   FORMS — Contact form (request.php)
   ================================================================ */

.contact-form { margin: 0; }
.form-group { margin-bottom: 28px; }
.form-label {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 10px;
}
.form-label span { color: var(--color-primary); }
.form-row {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}
.form-row:last-child { margin-bottom: 0; }
.form-row--1 { grid-template-columns: minmax(0, 240px); }
.form-row--2 { grid-template-columns: 1fr 1fr; }
.form-row--3 { grid-template-columns: minmax(140px, 1fr) 1fr 1fr; }
.form-control {
  width: 100%;
  background: #fff;
  border: 1px solid var(--color-border);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text);
  padding: 12px 14px;
  height: 46px;
  transition: border-color .2s, box-shadow .2s;
}
.form-control::placeholder { color: var(--color-text-light); }
.form-control:hover { border-color: var(--color-primary-light); }
.form-control:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(142,189,184,.18);
}
.form-control--textarea {
  height: 180px;
  padding: 14px;
  resize: vertical;
  font-family: var(--font-body);
  line-height: 1.6;
}
select.form-control { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--color-text-light) 50%), linear-gradient(135deg, var(--color-text-light) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-text-light);
  margin: 8px 0 24px;
  cursor: pointer;
}
.form-consent input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: var(--color-primary);
}
.form-actions { margin-top: 8px; }

/* Honeypot */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

@media (max-width: 768px) {
  .form-row--2,
  .form-row--3 { grid-template-columns: 1fr; }
}


/* ================================================================
   FOOTER
   ================================================================ */

#footer_first {
  width: 100%;
  border-top: 1px solid var(--color-border);
  padding: 72px 0 56px;
  background: var(--color-bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 48px;
}
.footer-brand { min-width: 0; }
.footer-brand__link { display: inline-block; }
.footerpic { height: 28px; width: auto; display: block; }
.footer-nav {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 72px;
  flex-wrap: wrap;
}
.footer-col { min-width: 0; display: flex; flex-direction: column; }
.title {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--color-text);
  margin-bottom: 18px;
  display: block;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  padding: 4px 0;
  transition: color .2s ease;
}
.footer-col a:hover { color: var(--color-primary); }
.footer-col--contact a.footer-contact {
  font-size: 14px;
  color: var(--color-text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.footer-col--contact a.footer-contact:hover { color: var(--color-primary); }

#footer_second {
  width: 100%;
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 18px 0;
}
.footer-bottom__links { display: flex; gap: 24px; flex-wrap: wrap; }
#footer_second a {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.5;
  transition: color .2s ease;
}
#footer_second a:hover { color: var(--color-primary); }
.copy {
  color: var(--color-text-light);
  font-size: 13px;
  line-height: 1.5;
}
@media only screen and (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr; justify-items: center; gap: 40px; text-align: center; }
  .footer-nav { gap: 48px; }
}
@media only screen and (max-width: 560px) {
  .footer-nav { flex-direction: column; gap: 32px; align-items: center; }
  .footer-bottom { justify-content: center; text-align: center; }
  .footer-bottom__links { justify-content: center; }
}


/* ================================================================
   COOKIE BANNER
   ================================================================ */

.cookie-banner {
  position: fixed; left: 20px; right: 20px; bottom: 20px;
  max-width: 960px; margin: 0 auto; padding: 28px 32px;
  background: #ffffff; color: var(--color-text);
  border-radius: 12px; border: 1px solid var(--color-border);
  box-shadow: 0 24px 48px rgba(0,0,0,0.12);
  display: none; z-index: 9999;
}
.cookie-banner--visible { display: block; }
.cookie-banner__content { display: flex; flex-direction: column; gap: 20px; }
.cookie-banner__headline { margin: 0; font-size: 22px; font-weight: 600; font-family: var(--font-display); }
.cookie-banner__intro { margin: 0; font-size: 15px; line-height: 1.6; }
.cookie-banner__intro a { color: var(--color-primary); text-decoration: underline; }
.cookie-banner__form { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.cookie-banner__group { margin: 0; padding: 20px; border: 1px solid var(--color-border); border-radius: 10px; background: var(--color-primary-pale); }
.cookie-banner__legend { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--color-primary); margin: 0 0 10px; }
.cookie-banner__description { margin: 0 0 14px; font-size: 14px; line-height: 1.55; }
.cookie-banner__toggle { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.cookie-banner__toggle input { width: 18px; height: 18px; margin: 0; accent-color: var(--color-primary); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; margin-top: 8px; }
.cookie-banner__button {
  padding: 12px 22px; border-radius: 6px; font-size: 14px; font-weight: 600;
  cursor: pointer; border: 1px solid var(--color-primary);
  background: transparent; color: var(--color-primary);
  transition: background .2s, transform .2s, color .2s;
  font-family: var(--font-body);
}
.cookie-banner__button:hover { transform: translateY(-1px); }
.cookie-banner__button:focus { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.cookie-banner__button--primary { background: var(--color-primary); color: #fff; }
.cookie-banner__button--primary:hover { background: var(--color-primary-hover); }
.cookie-banner__button--secondary { border-color: #6e6e6d; color: #6e6e6d; }
.cookie-banner__button--secondary:hover { background: rgba(142,189,184,.12); }


/* ================================================================
   LEGAL PAGE
   ================================================================ */

.legal-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(480px, 1fr)); gap: 40px; align-items: start; }
.legal-section { min-width: 0; }
.legal-card { height: 100%; background: #fff; border: 1px solid var(--color-border); border-radius: 10px; padding: 32px; box-shadow: 0 12px 32px rgba(0,0,0,.06); }
.legal-card h2 { margin-top: 0; margin-bottom: 24px; font-size: 28px; }
.legal-contact { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.legal-contact__line { margin: 0; padding: 0; font-size: 16px; color: #333; }
.legal-contact__line + .legal-contact__line { margin-top: 6px; }
.legal-contact__pair { display: grid; grid-template-columns: minmax(180px,.45fr) minmax(0,1fr); gap: 6px 14px; align-items: start; }
.legal-contact__line + .legal-contact__pair { margin-top: 26px; }
.legal-contact__pair + .legal-contact__pair { margin-top: 12px; }
.legal-contact__term { font-weight: 600; color: var(--color-text); line-height: 1.4; word-break: break-word; }
.legal-contact__term br { display: block; }
.legal-contact__value { color: #555; line-height: 1.6; }
.legal-contact__value:empty::before { content: '\2014'; color: #bbb; }
.legal-divider { height: 1px; background: linear-gradient(90deg, rgba(142,189,184,.3), rgba(142,189,184,0)); margin: 24px 0; }
.legal-text { display: flex; flex-direction: column; gap: 18px; font-size: 16px; line-height: 1.6; color: #444; }
.legal-text p { margin: 0; padding: 0; }
.legal-subheading { margin: 0; font-size: 20px; font-weight: 600; }
.legal-subheading--minor { font-size: 18px; font-weight: 500; }
.legal-list { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 8px; }
.legal-list li { margin-left: 8px; }
.legal-note { font-size: 14px; color: #777; }


/* ================================================================
   DESKTOP (min-width: 750px)
   ================================================================ */

@media screen and (min-width: 750px) {
  .no_desktop { display: none; }
  .left { float: left; }
  .right { float: right; }

  #line3 { margin: 40px auto; width: 80%; height: 1px; background: var(--color-border); }

  .headmenu_logo { float: left; height: 30px; margin: 20px 0 0; }

  /* Blocks (legacy compat) */
  #block1, #block2, #block3 { text-align: left; padding: 40px 0; margin: 40px 0; }
  #block1 { width: 96%; margin: 2%; }
  #block2 { width: 46%; margin: 2%; }
  #block2.text-content { width: 62% !important; margin: 2%; }
  #block2.slogan-content { width: 30% !important; margin: 2%; }
  #block3 { width: 29.333%; margin: 2%; }

  .teampicture { width: 200px; height: 200px; margin: 0 0 20px; }
}


/* ================================================================
   MOBILE (max-width: 750px)
   ================================================================ */

@media screen and (max-width: 750px) {
  .no_phone { display: none; }
  .nav__hamburger { display: flex; align-items: center; }

  h1 { font-size: 30px; }
  h2 { font-size: 26px; }
  .swiper-slide .title { font-size: 32px; }
  .swiper-slide .subtitle { font-size: 17px; }
  .swiper-slide { padding: 80px 24px; }
  .page-hero { padding: 56px 0 48px; }
  .page-hero--image { min-height: 320px; padding: 56px 0; }
  .page-hero__title { font-size: 30px; }
  .page-hero__subtitle { font-size: 16px; }

  .left { float: left; }
  .right { float: right; }

  .c1, .c2, .c3 { padding: 0 16px; }

  #line3 { margin: 32px auto; width: 90%; height: 1px; background: var(--color-border); }

  /* Blocks (legacy compat) */
  #block1, #block2, #block3 { text-align: left; padding: 24px 0; margin: 20px 0; }
  #block1 { width: 96%; margin: 2%; }
  #block2 { width: 96%; margin: 2%; }
  #block2.text-content { width: 96%; margin: 2%; }
  #block2.slogan-content { width: 96%; margin: 2%; }
  #block3 { width: 96%; margin: 2%; }

  #slogan_left, #slogan_right { font-size: 28px; margin: 32px 0; }
  .slogan-accent { font-size: 28px; }

  /* Grids stack */
  .content-grid { grid-template-columns: 1fr; gap: 32px; }
  .services-grid { grid-template-columns: 1fr; gap: 24px; }
  .why-grid { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: 1fr; }

  /* Forms */
  .contactForm1, .contactForm2 { width: calc(100% - 10px); }
  .contactForm3 { width: calc(100% - 10px); }

  .teampicture { width: 160px; height: 160px; }
}

@media only screen and (max-width: 900px) {
  .cookie-banner { bottom: 14px; padding: 0 18px; }
  .cookie-banner__content { padding: 24px; }
  .legal-card { padding: 28px; }
}
@media only screen and (max-width: 600px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 0; }
  .cookie-banner__content { padding: 24px; }
  .cookie-banner__form { grid-template-columns: 1fr; }
  .cookie-banner__actions { justify-content: center; }
  .cookie-banner__button { width: 100%; text-align: center; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-card { padding: 24px; }
  .legal-contact__pair { grid-template-columns: 1fr; gap: 4px 0; }
}
