/* app.css — Custom styles replacing Bootstrap, improved layout & responsiveness */

:root {
  --g1: #004e3b;
  --g2: #036f4c;
  --g3: #05965d;
  --g4: #34c67d;
  --b1: #0a6970ff;
  --b2: #044549ff;
  --bs-white-rgb: 255, 255, 255;
  --bs-bg-opacity: 1;
  --bs-body-line-height: 1.5;
  --bs-body-font-weight: 400;
  --container-max: 1350px;
  --container-padding: 3.5rem;
  --base-font-size: 1.35rem;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: var(--base-font-size); /* 1.05rem ≈ 16.8px */
  line-height: 1.6;
  background-color: #ffffff;
  color: #212529;
  overflow-x: hidden; /*временное решение**/
  height: 100%;
}

.w-100 {
  width: 100%;
}

.row {
  display: flex;
  flex-direction: row;
}

.column {
  display: flex;
  flex-direction: column;
}

.justify-content-center {
  display: flex;
  justify-content: center;
}

.justify-content-between {
  display: flex;
  justify-content: space-between;
}

.align-items-center {
  display: flex;
  align-items: center;
}

.align-items-start {
  display: flex;
  align-items: flex-start;
}

.mt-5 {
  margin-top: 5px;
}

.mt-10 {
  margin-top: 10px;
}

.mt-15 {
  margin-top: 15px;
}

.mt-20 {
  margin-top: 20px;
}

.mt-30 {
  margin-top: 30px;
}

.pt-5 {
  margin-top: 5px;
}

.pt-10 {
  margin-top: 10px;
}

.pt-15 {
  margin-top: 15px;
}

.pt-20 {
  margin-top: 20px;
}

.pt-30 {
  margin-top: 30px;
}

.pr-15 {
  padding-right: 15px;
}

.text-15 {
  font-size: 15px;
}

.text-16 {
  font-size: 16px;
}

.text-18 {
  font-size: 18px;
}

.text-20 {
  font-size: 20px;
}

#hero {
  background: linear-gradient(
    180deg,
    rgba(14, 115, 128, 1) 0%,
    #0d5663 30%,
    #137a52ff 60%,
    rgba(14, 128, 84, 1) 120%
  );
  color: rgba(var(--bs-white-rgb), var(--bs-bg-opacity));
  position: relative;
  overflow: hidden;
  /* padding: 2rem 0; */
}

.hero-container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  padding-bottom: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* gap: 1rem; */
  position: relative;
  z-index: 1;
}

.hero-header {
  align-items: start;
  width: 100%;
}

.hero-top {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hero-logo {
  width: 100%;
  margin-left: -40px;
  margin-top: 5px;
  animation: draw 1.5s ease-in-out forwards;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-left: 0.5rem;
  animation: glitch-appear 1.5s ease-out forwards;
}

.hero-logo-link {
  width: 30%;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: white;
}

.hero-logo-link:hover {
  opacity: 0.75;
  filter: brightness(0.95);
  transition: all 0.3s ease-in-out;
}

.hero-divider {
  width: 100%;
  border: none;
  border-top: 1px solid #ccc;
  margin: 0.4rem 0;
}

.hero-subtitle {
  font-size: 1.4rem;
  font-weight: 500;
  margin: 0;
}

.hero-dates {
  font-size: 1.2rem;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  margin: 0;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  opacity: 0;
  transform: scale(0.75); /* Начальный размер чуть меньше */
  transition: opacity 1.5s ease-out, transform 0.7s ease-out;
}

.lang-pill {
  border: 1px solid #fff;
  border-radius: 0.74rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.2rem;
  padding: 0.65rem 1.2rem;
  font-size: 1.1rem;
  font-weight: 400;
  color: #fff;
  background: transparent;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, border 0.25s ease;
}

.lang-pill svg {
  fill: currentColor; /* для одноцветных иконок */
  stroke: currentColor; /* если в SVG линии вместо заливки */
  transition: inherit;
  width: 21px;
  height: 21px;
}

.lang-pill .lang-icon {
  width: 21px;
  height: 21px;
  margin-right: 8px;
  background-color: currentColor;
  -webkit-mask: url("/2026/assets/globe-alt-o-svgrepo-white.svg") no-repeat
    center;
  mask: url("/2026/assets/globe-alt-o-svgrepo-white.svg") no-repeat center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.lang-pill:hover,
.lang-pill:focus-visible {
  background: #fff;
  color: #0a5e46;
  outline: 0;
}

.lang-pill:hover svg,
.lang-pill:focus-visible svg {
  fill: currentColor;
}

#sectionNav {
  margin-top: 0;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

#sectionNav .nav-link {
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.85rem 0.85rem 0 0;
}

.main-nav {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 0.75rem 0;
  overflow-x: hidden; /* чтобы ничего не вылазило */
}

.nav-links {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: start;
  gap: 1rem;
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s ease-out;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--g1);
  text-decoration: none;
  /* padding: 0.5rem 1rem; */
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--g3);
}

.past-event-link {
  color: var(--g3);
  font-size: 1.3rem;
  line-height: 1.6;
  transition: color 0.2s ease;
  text-decoration: none;
  display: block;
  padding: 0.8rem 0;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.past-event-link:hover {
  color: var(--g1);
}

/***Анимации появления контента для блока header*****/
.hero-logo,
.hero-title,
.hero-subtitle,
.hero-dates {
  opacity: 0;
  transform: translateY(-50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.hero-logo.show,
.hero-title.show,
.hero-subtitle.show,
.hero-dates.show,
.hero-divider.show,
.nav-links.show {
  opacity: 1;
  transform: translateY(0);
}

.lang-switcher.show {
  opacity: 1;
  transform: scale(1);
}

.content-section {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  /* padding-top: var(--content-padding); */
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

.content-section.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

.section-header {
  font-size: 28px;
  color: #181716;
  font-weight: 500;
  margin-bottom: 0;
  border-bottom: 0.12rem solid var(--g3);
  opacity: 0.8;
  padding-bottom: 0.12rem;
}

.section-text {
  font-size: 1.3rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 0;
}
/* triangle marker for custom-list */
.download-links {
  gap: 0.36rem;
}

.download-links a {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #048b5e; /* основной зелёный */
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}

.download-links a:hover {
  cursor: pointer;
  color: #004d33; /* более тёмный или белый — на выбор */
}

.custom-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.custom-list li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  line-height: 1.6;
  display: flex;
  align-items: center;
}

.custom-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid var(--b1);
}

.list-title {
  font-style: italic;
  font-weight: 500;
  font-size: 1.35rem;
  color: #1a1818;
}

.list-members {
  font-size: 15px;
}

.timeline-list {
  font-size: 1.3rem;
  max-width: 800px;
  margin-top: 1rem;
}

.timeline-list-item {
  display: flex;
  margin-bottom: 1rem;
}
.timeline-list-key {
  flex-grow: 1;
  white-space: nowrap;
  flex-shrink: 0;
  margin: 0;
  display: flex;
  align-items: baseline;
}

.timeline-list-key::after {
  content: "";
  width: 100%;
  margin-inline: 0.3rem;
  border-bottom: 2px dotted;
}

.timeline-list dd {
  margin: 0;
  /* white-space: nowrap; */ /**временное решение *******/
}

.organizer-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.organizer-entry {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.organizer-entry img {
  width: 180px;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
}

.organizer-entry p {
  margin: 0;
  font-size: 1.3rem; /* увеличил с 1.1rem */
  line-height: 1.5;
  color: #222;
}

.organizer-entry a {
  color: var(--g3);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease;
}

.organizer-entry a:hover {
  color: var(--g1);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--g1);
  border-bottom: 2px solid var(--g3);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.partner-list-container {
  display: flex;
  flex-wrap: wrap;
  margin-top: 2rem;
  gap: 1.5rem;
  justify-content: start;
  margin-top: 1.5rem;
}

.info-partner-card {
  width: 180px;
  height: auto;
}

/* Стили для кнопок */
.custom-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.custom-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  background-color: var(--g2);
  color: white;
}

.custom-btn:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 79, 59, 0.2);
}

/* Стили для секции места проведения */
.venue-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.venue-info {
  padding: 0.2rem 0;
  display: flex;
  flex-direction: column;
  justify-content: start;
}

.venue-list {
  list-style-type: none;
  padding-left: 0;
}

.venue-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
  line-height: 1.6;
  display: flex;
  align-items: center;
}

.venue-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 5px solid transparent; /* увеличил размер */
  border-bottom: 5px solid transparent;
  border-left: 8px solid var(--b1); /* увеличил размер и использовал зеленый */
}

.venue-map {
  width: 100%;
  height: 450px; /* начальная высота */
  border-radius: 8px;
  margin-top: 1.5rem;
  overflow: hidden;
  position: relative;
}

.venue-adress {
  display: flex;
  flex-direction: row;
}

.registration-container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  margin-top: 1.5rem;
}

.registration-info {
  grid-column: 1;
}

.registration-btn-container {
  grid-column: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.custom-btn {
  background-color: var(--g3);
  color: white;
  padding: 1rem 1.8rem;
  font-size: 1.1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  min-width: 250px;
  text-align: center;
  border: none;
  cursor: pointer;
}

.custom-btn:hover:not(:disabled) {
  background-color: var(--g2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 79, 59, 0.2);
}

.custom-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  background-color: var(--g4);
}

.publication-links {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: start;
}

.past-event-link {
  display: block;
  transition: background-color 0.2s ease;
  border-radius: 6px;
}

.publication-logo {
  width: 220px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.springer-link:hover {
  opacity: 0.7;
  transition: opacity 0.2s ease-in-out;
}

/* Venue Section */
#venue .section-text {
  font-size: 1.3rem;
  line-height: 1.6;
}

.submission-grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 2rem;
  align-items: start;
  margin-top: 1.8rem;
}

.submission-btn-container {
  display: flex;
  justify-content: center;
  align-items: start;
}

.submission-btn-container .custom-btn {
  width: 100%;
  min-width: unset;
}

@media (max-width: 1600px) {
  :root {
    --container-padding: 3rem;
    --content-padding: 2rem;
  }
}

@media (max-width: 1399px) {
  :root {
    --container-padding: 3rem;
    --content-padding: 1.8rem;
  }
}

@media (max-width: 1199px) {
  :root {
    --container-padding: 2rem;
    --content-padding: 1.6rem;
  }
}

@media (max-width: 992px) {
  :root {
    --container-padding: 1.8rem;
    --content-padding: 1.4rem;
  }
}

@media (max-width: 992px) {
  .hero-top,
  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  #sectionNav .nav-link {
    padding: 0.85rem 0 0 0;
  }

  .hero-container {
    align-items: start;
    text-align: start;
    padding-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-dates {
    font-size: 1.1rem;
  }

  .lang-pill {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
  }

  .lang-pill .lang-icon {
    width: 16px;
    height: 16px;
  }
  /* .content-section {
    padding: 0 40px 0 40px;
  } */

  .hero-logo {
    width: 100%;
    margin-left: -28px;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .nav-link {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .section-header {
    font-size: 24px;
  }

  .section-text {
    font-size: 1.1rem;
  }

  .organizer-entry img {
    width: 120px;
  }

  .timeline-list {
    font-size: 0.95rem;
  }

  .list-title {
    font-size: 1.25rem;
  }

  .custom-list li {
    font-size: 1.2rem;
  }

  .info-partner-card {
    width: 120px;
  }

  .venue-list li {
    font-size: 1.1rem;
  }

  .venue-map {
    height: 450px;
  }

  .registration-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .registration-btn-container {
    grid-column: 1;
    justify-content: stretch;
  }

  .custom-btn.registration-btn {
    width: 100%;
    padding: 1rem;
  }

  .past-event-link {
    font-size: 0.95rem;
  }

  .publication-logo {
    width: 140px;
    align-self: center;
  }

  #venue .section-text {
    font-size: 1.1rem;
    line-height: 1.6;
  }
}

@media (max-width: 768px) {
  :root {
    --container-padding: 1.5rem;
    --content-padding: 1.2rem;
  }

  .nav-links {
    width: 100%;
    flex-direction: column;
    padding: 0;
    margin: 0 auto;
    align-items: stretch;
    gap: 0;
  }

  .nav-link {
    width: 100%;
    text-align: left;
    padding: 1rem;
    box-sizing: border-box;
    border-bottom: 1px solid #e9ecef;
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .venue-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .venue-info {
    padding: 0;
    order: 2;
  }

  .organizer-entry img {
    width: 120px;
  }

  .venue-map {
    height: 500px;
    order: 1;
  }

  .venue-list li {
    padding-left: 1.1rem;
  }

  .section-text,
  .organizer-entry p,
  .timeline-list,
  .list-title,
  .custom-list li,
  .venue-list li {
    font-size: 0.95rem; /* немного меньше для мобильных, но больше чем было */
  }

  .venue-list li::before {
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 7px solid var(--g3);
  }

  .publication-logo {
    width: 160px;
  }

  .hero-logo-link {
    width: 45%;
  }

  .hero-logo {
    width: 100%;
    margin-left: -30px;
  }

  .submission-grid {
    grid-template-columns: 1fr;
  }

  .submission-btn-container {
    justify-content: stretch;
    margin-top: 1rem;
  }

  .submission-btn-container .custom-btn {
    width: 100%;
  }
}

@media (max-width: 576px) {
  :root {
    --container-padding: 1.2rem;
    --content-padding: 1rem;
  }

  .organizer-entry img {
    width: 120px;
  }

  .section-text,
  .organizer-entry p,
  .timeline-list,
  .list-title,
  .custom-list li,
  .venue-list li {
    font-size: 0.95rem; /* сохраняем читаемость на маленьких экранах */
  }

  .venue-map {
    height: 420px;
  }

  .proceedings-container {
    margin-top: 1rem;
  }
}

@media (max-width: 480px) {
  :root {
    --container-padding: 1rem;
    --content-padding: 0.8rem;
  }

  /* Общий контейнер */
  .page-container {
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
  }

  /* Навигация */
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
  }

  .nav-link {
    width: 100%;
    text-align: left;
    padding: 0.8rem;
    border-bottom: 1px solid #e9ecef;
    box-sizing: border-box;
    font-size: 0.9rem;
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  /* Герой-блок */
  .hero-logo {
    width: 100%;
    margin-left: -18px;
  }

  .hero-logo-link {
    width: 50%;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .hero-subtitle,
  .hero-dates {
    font-size: 1rem;
  }

  /* Языковая кнопка */
  .lang-pill {
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
  }

  .lang-pill .lang-icon {
    width: 16px;
    height: 16px;
  }

  /* Секции */
  .content-section {
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
  }

  .section-header {
    font-size: 1.2rem;
  }

  .section-text,
  .custom-list li,
  .timeline-list,
  .organizer-entry p {
    font-size: 0.95rem;
    word-break: break-word;
  }

  /* Блок organizer-entry */
  .organizer-entry {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .organizer-entry img {
    width: 100%;
    max-width: 120px;
    height: auto;
  }

  .organizer-entry p {
    font-size: 0.95rem;
  }

  .organizer-entry p {
    word-break: break-word;
    font-size: 0.9rem;
  }

  /* Блок important dates */
  .timeline-list-item {
    display: flex;
    flex-direction: column;
    /* align-items: flex-start; */
  }

  .timeline-list-key,
  .timeline-list dd {
    white-space: normal;
  }

  /* Карта */
  .venue-map {
    height: 400px;
  }

  /* Партнёры */
  .publication-logo {
    width: 100%;
    max-width: 120px;
  }

  /* Кнопки */
  .custom-btn {
    font-size: 0.95rem;
    padding: 0.75rem 1.2rem;
    min-width: unset;
  }

  .submission-btn-container,
  .registration-btn-container {
    justify-content: stretch;
  }

  .submission-btn-container .custom-btn,
  .custom-btn.registration-btn {
    width: 100%;
  }

  .contact-item {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .contact-icon {
    margin-bottom: 0.25rem;
  }

  .contact-link {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    word-break: break-word;
  }

  .contact-label {
    font-weight: 500;
  }

  .past-event-link {
    font-size: 0.8rem;
  }

  #venue .section-text {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .venue-list li {
    font-size: 0.84rem;
    line-height: 1.4;
  }
}

@media (max-width: 360px) {
  :root {
    --container-padding: 0.8rem;
    --content-padding: 0.7rem;
  }
}

.rhomb-wave {
  display: grid;
  grid-template-columns: repeat(auto-fill, 80px);
  grid-auto-rows: 80px;
  gap: 10px;
  transform: skewX(2deg);
  width: 100vw;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}

.rhomb-wave .rhomb {
  width: 80px;
  height: 80px;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background: var(--g3);
  animation: pulse 3s ease-in-out infinite alternate;
}

@keyframes pulse {
  from {
    transform: translateY(-8px) scale(1);
    filter: brightness(0.9);
  }
  to {
    transform: translateY(8px) scale(1.05);
    filter: brightness(1.1);
  }
}

#contact {
  padding-bottom: 5rem;
}
