:root {
  --coi-blue: #16356f;
  --coi-blue-light: #2f80ed;
  --coi-green: #2f8f5b;
  --coi-green-light: #6fbd3f;
  --coi-orange: #ff7a1a;
  --coi-orange-dark: #ee6400;
  --coi-yellow-soft: #fff5df;
  --coi-bg: #f8fbff;
  --coi-card: #ffffff;
  --coi-text: #1a315f;
  --coi-muted: #64748b;
  --coi-border: #dfe8f3;
  --coi-shadow: 0 14px 34px rgba(31, 56, 94, 0.09);
  --coi-radius-xl: 28px;
  --coi-radius-lg: 20px;
  --coi-radius-md: 14px;
}

.coi-container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.coi-contest-page {
  background:
    radial-gradient(circle at 18% 12%, rgba(113, 190, 255, 0.16), transparent 28%),
    radial-gradient(circle at 84% 22%, rgba(255, 190, 105, 0.14), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 42%, #ffffff 100%);
  color: var(--coi-text);
  overflow: hidden;
}

.coi-contest-page img {
  max-width: 100%;
  height: auto;
  display: block;
}

.coi-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(223, 232, 243, 0.9);
  border-radius: var(--coi-radius-xl);
  box-shadow: var(--coi-shadow);
}

.coi-contest-hero {
  padding: 34px 0 28px;
}

.coi-contest-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.2fr);
  gap: 34px;
  align-items: center;
}

.coi-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  font-size: 14px;
  color: var(--coi-muted);
}

.coi-breadcrumbs a {
  color: var(--coi-blue);
  text-decoration: none;
}

.coi-breadcrumbs a:hover {
  color: var(--coi-orange);
}

.coi-contest-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 9px 16px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: #fff0e8;
  color: #f05f28;
  font-size: 15px;
  font-weight: 800;
}

.coi-contest-title {
  margin: 0 0 22px;
  line-height: 1;
}

.coi-contest-meta {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
  font-size: 18px;
  font-weight: 700;
}

.coi-contest-meta__item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.coi-icon {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: #eef6ff;
  position: relative;
  flex: 0 0 auto;
}

.coi-icon::before {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--coi-blue-light);
  font-size: 15px;
}

.coi-icon--calendar::before {
  content: "📅";
}

.coi-icon--clock::before {
  content: "⏱";
}

.coi-icon--users::before {
  content: "👥";
}

.coi-contest-hero__actions,
.coi-fee__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.coi-btn,
.coi-btn-field a,
.coi-link-field a,
.coi-payment-field a {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  border: 2px solid transparent;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  line-height: 1;
  cursor: pointer;
  transition: 0.2s ease;
}

.coi-btn--primary {
  background: var(--coi-orange);
  color: #fff;
  box-shadow: 0 10px 22px rgba(255, 122, 26, 0.26);
}

.coi-btn--primary:hover {
  background: var(--coi-orange-dark);
  transform: translateY(-1px);
}

.coi-btn--outline,
.coi-btn-field a,
.coi-link-field a {
  background: #fff;
  color: var(--coi-green);
  border-color: #9ed7bc;
}

.coi-btn--outline:hover,
.coi-btn-field a:hover,
.coi-link-field a:hover {
  color: #fff;
  background: var(--coi-green);
  border-color: var(--coi-green);
}

.coi-contest-hero__image {
  display: flex;
  justify-content: center;
}

.coi-contest-hero__image img {
  max-height: 420px;
  object-fit: contain;
}

.coi-section {
  margin: 18px 0;
}

.coi-section-head h2,
.coi-card h2 {
  margin: 0 0 10px;
  color: var(--coi-blue);
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.coi-stages {
  padding: 28px 34px 24px;
}

.coi-stages-carousel {
  position: relative;
  margin-top: 24px;
  padding-inline: 38px;
}

.coi-stages-carousel__viewport {
  overflow: hidden;
  border-radius: 18px;
}

.coi-stages-carousel__track {
  display: flex;
  gap: 22px;
  transition: transform 0.35s ease;
  will-change: transform;
}

/* Стили для карточек этапов, которые выводятся из field_contest_stages */
.coi-stages-carousel__track > .field__item,
.coi-stages-carousel__track > * {
  min-width: calc((100% - 44px) / 3);
  background: #fff;
  border: 1px solid var(--coi-border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 8px 20px rgba(31, 56, 94, 0.07);
}

.coi-carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 2px solid #88cda7;
  border-radius: 50%;
  background: #fff;
  color: var(--coi-green);
  font-size: 36px;
  line-height: 1;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(31, 56, 94, 0.08);
}

.coi-carousel-btn:hover {
  background: var(--coi-green);
  color: #fff;
}

.coi-carousel-btn--prev {
  left: -8px;
}

.coi-carousel-btn--next {
  right: -8px;
}

.coi-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 18px;
}

.coi-carousel-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #d5dee8;
}

.coi-carousel-dots .is-active {
  background: var(--coi-green);
}

.coi-contest-main {
  padding: 16px 0 54px;
}

.coi-about {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 30px;
  align-items: center;
  padding: 34px;
  margin-bottom: 24px;
}

.coi-rich-text ul,
.coi-check-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.coi-rich-text li,
.coi-check-list li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 30px;
}

.coi-rich-text li::before,
.coi-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e6f7ec;
  color: var(--coi-green);
  font-size: 13px;
  font-weight: 900;
}

.coi-about__image {
  justify-self: center;
}

.coi-about__image img {
  max-height: 310px;
  object-fit: contain;
}

.coi-awards__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 26px;
}

.coi-awards__item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  align-items: start;
  padding-right: 18px;
  border-right: 1px solid #e8edf5;
}

.coi-awards__item:last-child {
  border-right: 0;
  padding-right: 0;
}

.coi-awards__icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #fff;
  font-size: 34px;
  box-shadow: 0 8px 18px rgba(31, 56, 94, 0.08);
}

.coi-awards h3 {
  margin: 0 0 8px;
  color: var(--coi-blue);
  font-size: 18px;
}

.coi-awards p {
  margin: 0;
  color: var(--coi-text);
  font-size: 15px;
  line-height: 1.55;
}

.coi-awards__note {
  position: relative;
  margin-top: 26px;
  padding: 15px 18px 15px 48px;
  border-radius: 14px;
  background: #fff6df;
  color: #8a5b00;
  font-weight: 700;
}

.coi-awards__note::before {
  content: "!";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--coi-orange);
  color: #fff;
  transform: translateY(-50%);
}

.coi-contest-grid {
  display: grid;
  gap: 24px;
  margin-bottom: 24px;
}

.coi-contest-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.coi-info-card {
  min-height: 250px;
  display: grid;
  grid-template-columns: 1fr 210px;
  gap: 18px;
  align-items: center;
  padding: 30px;
}

.coi-info-card p {
  color: var(--coi-text);
  font-size: 16px;
  line-height: 1.65;
}

.coi-info-card__image {
  align-self: end;
  justify-self: end;
}

.coi-info-card__image img {
  max-height: 185px;
  object-fit: contain;
}

.coi-organizers{
  position: relative;
  padding: 34px;
  margin-bottom: 24px;    
}

.coi-organizers>div {
  display: grid;
  grid-template-columns: 1fr 580px;
  gap: 26px;
}

.coi-organizers__steps {
  padding: 24px;
  border-radius: 20px;
  background: #fffaf0;
  border: 1px solid #f2dfb8;
}

.coi-organizers__steps h3 {
  margin: 0 0 16px;
  color: var(--coi-blue);
  font-size: 21px;
}

.coi-organizers__steps ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.coi-organizers__steps li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 36px;
  color: var(--coi-text);
  font-weight: 700;
  line-height: 1.45;
  counter-increment: steps;
}

.coi-organizers__steps li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: -1px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e5f7ed;
  color: var(--coi-green);
  font-size: 13px;
  font-weight: 900;
}

.coi-organizers__image {
  align-self: end;
}

.coi-organizers__image img {
  max-height: 210px;
  object-fit: contain;
}

.coi-fee {
  display: grid;
  grid-template-columns: 1fr 230px;
  gap: 24px;
  align-items: center;
  padding: 34px;
  margin-bottom: 28px;
}

.coi-fee__price {
  margin: 12px 0 22px;
  font-size: 18px;
  color: var(--coi-text);
}

.coi-fee__price strong {
  color: var(--coi-blue);
  font-size: 22px;
}

.coi-btn--payment,
.coi-payment-field--online a {
  min-width: 250px;
  color: #1976d2;
  background: #fff;
  border-color: #77bdf8;
}

.coi-btn--payment:hover,
.coi-payment-field--online a:hover {
  color: #fff;
  background: #1976d2;
  border-color: #1976d2;
}

.coi-btn--download,
.coi-payment-field--receipt a {
  min-width: 390px;
  color: var(--coi-blue);
  background: #fff;
  border-color: #77bdf8;
}

.coi-btn--download:hover,
.coi-payment-field--receipt a:hover {
  color: #fff;
  background: var(--coi-blue-light);
  border-color: var(--coi-blue-light);
}

.coi-fee__image {
  justify-self: center;
}

.coi-fee__image img {
  max-height: 150px;
  object-fit: contain;
}

.coi-apply-banner {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 26px;
  align-items: center;
  padding: 26px 36px;
  border-radius: 24px;
  background: linear-gradient(100deg, #fff5df 0%, #fff9ef 55%, #fff0d8 100%);
  box-shadow: 0 10px 24px rgba(31, 56, 94, 0.06);
}

.coi-apply-banner h2 {
  margin: 0;
  color: var(--coi-blue);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.25;
}

.coi-apply-banner__icon img {
  max-height: 76px;
}

.coi-btn--large {
  min-width: 210px;
}

/* Drupal field cleanup */
.coi-contest-page .field,
.coi-contest-page .field__items,
.coi-contest-page .field__item {
  margin: 0;
}

.coi-contest-page .field--type-image img {
  border-radius: 0;
}


.coi-awards {
  position: relative;
  margin-bottom: 24px;
  padding: 34px;
  overflow: hidden;
}

.coi-awards::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 74px;
  pointer-events: none;
  background:
    radial-gradient(circle at 7% 80%, rgba(104, 175, 92, 0.28), transparent 9%),
    radial-gradient(circle at 18% 95%, rgba(116, 189, 94, 0.22), transparent 11%),
    radial-gradient(circle at 86% 88%, rgba(104, 175, 92, 0.22), transparent 10%),
    linear-gradient(180deg, transparent 0%, rgba(231, 248, 219, 0.78) 100%);
}

.coi-awards__top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: center;
  margin-bottom: 26px;
}

.coi-awards__intro p {
  max-width: 760px;
  margin: 0;
  font-weight: 600;
}

.coi-awards__hero {
  justify-self: end;
}

.coi-awards__hero img {
  max-height: 210px;
  object-fit: contain;
}

.coi-awards__columns {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}

.coi-awards-panel {
  position: relative;
  padding: 28px;
  border: 1px solid #f0dfbf;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 28px rgba(31, 56, 94, 0.06);
  overflow: hidden;
}

.coi-awards-panel--participants {
  padding-bottom: 180px;
}

.coi-awards-panel__head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.coi-awards-panel__head h3 {
  margin: 0;
  color: var(--coi-blue);
  font-size: 24px;
  line-height: 1.15;
}

.coi-awards-panel__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #6aa6ff 0%, #3f7ee8 100%);
  color: #fff;
  font-size: 28px;
  box-shadow: 0 8px 18px rgba(47, 128, 237, 0.24);
}

.coi-awards-panel__icon--green {
  background: linear-gradient(180deg, #73c95a 0%, #41a942 100%);
  box-shadow: 0 8px 18px rgba(65, 169, 66, 0.22);
}

.coi-awards-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.coi-awards-list li {
  position: relative;
  margin-bottom: 7px;
  padding-left: 48px;
  font-weight: 600;
}

.coi-awards-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 2px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #55b946;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  box-shadow: 0 6px 12px rgba(85, 185, 70, 0.22);
}

.coi-awards-list strong {
  color: var(--coi-blue);
  font-weight: 900;
}

.coi-awards-panel__docs {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 18px;
}

.coi-awards-panel__docs img {
  width: 100%;
  max-height: 96px;
  object-fit: contain;
  object-position: left bottom;
}

.coi-awards-panel__participants-art {
  position: absolute;
  right: 18px;
  bottom: 14px;
  left: 18px;
  display: flex;
  justify-content: flex-end;
}

.coi-awards-panel__participants-art img {
  max-width: 92%;
  max-height: 175px;
  object-fit: contain;
  object-position: right bottom;
}

/* Responsive */
@media (max-width: 1100px) {
  .coi-contest-hero__inner {
    grid-template-columns: 1fr;
  }

  .coi-contest-hero__image {
    order: -1;
  }

  .coi-about,
  .coi-organizers,
  .coi-fee {
    grid-template-columns: 1fr;
  }

  .coi-awards__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .coi-awards__item {
    border-right: 0;
    padding-right: 0;
  }

  .coi-info-card {
    grid-template-columns: 1fr;
  }

  .coi-info-card__image {
    justify-self: center;
  }

  .coi-apply-banner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .coi-apply-banner__icon,
  .coi-apply-banner .coi-btn {
    justify-self: center;
  }
}

@media (max-width: 760px) {
  .coi-container {
    width: min(100% - 24px, 1180px);
  }

  .coi-contest-hero {
    padding-top: 20px;
  }

  .coi-contest-title {
    font-size: 42px;
  }

  .coi-contest-meta {
    font-size: 16px;
  }

  .coi-stages,
  .coi-about,
  .coi-awards,
  .coi-info-card,
  .coi-organizers,
  .coi-fee {
    padding: 22px;
    border-radius: 22px;
  }

  .coi-stages-carousel {
    padding-inline: 0;
  }

  .coi-stages-carousel__track > .field__item,
  .coi-stages-carousel__track > * {
    min-width: 100%;
  }

  .coi-carousel-btn {
    top: auto;
    bottom: -68px;
    transform: none;
  }

  .coi-carousel-btn--prev {
    left: calc(50% - 58px);
  }

  .coi-carousel-btn--next {
    right: calc(50% - 58px);
  }

  .coi-carousel-dots {
    margin-top: 82px;
  }

  .coi-awards__grid,
  .coi-contest-grid--two {
    grid-template-columns: 1fr;
  }

  .coi-awards__item {
    grid-template-columns: 52px 1fr;
  }

  .coi-btn,
  .coi-btn-field a,
  .coi-link-field a,
  .coi-payment-field a,
  .coi-btn--payment,
  .coi-btn--download {
    width: 100%;
    min-width: 0;
  }
  
  .coi-awards__columns,
  .coi-awards__top{
      grid-template-columns: 1fr;
  }
  
  .coi-awards-panel__icon{
      font-size: 24px;
  }
}

/*##*/

/* ==========================================================================
   Contest stages / Туры конкурса
   ========================================================================== */

.coi-section--stages {
  margin: 24px 0;
}

.coi-stages {
  position: relative;
  padding: 28px 34px 34px;
  overflow: visible;
  background:
    radial-gradient(circle at 14% 10%, rgba(107, 192, 255, 0.12), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.coi-stages__title {
  margin: 0 0 22px;
  color: var(--coi-blue);
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.15;
  font-weight: 900;
}

/* Drupal Views wrappers */
.coi-stages-view .views-element-container,
.coi-stages-view [class^="js-view-dom-id-"] {
  width: 100%;
}

/* Base grid: up to 3 cards per row */
.coi-stages-view .view-content {
  --stage-gap-x: 72px;
  --stage-gap-y: 24px;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--stage-gap-y) var(--stage-gap-x);
  align-items: stretch;
}

/* 1 card */
.coi-stages-view .view-content--count-1 {
  grid-template-columns: minmax(285px, 520px);
  justify-content: start;
}

/* 2 cards: full width, equal columns */
.coi-stages-view .view-content--count-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: stretch;
}

/* 4–6 cards: 3 + 1 / 3 + 2 / 3 + 3 */
.coi-stages-view .views-row {
  position: relative;
  min-width: 0;
}

/* Dotted arrows between cards */
.coi-stages-view .views-row:not(:nth-child(3n)):not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(100% + 20px);
  width: 34px;
  border-top: 4px dotted var(--coi-green);
  transform: translateY(-50%);
  z-index: 1;
}

.coi-stages-view .views-row:nth-child(2)::after,
.coi-stages-view .views-row:nth-child(5)::after {
  border-top-color: var(--coi-blue-light);
}

.coi-stages-view .views-row:nth-child(2)::before,
.coi-stages-view .views-row:nth-child(5)::before {
  border-left-color: var(--coi-blue-light);
}

/* Card */
.coi-stage-card {
  position: relative;
  min-height: 178px;
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
  padding: 12px 22px;
  border: 2px solid #dfe8f3;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(31, 56, 94, 0.08);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.coi-stage-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(31, 56, 94, 0.12);
}

/* Card border colors */
.coi-stage-card--green {
  border-color: #74bd70;
}

.coi-stage-card--blue {
  border-color: #b9ddff;
}

.coi-stage-card--orange {
  border-color: #ffd4af;
}

.coi-stage-card--purple {
  border-color: #d9c3ff;
}

.coi-stage-card--red {
  border-color: #ffc0c0;
}

.coi-stage-card--yellow {
  border-color: #ffe19a;
}

/* Top area: title and main period full width */
.coi-stage-card__head {
  min-width: 0;
}

/* Tour title as colored pill */
.coi-stage-card__title-pill {
  width: fit-content;
  max-width: 100%;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  margin: 0 0 12px;
  padding: 7px 16px;
  border-radius: 999px;
  background: #69b84f;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 900;
  box-shadow: 0 6px 12px rgba(105, 184, 79, 0.24);
}

.coi-stage-card--blue .coi-stage-card__title-pill {
  background: #42a5f5;
  box-shadow: 0 6px 12px rgba(66, 165, 245, 0.24);
}

.coi-stage-card--orange .coi-stage-card__title-pill {
  background: #ffa726;
  box-shadow: 0 6px 12px rgba(255, 167, 38, 0.24);
}

.coi-stage-card--purple .coi-stage-card__title-pill {
  background: #8e67e8;
  box-shadow: 0 6px 12px rgba(142, 103, 232, 0.24);
}

.coi-stage-card--red .coi-stage-card__title-pill {
  background: #ef5350;
  box-shadow: 0 6px 12px rgba(239, 83, 80, 0.24);
}

.coi-stage-card--yellow .coi-stage-card__title-pill {
  background: #f6b81a;
  box-shadow: 0 6px 12px rgba(246, 184, 26, 0.24);
}

.coi-stage-card__title-pill a {
  color: inherit;
  text-decoration: none;
}

.coi-stage-card__title-pill a:hover {
  text-decoration: underline;
}

/* Main period date */
.coi-stage-card__date {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 0;
  color: var(--coi-blue);
  font-size: 15px;
  line-height: 1.35;
  font-weight: 900;
}

.coi-stage-card__date-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin-top: 1px;
  border: 2px solid currentColor;
  border-radius: 4px;
  position: relative;
}

.coi-stage-card__date-icon::before {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 4px;
  border-top: 2px solid currentColor;
}

/* Bottom area: image + additional dates in 2 columns */
.coi-stage-card__body {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

/* Icon */
.coi-stage-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.coi-stage-card__icon img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

/* Clean Drupal field wrappers inside icon */
.coi-stage-card__icon .field,
.coi-stage-card__icon .field__item,
.coi-stage-card__icon .field-content {
  display: contents;
}

.coi-stage-card__dates-list {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.coi-stage-card__description {
  color: var(--coi-text);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
}

.coi-stage-card__description strong {
  color: var(--coi-blue);
  font-weight: 900;
}

.coi-stage-card__description time,
.coi-stage-card__date time {
  white-space: nowrap;
}

/* Clean standard Views field wrappers inside card */
.coi-stage-card .views-field,
.coi-stage-card .field-content {
  display: contents;
}

.coi-stage-card .views-label {
  display: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  .coi-stages-view .view-content,
  .coi-stages-view .view-content--count-1,
  .coi-stages-view .view-content--count-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .coi-stages-view .views-row::before,
  .coi-stages-view .views-row::after {
    display: none;
  }
}

@media (max-width: 760px) {
  .coi-section--stages {
    margin: 18px 0;
  }

  .coi-stages {
    padding: 22px;
  }

  .coi-stages__title {
    margin-bottom: 18px;
  }

  .coi-stages-view .view-content,
  .coi-stages-view .view-content--count-1,
  .coi-stages-view .view-content--count-2 {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .coi-stage-card {
    min-height: 0;
    gap: 12px;
    padding: 18px;
  }

  .coi-stage-card__body {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
  }

  .coi-stage-card__icon img {
    width: 56px;
    height: 56px;
  }

  .coi-stage-card__title-pill {
    min-height: 32px;
    margin-bottom: 10px;
    padding: 7px 14px;
    font-size: 15px;
  }

  .coi-stage-card__date {
    font-size: 14px;
  }

  .coi-stage-card__description {
    font-size: 13.5px;
  }
}

.gallery-btn{
    border: 1px solid;  
    width: fit-content;
    max-width: 100%;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    margin: 0 0 12px;
    padding: 7px 16px;
    border-radius: 999px;
    background: #ffffff;
    color: #69b84f;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 900;
    box-shadow: 0 6px 12px rgba(105, 184, 79, 0.24);
}

.coi-stage-card__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.coi-stage-card__title-pill {
  margin: 0;
}

.coi-stage-card__head .gallery-btn {
  margin-left: auto;
}

.coi-stage-card__date--period {
  flex-basis: 100%;
}