:root {
  --blue: #0d3b70;
  --cyan: #559bfb;
  --white: #ffffff;
  --text: #153250;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Roboto", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #b2c9e4, #559bfb) no-repeat,
    radial-gradient(circle at bottom right, #fef2cd, transparent) no-repeat,
    radial-gradient(circle at top left, #c5e6f5, transparent) no-repeat;
  background-attachment: scroll;
  min-height: 100vh;
  overflow-x: hidden;
}

body.lightbox-open {
  overflow: hidden;
}

.app {
  min-height: 100vh;
  overflow-x: hidden;
}

.hero {
  width: 100%;
  min-height: 50vw;
  position: relative;
  display: grid;
  justify-items: center;
  align-items: end;
  color: var(--white);
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center top;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .42), rgba(0, 0, 0, .22));
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 34px;
  text-align: center;
  padding: 260px 20px 82px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(38px, 4vw, 64px);
  font-weight: 700;
  text-shadow: 2px 2px 4px #06753d;
}

.liquid-button {
  position: relative;
  overflow: hidden;
  min-width: 200px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: var(--blue);
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: 700;
  transform: scale(1.55);
  box-shadow: 0 0 0 rgba(114, 147, 255, 0);
  transition: box-shadow .3s;
}

.liquid-button span {
  position: relative;
  z-index: 1;
}

.liquid-button i {
  position: absolute;
  top: -64px;
  left: 0;
  width: 100%;
  height: 150px;
  background: var(--blue);
  box-shadow: inset 0 0 50px rgba(0, 0, 0, .7);
  transition: top .6s;
}

.liquid-button i::before,
.liquid-button i::after {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  top: 0;
  left: 0;
  transform: translate(-25%, -75%);
}

.liquid-button i::before {
  border-radius: 45%;
  background: rgba(255, 255, 255, .85);
  animation: wave 5s linear infinite;
}

.liquid-button i::after {
  border-radius: 40%;
  background: rgba(255, 255, 255, .45);
  animation: wave 10s linear infinite;
}

.liquid-button:hover {
  box-shadow: 0 0 5px #7293ff, inset 0 0 5px #7293ff;
}

.liquid-button:hover i {
  top: -120px;
}

@keyframes wave {
  from { transform: translate(-25%, -75%) rotate(0); }
  to { transform: translate(-25%, -75%) rotate(360deg); }
}

.container {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
}

.information {
  padding-top: 90px;
}

.technical-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.info-card-wide {
  grid-column: 1 / -1;
}

.info-card-wide p {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.info-card,
.about-card {
  width: 100%;
  color: var(--white);
  background: #0e70c2;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  padding: 26px 22px 22px;
}

.info-card h2,
.about-card h2,
.event-strip h2,
.registration-section h2,
.section-heading h2 {
  margin: 0;
  text-align: center;
  font-weight: 700;
}

.info-card h2 {
  font-size: 24px;
  line-height: 1.25;
}

.title-subline {
  display: block;
  margin-top: 4px;
  font-size: 0.82em;
}

.info-card p,
.info-card li {
  font-size: 16px;
  line-height: 1.7;
}

.info-card ol,
.info-card ul {
  margin: 14px 0 0;
  padding-left: 22px;
}

.age-list {
  columns: 2;
  column-gap: 34px;
}

.about-content {
  padding: 12px 50px 30px;
}

.about-content p {
  margin: 18px 0;
  font-size: 20px;
  line-height: 2;
  text-align: justify;
}

.event-strip {
  padding: 70px 0 25px;
}

.event-strip h2 {
  color: var(--white);
  font-size: 34px;
  margin-bottom: 28px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .22);
}

.schedule-card {
  min-height: 100px;
  border-radius: 15px;
  background: rgba(255, 255, 255, .86);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 22px 26px;
  box-shadow: 0 18px 42px rgba(10, 62, 116, .18);
}

.program-card {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.program-day {
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
  min-width: 0;
}

.date-day {
  color: var(--blue);
  font-size: clamp(38px, 5vw, 54px);
  font-weight: 900;
  line-height: 1;
}

.date-month {
  color: #336388;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.date-meta {
  font-size: 18px;
  color: #336388;
  text-transform: uppercase;
}

.schedule-title {
  color: var(--blue);
  font-size: clamp(15px, 1.7vw, 19px);
  font-weight: 700;
}

.organizer-section,
.media-section,
.registration-section {
  padding: 64px 0 22px;
}

.media-section {
  content-visibility: auto;
  contain-intrinsic-size: 900px;
}

.section-heading h2 {
  max-width: 900px;
  margin: 0 auto;
  color: var(--white);
  font-size: 30px;
  line-height: 1.35;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}

.organizers {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 58px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.organizer {
  width: 300px;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  color: var(--white);
  text-decoration: none;
}

.organizer img {
  max-width: 240px;
  max-height: 160px;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .18));
}

.organizer img.federation-logo {
  width: min(360px, 100%);
  max-width: 360px;
  max-height: 190px;
}

.organizer img.world-capital-logo {
  width: min(250px, 100%);
  max-width: 250px;
  max-height: 188px;
}

.organizer-static {
  justify-content: center;
  cursor: default;
  transform: translateY(-6px);
}

.organizer span {
  opacity: 0;
  transform: translateY(-15px);
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--blue);
  transition: all .5s ease-out;
}

.organizer:hover span {
  opacity: 1;
  transform: translateY(0);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}

.media-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 14px 34px rgba(9, 55, 111, .22);
  cursor: zoom-in;
  transform: translateZ(0);
  transition: transform .24s ease, box-shadow .24s ease, filter .24s ease;
}

.media-grid img:hover {
  box-shadow: 0 20px 44px rgba(9, 55, 111, .34);
  filter: saturate(1.08) contrast(1.04);
  transform: translateY(-6px) scale(1.025);
}

.media-more-button {
  display: block;
  min-width: 150px;
  height: 42px;
  margin: 28px auto 0;
  border: 0;
  border-radius: 6px;
  background: var(--blue);
  color: var(--white);
  font-weight: 800;
  cursor: pointer;
}

.media-more-button:hover {
  background: #0e70c2;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 34px;
  background: rgba(4, 22, 43, .88);
  backdrop-filter: blur(8px);
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox-image {
  grid-column: 2;
  max-width: 100%;
  max-height: calc(100vh - 110px);
  justify-self: center;
  border-radius: 10px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .42);
  object-fit: contain;
}

.gallery-close,
.gallery-nav {
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--blue);
  cursor: pointer;
  font-weight: 900;
}

.gallery-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  font-size: 28px;
  line-height: 1;
}

.gallery-nav {
  width: 54px;
  height: 54px;
  justify-self: center;
  font-size: 42px;
  line-height: 1;
}

.gallery-prev {
  grid-column: 1;
}

.gallery-next {
  grid-column: 3;
}

.gallery-counter {
  grid-column: 1 / -1;
  justify-self: center;
  color: var(--white);
  font-weight: 800;
}

.registration-section {
  padding-bottom: 70px;
}

.registration-section h2 {
  color: var(--white);
  font-size: 40px;
}

.closed {
  margin: 16px auto 26px;
  color: var(--white);
  text-align: center;
  font-size: 18px;
  font-weight: 700;
}

.form-status {
  max-width: 900px;
  margin: 0 auto 14px;
  border-radius: 8px;
  padding: 12px 14px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.form-status.success {
  color: #0c5132;
  background: #d9f7e7;
  border: 1px solid #8bd8aa;
}

.form-status.error {
  color: #842029;
  background: #f8d7da;
  border: 1px solid #f1aeb5;
}

.registration-form {
  border-radius: 15px;
  background: rgba(255, 255, 255, .88);
  padding: 28px;
  box-shadow: 0 18px 46px rgba(9, 55, 111, .18);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

label {
  display: grid;
  gap: 7px;
  color: #244a68;
  font-weight: 700;
  font-size: 14px;
}

input,
select {
  width: 100%;
  height: 44px;
  border: 1px solid #c2d6e8;
  border-radius: 6px;
  padding: 0 12px;
  font: inherit;
  font-size: 16px;
  color: #55728a;
  background: #f4f8fb;
}

.phone-field {
  display: grid;
  gap: 7px;
}

.dob-input-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  align-items: center;
  border: 1px solid #c2d6e8;
  border-radius: 6px;
  background: #f4f8fb;
  overflow: visible;
}

.dob-input-wrap:focus-within {
  border-color: #1d80df;
  box-shadow: 0 0 0 2px rgba(29, 128, 223, .14);
}

.dob-input-wrap input {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.dob-calendar {
  height: 44px;
  min-width: 52px;
  border-left: 1px solid #c2d6e8 !important;
  color: transparent;
  cursor: pointer;
}

.dob-calendar::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: .8;
}

.phone-input-wrap {
  display: grid;
  grid-template-columns: minmax(176px, 210px) minmax(0, 1fr);
  align-items: center;
  border: 1px solid #c2d6e8;
  border-radius: 6px;
  background: #f4f8fb;
  overflow: hidden;
}

.phone-input-wrap:focus-within {
  border-color: #1d80df;
  box-shadow: 0 0 0 2px rgba(29, 128, 223, .14);
}

.phone-input-wrap input {
  border: 0;
  border-radius: 0;
  background: transparent;
  min-width: 0;
}

.phone-country-control {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  min-width: 0;
  height: 44px;
  border-right: 1px solid #c2d6e8;
  background: #e6f0f9;
}

.phone-country-flag {
  width: 24px;
  height: 18px;
  margin: 0 auto;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(13, 59, 112, .16);
}

.phone-country-select {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  width: 52px;
  height: 44px;
  min-width: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: #153250;
  background: transparent;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
}

.phone-code-manual {
  height: 44px;
  padding: 0 12px;
  border-left: 1px solid #c2d6e8 !important;
  color: #153250;
  font-weight: 700;
  text-align: left;
}

.phone-code-manual::placeholder {
  color: #55728a;
  opacity: 1;
}

.registration-form input[type="file"] {
  padding: 8px 12px;
  height: 44px;
}

.registration-form .file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.upload-field {
  position: relative;
}

.upload-card {
  min-height: 76px;
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 12px;
  border: 1px dashed #8fb7d8;
  border-radius: 8px;
  padding: 12px;
  color: #2a5270;
  background: #f7fbff;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.upload-card:hover,
.upload-card:focus-visible {
  border-color: var(--blue);
  background: #edf7ff;
  box-shadow: 0 0 0 2px rgba(29, 128, 223, .12);
  outline: 0;
}

.upload-card.has-file {
  border-style: solid;
  border-color: #48a868;
  background: #f0fbf4;
}

.upload-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--blue);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.upload-card strong,
.upload-card small,
.upload-card em {
  display: block;
}

.upload-card small {
  margin-top: 3px;
  color: #5c7890;
  font-size: 12px;
}

.upload-card em {
  margin-top: 5px;
  color: #416b88;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.registration-form input[readonly] {
  background: #eef4fa;
}

.registration-form input.has-error,
.registration-form select.has-error,
.dob-input-wrap:has(input.has-error),
.phone-input-wrap:has(input.has-error) {
  border-color: #c83737;
  box-shadow: 0 0 0 2px rgba(200, 55, 55, .12);
}

.field-error {
  display: block;
  color: #b02a37;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.registration-form button {
  display: block;
  min-width: 160px;
  height: 42px;
  margin: 26px auto 0;
  border: 0;
  border-radius: 6px;
  background: var(--blue);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
}

.registration-form button:hover {
  background: #0e70c2;
}

.registration-form button:disabled {
  cursor: wait;
  opacity: .72;
}

select option {
  font-family: "Roboto", Arial, sans-serif;
}

footer {
  width: 100%;
  margin-top: 20px;
  position: relative;
  bottom: 0;
}

footer h6 {
  color: #e6eef5;
  font-size: 12px;
  margin: 0;
  padding-bottom: .6rem;
  text-align: center;
}

@media (max-width: 990px) {
  .container {
    width: min(100% - 24px, 760px);
  }

  .hero {
    min-height: 60vw;
  }

  .hero-content {
    padding-top: 210px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .liquid-button {
    transform: scale(1.1);
  }

  .information {
    padding-top: 45px;
  }

  .about-card h2,
  .registration-section h2 {
    font-size: 30px;
  }

  .technical-section {
    grid-template-columns: 1fr;
  }

  .age-list {
    columns: 1;
  }

  .about-content {
    padding: 12px 18px 24px;
  }

  .about-content p {
    font-size: 14px;
    line-height: 1.8;
  }

  .schedule-card,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .schedule-card {
    text-align: center;
  }

  .program-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .date-day {
    font-size: 46px;
  }

  .media-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 20px, 440px);
  }

  .hero {
    min-height: 92vw;
    background-position: center top;
  }

  .hero-content {
    gap: 22px;
    padding: 180px 16px 54px;
  }

  .hero h1 {
    font-size: 32px;
    line-height: 1.1;
  }

  .liquid-button {
    min-width: 150px;
    height: 40px;
    font-size: 12px;
    transform: none;
  }

  .section-heading h2,
  .event-strip h2 {
    font-size: 24px;
  }

  .information {
    padding-top: 30px;
  }

  .organizer-section,
  .media-section,
  .registration-section {
    padding: 42px 0 18px;
  }

  .info-card,
  .about-card {
    border-radius: 10px;
    padding: 20px 18px 18px;
  }

  .info-card h2 {
    font-size: 21px;
  }

  .info-card p,
  .info-card li {
    font-size: 15px;
    line-height: 1.62;
  }

  .info-card ol,
  .info-card ul {
    padding-left: 18px;
  }

  .event-strip {
    padding: 48px 0 18px;
  }

  .schedule-card {
    gap: 12px;
    padding: 18px 14px;
    border-radius: 10px;
  }

  .program-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .date-day {
    font-size: 42px;
  }

  .date-month {
    font-size: 13px;
  }

  .schedule-title {
    font-size: 15px;
  }

  .organizers {
    gap: 28px;
    margin-top: 28px;
  }

  .organizer {
    width: min(100%, 260px);
    min-height: 176px;
  }

  .organizer img {
    max-width: 210px;
    max-height: 120px;
  }

  .organizer span {
    opacity: 1;
    transform: none;
  }

  .media-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 28px;
  }

  .media-grid img {
    border-radius: 10px;
  }

  .media-grid img:hover {
    box-shadow: 0 14px 34px rgba(9, 55, 111, .22);
    filter: none;
    transform: translateZ(0);
  }

  .gallery-lightbox {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr auto auto;
    gap: 12px;
    padding: 56px 14px 22px;
  }

  .gallery-lightbox-image {
    grid-column: 1 / -1;
    max-height: calc(100vh - 104px);
    border-radius: 8px;
  }

  .gallery-nav {
    width: 48px;
    height: 40px;
    justify-self: center;
    font-size: 32px;
  }

  .gallery-prev,
  .gallery-next {
    grid-column: auto;
  }

  .gallery-counter {
    grid-column: 1 / -1;
  }

  .gallery-close {
    top: 12px;
    right: 12px;
  }

  .registration-section h2 {
    font-size: 32px;
  }

  .closed {
    font-size: 16px;
    line-height: 1.45;
  }

  .registration-form {
    border-radius: 10px;
    padding: 18px;
  }

  .field-grid {
    gap: 16px;
  }

  input,
  select {
    min-height: 46px;
  }

  .dob-input-wrap {
    grid-template-columns: minmax(0, 1fr) 48px;
  }

  .phone-input-wrap {
    grid-template-columns: 1fr;
  }

  .phone-country-select {
    border-right: 0;
  }

  .phone-country-control {
    grid-template-columns: 52px minmax(0, 1fr);
    border-right: 0;
    border-bottom: 1px solid #c2d6e8;
  }

  .upload-card {
    grid-template-columns: 40px 1fr;
    padding: 11px;
  }

  .upload-icon {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 380px) {
  .container {
    width: min(100% - 16px, 360px);
  }

  .program-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .date-day {
    font-size: 38px;
  }

  .registration-form {
    padding: 14px;
  }

  input::placeholder {
    font-size: 14px;
  }
}
