:root {
  --color-primary: #111827;
  --color-primary-soft: #1f2937;
  --color-secondary: #e53935;
  --color-bg: #000000;
  --color-surface: #ffffff;
  --color-text: #000000;
  --color-muted: #1a1a1b;
  --shadow-soft: 0 14px 35px rgba(15, 27, 46, 0.16);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --max-width: 1200px;
  --nav-height: 72px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #000000;
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  word-spacing: -0.05em;
}

section {
  background: #000000;
}

img,
svg {
  max-width: 100%;
  display: block;
}

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

main {
  display: block;
}

/* Layout helpers */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hero taust on vaikimisi läbipaistev; äärtes must taust ainult väga laiadel ekraanidel */
.hero-shell {
  background: #1a0e2e;
  padding: 0;
  position: relative;
  max-height: 100vh; /* ära lase hero'l ületada ekraani kõrgust */
  overflow: hidden;
}

.hero {
  min-height: 100vh;
  max-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

/* Hero sisemine ala laieneb, kuid säilitab paddingu */
.hero > .container {
  max-width: calc(var(--max-width) * 0.8);
  width: 100%;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
}

section {
  padding: 4rem 0;
  scroll-margin-top: var(--nav-height);
  background: #0a0a0a;
}

/* Kõik sektsioonid peale hero võtavad vähemalt kogu ekraani kõrguse */
section:not(.hero-shell) {
  min-height: 100vh;
}

#teenused {
  background: #000000;
  padding-top: 4rem;
  scroll-margin-top: var(--nav-height);
}

#teenused .container {
  max-width: calc(var(--max-width) * 0.8);
}

@media (min-width: 768px) {
  section {
    padding: 5rem 0;
  }
}

.section-heading {
  font-size: 1.9rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.section-intro {
  max-width: 620px;
  color: var(--color-muted);
  font-size: 0.97rem;
  margin-bottom: 2rem;
}

#teenused .section-intro {
  max-width: 100%;
}

/* Sticky navigation */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: background-color 0.3s ease, border-bottom-color 0.3s ease;
}

header .container {
  max-width: calc(var(--max-width) * 0.8);
}

header.is-dark {
  background: rgba(0, 0, 0, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-links {
  margin-left: auto;
}

.logo {
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: #111827;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.logo-img {
  height: 65px;
  width: 150px;
  display: block;
  object-fit: contain;
  object-position: left center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
  color: #111827;
  transition: color 0.3s ease;
}

header.is-dark .nav-links {
  color: #ffffff;
}

.nav-link {
  position: relative;
  padding: 0.2rem 0;
  cursor: pointer;
  transition: color 0.3s ease;
}

header.is-dark .nav-link {
  color: #ffffff;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-secondary), #ffb199);
  transition: width 0.2s ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  cursor: pointer;
  margin-left: auto;
}

.nav-toggle-line {
  width: 20px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 999px;
  position: relative;
  transition: background 0.3s ease;
}

.nav-toggle-line::before,
.nav-toggle-line::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--color-primary);
  transition: background 0.3s ease;
}

header.is-dark .nav-toggle-line,
header.is-dark .nav-toggle-line::before,
header.is-dark .nav-toggle-line::after {
  background: #ffffff;
}

.nav-toggle-line::before {
  top: -6px;
}

.nav-toggle-line::after {
  bottom: -6px;
}

.nav-mobile {
  display: none;
}

@media (max-width: 719px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
  }

  .nav-mobile {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem 1.2rem;
    font-size: 0.95rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.98);
  }

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

  .nav-mobile a {
    color: #111827;
    transition: color 0.3s ease;
  }

  header.is-dark .nav-mobile {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.98);
  }

  header.is-dark .nav-mobile a {
    color: #ffffff;
  }
}

/* Buttons */

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 6px;
  border: none;
  font-size: 0.9rem;
  font-weight: 550;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease, color 0.14s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-secondary);
  color: #fff;
  box-shadow: none;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: none;
  background: #f0523c;
}

.btn-secondary {
  background: #ffffff;
  color: var(--color-primary-soft);
  border: 1px solid rgba(11, 60, 100, 0.16);
}

.btn-secondary:hover {
  background: #f0f4f8;
  transform: translateY(-1px);
}

.btn span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Hero section */

.hero {
  position: relative;
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
  min-height: calc(100vh - var(--nav-height));
  color: #f9fafb;
  background: url("hero_hubway.png") center center / cover no-repeat fixed;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 85% 50%, rgba(229, 57, 53, 0.14) 0, rgba(229, 57, 53, 0.06) 25%, transparent 60%);
  mix-blend-mode: screen;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
  justify-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.15rem 0.75rem 0.19rem;
  border-radius: 999px;
  background: rgba(249, 250, 251, 0.06);
  color: #f9fafb;
  font-size: 0.78rem;
  font-weight: 550;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: radial-gradient(circle at 30% 20%, #ffe1b0 0, var(--color-secondary) 36%, #a04700 100%);
  box-shadow: 0 0 0 5px rgba(245, 138, 42, 0.18);
}

.hero-title {
  font-weight: 700;
  font-size: clamp(2.6rem, 4vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.005em;
  margin-bottom: 1rem;
  max-width: none;
  text-align: left !important;
}

.hero-subtitle {
  font-size: 1rem;
  color: #e5e7eb;
  max-width: 32rem;
}

.hero-copy {
  max-width: 34rem;
  padding: 2.4rem 0 2.2rem;
  margin: 0 auto;
  text-align: left !important;
}

.hero-bullets {
  margin-top: 1.5rem;
  margin-bottom: 1.8rem;
  padding-left: 0;
  list-style: none;
  color: #e5e7eb;
  font-size: 1.1rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
  text-align: left !important;
}

.hero-bullets li {
  position: relative;
  padding-left: 1.6rem;
  text-align: left !important;
}

.hero-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25rem;
  width: 18px;
  height: 18px;
  background: url("hw_lighting.svg") center center / contain no-repeat;
}

.hero-bullets li + li {
  margin-top: 0.4rem;
}

.hero-cta {
  margin-top: 0.8rem;
}

.hero-cta .btn-primary {
  font-size: 1.06rem;
  padding: 0.85rem 1.7rem;
  border-radius: 7px;
  font-weight: 600;
}

.hero-hint {
  position: absolute;
  right: 1.5rem;
  bottom: 1.6rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.04em;
  z-index: 1;
}

.hero-nextgen-row {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  margin: 0;
  display: flex;
  justify-content: flex-end;
  width: auto;
  z-index: 3;
}

.hero-nextgen-button {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 0.4rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.hero-nextgen-button-inner {
  position: relative;
  z-index: 1;
  display: block;
  background: #ffffff;
  border-radius: 12px;
}

.hero-nextgen-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.26);
}

.hero-nextgen-button:active {
  transform: translateY(0);
}

.hero-nextgen-button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 3px;
}

.hero-nextgen-button img {
  height: 123px;
  width: auto;
  display: block;
  position: relative;
  z-index: 2;
  border-radius: 10px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .hero-nextgen-row {
    left: 50%;
    right: auto;
    bottom: 1rem;
    transform: translateX(-50%);
    width: auto;
  }

  .hero-nextgen-button {
    width: 100%;
    max-width: 260px;
    align-self: center;
  }

  .hero-nextgen-button img {
    height: 106px;
  }
}

@media (min-width: 1440px) {
  .hero-nextgen-button {
    margin-bottom: 0.5rem;
  }
}

/* Suurtel ekraanidel vii nupp kindlalt hero alumisse paremasse nurka */
@media (min-width: 1280px) {
  .hero-nextgen-row {
    right: 2rem;
    bottom: 2rem;
    left: auto;
    transform: none;
  }
}

.hero-visual-wrapper {
  position: relative;
  max-width: 440px;
  margin-inline: auto;
  display: none;
}

.hero-card {
  position: relative;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.06) 0, transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(229, 57, 53, 0.65) 0, transparent 60%),
    linear-gradient(135deg, #111827, #020617);
  border-radius: 26px;
  padding: 1.8rem 1.6rem 1.6rem;
  color: #f3f6fb;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  isolation: isolate;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -45%;
  background:
    radial-gradient(circle at 10% 10%, rgba(248, 250, 252, 0.1) 0, transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(229, 57, 53, 0.35) 0, transparent 45%);
  opacity: 0.9;
  z-index: -2;
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.1rem;
}

.hero-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.9;
}

.hero-card-pill {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  opacity: 0.8;
}

.hero-map {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 1.3rem;
}

.hero-node {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  box-shadow: 0 0 0 1px rgba(248, 250, 252, 0.14);
}

.hero-node--hub {
  background: radial-gradient(circle at 30% 20%, #fee2e2 0, #f97373 36%, #b91c1c 100%);
  box-shadow:
    0 0 0 1px rgba(254, 226, 226, 0.5),
    0 0 0 7px rgba(248, 113, 113, 0.3),
    0 14px 24px rgba(5, 13, 32, 0.6);
}

.hero-node::after {
  content: "";
  position: absolute;
  inset: 24%;
  border-radius: inherit;
  border: 1px solid rgba(162, 205, 255, 0.28);
  opacity: 0.7;
}

.hero-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(231, 241, 255, 0.92);
}

.hero-footer-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
  opacity: 0.8;
  margin-bottom: 0.2rem;
}

.hero-capacity {
  font-weight: 550;
  font-size: 0.9rem;
}

.hero-mini-tag {
  padding: 0.26rem 0.6rem;
  border-radius: 999px;
  background: rgba(15, 187, 119, 0.16);
  border: 1px solid rgba(131, 233, 185, 0.4);
  font-size: 0.72rem;
}

.hero-orbit {
  position: absolute;
  inset: -8%;
  border-radius: 999px;
  border: 1px dashed rgba(248, 250, 252, 0.28);
  transform: rotate(-8deg);
  pointer-events: none;
}

.hero-badge {
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: conic-gradient(from 230deg, var(--color-secondary), #ffb199, var(--color-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(5, 13, 32, 0.7);
  overflow: hidden;
}

.hero-badge-inner {
  width: 78px;
  height: 78px;
  border-radius: 999px;
  background: radial-gradient(circle at 18% 18%, #ffffff 0, #f0f5ff 45%, #b8cbff 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: #28324a;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  gap: 0.15rem;
}

.hero-badge-inner span:last-child {
  font-size: 0.9rem;
  letter-spacing: 0;
}

@media (min-width: 880px) {
  .hero {
    padding-top: 5rem;
    padding-bottom: 4.5rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
    justify-items: center;
  }

  .hero-copy {
    max-width: 60rem;
    width: 90%;
    margin: 0 auto;
  }
}

@media (min-width: 1536px) {
  .hero-shell {
    background: #000000;
  }

  .hero-shell::before,
  .hero-shell::after {
    display: none;
  }

  .hero {
    max-width: 1440px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
  }

  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: url("Hw_hero_overlay_grad.png") center center / cover no-repeat;
    z-index: 0;
  }

  .hero > .container {
    max-width: calc(var(--max-width) * 0.8);
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
  }
}

/* About card (Ettevõttest) */
#miks-hubway {
  background: #ffffff;
  position: relative;
  overflow: hidden;
  scroll-margin-top: var(--nav-height);
  padding-top: 1rem;
}

#miks-hubway::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('Hw_logo_light_bg.svg');
  background-size: 1200px;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.35;
  z-index: 0;
}

#miks-hubway::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.7);
  z-index: 1;
}

#miks-hubway .container {
  position: relative;
  z-index: 2;
  max-width: calc(var(--max-width) * 0.8);
}

.about-card {
  background: transparent;
  border-radius: 18px;
  padding: 1.8rem 1.8rem 2rem;
  color: #000000;
  text-align: justify;
}

.about-card-header {
  margin-bottom: 1rem;
}

.about-card-header .section-heading {
  color: #000000;
  font-size: 2rem;
}

.about-card-header .section-intro {
  color: rgba(0, 0, 0, 0.8);
  font-size: 1.1rem;
  text-align: justify;
}

.about-card-body {
  display: block;
  color: rgba(0, 0, 0, 0.95);
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: justify;
}

.about-card-body p + p {
  margin-top: 0.35rem;
}

.about-card-body p {
  text-align: justify;
}

.about-card-text {
  text-align: justify;
}

.about-list {
  padding-left: 2.5rem;
  list-style: disc;
  color: rgba(0, 0, 0, 0.95);
  font-size: 1.05rem;
}

.about-list li + li {
  margin-top: 0.25rem;
}

.about-list + p,
.about-list + * {
  margin-top: 1.2rem;
}

/* Cards, grids, lists */

.card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.4rem;
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 1.3rem 1.3rem 1.25rem;
  box-shadow: 0 10px 30px rgba(15, 27, 46, 0.06);
  border: 1px solid rgba(11, 60, 100, 0.06);
  position: relative;
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}

.card-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 20%, #ffffff 0, #e1f0ff 40%, #b9d5ff 80%),
    linear-gradient(135deg, #5fa8ff, #1c4e88);
  position: relative;
  box-shadow: 0 6px 12px rgba(7, 31, 66, 0.25);
}

.card-icon::after {
  content: "";
  position: absolute;
  inset: 8px 5px 8px 11px;
  border-radius: 999px;
  border: 2px solid rgba(10, 31, 63, 0.16);
  border-left-color: transparent;
  border-bottom-color: transparent;
  transform: skewX(-8deg);
}

.card-title {
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

.card-text {
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* Teenuste accordion süsteem */
:root {
  --accordion-duration: 300ms;
}

.services-accordion {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.service-card {
  background: #000000;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 8px 18px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: stretch;
  flex: 0 0 auto;
  width: 100%;
  transition: 
    border-color 250ms ease-out,
    box-shadow 250ms ease-out,
    background-color 250ms ease-out,
    min-width 400ms ease-in-out,
    width 400ms ease-in-out,
    order 400ms ease-in-out;
}

.service-card:hover {
  border-color: rgba(255, 255, 255, 0.17);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 10px 22px rgba(0, 0, 0, 0.40);
  background-color: rgba(255, 255, 255, 0.015);
}

.service-card:hover .service-card-title {
  color: #ffffff;
}

.service-card:hover .service-card-bullets li {
  color: rgba(255, 255, 255, 0.95);
}

.service-card:focus-within {
  border-color: rgba(255, 255, 255, 0.17);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 10px 22px rgba(0, 0, 0, 0.40);
  outline: none;
}

.service-card.is-open:focus-within {
  outline: none;
}

.service-card--hero {
  min-height: 120px;
  background: #000000;
}

.service-card.is-open {
  border-color: rgba(255, 255, 255, 0.20);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 12px 26px rgba(0, 0, 0, 0.45);
  flex: 1 1 100% !important;
  min-width: 100% !important;
  width: 100% !important;
  background-color: rgba(255, 255, 255, 0.03);
}

.service-card.is-open:hover {
  background-color: rgba(255, 255, 255, 0.03);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 12px 26px rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.20);
}


.service-card-image-section {
  flex-shrink: 0;
  position: relative;
  width: 50%;
  align-self: stretch;
  min-height: 100px;
}

.service-card--hero .service-card-image-section {
  width: 30%;
}

.service-card--hero.is-open .service-card-image-section {
  width: 100%;
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: width 0.25s ease, position 0.25s ease;
}

.service-card--hero:not(.is-open) .service-card-image-section {
  transition: width 0.25s ease, position 0.25s ease;
}

.service-card:not(.service-card--hero) .service-card-image-section {
  width: 35%;
}

.service-card-text-section {
  flex: 1;
  background: #000000;
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 0;
  justify-content: center;
  align-items: center;
}

.service-card--hero.is-open .service-card-text-section {
  background: transparent;
  position: relative;
  z-index: 2;
}

.service-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-size: auto 100%;
  background-position: left center;
  background-repeat: no-repeat;
  z-index: 0;
}

.service-card-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
  transition: opacity 0.3s ease-in-out;
}

.service-card:hover .service-card-bg::after {
  opacity: 0;
}

.service-card--hero.is-open .service-card-bg {
  background-size: cover;
  background-position: center;
}

.service-card--hero.is-open .service-card-bg::after {
  background: rgba(0, 0, 0, 0.7); /* Darker overlay when open for text readability */
  opacity: 1;
  transition: opacity 0.2s ease-out, background-color 0.2s ease-out;
}

.service-card--hero:not(.is-open) .service-card-bg::after {
  transition: opacity 0.15s ease-in, background-color 0.15s ease-in;
}

.service-card:not(.service-card--hero).is-open .service-card-bg::after {
  opacity: 0;
}

.service-card--hero .service-card-bg {
  position: absolute;
  inset: 0;
  background-size: auto 100%;
  background-position: left center;
  background-repeat: no-repeat;
}

.service-card:not(.service-card--hero) .service-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}


.service-card-toggle {
  width: 100%;
  background: transparent;
  border: none;
  padding: 1.5rem;
  text-align: center;
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  position: relative;
  z-index: 2;
  transition: background-color 0.2s ease;
  pointer-events: none;
  flex-shrink: 0;
}

.service-card--hero .service-card-toggle {
  color: #ffffff;
  text-align: center !important;
  text-align-last: center !important;
  justify-content: center;
  width: 100%;
}

.service-card--hero .service-card-header {
  justify-content: center;
  width: 100%;
}

.service-card--hero .service-card-title {
  text-align: center !important;
  text-align-last: center !important;
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 250ms ease-out;
}

.service-card-bullets {
  list-style: none;
  padding: 0 1.5rem 1rem 1.5rem;
  margin: 0;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  transition: opacity 0.3s ease, transform 0.3s ease, height 0.3s ease;
}

.service-card.is-open .service-card-bullets {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  position: absolute;
  height: 0;
  overflow: hidden;
}

.service-card-bullets li {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
  line-height: 1.5;
  padding-left: 1.5rem;
  margin-bottom: 0.4rem;
  position: relative;
  transition: color 250ms ease-out;
}

.service-card-bullets li:last-child {
  margin-bottom: 0;
}

.service-card-bullets li strong {
  color: rgba(255, 255, 255, 1);
  font-weight: 600;
}

.service-card-bullets li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-secondary);
  font-weight: bold;
  font-size: 1.2rem;
}


.service-card:not(.service-card--hero) {
  min-height: 90px;
}

.service-card:not(.service-card--hero) .service-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  z-index: 0;
}


.service-card:not(.service-card--hero) .service-card-toggle {
  color: #ffffff;
  position: relative;
  z-index: 2;
  text-align: center;
  justify-content: center;
  width: 100%;
}

.service-card:not(.service-card--hero) .service-card-title {
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: color 250ms ease-out;
}


.service-card:not(.service-card--hero) .service-card-description {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.service-card-toggle:focus-visible {
  outline: none;
}

.service-card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  gap: 1rem;
  position: relative;
}

.service-card:not(.service-card--hero) .service-card-header {
  justify-content: center;
  max-width: 100%;
}

.service-card--hero .service-card-header {
  justify-content: center;
  max-width: 100%;
}


.service-card-title-wrapper {
  flex: 1;
  min-width: 0;
}

.service-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.3;
  text-align: center !important;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  hyphens: none;
  max-width: 100%;
  transition: color 250ms ease-out;
}

.service-card:not(.service-card--hero) .service-card-title {
  text-align: center !important;
}

.service-card--hero .service-card-title {
  text-align: center !important;
  font-size: 1.5rem;
}

.service-card-icon {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md) 0 var(--radius-md) 0;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  transition: background-color 0.2s ease;
  z-index: 3;
  cursor: pointer;
  pointer-events: auto;
}

.service-card-icon:hover {
  background: var(--color-secondary);
  color: #ffffff;
}

.service-card-toggle {
  position: relative;
}

.service-card-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  gap: 1rem;
}

.service-card-icon svg {
  width: 20px;
  height: 20px;
  transition: transform var(--accordion-duration) ease-in-out;
}

.service-card.is-open .service-card-icon {
  background: var(--color-secondary);
  color: #ffffff;
}

.service-card.is-open .service-card-icon svg {
  transform: rotate(45deg);
}

.service-card-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 400ms ease-in-out, opacity 300ms ease-out, padding 400ms ease-in-out, visibility 0s 400ms;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
  visibility: hidden;
}

.service-card.is-open .service-card-content {
  max-height: 3000px;
  opacity: 1;
  padding: 0 1.5rem 1.5rem;
  visibility: visible;
  transition: max-height 400ms ease-in-out, opacity 350ms ease-out 80ms, padding 400ms ease-in-out, visibility 0s 0s;
}

.service-card-expanded-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 1rem 0;
}

.service-card-expanded-section {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.service-card.is-open .service-card-expanded-section {
  opacity: 1;
  transform: translateY(0);
}

.service-card-expanded-section:nth-child(1) {
  transition-delay: 0.1s;
}

.service-card-expanded-section:nth-child(2) {
  transition-delay: 0.2s;
}

.service-card-expanded-section:nth-child(3) {
  transition-delay: 0.3s;
}

.service-card-expanded-section:nth-child(4) {
  transition-delay: 0.4s;
}

.service-card-expanded-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 0.75rem 0;
  line-height: 1.3;
}

.service-card-expanded-section:last-child .service-card-expanded-title {
  color: #ff4444;
  font-weight: 600;
}

.service-card-expanded-text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  white-space: pre-line;
  transition: color 250ms ease-out;
}

.service-card-expanded-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 1rem 0;
}

.service-card-expanded-section {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.service-card.is-open .service-card-expanded-section {
  opacity: 1;
  transform: translateY(0);
}

.service-card-expanded-section:nth-child(1) {
  transition-delay: 0.1s;
}

.service-card-expanded-section:nth-child(2) {
  transition-delay: 0.2s;
}

.service-card-expanded-section:nth-child(3) {
  transition-delay: 0.3s;
}

.service-card-expanded-section:nth-child(4) {
  transition-delay: 0.4s;
}

.service-card-expanded-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 0.75rem 0;
  line-height: 1.3;
}

.service-card-expanded-section:last-child .service-card-expanded-title {
  color: #ff4444;
  font-weight: 600;
}

.service-card-expanded-text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  white-space: pre-line;
  transition: color 250ms ease-out;
}

.service-card-description {
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.7;
  margin: 0 0 1.5rem 0;
}

.service-card--hero .service-card-description {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.service-card-cta {
  margin-top: 1rem;
}

/* Tablet */
@media (min-width: 768px) {
  .services-accordion {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  
  .service-card:not(.service-card--hero) {
    width: calc(50% - 0.75rem);
  }
  
  .service-card--hero {
    width: 100%;
  }
  
  .service-card.is-open {
    flex: 1 1 100% !important;
    min-width: 100% !important;
    width: 100% !important;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .services-accordion {
    gap: 2rem;
  }
  
  .service-card:not(.service-card--hero) {
    width: calc(50% - 1rem);
  }

  .service-card-title {
    font-size: 1.15rem;
  }

  .service-card--hero .service-card-title {
    font-size: 1.6rem;
  }


  .service-card--hero {
    min-height: 140px;
  }

  .service-card:not(.service-card--hero) {
    min-height: 110px;
  }

  .service-card:not(.service-card--hero) .service-card-bg {
    background-size: cover;
    background-position: center right;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .service-card,
  .service-card-toggle,
  .service-card-content,
  .service-card-icon,
  .service-card-icon svg {
    transition: none;
  }
  
  .service-card-content {
    max-height: none !important;
  }
}

/* Hinnastamine */
#hinnastamine {
  background: #ffffff;
  color: #000000;
}

#hinnastamine .container {
  max-width: calc(var(--max-width) * 0.8);
}

#hinnastamine .section-heading {
  color: #000000;
}

#hinnastamine .section-intro {
  color: rgba(0, 0, 0, 0.8);
  max-width: none;
}

#hinnastamine .btn-primary {
  background: var(--color-secondary);
  color: #ffffff;
}

#hinnastamine .btn-primary:hover {
  background: #f0523c;
}

.pricing-calc-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(11, 60, 100, 0.08);
  box-shadow: 0 12px 32px rgba(11, 27, 46, 0.08);
  padding: 1.3rem 1.4rem;
  display: grid;
  gap: 1rem;
  color: #0f172a;
}

.pricing-calc-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1.5rem;
  justify-content: flex-start;
}

.pricing-calc-prefix {
  flex: 1 1 200px;
  max-width: 250px;
}

.pricing-calc-add {
  padding: 0.6rem 1rem;
  border: 1px dashed rgba(11, 60, 100, 0.2);
  background: #ffffff;
  color: #111827;
}

.pricing-calc-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.pricing-calc-title {
  margin: 0 0 0.2rem 0;
  font-size: 1.1rem;
  font-weight: 650;
  color: #0f172a;
}

.pricing-calc-intro {
  margin: 0;
  color: #4b5563;
  font-size: 0.93rem;
}

.pricing-calc-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(229, 57, 53, 0.12);
  color: #b91c1c;
  border: 1px solid rgba(229, 57, 53, 0.2);
  font-size: 0.78rem;
  white-space: nowrap;
}

.pricing-calc-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
}

.pricing-calc-rows {
  display: grid;
  gap: 0.6rem;
  background: #f9fafb;
  border: 1px solid rgba(11, 60, 100, 0.12);
  border-radius: var(--radius-md);
  padding: 0.75rem;
}

.pricing-calc-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
  padding: 0.75rem;
  border: 1px solid rgba(11, 60, 100, 0.12);
  border-radius: var(--radius-md);
  background: #ffffff;
  position: relative;
}

.pricing-calc-row > .pricing-calc-field {
  flex: 1;
  min-width: 90px;
}

.pricing-calc-row > .pricing-calc-row-meta {
  flex: 2;
  display: flex;
  gap: 1rem;
}

.pricing-calc-row > .pricing-calc-row-meta .pricing-calc-field {
  flex: 1;
}

.pricing-calc-row > .pricing-calc-remove {
  flex: 0 0 auto;
}

.pricing-calc-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: #111827;
  flex: 0 0 auto;
}

.pricing-calc-field span {
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #1f2937;
  white-space: nowrap;
  line-height: 1.2;
}

.pricing-calc-field input {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.45rem 0.55rem;
  font: inherit;
  font-size: 0.88rem;
  color: #ffffff;
  background: #0f172a;
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
  width: 100%;
}

.pricing-calc-field input:focus-visible {
  outline: none;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15);
  background: #0f172a;
}

.pricing-calc-field input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.pricing-calc-field input.no-spinner::-webkit-outer-spin-button,
.pricing-calc-field input.no-spinner::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pricing-calc-field input.no-spinner {
  -moz-appearance: textfield;
}

.pricing-calc-field input[readonly] {
  background: #e5e7eb;
  color: #111827;
  border-color: rgba(17, 24, 39, 0.12);
}

.pricing-calc-field input.is-invalid {
  border-color: #e53935;
  box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.25);
  background: #2b0f0f;
}

.pricing-calc-result {
  background: transparent;
  border: none;
  padding: 0;
  font-size: 0.96rem;
  color: #0f172a;
  display: flex;
  align-items: center;
}

.pricing-calc-result strong {
  color: #111827;
}

.pricing-calc-result-row {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.result-separator {
  opacity: 0.6;
}

.pricing-calc-price {
  background: #0f172a;
  color: #f9fafb;
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.pricing-calc-price-content {
  flex: 1;
  min-width: 250px;
}

.pricing-calc-prefill-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.pricing-calc-price strong {
  color: #ffffff;
}

.pricing-disclaimer {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.6;
}

.pricing-calc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 0.5rem;
  flex-wrap: wrap;
}

.pricing-calc-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.pricing-calc-add {
  font-size: 0.88rem;
  padding: 0.5rem 1rem;
}

.pricing-calc-row-meta {
  display: flex;
  gap: 1rem;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 600;
  color: #6b7280;
  align-self: center;
}

.pricing-calc-remove {
  background: transparent;
  border: none;
  color: #dc2626;
  font-size: 1.5rem;
  line-height: 1;
  align-self: center;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
  margin-left: auto;
}

.pricing-calc-remove:hover {
  color: #111827;
  background: rgba(17, 24, 39, 0.08);
}

.pricing-calc-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: #4b5563;
  font-size: 0.9rem;
}

.pricing-calc-options {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 0.3rem;
}

.pricing-calc-options--inline {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-start;
  flex: 1 1 auto;
  padding-left: 1rem;
  border-left: 1px solid #e5e7eb;
}

.pricing-calc-options-label {
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: #1f2937;
  white-space: nowrap;
  line-height: 1.2;
}

.pricing-calc-option-row {
  display: flex;
  gap: 1rem;
  min-height: 38px;
  align-items: center;
}

.pricing-calc-option-row {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.pricing-calc-options-label {
  font-size: 0.68rem;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #1f2937;
}

.pricing-calc-checkbox {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #1f2937;
  cursor: pointer;
  user-select: none;
}

.pricing-calc-checkbox input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkmark {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid rgba(17, 24, 39, 0.2);
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.pricing-calc-checkbox input:checked + .checkmark {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  box-shadow: 0 2px 6px rgba(229, 57, 53, 0.3);
}

.pricing-calc-checkbox input:checked + .checkmark::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #ffffff;
}

.checkbox-label {
  color: #1f2937;
}

.pricing-calc-checkbox input:disabled + .checkmark {
  opacity: 0.6;
  cursor: not-allowed;
}

.pricing-disclaimer {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .pricing-calc-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .pricing-calc-controls {
    flex-direction: column;
    align-items: flex-start;
  }

  .pricing-calc-price {
    width: 100%;
  }

  .pricing-calc-options {
    flex-direction: column;
    align-items: flex-start;
  }

  .pricing-calc-option-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Process / timeline */

.process-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr);
  gap: 1.8rem;
}

@media (min-width: 900px) {
  .process-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 2.4rem;
  }
}

.process-highlight {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.4rem;
  border: 1px solid rgba(11, 60, 100, 0.06);
  box-shadow: 0 12px 28px rgba(15, 27, 46, 0.07);
  font-size: 0.9rem;
  color: var(--color-muted);
}

.process-highlight strong {
  color: var(--color-primary-soft);
  font-weight: 600;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
  font-size: 0.8rem;
}

.chip {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(11, 60, 100, 0.05);
  border: 1px dashed rgba(11, 60, 100, 0.2);
  color: var(--color-muted);
}

.process-steps {
  list-style: none;
  position: relative;
  margin-left: 0.4rem;
}

.process-steps::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 14px;
  bottom: 4px;
  border-left: 2px dashed rgba(11, 60, 100, 0.18);
}

.process-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.8rem 1rem;
  padding: 0.55rem 0 0.6rem;
}

.process-step-number {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(10, 30, 63, 0.08);
  border: 1px solid rgba(11, 60, 100, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-primary);
  z-index: 1;
}

.process-step-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.process-step-text {
  grid-column: 2 / -1;
  font-size: 0.88rem;
  color: var(--color-muted);
}

/* Audience section */

.audience-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.8rem;
}

@media (min-width: 860px) {
  .audience-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 2.4rem;
  }
}

.audience-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.audience-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.35rem 0.7rem;
  align-items: baseline;
  font-size: 0.9rem;
}

.audience-bullet {
  width: 16px;
  height: 16px;
  border-radius: 8px;
  background: rgba(245, 138, 42, 0.12);
  border: 1px solid rgba(245, 138, 42, 0.5);
  position: relative;
  margin-top: 2px;
}

.audience-bullet::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 20%, #ffe8c8 0, var(--color-secondary) 70%);
}

.audience-label {
  font-weight: 600;
}

.audience-note {
  font-size: 0.88rem;
  color: var(--color-muted);
  margin-top: 1.2rem;
}

.audience-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(11, 60, 100, 0.14);
  font-size: 0.8rem;
  margin-top: 1.1rem;
  background: rgba(255, 255, 255, 0.9);
}

.audience-tag span {
  font-weight: 600;
  color: var(--color-primary-soft);
}

/* Why HubWay */

.why-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}

@media (min-width: 920px) {
  .why-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.9fr);
    gap: 2.8rem;
  }
}

.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.3rem;
}

@media (min-width: 720px) {
  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.why-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.2rem 1.1rem;
  box-shadow: 0 10px 26px rgba(15, 27, 46, 0.06);
  border: 1px solid rgba(11, 60, 100, 0.06);
}

.why-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-bottom: 0.3rem;
}

.why-title {
  font-weight: 600;
  font-size: 0.98rem;
  margin-bottom: 0.4rem;
}

.why-text {
  font-size: 0.88rem;
  color: var(--color-muted);
}

.why-contrast {
  background: radial-gradient(circle at 0% 0%, #f6f7ff 0, #e5ecff 18%, #ffffff 55%);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  box-shadow: 0 14px 35px rgba(15, 27, 46, 0.09);
  border: 1px solid rgba(11, 60, 100, 0.08);
  font-size: 0.9rem;
  color: var(--color-muted);
}

.why-contrast strong {
  color: var(--color-primary-soft);
  font-weight: 600;
}

/* Mission & vision */

.mission-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.4rem;
}

@media (min-width: 780px) {
  .mission-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.mission-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.4rem 1.3rem;
  box-shadow: 0 12px 30px rgba(15, 27, 46, 0.07);
  border: 1px solid rgba(11, 60, 100, 0.06);
}

.mission-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.22rem 0.75rem 0.24rem;
  border-radius: 999px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(11, 60, 100, 0.06);
  color: var(--color-primary-soft);
  margin-bottom: 0.65rem;
}

.mission-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--color-secondary);
}

.mission-title {
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.mission-text {
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* Future section */

.future-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.3rem;
}

@media (min-width: 780px) {
  .future-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.future-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 1.3rem 1.25rem 1.2rem;
  box-shadow: 0 10px 26px rgba(15, 27, 46, 0.06);
  border: 1px solid rgba(11, 60, 100, 0.06);
  font-size: 0.9rem;
  color: var(--color-muted);
}

.future-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--color-primary-soft);
  margin-bottom: 0.25rem;
}

.future-title {
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--color-text);
}

/* Contact section */

.contact-section .container,
#kontakt .container {
  max-width: calc(var(--max-width) * 0.8);
  padding: 0 1.5rem;
}

/* Hoia teenuste ja kontakti tekst heledamana (dialogi tumedam tekst ei mõjuta) */
#teenused,
#teenused p,
#teenused li,
#teenused .section-intro,
#kontakt,
#kontakt p,
#kontakt li,
#kontakt .contact-lead,
#kontakt .contact-meta,
#kontakt .contact-meta div {
  color: rgba(255, 255, 255, 0.88);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr);
  gap: 2rem;
  align-items: start;
  justify-items: stretch;
}

@media (min-width: 980px) {
  .contact-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 2.8rem;
    align-items: start;
  }
}

.contact-layout > * {
  align-self: start;
}

.contact-lead {
  font-size: 0.96rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
  max-width: 520px;
  margin-top: 0.4rem;
}

.contact-meta {
  display: grid;
  gap: 0.25rem;
  font-size: 0.9rem;
  margin-top: 1.4rem;
}

.contact-meta strong {
  font-weight: 600;
  color: var(--color-text);
}

.contact-form-card {
  background: #0a0a0a;
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem 1.4rem;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f5f5f5;
  align-self: start;
  margin-top: -16px;
}

form {
  display: grid;
  gap: 0.9rem;
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.8rem;
}

@media (min-width: 720px) {
  .form-row--split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

label {
  display: block;
  font-size: 0.8rem;
  font-weight: 550;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.2rem;
}

input,
textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(11, 60, 100, 0.18);
  padding: 0.5rem 0.7rem;
  font: inherit;
  font-size: 0.9rem;
  color: var(--color-text);
  background: #fdfefe;
  transition: border-color 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.contact-form-card label {
  color: #e5e7eb;
}

.contact-form-card input,
.contact-form-card textarea {
  background: #0f172a;
  color: #f5f5f5;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.contact-form-card input::placeholder,
.contact-form-card textarea::placeholder {
  color: rgba(229, 231, 235, 0.7);
}

.contact-form-card input:focus-visible,
.contact-form-card textarea:focus-visible {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.16);
  background: #111827;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: rgba(108, 122, 137, 0.75);
}

input:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: rgba(6, 92, 161, 0.7);
  box-shadow: 0 0 0 2px rgba(6, 92, 161, 0.2);
  background: #ffffff;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.3rem;
  flex-wrap: wrap;
}

.form-note {
  font-size: 0.8rem;
  color: var(--color-muted);
  max-width: 260px;
}

/* Footer */

footer {
  padding: 2.4rem 0 2.2rem;
  border-top: 1px solid rgba(9, 22, 43, 0.06);
  font-size: 0.84rem;
  color: var(--color-muted);
  background: #f4f6f9;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
}

.footer-links a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.footer-links a:hover {
  color: var(--color-primary-soft);
}

/* Accessibility */

a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(6, 92, 161, 0.7);
  outline-offset: 3px;
}

button {
  font-family: inherit;
}

/* Dialog/Modal styles */
.dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.dialog-overlay.is-open {
  display: flex;
}

.dialog-overlay.is-visible {
  opacity: 1;
}

.dialog {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 960px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  transform: scale(0.95);
  transition: transform 0.2s ease;
}

.dialog-overlay.is-visible .dialog {
  transform: scale(1);
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.dialog-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

.dialog-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--color-muted);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  line-height: 1;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease;
}

.dialog-close:hover {
  background: rgba(11, 60, 100, 0.1);
  color: var(--color-text);
}

.dialog-content {
  color: var(--color-muted);
  line-height: 1.6;
}

.dialog-logos {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.dialog-logos img {
  flex: 1 1 35%;
  max-width: 35%;
  height: 80px;
  width: auto;
  object-fit: contain;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

/* Tee NextGen logo veidi väiksemaks, et mahuks HubWay kõrvale */
.dialog-logos img:last-child {
  flex: 1 1 65%;
  max-width: 65%;
  height: 200px;
}

.dialog-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
}

@media (max-width: 768px) {
  .dialog {
    padding: 1.5rem;
  }

  .dialog-title {
    font-size: 1.25rem;
  }
}
