/* ==========================================================================
   ARTA SPORT — INTERNAL PAGE COMPONENTS
   Loaded after site.css. Uses the original Diz1 palette and typography.
   ========================================================================== */

/* Page foundation */
.inner-page {
  background: var(--bg);
  color: var(--ink);
}

.inner-page main {
  min-height: 70vh;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.page-section {
  padding: 92px 0;
}

.page-section.alt {
  background: #fff;
}

.page-kicker {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff0e9;
  color: var(--orange);
  font-size: 13px;
  font-weight: 800;
}

.page-title,
.page-section h2 {
  margin: 18px 0 0;
  color: var(--ink);
  font-size: clamp(38px, 5.2vw, 72px);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.page-section h2 {
  font-size: clamp(32px, 4vw, 52px);
}

.page-lead {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 42px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: var(--orange);
}

/* Shared header on internal pages */
.inner-page .site-header {
  position: sticky;
  top: 0;
  right: auto;
  bottom: auto;
  left: auto;
  z-index: 50;
  height: 86px;
  padding: 0 max(40px, calc((100% - 1400px) / 2));
  background: #0d1729;
  box-shadow: none;
}

.inner-page .site-header .logo-img {
  filter: none;
}

.inner-page .site-header .desktop-nav a[aria-current="page"] {
  color: #ff7043;
}

.inner-page .site-header .account-icon {
  border-color: rgba(255,255,255,.42);
}

.inner-page .site-header .menu-toggle {
  color: #fff;
}

.header-cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

/* Shared footer */
.inner-footer {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 50px;
  padding: 68px max(40px, calc((100% - 1180px) / 2));
  background: #0d1729;
  color: #fff;
}

.inner-footer .footer-logo {
  width: 180px;
  height: auto;
}

.inner-footer p {
  max-width: 390px;
  color: #9ba7ba;
  line-height: 1.7;
}

.inner-footer nav {
  display: grid;
  align-content: start;
  gap: 12px;
}

.inner-footer nav strong {
  margin-bottom: 6px;
}

.inner-footer nav a {
  color: #9ba7ba;
}

.inner-footer nav a:hover {
  color: #fff;
}

/* Universal buttons */
.ui-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.ui-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(234,84,36,.24);
}

.ui-button.secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

/* About page hero */
.about-hero {
  padding: 74px 0 96px;
  background:
    radial-gradient(circle at 88% 20%, rgba(234,84,36,.13), transparent 28%),
    #f8fafc;
}

.about-hero-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  align-items: end;
  gap: 70px;
}

.about-year {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  text-align: center;
}

.about-year strong {
  display: block;
  font-size: 64px;
  letter-spacing: -.06em;
}

.about-year span {
  display: block;
  max-width: 170px;
  font-size: 14px;
  line-height: 1.45;
}

/* Feature and goal cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 44px;
}

.feature-card,
.goal-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 12px 30px rgba(15,23,42,.05);
}

.feature-card span,
.goal-card span {
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
}

.feature-card h3,
.goal-card h3 {
  margin: 30px 0 0;
  font-size: 22px;
  line-height: 1.25;
}

.feature-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.timing-banner {
  overflow: hidden;
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  min-height: 430px;
  border-radius: 28px;
  background: #0d1729;
  color: #fff;
}

.timing-banner-media {
  background: url("../images/legacy/info/preview_DSC_2482_1024x683_0.jpg") center / cover;
}

.timing-banner-copy {
  padding: 68px;
}

.timing-banner-copy h2 {
  color: #fff;
}

.timing-banner-copy p {
  color: #aab4c4;
  font-size: 18px;
  line-height: 1.7;
}

/* Offers catalogue */
.offers-hero {
  padding: 72px 0 78px;
  background: linear-gradient(135deg, #fff 0 62%, #fff0e900 62%);
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 44px;
}

.page-section.offers-catalog-section {
  padding: 0;
}

.offer-card {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: #fffaf7;
  box-shadow: inset 0 0 0 1px rgba(234, 84, 36, .32), 0 10px 28px rgba(15, 23, 42, .08);
}

.offer-card-image {
  display: block;
  width: calc(100% + 36px);
  height: 205px;
  margin: -18px -18px 18px;
  object-fit: cover;
}

.offer-card > span {
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
}

.offer-card p {
  color: var(--muted);
  line-height: 1.6;
}

.offer-card ul {
  margin: 6px 0 26px;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}

.offer-card .ui-button {
  align-self: stretch;
  margin-top: auto;
}

.offer-card h3 {
  margin: 10px 0 0;
  color: var(--orange);
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -.015em;
}

.offer-card .ui-button {
  min-height: 46px;
  border-radius: 999px;
  font-size: 16px;
}

.offer-card .ui-button.secondary {
  border-color: transparent;
  background: var(--orange);
  color: #fff;
}

/* Event and service image hero */
.image-hero {
  position: relative;
  min-height: 660px;
  display: flex;
  align-items: flex-end;
  padding: 86px 0;
  background: #0d1729 center / cover no-repeat;
  color: #fff;
}

.image-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6,17,33,.96) 0%, rgba(6,17,33,.75) 48%, rgba(6,17,33,.2) 100%);
}

.event-image-hero {
  background-image: url("../images/legacy/events/event-ski.jpg");
}

.service-image-hero {
  background-image: url("../images/legacy/services/event-organization/hero.jpg");
}

.image-hero-content {
  position: relative;
  z-index: 1;
}

.image-hero .breadcrumbs,
.image-hero .breadcrumbs a,
.image-hero .page-lead {
  color: rgba(255,255,255,.76);
}

.image-hero .page-title {
  max-width: 940px;
  color: #fff;
}

.event-image-hero .event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.event-image-hero .event-meta span {
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
}

.event-image-hero .event-meta.reveal-item.is-visible,
.event-image-hero .event-meta.reveal-item.is-visible span {
  color: #ffffff;
}

/* Contacts page */
.contacts-hero {
  padding: 150px 0 90px;
  color: #ffffff;
  background: linear-gradient(120deg, #241f2b 0%, #10273f 58%, #0c3552 100%);
}
.contacts-hero .breadcrumbs,
.contacts-hero .breadcrumbs a,
.contacts-hero .page-lead { color: rgba(255,255,255,.76); }
.contacts-hero .page-title { color: #ffffff; }
.contacts-hero .page-lead { max-width: 700px; }
.contacts-layout { display: grid; grid-template-columns: .85fr 1.3fr; gap: 28px; align-items: stretch; }
.contacts-person-card,
.requisite-card { border: 1px solid var(--line); border-radius: var(--radius); background: #ffffff; box-shadow: 0 16px 38px rgba(15,23,42,.08); }
.contacts-person-card { padding: 42px; background: #2c384e; color: #fff; }
.contacts-person-card h2 { margin: 10px 0 34px; color: #fff; font-size: clamp(32px,4vw,48px); line-height: 1.08; }
.contacts-links { display: grid; gap: 10px; }
.contacts-links a { width: fit-content; font-weight: 800; }
.contacts-links .contacts-phone { color: var(--orange); font-size: 24px; }
.contacts-requisites { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.requisite-card { padding: 34px; }
.requisite-card > span { color: var(--orange); font-size: 13px; font-weight: 900; }
.requisite-card h2 { min-height: 70px; margin: 12px 0 22px; font-size: 25px; line-height: 1.18; }
.requisite-card address { min-height: 70px; color: var(--muted); font-style: normal; line-height: 1.65; }
.requisite-card dl { margin: 22px 0 0; border-top: 1px solid var(--line); }
.requisite-card dl div { display: flex; justify-content: space-between; gap: 20px; padding-top: 14px; }
.requisite-card dt { color: var(--muted); font-size: 12px; font-weight: 800; }
.requisite-card dd { margin: 0; font-weight: 800; }
.contacts-documents { display: grid; grid-template-columns: minmax(230px, .85fr) minmax(0, 1.3fr); gap: 28px; margin-top: 28px; border: 1px solid rgba(234,84,36,.28); border-radius: var(--radius); padding: 28px; background: #fffaf7; box-shadow: 0 16px 38px rgba(15,23,42,.06); }
.contacts-documents-heading > span { color: var(--orange); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.contacts-documents-heading h2 { margin: 8px 0 0; font-size: clamp(24px,3vw,34px); line-height: 1.12; }
.contacts-documents-list { display: grid; }
.contacts-documents-list a { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 50px; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 750; }
.contacts-documents-list a:first-child { border-top: 1px solid var(--line); }
.contacts-documents-list a span { flex: 0 0 auto; color: var(--orange); font-size: 20px; transition: transform .2s ease; }
.contacts-documents-list a:hover { color: var(--orange); }
.contacts-documents-list a:hover span { transform: translateX(4px); }
.contact-panel > div > p { max-width: 440px; color: var(--muted); line-height: 1.7; }
.contacts-consent { display: flex !important; grid-template-columns: none !important; align-items: center; gap: 10px; }
.contacts-consent input { width: 20px; height: 20px; margin: 0; accent-color: var(--orange); }

@media (max-width: 980px) {
  .contacts-layout { grid-template-columns: 1fr; }
}
@media (max-width: 719px) {
  .contacts-hero { padding: 120px 0 68px; }
  .contacts-requisites { grid-template-columns: 1fr; }
  .contacts-documents { grid-template-columns: 1fr; padding: 24px; }
  .contacts-person-card,
  .requisite-card { padding: 26px; }
  .requisite-card h2,
  .requisite-card address { min-height: 0; }
}

/* Source-aligned About page */
.about-source-hero .about-hero-grid { grid-template-columns: minmax(0, 900px); }
.about-source-hero .page-lead { max-width: 760px; }
.about-goals { display: grid; grid-template-columns: .8fr 1.2fr; gap: 58px; align-items: start; }
.about-goal-grid { display: grid; gap: 18px; }
.about-goal-grid article { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 12px 30px rgba(15,23,42,.07); }
.about-goal-grid span { color: var(--orange); font-size: 13px; font-weight: 900; }
.about-goal-grid h3 { margin: 0; font-size: 23px; }
@media (max-width: 900px) { .about-goals { grid-template-columns: 1fr; gap: 28px; } }

.about-text-page { padding: 92px 0; }
.about-text-page > .container { max-width: 980px; }
.about-text-page .page-title { margin: 20px 0 48px; }
.about-text-block { color: var(--ink); font-size: 18px; line-height: 1.75; }
.about-text-block h2 { margin: 46px 0 18px; font-size: 25px; line-height: 1.25; }
.about-text-block h2:first-child { margin-top: 0; }
.about-text-block p { margin: 0; color: var(--muted); }
.about-text-block ul { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.about-text-block li { position: relative; padding-left: 24px; color: var(--muted); }
.about-text-block li::before { content: "•"; position: absolute; left: 0; color: var(--orange); font-weight: 900; }
@media (max-width: 719px) {
  .about-text-page { padding-top: 112px; }
  .about-text-page .page-title { margin-bottom: 34px; }
  .about-text-block { font-size: 16px; }
}

.events-page-hero {
  padding: 150px 0 72px;
  background: linear-gradient(135deg, #fff 0 62%, #fff0e900 62%);
}

/* Partners directory */
.partners-page-hero { padding: 72px 0 78px; background: linear-gradient(135deg, #fff 0 62%, #fff0e900 62%); }
.partners-page-hero .page-lead { max-width: 760px; }
.partners-directory { background: #f8fafc; }
.partner-directory-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px 18px; }
.partner-directory-card { min-width: 0; display: grid; grid-template-rows: 112px auto; gap: 12px; color: var(--ink); transition: transform .2s ease; }
.partner-directory-card:hover { transform: translateY(-4px); }
.partner-directory-card > span,
.partner-directory-card img { box-sizing: border-box; width: 100%; height: 112px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 10px 24px rgba(15,23,42,.07); transition: border-color .2s ease, box-shadow .2s ease; }
.partner-directory-card > span { display: grid; place-items: center; padding: 12px; color: #2c384e; font-size: 15px; font-weight: 900; }
.partner-directory-card img { display: block; object-fit: contain; object-position: center; }
.partner-directory-card h3 { margin: 0 4px; color: var(--ink); line-height: 1.25; }
.partner-directory-card:hover > span,
.partner-directory-card:hover img { border-color: rgba(234,84,36,.55); box-shadow: 0 14px 30px rgba(15,23,42,.11); }

@media (max-width: 1180px) { .partner-directory-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px) { .partner-directory-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 650px) { .partner-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.events-catalogue { background: #f8fafc; }
.events-results-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 0 0 28px; }
.events-results-head h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); }
.events-results-head span { color: var(--muted); font-weight: 800; }
.events-page .event-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1180px) {
  .events-page .event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 719px) {
  .events-page-hero { padding: 112px 0 52px; }
  .events-page .event-grid { grid-template-columns: 1fr; }
  .events-results-head { align-items: start; flex-direction: column; }
}

/* Unified internal-page rhythm. These rules intentionally come last so
   page-specific legacy styles share the same shell without changing content. */
.inner-page .container {
  width: min(var(--page-width), calc(100% - (var(--page-gutter) * 2)));
  max-width: none;
}

.inner-page main {
  font-size: var(--text-size);
  line-height: var(--text-line);
}

.inner-page .page-section {
  padding: var(--section-space) 0;
}

.inner-page .page-section.about-text-page {
  padding: 92px 0;
}

.inner-page .page-section.offers-catalog-section {
  padding: 0;
}

.inner-page .about-hero,
.inner-page .offers-hero,
.inner-page .events-page-hero,
.inner-page .contacts-hero {
  padding: 72px 0;
}

.inner-page .image-hero {
  min-height: 620px;
  padding: 72px 0;
}

.inner-page .breadcrumbs {
  margin-bottom: 32px;
  font-size: 14px;
  line-height: 1.4;
}

.inner-page .page-title {
  margin: 18px 0 0;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -.04em;
}

.inner-page .page-section h2,
.inner-page .events-results-head h2 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -.03em;
}

.inner-page .page-lead {
  margin-top: 22px;
  font-size: 18px;
  line-height: 1.65;
}

.inner-page .feature-card,
.inner-page .goal-card,
.inner-page .offer-card,
.inner-page .side-card,
.inner-page .contacts-person-card,
.inner-page .requisite-card,
.inner-page .auth-card {
  border-radius: var(--card-radius);
}

.inner-page .feature-card,
.inner-page .goal-card,
.inner-page .side-card,
.inner-page .contacts-person-card,
.inner-page .requisite-card {
  padding: var(--card-padding);
}

.inner-page .ui-button,
.inner-page .primary-btn,
.inner-page .header-cta {
  min-height: 48px;
  font-size: 15px;
  line-height: 1.2;
}

.inner-page .ui-form {
  gap: 16px;
}

.inner-page .ui-form input,
.inner-page .ui-form textarea,
.inner-page .ui-form select {
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.4;
}

.inner-page .content-block + .content-block {
  margin-top: 64px;
}

.inner-page .offers-grid,
.inner-page .feature-grid {
  margin-top: 40px;
}

@media (max-width: 719px) {
  .inner-page .container {
    width: min(var(--page-width), calc(100% - 36px));
  }

  .inner-page .page-section {
    padding: var(--section-space-mobile) 0;
  }

  .inner-page .page-section.about-text-page {
    padding: 72px 0;
  }

  .inner-page .page-section.offers-catalog-section {
    padding: 0;
  }

  .inner-page .about-hero,
  .inner-page .offers-hero,
  .inner-page .events-page-hero,
  .inner-page .contacts-hero {
    padding: 52px 0;
  }

  .inner-page .image-hero {
    min-height: 540px;
    padding: 52px 0;
  }

  .inner-page .page-title {
    font-size: clamp(36px, 11vw, 48px);
  }

  .inner-page .page-lead {
    font-size: 17px;
  }

  .inner-page .feature-card,
  .inner-page .goal-card,
  .inner-page .side-card,
  .inner-page .contacts-person-card,
  .inner-page .requisite-card {
    padding: 22px;
  }
}

/* Countdown */
.countdown-card {
  position: absolute;
  right: max(18px, calc((100% - 1180px) / 2));
  bottom: 28px;
  z-index: 3;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  width: min(590px, calc(100% - 36px));
  max-width: 590px;
  margin: 0;
  padding: 13px 14px;
  border-radius: 0;
  color: #ffffff;
  background: rgba(5, 9, 13, .94);
  box-shadow: none;
}

.countdown-card > strong {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 25px;
  text-transform: uppercase;
}

.countdown-title > span { font-size: 27px; }

.countdown-values {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.countdown-values span {
  position: relative;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 3px;
  min-width: 58px;
  text-align: center;
}

.countdown-values span:not(:last-child)::after {
  content: ":";
  position: absolute;
  right: -8px;
  bottom: 8px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

.countdown-values strong {
  display: grid;
  width: 58px;
  height: 48px;
  place-items: center;
  border-radius: 5px;
  color: #ffffff;
  background: #1a2b50;
  font-size: 29px;
  line-height: 1;
}

.countdown-values small {
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .02em;
}

/* Two-column content layouts */
.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 58px;
}

.content-block + .content-block {
  margin-top: 74px;
}

.content-block p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.fact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.fact-cards div {
  padding: 24px;
  border-radius: 18px;
  background: #fff0e9;
}

.fact-cards strong {
  display: block;
  color: var(--orange);
  font-size: 34px;
}

.fact-cards span {
  color: var(--muted);
  font-size: 13px;
}

/* Participants by age groups */
.participants-total {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 24px;
}

.participants-total strong {
  color: var(--orange);
  font-size: 34px;
}

.participants-total span {
  color: var(--muted);
  font-size: 14px;
}

.participants-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.participants-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}

.participants-tab span {
  color: var(--muted);
  font-size: 12px;
}

.participants-tab:hover {
  border-color: var(--orange);
}

.participants-tab.is-active {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}

.participants-tab.is-active span {
  color: rgba(255,255,255,.85);
}

.participants-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.participant-row {
  display: grid;
  grid-template-columns: 44px 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.participant-num {
  color: var(--muted);
  font-size: 13px;
}

.participant-name {
  font-size: 15px;
}

.participant-city {
  color: var(--muted);
  font-size: 13px;
}

.participant-bib {
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
}

.participant-empty {
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 720px) {
  .participant-row {
    grid-template-columns: 32px 1fr auto;
    padding: 12px 14px;
  }

  .participant-city {
    display: none;
  }
}

/* Event series: grouped annual events (cards in a 4-column grid like event cards) */
.series-section {
  margin-top: 12px;
  margin-bottom: 34px;
}

.series-grid {
  margin-top: 24px;
}

.series-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--orange);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff7ed, #ffffff);
  box-shadow: 0 10px 28px rgba(15,23,42,.08);
  overflow: hidden;
}

.series-image {
  width: 100%;
  height: 205px;
  object-fit: cover;
  transition: transform .4s;
}

.series-card:hover .series-image {
  transform: scale(1.04);
}

.series-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  flex-grow: 1;
}

.series-badge {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff0e9;
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
}

.series-body h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.35;
}

.series-body p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.series-count {
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
}

.series-body .series-toggle {
  margin-top: auto;
  align-self: flex-start;
}

.series-history {
  border-top: 1px solid var(--line);
  padding: 20px;
  background: #fdfbf8;
}

.series-years {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.series-year {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}

.series-year:hover {
  border-color: var(--orange);
}

.series-year.is-active {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}

.series-editions {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.series-edition {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.series-edition-head strong {
  color: var(--orange);
  font-size: 15px;
}

.series-edition-head a {
  display: block;
  margin-top: 4px;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
}

.series-edition-head a:hover {
  color: var(--orange);
}

.series-edition-head span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.series-edition-materials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.series-material {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: inherit;
  font-size: 12px;
  text-decoration: none;
  transition: border-color .2s;
}

.series-material b {
  color: var(--orange);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 10px;
}

.series-material:hover {
  border-color: var(--orange);
}

@media (max-width: 720px) {
  .series-image {
    height: 170px;
  }
}

.side-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 35px rgba(15,23,42,.06);
}

.side-card + .side-card {
  margin-top: 18px;
}

.side-card h3 {
  margin: 0 0 20px;
}

.side-card dl {
  margin: 0;
}

.side-card dl div {
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.side-card dt {
  color: var(--muted);
  font-size: 12px;
}

.side-card dd {
  margin: 5px 0 0;
  font-weight: 700;
}

/* Program and document lists */
.program-list,
.document-list,
.deliverables {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.program-row,
.document-row,
.deliverables li {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.program-row time,
.document-row > span,
.deliverables li > span {
  color: var(--orange);
  font-weight: 900;
}

.program-row small,
.document-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.deliverables {
  grid-template-columns: repeat(2, 1fr);
  padding: 0;
  list-style: none;
}

.deliverables li {
  grid-template-columns: 46px 1fr;
}

/* Contact and standard forms */
.contact-panel {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 60px;
  padding: 60px;
  border-radius: 28px;
  background: #0d1729;
  color: #fff;
}

.contact-panel h2 {
  color: #fff;
}

.contact-panel > div > a {
  display: inline-block;
  margin-top: 24px;
  color: #ff7043;
  font-size: 24px;
  font-weight: 800;
}

.ui-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ui-form label {
  display: grid;
  gap: 8px;
  color: inherit;
  font-size: 14px;
  font-weight: 700;
}

.ui-form .full {
  grid-column: 1 / -1;
}

.ui-form input,
.ui-form textarea,
.ui-form select {
  width: 100%;
  min-height: 50px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.ui-form textarea {
  min-height: 120px;
  resize: vertical;
}

.form-success {
  color: #73df97;
  font-weight: 700;
}

.is-hidden {
  display: none !important;
}

/* Authentication page */
.auth-page {
  min-height: 100vh;
  background: #eef2f7;
}

.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 86px);
}

.auth-story {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 64px;
  background: url("../images/legacy/events/event-run.jpg") center / cover;
  color: #fff;
}

.auth-story::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,19,37,.95), rgba(7,19,37,.15));
}

.auth-story-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.auth-story h1 {
  margin: 16px 0;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1;
}

.auth-panel {
  display: grid;
  place-items: center;
  padding: 48px 24px;
}

.auth-card {
  width: min(520px, 100%);
  padding: 38px;
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 32px;
  padding: 5px;
  border-radius: 14px;
  background: #f1f5f9;
}

.auth-tabs button {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.auth-tabs button.is-active {
  background: #fff;
  box-shadow: 0 4px 12px rgba(15,23,42,.08);
}

.auth-heading h2 {
  margin: 0 0 24px;
  font-size: 36px;
}

.auth-card .ui-form {
  grid-template-columns: 1fr;
}

.auth-check {
  grid-template-columns: auto 1fr !important;
  align-items: center;
}

.auth-check input {
  width: 20px;
  min-height: 20px;
}

.js-reset-link,
.js-login-link {
  justify-self: start;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--orange);
  font: inherit;
  font-weight: 800;
}

/* Full service page: detailed content from the original ARTA Sport page. */
.service-deliverables {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 42px 0 0;
  padding: 0;
  list-style: none;
}

.service-deliverables > li {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px;
  background: #fff;
}

.service-deliverables > li.service-wide {
  grid-column: 1 / -1;
}

.service-deliverables img {
  width: 66px;
  height: 66px;
  object-fit: contain;
}

.service-deliverables span {
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
}

.service-deliverables h3 {
  margin: 7px 0 8px;
  font-size: 22px;
}

.service-deliverables p,
.service-deliverables ul,
.event-formats p,
.event-formats ul {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.service-deliverables ul {
  columns: 2;
  margin-top: 14px;
  padding-left: 20px;
}

.service-deliverables ul li {
  break-inside: avoid;
  margin-bottom: 7px;
}

.service-consultation,
.service-order-layout,
.experience-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .72fr);
  gap: 56px;
  align-items: start;
}

.service-phone {
  display: block;
  margin: 12px 0 24px;
  color: var(--orange);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
}

.diploma-link {
  color: var(--ink);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.experience-layout img {
  display: block;
  width: 100%;
  height: 330px;
  margin-top: 28px;
  border-radius: 22px;
  object-fit: cover;
}

.event-formats {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: formats;
}

.event-formats > li {
  position: relative;
  padding: 0 0 26px 56px;
  border-bottom: 1px solid var(--line);
  counter-increment: formats;
}

.event-formats > li + li {
  padding-top: 24px;
}

.event-formats > li::before {
  content: counter(formats, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  color: var(--orange);
  font-weight: 900;
}

.event-formats h3 {
  margin-bottom: 10px;
}

.service-sports-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 36px;
}

.service-sports-grid div {
  display: grid;
  min-height: 150px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: #fff;
  text-align: center;
}

.service-sports-grid img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.service-sports-grid span {
  margin-top: 12px;
  font-weight: 800;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 36px 0 28px;
}

.reviews-grid blockquote {
  margin: 0;
  border-radius: 22px;
  padding: 28px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15,23,42,.06);
}

.reviews-grid blockquote p {
  min-height: 96px;
  font-size: 18px;
  line-height: 1.6;
}

.reviews-grid blockquote footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.service-past-events {
  overflow: hidden;
  margin-top: 34px;
  border: 1px solid var(--line);
  border-radius: 22px;
}

.service-past-events a {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.service-past-events a:last-child {
  border-bottom: 0;
}

.service-past-events time {
  color: var(--orange);
  font-weight: 900;
}

.service-past-events span {
  color: var(--muted);
}

.other-offers {
  margin-top: 58px;
}

.other-offers > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.other-offers a {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  background: #fff;
  font-weight: 800;
}

/* Responsive internal pages */
@media (max-width: 980px) {
  .inner-page .site-header {
    padding-inline: 24px;
  }

  .about-hero-grid,
  .timing-banner,
  .content-layout,
  .contact-panel,
  .auth-layout,
  .service-consultation,
  .service-order-layout,
  .experience-layout {
    grid-template-columns: 1fr;
  }

  .about-year {
    width: 240px;
  }

  .feature-grid,
  .offers-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-sports-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .timing-banner-media {
    min-height: 320px;
  }

  .countdown-card {
    grid-template-columns: auto 1fr;
    text-align: left;
  }

  .auth-story {
    min-height: 520px;
  }
}

@media (max-width: 719px) {
  .event-image-hero { padding-bottom: 175px; }

  .countdown-card {
    right: 12px;
    bottom: 12px;
    grid-template-columns: 1fr;
    gap: 12px;
    width: calc(100% - 24px);
    padding: 14px;
  }

  .countdown-card > strong { justify-content: center; font-size: 22px; }
  .countdown-values { justify-content: center; }
  .countdown-values span { min-width: 52px; }
  .countdown-values strong { width: 52px; height: 46px; font-size: 26px; }
  .countdown-values small { font-size: 11px; }
}

@media (max-width: 719px) {
  .inner-page .site-header {
    height: 72px;
    padding-inline: 18px;
  }

  .header-cta {
    display: none;
  }

  .page-section {
    padding: 68px 0;
  }

  .about-hero {
    padding: 52px 0 70px;
  }

  .feature-grid,
  .offers-grid,
  .fact-cards,
  .deliverables,
  .service-deliverables,
  .service-sports-grid,
  .reviews-grid,
  .other-offers > div,
  .ui-form,
  .inner-footer {
    grid-template-columns: 1fr;
  }

  .service-deliverables > li.service-wide {
    grid-column: auto;
  }

  .service-deliverables ul {
    columns: 1;
  }

  .service-past-events a {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .image-hero {
    min-height: 580px;
    padding: 64px 0;
  }

  .countdown-values {
    gap: 10px;
  }

  .countdown-values span {
    min-width: 48px;
  }

  .countdown-values strong {
    font-size: 26px;
  }

  .program-row,
  .document-row {
    grid-template-columns: 70px 1fr;
  }

  .program-row > :last-child,
  .document-row > :last-child {
    grid-column: 2;
  }

  .contact-panel,
  .auth-story,
  .auth-card,
  .timing-banner-copy {
    padding: 30px;
  }

  .inner-footer {
    padding: 54px 22px;
  }
}

/* Compact public catalogues; preserve the remaining account layouts. */
.inner-page .offers-grid { margin-top: 0; gap: 24px; }
.offers-page .page-section.offers-catalog-section { padding-bottom: 40px; }
.offers-page .offer-card {
  min-height: 0; padding: 16px; border: 1px solid var(--orange);
  border-radius: var(--radius); background: #fffaf7;
  box-shadow: 0 10px 28px rgba(15,23,42,.08);
}
.offers-page .offer-card-image { width: calc(100% + 32px); height: 180px; margin: -16px -16px 14px; }
.offers-page .offer-card h3 { margin: 0 0 8px; overflow-wrap: anywhere; }
.offers-page .offer-card p { margin: 0 0 10px; line-height: 1.45; font-size: 16px; }
.offers-page .offer-card ul { margin: 0 0 16px; font-size: 16px; line-height: 1.45; }
.news-page .news-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.news-page .news-catalog { padding-top: 0; }
@media (min-width: 981px) {
  .offers-page .offers-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .inner-page .offers-hero, .inner-page .events-page-hero, .inner-page .contacts-hero { padding: 32px 0; }
  .offers-page .breadcrumbs, .events-page .breadcrumbs, .contacts-page .breadcrumbs, .news-page .breadcrumbs { margin-bottom: 16px; }
  .offers-page .page-title, .events-page .page-title, .contacts-page .page-title, .news-page .page-title { margin-top: 0; }
  .offers-page .page-lead, .events-page .page-lead, .contacts-page .page-lead { margin-top: 12px; }
  .events-page .events-catalogue, .contacts-page .contacts-main { padding-top: 28px; padding-bottom: 40px; }
  .events-page .events-results-head { margin-top: 24px; margin-bottom: 20px; }
}
@media (min-width: 720px) and (max-width: 980px) {
  .offers-page .offers-grid, .news-page .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 719px) {
  .offers-page .offers-grid, .news-page .news-grid { grid-template-columns: 1fr; }
}

/* Partners and contacts: compact spacing and consistent orange borders. */
.partners-page .partners-page-hero { padding: 32px 0; }
.partners-page .breadcrumbs { margin-bottom: 16px; }
.partners-page .page-title { margin-top: 0; }
.partners-page .page-lead { margin-top: 12px; }
.partners-page .page-section.partners-directory { padding: 28px 0 40px; }
.partners-page .partner-directory-grid { gap: 22px 18px; }
.partners-page .partner-directory-card { grid-template-rows: 156px auto; gap: 10px; }
.partners-page .partner-directory-card > span,
.partners-page .partner-directory-card img {
  height: 156px; padding: 16px; border: 1px solid var(--orange);
  border-radius: var(--radius); background: #fff;
}
.partners-page .partner-directory-card h3 {
  margin: 0; font-size: 16px; line-height: 1.4;
  text-align: center; overflow-wrap: anywhere;
}
.contacts-page .contacts-person-card,
.contacts-page .requisite-card { border: 1px solid var(--orange); }
.contacts-page .contacts-hero { padding: 32px 0; }
.contacts-page .breadcrumbs { margin-bottom: 16px; }
.contacts-page .page-title { margin-top: 0; }
.contacts-page .page-lead { margin-top: 12px; }
.contacts-page .page-section.contacts-main { padding: 28px 0 40px; }
@media (max-width: 650px) {
  .partners-page .partner-directory-card { grid-template-rows: 128px auto; }
  .partners-page .partner-directory-card > span,
  .partners-page .partner-directory-card img { height: 128px; padding: 12px; }
}
/* Individual news article */
.news-detail { padding: 28px 0 48px; }
.news-detail .breadcrumbs { margin-bottom: 24px; flex-wrap: wrap; }
.news-detail-header { display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: center; padding: 28px; border: 1px solid var(--orange); border-radius: var(--radius); background: #fff; }
.news-detail-header h1 { margin: 16px 0; font-size: clamp(28px, 3vw, 44px); line-height: 1.15; color: var(--orange); overflow-wrap: anywhere; }
.news-detail-date { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 0; color: #64748b; font-size: 14px; }
.news-detail-date time { padding: 5px 12px; border-radius: 30px; color: #fff; background: var(--orange); font-weight: 700; }
.news-detail-lead { margin: 0; font-size: 18px; line-height: 1.6; }
.news-detail-header img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; border-radius: 14px; }
.news-detail-body { max-width: 800px; margin: 32px auto 0; font-size: 18px; line-height: 1.7; }
.news-detail-body h2 { margin: 28px 0 12px; font-size: 26px; line-height: 1.3; }
.news-detail-body p { margin: 0 0 18px; }
.news-detail-body ul { padding-left: 24px; }
.news-detail-body li { margin-bottom: 8px; }
.news-detail-links { display: grid; gap: 10px; margin: 16px 0 24px; }
.news-detail-links a, .news-detail-source a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.news-detail-source { font-size: 14px; color: #64748b; }
.news-back { display: inline-flex; margin-top: 8px; }
.news-detail a:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
@media (max-width: 760px) {
  .news-detail-header { grid-template-columns: minmax(0, 1fr); padding: 20px; gap: 20px; }
  .news-detail-body { font-size: 16px; }
  .news-detail-body h2 { font-size: 24px; }
}
