/* ─── Reset & Base ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:root {
  --clr-dark:    #012030;
  --clr-primary: #1d8e7a;
  --clr-mid:     #125857;
  --clr-deep:    #083941;
  --clr-bg:      #f7faf9;
  --clr-bg-alt:  #e8f2f0;
  --clr-white:   #ffffff;
  --clr-text:    #012030;
  --clr-muted:   #4a6e6a;
  --clr-border:  #c3dbd8;

  --nav-h: 72px;
  --radius: 12px;
  --shadow:    0 4px 24px rgba(1, 32, 48, .09);
  --shadow-lg: 0 8px 40px rgba(1, 32, 48, .14);
  --transition: .3s ease;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: var(--nav-h); }

body {
  font-family: var(--font);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ─── Navigation ────────────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background var(--transition), box-shadow var(--transition);
}

#navbar.nav-solid {
  background: var(--clr-white);
  box-shadow: 0 2px 20px rgba(1, 32, 48, .10);
}
#navbar.nav-dark {
  background: var(--clr-dark);
  box-shadow: 0 2px 20px rgba(1, 32, 48, .30);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Logo */
.logo { display: flex; align-items: baseline; gap: 1px; }
.logo--nav {
  align-items: center;
  flex-shrink: 0;
}
.logo--nav .logo-img {
  height: 57px;
  width: auto;
  max-width: min(260px, 42vw);
  object-fit: contain;
}
.logo-kts {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--clr-white);
  transition: color var(--transition);
}
.logo-sol {
  font-size: .95rem;
  font-weight: 400;
  color: rgba(255, 255, 255, .7);
  transition: color var(--transition);
}
.nav-solid .logo-kts { color: var(--clr-primary); }
.nav-solid .logo-sol { color: var(--clr-mid); }

/* nav-dark — company dark background, same text style as transparent hero nav */
.nav-dark .nav-links a { color: rgba(255, 255, 255, .82); }
.nav-dark .nav-links a:hover { color: var(--clr-white); }
.nav-dark .nav-links a:hover::after { background: var(--clr-primary); }
.nav-dark .nav-links a.nav-link--active { color: var(--clr-white); font-weight: 600; }
.nav-dark .nav-links a.nav-link--active::after { width: 100%; background: var(--clr-primary); }
.nav-dark .lang-switcher {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .16);
}
.nav-dark .lang-btn { color: rgba(255, 255, 255, .75); }
.nav-dark .lang-btn:hover:not(.active) { background: rgba(255, 255, 255, .12); }
.nav-dark .lang-btn.active {
  background: var(--clr-primary);
  box-shadow: 0 2px 12px rgba(29, 142, 122, .45), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.nav-dark .hamburger span { background: var(--clr-white); }

/* Nav links */
.nav-links {
  display: flex;
  gap: 36px;
  margin-left: auto;
}
.nav-links a {
  font-size: 1.02rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .82);
  transition: color var(--transition);
  position: relative;
  white-space: nowrap;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--clr-primary);
  border-radius: 2px;
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--clr-white); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.nav-link--active {
  color: var(--clr-white);
  font-weight: 600;
}
.nav-links a.nav-link--active::after {
  width: 100%;
  background: var(--clr-primary);
}
.nav-solid .nav-links a { color: var(--clr-muted); }
.nav-solid .nav-links a:hover { color: var(--clr-primary); }
.nav-solid .nav-links a:hover::after { background: var(--clr-primary); }
.nav-solid .nav-links a.nav-link--active {
  color: var(--clr-primary);
}
.nav-solid .nav-links a.nav-link--active::after {
  width: 100%;
  background: var(--clr-primary);
}

/* Nav right */
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 20px;
}

/* Language switcher */
.lang-switcher {
  display: inline-flex;
  align-items: stretch;
  gap: 2px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: none;
  backdrop-filter: blur(12px);
}
.nav-solid .lang-switcher {
  background: rgba(232, 242, 240, .35);
  border-color: rgba(1, 32, 48, .07);
  box-shadow: none;
  backdrop-filter: blur(12px);
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  padding: 8px 10px;
  min-width: 40px;
  min-height: 38px;
  border-radius: 9px;
  transition: background var(--transition), box-shadow var(--transition), transform .15s ease;
}
.lang-flag {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.lang-flag svg {
  height: 13px;
  width: auto;
  max-width: 28px;
  display: block;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .2);
}
.lang-btn:hover:not(.active) {
  background: rgba(255, 255, 255, .14);
}
.lang-btn.active {
  background: var(--clr-primary);
  box-shadow: 0 2px 12px rgba(29, 142, 122, .5), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.lang-btn.active .lang-flag svg {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .35);
}
.lang-btn:focus-visible {
  outline: 2px solid var(--clr-primary);
  outline-offset: 2px;
}
.nav-solid .lang-btn:hover:not(.active) {
  background: rgba(29, 142, 122, .1);
}
.nav-solid .lang-btn.active {
  background: var(--clr-primary);
  box-shadow: 0 2px 12px rgba(29, 142, 122, .35), inset 0 1px 0 rgba(255, 255, 255, .2);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  cursor: pointer;
  padding: 8px 9px;
  transition: background var(--transition), border-color var(--transition);
}
.hamburger:hover { background: rgba(255, 255, 255, .14); }
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--clr-white);
  border-radius: 2px;
  transition: background var(--transition), transform var(--transition), opacity var(--transition);
}
.nav-solid .hamburger {
  background: rgba(1, 32, 48, .06);
  border-color: rgba(1, 32, 48, .14);
}
.nav-solid .hamburger span { background: var(--clr-dark); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Hero ──────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
}

.slides-container {
  position: absolute;
  inset: 0;
}

.slide {
  position: absolute;
  inset: 0;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slide.active { opacity: 1; }

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(1, 32, 48, .72) 0%,
    rgba(8, 57, 65, .50) 60%,
    rgba(1, 32, 48, .65) 100%
  );
}

.slide-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--clr-white);
  max-width: 800px;
  padding: 0 32px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease .3s, transform .7s ease .3s;
}
.slide.active .slide-content {
  opacity: 1;
  transform: translateY(0);
}

.slide-eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #7dd8cc;
  background: rgba(29, 142, 122, .18);
  border: 1px solid rgba(29, 142, 122, .40);
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 22px;
}

.slide-content h1,
.slide-content h2 {
  font-size: clamp(2.8rem, 7.5vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.slide-content p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255, 255, 255, .8);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.btn-hero {
  display: inline-block;
  padding: 14px 38px;
  background: var(--clr-primary);
  color: var(--clr-white);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .3px;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(29, 142, 122, .45);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-hero:hover {
  background: var(--clr-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(29, 142, 122, .55);
}

/* Slider arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, .10);
  border: 1.5px solid rgba(255, 255, 255, .22);
  color: var(--clr-white);
  width: 52px; height: 52px;
  border-radius: 50%;
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  transition: background var(--transition), transform var(--transition);
}
.slider-arrow:hover {
  background: rgba(29, 142, 122, .55);
  transform: translateY(-50%) scale(1.06);
}
.slider-prev { left: 28px; }
.slider-next { right: 28px; }

/* Dots */
.slider-dots {
  position: absolute;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
  align-items: center;
}
.dot {
  width: 10px; height: 10px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), width var(--transition);
}
.dot.active {
  background: var(--clr-primary);
  width: 28px;
}
.dot:hover { background: rgba(255, 255, 255, .65); }

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  color: rgba(255, 255, 255, .55);
  font-size: .72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  animation: scrollBounce 2.2s ease-in-out infinite;
}
.hero-scroll-hint svg { width: 18px; }
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: .55; }
  50% { transform: translateX(-50%) translateY(7px); opacity: .85; }
}

/* ─── Section common ────────────────────────────────────────────────── */
.section { padding: 100px 0; }

.section-header {
  text-align: center;
  margin-bottom: 68px;
}

.eyebrow {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--clr-primary);
  margin-bottom: 12px;
}

.section-header h2,
.about-text h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--clr-dark);
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  line-height: 1.15;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--clr-muted);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ─── Services ──────────────────────────────────────────────────────── */
.services-section { background: var(--clr-bg-alt); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

/* ── Service card — clean light design ── */
.service-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: 20px;
  padding: 36px 28px 32px;
  display: flex;
  flex-direction: column;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  box-shadow: 0 2px 12px rgba(1,32,48,.07);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(1,32,48,.12);
}

/* Per-card icon accent colours */
.service-card:nth-child(1) .service-icon { background: rgba(29,142,122,.12); }
.service-card:nth-child(1) .service-icon svg { color: #1d8e7a; }
.service-card:nth-child(1):hover { border-color: rgba(29,142,122,.4); }

.service-card:nth-child(2) .service-icon { background: rgba(245,158,11,.12); }
.service-card:nth-child(2) .service-icon svg { color: #d97706; }
.service-card:nth-child(2):hover { border-color: rgba(245,158,11,.5); }

.service-card:nth-child(3) .service-icon { background: rgba(99,102,241,.12); }
.service-card:nth-child(3) .service-icon svg { color: #6366f1; }
.service-card:nth-child(3):hover { border-color: rgba(99,102,241,.4); }

.service-card:nth-child(4) .service-icon { background: rgba(249,115,22,.12); }
.service-card:nth-child(4) .service-icon svg { color: #ea580c; }
.service-card:nth-child(4):hover { border-color: rgba(249,115,22,.4); }

.service-icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  flex-shrink: 0;
}
.service-icon svg {
  width: 28px; height: 28px;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--clr-dark);
  margin-bottom: 12px;
  line-height: 1.25;
}
.service-card p {
  font-size: .9rem;
  color: var(--clr-muted);
  line-height: 1.7;
}

/* ─── About ─────────────────────────────────────────────────────────── */
.about-section { background: var(--clr-bg-alt); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text .eyebrow { margin-bottom: 12px; }
.about-text h2 { margin-bottom: 24px; }
.about-text p {
  color: var(--clr-muted);
  margin-bottom: 18px;
  font-size: 1rem;
  line-height: 1.78;
}

.est-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 22px;
  background: var(--clr-dark);
  color: var(--clr-white);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 3px;
  border-radius: 5px;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-card {
  background: var(--clr-white);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.stat-num {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--clr-primary);
  line-height: 1;
  letter-spacing: -1px;
}
.stat-lbl {
  font-size: .82rem;
  font-weight: 600;
  color: var(--clr-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ─── News ───────────────────────────────────────────────────────────── */
.news-section { background: var(--clr-white); }

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

.news-card {
  background: var(--clr-bg);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--clr-primary);
}

/* News card image */
.news-img-wrap {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex-shrink: 0;
}
.news-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}
.news-card:hover .news-img { transform: scale(1.04); }

/* News card body */
.news-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.news-date {
  font-size: .8rem;
  color: var(--clr-muted);
  font-weight: 500;
}
.news-cat {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--clr-primary);
  background: rgba(29, 142, 122, .10);
  padding: 3px 10px;
  border-radius: 20px;
}

.news-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-dark);
  line-height: 1.45;
}
.news-card p {
  font-size: .88rem;
  color: var(--clr-muted);
  line-height: 1.7;
  flex: 1;
}
.news-link {
  font-size: .85rem;
  font-weight: 700;
  color: var(--clr-primary);
  display: inline-block;
  transition: color var(--transition), letter-spacing var(--transition);
}
.news-link:hover {
  color: var(--clr-mid);
  letter-spacing: .3px;
}

/* "Kaikki uutiset" button below home news grid */
.news-section-footer {
  text-align: center;
  margin-top: 52px;
}
.btn-outline {
  display: inline-block;
  padding: 13px 40px;
  border: 2px solid var(--clr-primary);
  color: var(--clr-primary);
  font-weight: 700;
  font-size: .9rem;
  border-radius: 50px;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-outline:hover {
  background: var(--clr-primary);
  color: var(--clr-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(29, 142, 122, .35);
}

/* ─── Inner page nav (news, article) ────────────────────────────────── */
.page-news #navbar,
.page-article #navbar {
  background: var(--clr-dark);
  box-shadow: 0 2px 20px rgba(1, 32, 48, .30);
}

/* ─── Page hero (uutiset.html header) ───────────────────────────────── */
.page-hero {
  padding: calc(var(--nav-h) + 64px) 0 60px;
  background: linear-gradient(140deg, var(--clr-deep) 0%, var(--clr-dark) 100%);
  color: var(--clr-white);
  text-align: center;
}
.page-hero .eyebrow { color: #7dd8cc; margin-bottom: 14px; }
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--clr-white);
  letter-spacing: -0.5px;
  line-height: 1.15;
}

/* ─── News listing section (uutiset.html) ───────────────────────────── */
.news-listing-section {
  padding: 80px 0 100px;
  background: var(--clr-white);
}

/* ─── Article page ───────────────────────────────────────────────────── */
.article-page {
  padding-top: var(--nav-h);
}

.article-hero-wrap {
  width: 100%;
  height: min(480px, 50vw);
  min-height: 240px;
  overflow: hidden;
}
.article-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.article-inner {
  padding-top: 56px;
  padding-bottom: 100px;
  max-width: 820px;
}
.article-back-link {
  display: inline-block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--clr-primary);
  margin-bottom: 28px;
  transition: color var(--transition), letter-spacing var(--transition);
}
.article-back-link:hover {
  color: var(--clr-mid);
  letter-spacing: .2px;
}
.article-meta-top { margin-bottom: 16px; }
.article-title {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  font-weight: 800;
  color: var(--clr-dark);
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 36px;
}
.article-body {
  font-size: 1.05rem;
  line-height: 1.82;
  color: var(--clr-text);
}
.article-body p { margin-bottom: 22px; }
.article-body ul,
.article-body ol { margin: 0 0 22px 24px; }
.article-body li { margin-bottom: 8px; }
.article-portrait {
  display: block;
  width: 180px;
  height: 180px;
  object-fit: cover;
  object-position: top center;
  border-radius: 50%;
  margin: 0 0 28px 0;
  box-shadow: 0 4px 24px rgba(1, 32, 48, .15);
  border: 3px solid var(--clr-border);
}
@media (max-width: 500px) {
  .article-portrait {
    margin: 0 auto 28px;
  }
}
.article-back-link--bottom { margin-top: 44px; margin-bottom: 0; }
.article-not-found {
  padding: 100px 0;
  text-align: center;
  font-size: 1.1rem;
  color: var(--clr-muted);
}

/* Contact card embedded in article body */
/* ─── Business card (shared: article + contact page) ─────────────────── */
.team-card.article-bizcard {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  padding: 24px 20px 24px 18px;
  text-align: left;
  background: linear-gradient(135deg, var(--clr-dark) 0%, var(--clr-deep) 100%);
  border-color: transparent;
  box-shadow: 0 8px 40px rgba(1, 32, 48, .28);
  position: relative;
}

/* CEO card — different accent */
.team-card--ceo.article-bizcard {
  background: linear-gradient(135deg, var(--clr-mid) 0%, var(--clr-primary) 100%);
}
.team-card.article-bizcard::before {
  content: '';
  position: absolute;
  bottom: -30px; right: -30px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(29, 142, 122, .10);
  pointer-events: none;
  overflow: hidden;
}
.team-card.article-bizcard::after {
  content: '';
  position: absolute;
  top: -20px; left: 60px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(29, 142, 122, .06);
  pointer-events: none;
}
.article-bizcard-logo {
  position: absolute;
  bottom: 16px; left: 18px;
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .60;
}
.team-card.article-bizcard .team-avatar {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  border: 3px solid rgba(125, 216, 204, .50);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .30);
}
.team-card.article-bizcard .team-info {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.team-card.article-bizcard .team-name {
  color: var(--clr-white);
  font-size: 1.25rem;
  margin-bottom: 3px;
}
.team-card.article-bizcard .team-role {
  color: #7dd8cc;
  margin-bottom: 16px;
}
.team-card.article-bizcard .team-contacts {
  text-align: left;
  padding: 0;
  margin: 0;
  list-style: none;
  gap: 6px;
}
.team-card.article-bizcard .team-contacts li {
  padding: 0;
  margin: 0;
}
.team-card.article-bizcard .team-contacts a {
  color: rgba(255, 255, 255, .65);
}
.team-card.article-bizcard .team-contacts a:hover {
  color: var(--clr-white);
}

/* Article-specific contact section wrapper */
.article-contact-section {
  margin-top: 52px;
  padding-top: 40px;
  border-top: 1px solid var(--clr-border);
}
.article-contact-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--clr-primary);
  margin-bottom: 20px;
}
.article-contact-section .team-card.article-bizcard {
  max-width: 480px;
  gap: 24px;
  padding: 24px 28px;
}
@media (max-width: 600px) {
  .article-contact-section .team-card.article-bizcard {
    max-width: 100%;
    gap: 16px;
    padding: 18px 16px;
  }
}
/* Contact page bizcard grid */
.team-grid--bizcard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Avatar zoom wrapper (Larisa) */
.avatar-zoom {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid rgba(255, 255, 255, .15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .35);
}
.avatar-zoom .team-avatar {
  width: 120%;
  height: 120%;
  border-radius: 0;
  border: none;
  box-shadow: none;
  margin: -10%;
  object-fit: cover;
}

/* ─── CTA ────────────────────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(140deg, var(--clr-deep) 0%, var(--clr-dark) 100%);
  padding: 100px 0;
  text-align: center;
  color: var(--clr-white);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(29, 142, 122, .08);
  pointer-events: none;
}
.cta-section::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(29, 142, 122, .06);
  pointer-events: none;
}

.cta-section h2 {
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -.5px;
}
.cta-section p {
  color: rgba(255, 255, 255, .72);
  font-size: 1.1rem;
  margin-bottom: 44px;
}

.btn-light {
  display: inline-block;
  padding: 16px 48px;
  background: var(--clr-white);
  color: var(--clr-dark);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .2px;
  border-radius: 50px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .2);
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-light:hover {
  background: var(--clr-primary);
  color: var(--clr-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .28);
}

/* ─── Contact page ───────────────────────────────────────────────────── */
.page-contact .contact-section {
  padding-top: calc(var(--nav-h) + 40px);
}

/* ─── Contact ────────────────────────────────────────────────────────── */
.contact-section { background: var(--clr-bg-alt); }

.contact-form {
  max-width: 100%;
  margin: 0 auto 72px;
  background: var(--clr-white);
  padding: 52px 56px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 24px;
}
.form-row .form-group { margin-bottom: 0; }

.form-group label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--clr-text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--clr-border);
  border-radius: 10px;
  font-family: var(--font);
  font-size: .95rem;
  color: var(--clr-text);
  background: var(--clr-bg);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(29, 142, 122, .15);
  background: var(--clr-white);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.form-footer-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.btn-submit {
  display: inline-block;
  padding: 14px 44px;
  background: var(--clr-primary);
  color: var(--clr-white);
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(29, 142, 122, .3);
}
.btn-submit:hover {
  background: var(--clr-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(29, 142, 122, .4);
}

.form-success {
  color: var(--clr-primary);
  font-weight: 600;
  font-size: .93rem;
}

/* Team */
.team-heading {
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
  color: var(--clr-text);
  margin-bottom: 36px;
  letter-spacing: -.3px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  max-width: 960px;
  margin: 0 auto;
}

.team-card {
  background: var(--clr-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 28px 36px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  border-top: 3px solid transparent;
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.team-card--ceo { border-top-color: var(--clr-primary); }

.team-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 18px;
  display: block;
  box-shadow: 0 4px 16px rgba(1, 32, 48, .12);
}

.team-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--clr-dark);
  margin-bottom: 5px;
}

.team-role {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--clr-primary);
}

.team-contacts {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.team-contacts a {
  font-size: .85rem;
  color: var(--clr-muted);
  transition: color var(--transition);
  display: block;
}
.team-contacts a:hover { color: var(--clr-primary); }

/* ─── Footer ─────────────────────────────────────────────────────────── */
footer {
  background: var(--clr-dark);
  color: rgba(255, 255, 255, .65);
  padding-top: 72px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 52px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.footer-brand .logo--footer { margin-bottom: 16px; display: flex; }
.logo-img--footer {
  height: 126px;
  width: auto;
  max-width: min(360px, 60vw);
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .90;
}
.footer-brand p {
  font-size: .87rem;
  line-height: 1.75;
  max-width: 280px;
}

.footer-nav h4,
.footer-contact h4 {
  color: var(--clr-white);
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 18px;
}

.footer-nav ul { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a {
  font-size: .87rem;
  color: rgba(255, 255, 255, .55);
  transition: color var(--transition), padding-left var(--transition);
  display: block;
}
.footer-nav a:hover {
  color: var(--clr-primary);
  padding-left: 4px;
}

.footer-contact p {
  font-size: .87rem;
  margin-bottom: 10px;
  line-height: 1.65;
}
.footer-contact a {
  color: rgba(255, 255, 255, .55);
  transition: color var(--transition);
}
.footer-contact a:hover { color: var(--clr-primary); }

.footer-bottom {
  padding: 22px 28px;
  text-align: center;
}
.footer-bottom p {
  font-size: .8rem;
  color: rgba(255, 255, 255, .3);
}
.footer-bottom-logo { display: none; }

/* ─── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .about-grid { gap: 56px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .team-grid--bizcard { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 10px; right: 10px;
    background: linear-gradient(155deg, var(--clr-deep) 0%, var(--clr-dark) 100%);
    border-radius: 0 0 24px 24px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-top: 2px solid var(--clr-primary);
    box-shadow: 0 24px 56px rgba(0, 0, 0, .45), 0 4px 20px rgba(29, 142, 122, .14);
    flex-direction: column;
    gap: 4px;
    padding: 10px 10px 14px;
    z-index: 999;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform .42s cubic-bezier(.22, 1, .36, 1), opacity .3s ease;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    color: rgba(255, 255, 255, .72);
    border-radius: 14px;
    font-size: 1.02rem;
    font-weight: 500;
    border-bottom: none;
    transition: background .2s ease, color .2s ease, transform .2s ease;
  }
  .nav-links a:hover {
    background: rgba(255, 255, 255, .07);
    color: var(--clr-white);
    transform: translateX(4px);
  }
  .nav-links a::after { display: none; }

  .nav-links a.nav-link--active {
    background: rgba(29, 142, 122, .18);
    color: var(--clr-primary);
    font-weight: 650;
    border-left: none;
    padding-left: 18px;
  }
  .nav-links a.nav-link--active::before {
    content: '';
    display: block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--clr-primary);
    flex-shrink: 0;
  }

  .hamburger { display: flex; }
  .nav-right { margin-left: auto; }

  .contact-form { padding: 32px 24px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-row .form-group { margin-bottom: 24px; }

  .lang-btn {
    padding: 6px 8px;
    min-height: 34px;
    min-width: 36px;
  }
  .lang-flag svg {
    height: 12px;
    max-width: 26px;
  }

  /* Services — horizontal scroll carousel */
  .services-section .container { padding-inline: 0; }
  .services-section .section-header { padding-inline: 20px; }
  .services-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    padding: 4px 20px 20px;
    scrollbar-width: none;
  }
  .services-grid::-webkit-scrollbar { display: none; }
  .service-card {
    flex: 0 0 82vw;
    max-width: 300px;
    scroll-snap-align: start;
  }

  /* News — horizontal scroll carousel (only home teaser, not listing page) */
  .news-section .container { padding-inline: 0; }
  .news-section .section-header { padding-inline: 20px; }
  .news-section-footer { padding-inline: 20px; }
  .news-section .news-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding: 4px 20px 20px;
    scrollbar-width: none;
  }
  .news-section .news-grid::-webkit-scrollbar { display: none; }
  .news-section .news-card {
    flex: 0 0 82vw;
    max-width: 320px;
    scroll-snap-align: start;
  }
  /* News listing page — keep single column stack */
  .news-listing-section .news-grid { grid-template-columns: 1fr; }

  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  /* Footer — compact mobile layout */
  .footer-nav { display: none; }
  /* Break footer-brand open so logo + tagline become direct grid items */
  .footer-brand { display: contents; }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "contact tagline";
    gap: 14px 20px;
    align-items: start;
    padding-bottom: 24px;
  }
  /* Hide logo from grid — it moves to footer-bottom */
  .footer-brand .logo--footer { display: none; }
  .footer-brand p {
    grid-area: tagline;
    max-width: none;
    font-size: .83rem;
    line-height: 1.6;
  }
  .footer-contact { grid-area: contact; }
  .footer-contact h4 { font-size: .75rem; margin-bottom: 10px; }
  .footer-contact p  { font-size: .82rem; margin-bottom: 6px; line-height: 1.55; }
  /* Logo in footer-bottom on mobile */
  .footer-bottom-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
  }
  .logo-img--footer { height: 64px; }

  /* Carousel dots */
  .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
  }
  .dot {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: var(--clr-border);
    transition: background .3s ease, width .3s ease;
    flex-shrink: 0;
  }
  .dot--active {
    width: 22px;
    background: var(--clr-primary);
  }

  .slider-arrow { display: none; }
  .section { padding: 60px 0; }
  .section-header { margin-bottom: 32px; }
  .section-lead { font-size: .97rem; }
  .article-hero-wrap { height: 220px; min-height: unset; }
  .article-inner { padding-top: 40px; padding-bottom: 60px; }
  .news-listing-section { padding: 48px 0 60px; }
}

@media (max-width: 500px) {
  .about-stats { grid-template-columns: 1fr 1fr; }
  .slide-content { padding: 0 20px; }
  .btn-hero { padding: 12px 28px; }
  .btn-light { padding: 14px 32px; }
}

/* ─── Carousel dots ──────────────────────────────────────────────── */
.carousel-dots { display: none; }

/* ─── Quote Popup ────────────────────────────────────────────────── */
.quote-popup {
  position: fixed;
  bottom: 0;
  right: 24px;
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity .4s ease, visibility .4s ease, transform .4s ease;
  pointer-events: none;
}
.quote-popup.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.quote-popup__inner {
  display: flex;
  align-items: flex-end;
  gap: 0;
}
.quote-popup__bubble {
  position: relative;
  background: var(--clr-white);
  border: 1.5px solid var(--clr-primary);
  border-radius: 16px 16px 0 16px;
  padding: 16px 18px 14px;
  box-shadow: 0 8px 32px rgba(1,32,48,.18);
  max-width: 210px;
  margin-right: 2px;
  margin-bottom: 175px;
}
.quote-popup__bubble::before {
  content: '';
  position: absolute;
  bottom: -1px;
  right: -11px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 11px 0 0 11px;
  border-color: transparent transparent transparent var(--clr-primary);
}
.quote-popup__bubble::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: -9px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 0 10px;
  border-color: transparent transparent transparent var(--clr-white);
}
.quote-popup__btn {
  display: block;
  background: transparent;
  color: var(--clr-primary);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  letter-spacing: .3px;
  transition: opacity var(--transition);
}
.quote-popup__btn:hover { opacity: .7; }
.quote-popup__close {
  position: absolute;
  top: -10px;
  left: -10px;
  background: var(--clr-primary);
  border: 2px solid var(--clr-primary);
  color: var(--clr-white);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color var(--transition), color var(--transition);
}
.quote-popup__close:hover {
  background: var(--clr-mid);
  border-color: var(--clr-mid);
}
.quote-popup__img {
  height: 260px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}
@media (max-width: 768px) {
  .quote-popup { display: none !important; }
}
