:root {
  --primary: #0f5ea8;
  --primary-dark: #0a4174;
  --primary-soft: #eaf3fb;
  --accent: #1b78c2;
  --text: #16324a;
  --muted: #5e7285;
  --bg: #f5f8fb;
  --white: #ffffff;
  --border: #d9e4ef;
  --danger: #b63838;
  --shadow: 0 12px 32px rgba(15, 94, 168, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}
.hero {
  position: relative;
  color: var(--white);
  padding: 72px 0 48px;
  background:
    linear-gradient(rgba(7, 32, 58, 0.62), rgba(8, 37, 66, 0.7)),
    url('images/stena-hero.svg') center/cover no-repeat,
    linear-gradient(135deg, var(--primary-dark), var(--primary));
}
.hero--real-photo {
  background:
    linear-gradient(rgba(7, 32, 58, 0.54), rgba(8, 37, 66, 0.7)),
    url('images/stena-hero-real.jpg') center 38%/cover no-repeat,
    linear-gradient(135deg, var(--primary-dark), var(--primary));
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 37, 64, 0.52), rgba(9, 37, 64, 0.18));
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.55fr 0.72fr;
  gap: 26px;
  align-items: center;
}
.hero--small {
  padding: 52px 0 36px;
}
.hero__inner--single {
  grid-template-columns: 1fr;
}
.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 800;
  opacity: 0.9;
}
.hero h1, .section h2 {
  margin: 0;
  line-height: 1.15;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  max-width: 12ch;
}
.lead {
  max-width: 58ch;
  margin: 16px 0 0;
  font-size: 18px;
  color: rgba(255,255,255,0.92);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: var(--white);
  color: var(--primary-dark);
}
.btn--ghost {
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
  background: rgba(255,255,255,0.08);
}
.btn--small {
  padding: 10px 14px;
  border-radius: 12px;
}
.btn--danger {
  background: #fff1f1;
  border-color: #f1caca;
  color: var(--danger);
}
.hero__card {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 22px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  justify-self: end;
  width: min(100%, 330px);
}
.hero__card--compact {
  transform: translateY(6px);
}
.hero__stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.hero__stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.hero__stat--stacked {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.hero__stats-grid .hero__stat:last-child,
.hero__stats-grid .hero__stat:nth-last-child(2) {
  border-bottom: 0;
}
.hero__stat:last-child { border-bottom: 0; }
.hero__stat strong { font-size: 22px; }
.hero__stat span {
  text-align: right;
  font-size: 14px;
  color: rgba(255,255,255,0.88);
}
.hero__stat--stacked span {
  text-align: left;
}
.hero__stat--full {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.18);
  border-bottom: 0;
}
.section {
  padding: 56px 0;
}
.section--light {
  background: var(--white);
}
.quick-grid, .routes-grid, .polls-grid, .future-grid {
  display: grid;
  gap: 18px;
}
.quick-grid {
  grid-template-columns: repeat(3, 1fr);
}
.future-grid {
  grid-template-columns: repeat(3, 1fr);
}
.vote-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
}
.vote-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}
.vote-highlight {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  align-items: center;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 5px solid var(--primary);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(13, 62, 105, 0.05);
}
.vote-highlight--hardest { border-left-color: #be123c; }
.vote-highlight--easiest { border-left-color: #15803d; }
.vote-highlight__label {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.vote-highlight__route .route-label { display: inline-flex; }
.vote-highlight__grade {
  font-weight: 800;
  color: var(--primary-dark);
  white-space: nowrap;
}
.vote-highlight__votes {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 13px;
}
.vote-highlights__empty {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
}
.vote-filter {
  display: grid;
  gap: 6px;
  min-width: 220px;
  font-weight: 600;
}
.vote-filter span {
  font-size: 13px;
  color: var(--muted);
}
.info-card, .route-card, .poll-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 10px 24px rgba(13, 62, 105, 0.05);
}
.info-card h2, .route-card h3, .poll-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
}
.section-head {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 20px;
}
.routes-grid {
  grid-template-columns: repeat(3, 1fr);
}
.route-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.route-card__header--simple {
  justify-content: flex-start;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 13px;
}
.route-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 10px;
}
.route-list li {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.route-label--stacked {
  display: inline-grid;
  gap: 4px;
}
.route-line-title {
  font-weight: 700;
  line-height: 1.2;
}
.route-name-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.route-name { font-weight: 700; }
.color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 12px;
  border: 1px solid rgba(0,0,0,0.12);
}
.color-dot--light {
  border: 1px solid #aab7c4;
}
.grade { color: var(--primary-dark); font-weight: 800; }
.grade--empty { color: var(--muted); font-weight: 600; }
.two-col-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.rules-block {
  margin-top: 22px;
}
.rules-block h3 {
  margin: 0 0 10px;
  color: var(--primary-dark);
}
.rules-list {
  margin: 16px 0 0;
  padding-left: 20px;
}
.rules-list--numbered {
  padding-left: 24px;
}
.rules-list li {
  margin-bottom: 10px;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.gallery__item {
  min-height: 130px;
  border-radius: 18px;
  background: linear-gradient(135deg, #dfeaf5, #f4f8fc);
  border: 1px dashed #aac1d8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 700;
}
.gallery-note, .section-intro, .footer__muted, .votes-note, .rules-note {
  color: var(--muted);
}
.rules-note {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--primary-soft);
  border: 1px solid var(--border);
}
.photo-card,
.contact-card {
  background: #f9fbfd;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  margin-top: 18px;
  box-shadow: 0 10px 24px rgba(13, 62, 105, 0.05);
}
.photo-card {
  overflow: hidden;
}
.photo-card__image {
  display: block;
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
}
.photo-card figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}
.contact-card h3 {
  margin: 0 0 12px;
  color: var(--primary-dark);
}
.contact-card p {
  margin: 0 0 14px;
}
.contact-card a {
  color: var(--primary-dark);
  font-weight: 600;
}
.emergency-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.emergency-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--border);
}
.emergency-list strong {
  color: var(--primary-dark);
  font-size: 18px;
}
.votes-note {
  font-size: 13px;
  line-height: 1.35;
}
.idea-box {
  margin-top: 24px;
  padding: 24px;
  background: var(--primary-soft);
  border: 1px solid var(--border);
  border-radius: 20px;
}
.idea-box h3,
.idea-box h2 {
  margin-top: 0;
  color: var(--primary-dark);
}
.vote-status {
  margin-bottom: 18px;
}
.faq-list {
  display: grid;
  gap: 16px;
}
.faq-item {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 0 22px;
  box-shadow: 0 12px 28px rgba(13, 62, 105, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.faq-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(13, 62, 105, 0.12);
  border-color: #bfd4e8;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  font-size: 20px;
  line-height: 1.35;
  color: var(--primary-dark);
  padding: 22px 34px 22px 0;
  position: relative;
}
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 18px;
  font-weight: 800;
}
.faq-item[open] summary::after {
  content: '–';
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item p {
  margin: 0;
  padding: 0 0 22px;
  color: var(--muted);
  font-size: 16px;
}
.vote-status--success {
  background: #eaf8ef;
  border-color: #b9dec2;
  color: #205c33;
}
.vote-status--error {
  background: #fff1f1;
  border-color: #f1caca;
  color: #8f2d2d;
}
.comments-layout {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 24px;
  align-items: start;
}
.comment-form-toggle {
  margin-top: 18px;
}
.comment-form-toggle__summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  box-shadow: 0 12px 24px rgba(13, 62, 105, 0.16);
}
.comment-form-toggle__summary::-webkit-details-marker {
  display: none;
}
.comment-form-toggle[open] .comment-form-toggle__summary {
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
}
.comment-form {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #f9fbfd;
}
.comment-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
}
.comment-form input,
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
  background: var(--white);
}
.comment-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.comment-form__actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
}
@media (max-width: 900px) {
  .comments-layout {
    grid-template-columns: 1fr;
  }
}
.comment-thread {
  display: grid;
  gap: 16px;
}
.comment-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 10px 24px rgba(13, 62, 105, 0.05);
}
.comment-card__head {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
}
.comment-card__head span {
  color: var(--primary-dark);
  font-weight: 600;
}
.comment-card p,
.comment-reply p {
  margin: 0;
}
.comment-meta {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}
.comment-replies {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.comment-replies__head {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.comment-replies__empty {
  color: var(--muted);
  font-size: 14px;
}
.comment-reply {
  padding: 12px 14px;
  border-radius: 14px;
  background: #f5f8fb;
}
.comment-reply__head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 14px;
}
.comment-reply__head span {
  color: var(--muted);
}
.reply-toggle {
  margin-top: 14px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  border-color: var(--border);
}
.reply-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}
.reply-form[hidden] {
  display: none !important;
}
.reply-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.polls-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}
.poll-route-column {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  background: #fbfdff;
}
.poll-route-row {
  margin-top: 0;
  margin-bottom: 6px;
}
.poll-select-wrap {
  display: grid;
  gap: 6px;
  margin: 8px 0 10px;
}
.poll-select-label {
  font-size: 12px;
  color: var(--muted);
}
.poll-select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 7px 9px;
  font: inherit;
  font-size: 13px;
  background: #f9fbfd;
  color: var(--text);
}
.poll-footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}
.poll-footer--compact {
  justify-content: flex-start;
}
.result-chip {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: #eef6ff;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 13px;
}
.footer {
  background: #0c2743;
  color: #dbe9f7;
  padding: 28px 0 40px;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero__inner, .two-col-layout, .quick-grid, .routes-grid, .polls-grid, .comments-layout, .footer__inner {
    grid-template-columns: 1fr;
    display: grid;
  }
  .polls-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
  .hero__card {
    justify-self: start;
    width: min(100%, 340px);
  }
  .hero__stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .section-head {
    align-items: start;
    flex-direction: column;
  }
}
@media (max-width: 640px) {
  .vote-highlights {
    grid-template-columns: 1fr;
  }
  .poll-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gallery {
    grid-template-columns: 1fr;
  }
  .wrap {
    width: min(100% - 20px, 1180px);
  }
  .hero {
    padding-top: 48px;
  }
}
