:root {
  --brand-red: #e5261d;
  --brand-blue: #283f96;
  --brand-blue-dark: #17245f;
  --brand-black: #151918;
  --brand-blue-soft: #eef2ff;
  --ink: #151918;
  --muted: #5f6768;
  --paper: #f7f4ec;
  --white: #ffffff;
  --line: rgba(17, 24, 21, 0.12);
  --shadow: 0 24px 70px rgba(21, 25, 24, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

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

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 52px);
  color: var(--white);
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 35px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 42px;
  height: 52px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand strong {
  font-size: 1rem;
  font-weight: 900;
}

.brand small {
  margin-top: 4px;
  font-size: 0.75rem;
  color: currentColor;
  opacity: 0.78;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a:hover {
  background: rgba(229, 38, 29, 0.12);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 8px;
  color: inherit;
  background: transparent;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 330px);
  column-gap: clamp(24px, 6vw, 92px);
  align-items: end;
  padding: 126px clamp(18px, 6vw, 82px) 34px;
  color: var(--white);
  overflow: hidden;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  object-fit: cover;
  object-position: center 42%;
  filter: blur(4px) saturate(1.04);
  transform: scale(1.025);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(21, 25, 24, 0.93) 0%, rgba(23, 36, 95, 0.76) 48%, rgba(21, 25, 24, 0.34) 100%),
    linear-gradient(0deg, rgba(21, 25, 24, 0.9), rgba(21, 25, 24, 0.04) 48%);
}

.hero-content,
.hero-crest,
.hero-panel {
  position: relative;
  z-index: 1;
}

.hero-content {
  width: min(820px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand-red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  max-width: 720px;
  font-size: clamp(2.8rem, 7.6vw, 6.6rem);
  line-height: 0.94;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-content p:not(.eyebrow) {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.02rem, 2vw, 1.25rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 900;
}

.button.primary {
  background: var(--brand-red);
  color: var(--white);
  box-shadow: 0 12px 32px rgba(229, 38, 29, 0.28);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.48);
  color: var(--white);
}

.hero-crest {
  align-self: center;
  justify-self: center;
  width: min(310px, 25vw);
  margin: 0;
  padding: 0;
}

.hero-crest img {
  width: 100%;
  max-height: 430px;
  object-fit: contain;
  filter: drop-shadow(0 22px 28px rgba(0, 0, 0, 0.34));
}

.hero-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-column: 1 / -1;
  gap: 1px;
  width: min(820px, 100%);
  margin-top: 44px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
}

.hero-panel div {
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.1);
}

.hero-panel strong,
.hero-panel span {
  display: block;
}

.hero-panel strong {
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  font-weight: 900;
}

.hero-panel span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  line-height: 1.35;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--brand-black);
}

.quick-links a {
  padding: clamp(22px, 4vw, 38px);
  color: var(--white);
  background: var(--brand-blue);
}

.quick-links a:nth-child(2) {
  color: var(--white);
  background: var(--brand-red);
}

.quick-links a:nth-child(3) {
  color: var(--white);
  background: var(--brand-blue-dark);
}

.quick-links a:hover {
  filter: brightness(0.96);
}

.quick-links span,
.quick-links strong {
  display: block;
}

.quick-links span {
  color: currentColor;
  font-size: 0.78rem;
  font-weight: 900;
  opacity: 0.72;
  text-transform: uppercase;
}

.quick-links strong {
  margin-top: 10px;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  line-height: 1.15;
}

.section {
  padding: clamp(64px, 9vw, 120px) clamp(18px, 6vw, 82px);
}

.section-heading,
.section-copy {
  width: min(760px, 100%);
}

.section h2,
.contact-section h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

.section p,
.contact-section p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.intro {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 6vw, 86px);
  align-items: start;
}

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

.values-grid article,
.team-panel,
.service-card,
.news-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(6, 41, 22, 0.06);
}

.values-grid article {
  padding: 24px;
}

.values-grid span {
  color: var(--brand-red);
  font-weight: 900;
}

.values-grid h3 {
  margin: 26px 0 10px;
}

.dark {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(21, 25, 24, 0.94), rgba(23, 36, 95, 0.92)),
    url("assets/texture-field.jpg") center / cover;
}

.dark .section-heading p,
.dark .news-card p {
  color: rgba(255, 255, 255, 0.72);
}

.news-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
}

.news-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.news-controls button {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.news-controls button:hover {
  background: rgba(255, 255, 255, 0.18);
}

.news-carousel {
  width: calc(100% + clamp(18px, 6vw, 82px));
  margin-top: 34px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
}

.news-track {
  --news-card-width: minmax(320px, 31vw);
  display: flex;
  gap: 18px;
  width: max-content;
  padding: 0 0 16px;
  will-change: transform;
}

.news-card {
  display: block;
  flex: 0 0 clamp(320px, 31vw, 520px);
  overflow: hidden;
  color: var(--ink);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.news-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.news-card.is-latest {
  border-color: rgba(229, 38, 29, 0.55);
}

.news-card.is-latest img {
  aspect-ratio: 4 / 3;
}

.news-card div {
  padding: 22px;
}

.news-card span {
  color: var(--brand-red);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.news-card h3 {
  margin: 8px 0 10px;
  font-size: 1.35rem;
}

.teams-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.team-panel {
  padding: clamp(22px, 4vw, 34px);
}

.team-panel.accent {
  background: linear-gradient(135deg, var(--brand-blue-dark), var(--brand-blue));
  color: var(--white);
}

.team-panel h3 {
  margin-bottom: 20px;
  font-size: 1.45rem;
}

.team-list {
  display: grid;
  gap: 10px;
}

.team-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.72);
}

.team-list a::after {
  content: "FCF";
  color: var(--brand-blue);
  font-size: 0.72rem;
  font-weight: 900;
}

.team-panel.accent .team-list a {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.09);
}

.team-panel.accent .team-list a::after {
  color: var(--brand-blue-soft);
}

.services {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(23, 36, 95, 0.08), rgba(229, 38, 29, 0.1)),
    var(--paper);
}

.services::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(40, 63, 150, 0.1) 1px, transparent 1px),
    linear-gradient(0deg, rgba(40, 63, 150, 0.08) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(90deg, transparent, black 18%, black 82%, transparent);
  pointer-events: none;
}

.services .section-heading,
.services .service-grid {
  position: relative;
  z-index: 1;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 34px;
}

.service-card {
  position: relative;
  display: flex;
  min-height: 280px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(145deg, rgba(40, 63, 150, 0.96), rgba(23, 36, 95, 0.98));
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.12), transparent 32%),
    linear-gradient(135deg, transparent 0 48%, rgba(229, 38, 29, 0.92) 48% 58%, transparent 58%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: auto, auto, 34px 34px, 34px 34px;
  opacity: 0.9;
}

.service-card:nth-child(even) {
  background:
    linear-gradient(145deg, rgba(229, 38, 29, 0.96), rgba(151, 25, 19, 0.98));
}

.service-card:nth-child(even)::before {
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.12), transparent 32%),
    linear-gradient(135deg, transparent 0 48%, rgba(40, 63, 150, 0.95) 48% 58%, transparent 58%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: auto, auto, 34px 34px, 34px 34px;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-card::after {
  content: "CE Llinars";
  position: absolute;
  top: 24px;
  right: 24px;
  color: rgba(255, 255, 255, 0.16);
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  font-weight: 900;
  line-height: 0.82;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.service-icon,
.service-card h3,
.service-card p {
  position: relative;
  z-index: 1;
}

.service-icon {
  display: inline-flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  margin-bottom: auto;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  font-weight: 900;
}

.service-card h3 {
  margin: 42px 0 10px;
  font-size: clamp(1.55rem, 2vw, 2rem);
}

.service-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.sponsors {
  padding: clamp(46px, 7vw, 82px) clamp(18px, 6vw, 82px);
  background: var(--white);
}

.sponsor-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.sponsor-strip img {
  width: 100%;
  height: 112px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--paper);
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: clamp(28px, 6vw, 82px);
  padding: clamp(64px, 9vw, 110px) clamp(18px, 6vw, 82px);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(21, 25, 24, 0.98), rgba(23, 36, 95, 0.96)),
    var(--brand-black);
}

.contact-section p {
  color: rgba(255, 255, 255, 0.76);
}

.contact-card {
  padding: clamp(24px, 4vw, 34px);
  color: var(--ink);
}

.contact-card a {
  display: block;
  margin-bottom: 14px;
  color: var(--brand-blue);
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.contact-card p {
  color: var(--muted);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 6vw, 82px);
  background: var(--brand-black);
  color: rgba(255, 255, 255, 0.78);
}

.footer img {
  width: 42px;
  height: 52px;
  object-fit: contain;
}

.footer p {
  margin: 0;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.article-page,
.admin-page,
.form-page,
.info-page {
  min-height: 100vh;
  padding: 132px clamp(18px, 6vw, 82px) 72px;
  background:
    linear-gradient(135deg, rgba(40, 63, 150, 0.08), rgba(229, 38, 29, 0.06)),
    var(--paper);
}

.back-link {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--brand-blue);
  font-weight: 900;
}

.article-shell {
  width: min(980px, 100%);
  margin: 0 auto;
}

.article-header {
  margin-bottom: 32px;
}

.article-header h1,
.admin-hero h1 {
  max-width: 980px;
  margin-bottom: 18px;
  font-size: clamp(2.5rem, 7vw, 5.8rem);
  line-height: 0.96;
}

.article-header p:not(.eyebrow),
.admin-hero p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.7;
}

.article-image-button {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  padding: 0;
  cursor: zoom-in;
  background: var(--brand-black);
  box-shadow: var(--shadow);
}

.article-image-button img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
}

.article-image-button span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--white);
  background: rgba(21, 25, 24, 0.72);
  font-weight: 900;
}

.article-body {
  width: min(760px, 100%);
  margin: 42px auto 0;
}

.article-body p {
  color: var(--ink);
  font-size: clamp(1.08rem, 2vw, 1.22rem);
  line-height: 1.85;
}

.lightbox {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10, 13, 18, 0.9);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(1200px, 100%);
  max-height: 86vh;
  border-radius: 8px;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  font-weight: 900;
}

.admin-hero {
  width: min(980px, 100%);
  margin-bottom: 34px;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 22px;
  align-items: start;
}

.admin-form,
.admin-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(20px, 3vw, 28px);
  background: var(--white);
  box-shadow: 0 10px 30px rgba(21, 25, 24, 0.08);
}

.admin-form {
  display: grid;
  gap: 16px;
}

.admin-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 900;
}

.admin-form input,
.admin-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
}

.admin-form textarea {
  resize: vertical;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button.danger {
  border: 1px solid rgba(229, 38, 29, 0.28);
  color: var(--brand-red);
  background: rgba(229, 38, 29, 0.08);
}

.admin-note {
  margin: 0;
  color: var(--brand-blue);
  font-weight: 800;
}

.admin-list h2 {
  margin-bottom: 18px;
  font-size: 1.35rem;
}

.admin-news-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

.admin-news-row a {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.admin-news-row img {
  width: 72px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
}

.admin-news-row strong,
.admin-news-row small {
  display: block;
}

.admin-news-row small {
  margin-top: 4px;
  color: var(--muted);
}

.admin-delete-news {
  min-height: 40px;
  border: 1px solid rgba(229, 38, 29, 0.24);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--brand-red);
  background: rgba(229, 38, 29, 0.08);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.admin-delete-news:hover {
  background: rgba(229, 38, 29, 0.14);
}

.admin-empty,
.news-empty {
  border: 1px dashed rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 36px);
}

.admin-empty {
  border-color: rgba(25, 54, 125, 0.2);
  background: rgba(25, 54, 125, 0.04);
}

.admin-empty strong,
.admin-empty small,
.news-empty span,
.news-empty h3,
.news-empty p {
  display: block;
}

.admin-empty small {
  margin-top: 8px;
  color: var(--muted);
}

.news-empty {
  min-width: min(680px, 88vw);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.news-empty span {
  margin-bottom: 14px;
  color: var(--brand-red);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-empty h3 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 4vw, 3rem);
}

.news-empty p {
  margin: 0;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.form-hero {
  width: min(980px, 100%);
  margin-bottom: 34px;
}

.form-hero h1 {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 7vw, 6rem);
  line-height: 0.96;
}

.form-hero p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.7;
}

.form-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(40, 63, 150, 0.12), rgba(229, 38, 29, 0.08)),
    var(--white);
  box-shadow: var(--shadow);
}

.form-shell::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-red));
  z-index: 1;
}

.form-shell iframe {
  display: block;
  width: 100%;
  min-height: 1180px;
  border: 0;
  background: var(--white);
}

.info-content {
  display: grid;
  gap: 24px;
}

.info-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 42px);
  background: var(--white);
  box-shadow: 0 10px 30px rgba(21, 25, 24, 0.08);
}

.info-card h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
}

.info-card h3 {
  margin: 34px 0 14px;
  color: var(--brand-blue);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.info-card p,
.info-card li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.info-card a {
  color: var(--brand-blue);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.info-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}

.iban {
  border-left: 4px solid var(--brand-red);
  padding: 14px 0 14px 18px;
  background: rgba(229, 38, 29, 0.06);
}

.quote-board {
  display: grid;
  grid-template-columns: 1.2fr repeat(6, minmax(96px, 1fr));
  overflow-x: auto;
  border: 2px solid var(--white);
  border-radius: 8px;
  color: var(--brand-blue);
  background: linear-gradient(135deg, #058bd5, #0058a8);
  box-shadow: var(--shadow);
}

.quote-board > * {
  min-width: 96px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  padding: 18px 14px;
}

.quote-board-head,
.quote-side,
.quote-subhead,
.quote-row-title {
  color: var(--white);
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.quote-board-head {
  display: grid;
  place-items: center;
  font-size: clamp(1.1rem, 2vw, 1.8rem);
  letter-spacing: 0.04em;
}

.quote-board-head.empty {
  grid-row: span 2;
}

.quote-board-head.span-2 {
  grid-column: span 2;
}

.quote-board-head.span-4 {
  grid-column: span 4;
}

.quote-subhead {
  background: linear-gradient(135deg, rgba(118, 218, 246, 0.94), rgba(13, 143, 210, 0.94));
  font-size: clamp(0.9rem, 1.4vw, 1.2rem);
  line-height: 1.4;
}

.quote-side,
.quote-row-title {
  display: grid;
  align-items: center;
  justify-content: start;
  text-align: left;
  background: rgba(0, 97, 180, 0.86);
  font-size: clamp(1rem, 1.8vw, 1.45rem);
}

.quote-row-title small {
  font-size: 0.7em;
}

.quote-price {
  display: grid;
  place-items: center;
  color: #0058a8;
  background: rgba(255, 255, 255, 0.95);
  font-size: clamp(1.25rem, 2.8vw, 2.35rem);
  font-weight: 900;
  white-space: nowrap;
}

.quote-note {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 24px;
  margin-top: 18px;
  border-radius: 8px;
  padding: 22px;
  color: var(--white);
  background: linear-gradient(135deg, #0058a8, #003d78);
  line-height: 1.6;
}

.quote-note strong {
  display: block;
  color: var(--white);
}

.equipment-actions .secondary.dark-button {
  border-color: rgba(21, 25, 24, 0.18);
  color: var(--brand-blue);
}

.equipment-intro {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.equipment-intro article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(21, 25, 24, 0.08);
}

.equipment-intro span {
  color: var(--brand-red);
  font-weight: 900;
}

.equipment-intro h2 {
  margin: 24px 0 10px;
  font-size: 1.25rem;
}

.equipment-intro p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.equipment-content {
  display: grid;
  gap: 24px;
}

.equipment-news {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  border-radius: 8px;
  padding: clamp(20px, 4vw, 32px);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(238, 42, 36, 0.96), rgba(25, 54, 125, 0.96)),
    var(--brand-blue);
  box-shadow: 0 20px 50px rgba(25, 54, 125, 0.18);
}

.equipment-news span {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border-radius: 999px;
  padding: 0 16px;
  color: var(--brand-red);
  background: var(--white);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.equipment-news h2 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1;
}

.equipment-news p {
  margin: 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.equipment-card {
  border: 1px solid rgba(25, 54, 125, 0.12);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 38px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(245, 248, 255, 0.96)),
    var(--white);
  box-shadow: 0 18px 45px rgba(21, 25, 24, 0.08);
}

.equipment-card h2 {
  margin: 0 0 16px;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1;
}

.credentials-card,
.pack-card {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 24px;
  align-items: center;
}

.credential-grid,
.size-reference-grid,
.pack-grid {
  display: grid;
  gap: 12px;
}

.credential-grid {
  grid-template-columns: repeat(3, 1fr);
}

.credential-grid div,
.size-reference-grid div,
.pack-grid div {
  border: 1px solid rgba(25, 54, 125, 0.14);
  border-radius: 8px;
  padding: 18px;
  background: var(--white);
}

.credential-grid span,
.size-reference-grid span,
.pack-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.credential-grid strong,
.size-reference-grid strong,
.pack-grid strong {
  color: var(--ink);
  font-size: clamp(1rem, 2vw, 1.2rem);
  overflow-wrap: anywhere;
}

.steps-list {
  display: grid;
  gap: 12px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.steps-list li {
  position: relative;
  min-height: 54px;
  padding: 16px 18px 16px 66px;
  border: 1px solid rgba(25, 54, 125, 0.12);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  line-height: 1.55;
  counter-increment: steps;
}

.steps-list li::before {
  position: absolute;
  top: 14px;
  left: 16px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--brand-red);
  content: counter(steps);
  font-weight: 900;
}

.important-note {
  margin: 18px 0 0;
  border-left: 5px solid var(--brand-red);
  border-radius: 8px;
  padding: 16px 18px;
  color: var(--ink);
  background: rgba(238, 42, 36, 0.08);
  font-weight: 800;
}

.size-reference-grid {
  grid-template-columns: repeat(5, 1fr);
}

.pack-grid {
  grid-template-columns: repeat(3, 1fr);
}

.pack-grid div {
  display: flex;
  min-height: 118px;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--brand-blue-dark), var(--brand-blue));
}

.pack-grid span,
.pack-grid strong {
  color: var(--white);
}

.pack-grid strong {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.gallery-card {
  overflow: hidden;
  padding-bottom: clamp(18px, 3vw, 28px);
}

.equipment-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.equipment-gallery figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(25, 54, 125, 0.12);
  border-radius: 8px;
  background: var(--white);
}

.equipment-gallery figure.wide {
  grid-column: 1 / -1;
}

.equipment-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #eef5fb;
}

.equipment-gallery figcaption {
  padding: 14px 16px;
  color: var(--ink);
  font-weight: 900;
}

.schedule-content {
  display: grid;
  gap: 24px;
}

.schedule-card {
  overflow: hidden;
  border: 1px solid rgba(25, 54, 125, 0.12);
  border-radius: 8px;
  padding: 0;
  background: var(--white);
  box-shadow: 0 18px 45px rgba(21, 25, 24, 0.08);
}

.schedule-card-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
  color: var(--white);
  background: linear-gradient(135deg, var(--brand-blue-dark), var(--brand-blue));
}

.schedule-card-head .eyebrow {
  margin-bottom: 8px;
}

.schedule-card-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1;
}

.schedule-card-head span {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 800;
  text-align: right;
}

.schedule-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.schedule-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.schedule-table th,
.schedule-table td {
  border-bottom: 1px solid rgba(25, 54, 125, 0.1);
  padding: 15px 16px;
  text-align: left;
  white-space: nowrap;
}

.schedule-table thead th {
  position: sticky;
  top: 0;
  color: var(--white);
  background: var(--brand-red);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.schedule-table tbody th {
  color: var(--brand-blue-dark);
  background: rgba(25, 54, 125, 0.05);
  font-weight: 900;
}

.schedule-table tbody tr:hover td,
.schedule-table tbody tr:hover th {
  background: rgba(238, 42, 36, 0.06);
}

.schedule-table td {
  color: var(--ink);
  font-weight: 700;
}

.schedule-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 0 clamp(18px, 4vw, 34px) clamp(22px, 4vw, 34px);
}

.schedule-card.gallery-card > .eyebrow,
.schedule-card.gallery-card > h2 {
  padding-left: clamp(18px, 4vw, 34px);
  padding-right: clamp(18px, 4vw, 34px);
}

.schedule-card.gallery-card > .eyebrow {
  padding-top: clamp(22px, 4vw, 34px);
}

.schedule-card.gallery-card > h2 {
  margin-top: 0;
  margin-bottom: 22px;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
}

.schedule-gallery figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(25, 54, 125, 0.12);
  border-radius: 8px;
  background: var(--white);
}

.schedule-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #eef5fb;
}

.schedule-gallery figcaption {
  padding: 14px 16px;
  color: var(--ink);
  font-weight: 900;
}

.pdf-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.pdf-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px clamp(18px, 4vw, 34px);
  color: var(--white);
  background: linear-gradient(135deg, var(--brand-blue-dark), var(--brand-blue));
}

.pdf-toolbar .eyebrow {
  margin-bottom: 6px;
}

.pdf-toolbar h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 3rem);
}

.pdf-toolbar a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--white);
  font-weight: 900;
}

.pdf-shell iframe {
  display: block;
  width: 100%;
  min-height: 82vh;
  border: 0;
  background: var(--paper);
}

@media (max-width: 980px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% - 4px);
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
    color: var(--ink);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .site-nav a {
    border-radius: 8px;
    padding: 14px;
  }

  .admin-news-row {
    grid-template-columns: 1fr;
  }

  .admin-delete-news {
    width: 100%;
  }

  .intro,
  .contact-section,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .values-grid,
  .service-grid,
  .equipment-intro,
  .credential-grid,
  .size-reference-grid,
  .pack-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .credentials-card,
  .pack-card,
  .equipment-news,
  .schedule-card-head {
    grid-template-columns: 1fr;
  }

  .schedule-card-head {
    display: grid;
    align-items: start;
  }

  .schedule-card-head span {
    text-align: left;
  }

  .news-card {
    flex-basis: clamp(300px, 46vw, 460px);
  }

  .sponsor-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 12px 16px;
  }

  .brand img {
    width: 36px;
    height: 44px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 96vh;
    padding: 104px 18px 28px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(21, 25, 24, 0.94), rgba(23, 36, 95, 0.68)),
      linear-gradient(0deg, rgba(21, 25, 24, 0.9), rgba(21, 25, 24, 0.08) 52%);
  }

  .hero-crest {
    width: min(180px, 50vw);
    margin-top: 22px;
  }

  .hero-actions,
  .footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-panel,
  .quick-links,
  .teams-layout,
  .values-grid,
  .service-grid,
  .equipment-intro,
  .credential-grid,
  .size-reference-grid,
  .pack-grid,
  .equipment-gallery,
  .schedule-gallery,
  .sponsor-strip {
    grid-template-columns: 1fr;
  }

  .pdf-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .pdf-toolbar a {
    width: 100%;
    justify-content: center;
  }

  .pdf-shell iframe {
    min-height: 70vh;
  }

  .news-heading {
    align-items: start;
    flex-direction: column;
  }

  .news-card {
    flex-basis: min(86vw, 360px);
  }

  .hero-panel {
    margin-top: 28px;
  }

  .section,
  .sponsors,
  .contact-section,
  .article-page,
  .admin-page,
  .form-page,
  .info-page {
    padding-left: 18px;
    padding-right: 18px;
  }

  .form-shell iframe {
    min-height: 1280px;
  }

  .quote-note {
    grid-template-columns: 1fr;
  }

  .team-list a {
    min-height: 52px;
  }
}
