:root {
  --blue: #1b374d;
  --link: #0e6db1;
  --yellow: #f4ab06;
  --yellow-dark: #ed9e00;
  --text: #333333;
  --muted: #7d7d7d;
  --light: #f5f5f5;
  --border: #e7e9ec;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Open Sans", Arial, sans-serif;
  color: var(--text);
  background: #ffffff;
}

a {
  color: var(--link);
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 94px;
  padding: 12px 64px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 14px rgba(27, 55, 77, 0.08);
}

.brand img {
  width: 218px;
  height: auto;
}

.main-nav,
.site-footer nav,
.language-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.main-nav a,
.site-footer nav a,
.language-switch a {
  font-family: Lato, Arial, sans-serif;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  color: #1c3446;
  text-transform: uppercase;
}

.main-nav a:hover,
.main-nav .active,
.site-footer nav a:hover,
.language-switch .active {
  color: var(--link);
}

.support-link::before {
  content: "$";
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-right: 8px;
  border: 2px solid var(--yellow);
  border-radius: 50%;
  color: var(--yellow);
  font-size: 14px;
}

.user-button {
  position: relative;
  width: 25px;
  height: 25px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.user-button::before,
.user-button::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
}

.user-button::before {
  top: 1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.user-button::after {
  bottom: 1px;
  width: 22px;
  height: 12px;
  border-radius: 12px 12px 4px 4px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 36px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 3px;
  margin: 7px 0;
  background: var(--blue);
}

.section {
  position: relative;
  overflow: hidden;
  padding: 108px 64px 126px;
}

.hero {
  min-height: 590px;
  display: grid;
  grid-template-columns: 1fr minmax(320px, 720px) 1fr;
  align-items: center;
  gap: 16px;
}

.hero-content {
  text-align: center;
}

h1,
h2,
h3 {
  font-family: Lato, Arial, sans-serif;
  color: var(--blue);
}

h1 {
  margin: 0 0 32px;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.2;
  font-weight: 900;
}

h2 {
  margin: 0 0 70px;
  text-align: center;
  font-size: clamp(34px, 4.5vw, 60px);
  line-height: 1.2;
  font-weight: 900;
}

h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
}

.hero p {
  max-width: 760px;
  margin: 0 auto 22px;
  font-size: 18px;
  line-height: 1.65;
}

.muted {
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  padding: 14px 30px;
  border: 0;
  border-radius: 6px;
  font-family: Lato, Arial, sans-serif;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
}

.button-primary {
  color: #ffffff;
  background: linear-gradient(190deg, var(--yellow) 9%, var(--yellow-dark) 93%);
}

.button-primary:hover {
  color: #ffffff;
  background: #feb000;
}

.hero-art {
  height: 390px;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.95;
}

.hero-art-left {
  background-image: url("assets/design/lines1.png");
  background-position: left center;
  transform: translateX(-66px);
}

.hero-art-right {
  background-image: url("assets/design/lines2.png");
  background-position: right center;
  transform: translateX(66px);
}

.schedule,
.lectures-section,
.partners-section {
  background: var(--light);
}

.schedule-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
}

.schedule-item {
  display: grid;
  grid-template-columns: 118px 1fr;
  align-items: center;
  gap: 18px;
}

.schedule-item img {
  margin: 0 auto;
}

.schedule-item p {
  margin: 0;
  line-height: 1.55;
}

.lectures-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
}

.lecture-card {
  background: #ffffff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(27, 55, 77, 0.07);
}

.lecture-card > a {
  display: block;
  height: 100%;
  color: inherit;
}

.lecture-photo {
  position: relative;
  aspect-ratio: 466 / 348;
  background: #222;
}

.lecture-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}

.lecture-photo span {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 13px 15px;
  background: var(--yellow);
  color: #ffffff;
  font-weight: 800;
  text-transform: uppercase;
}

.lecture-body {
  min-height: 250px;
  padding: 34px 32px;
}

.lecture-body h3 {
  min-height: 96px;
  font-size: 24px;
}

.lecture-body p {
  margin: 14px 0 22px;
  color: var(--muted);
}

.lecture-body a {
  font-family: Lato, Arial, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
}

.lecture-body a::after,
.lecture-body strong::after {
  content: ">";
  margin-left: 13px;
}

.lecture-body strong {
  color: var(--link);
  font-family: Lato, Arial, sans-serif;
  text-transform: uppercase;
}

.lecture-detail {
  background: #f5f5f5;
}

.video-locked {
  max-width: 1180px;
  margin: 0 auto 58px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px 28px;
  padding: 34px;
  border-radius: 6px;
  color: #ffffff;
  background: rgba(51, 51, 51, 0.82);
}

.video-locked p {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}

.video-locked span {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.82);
}

.lecture-detail-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 60px;
  align-items: start;
}

.lecture-detail h1 {
  margin-bottom: 20px;
  text-align: left;
  font-size: clamp(34px, 4.5vw, 58px);
}

.lecture-detail h2 {
  margin: 34px 0 22px;
  text-align: left;
  font-size: 34px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
}

.lecture-date {
  margin: 0;
  color: var(--link);
  font-size: 20px;
  font-weight: 800;
}

.speaker-photo {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 18px 34px rgba(27, 55, 77, 0.16);
  filter: grayscale(100%);
}

.speaker-bio p {
  margin: 0 0 18px;
  font-size: 17px;
  line-height: 1.72;
}

.donation-hero {
  text-align: center;
}

.donation-hero p {
  max-width: 920px;
  margin: 0 auto;
  font-size: 19px;
  line-height: 1.7;
}

.donation-progress,
.bank-details {
  background: var(--light);
}

.progress-stats {
  max-width: 980px;
  margin: 0 auto 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.progress-stats article,
.bank-grid article {
  padding: 30px;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(27, 55, 77, 0.06);
}

.progress-stats strong {
  display: block;
  color: var(--blue);
  font-family: Lato, Arial, sans-serif;
  font-size: 30px;
}

.progress-stats span {
  color: var(--muted);
}

.donation-scale {
  max-width: 980px;
  height: 48px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 6px;
  background: #e2e4e8;
}

.donation-scale span {
  display: grid;
  place-items: center;
  height: 100%;
  color: #ffffff;
  font-weight: 900;
  background: var(--yellow);
}

.donation-form {
  max-width: 520px;
  margin: 0 auto;
}

.bank-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.bank-grid h3 {
  margin-bottom: 18px;
}

.bank-grid p {
  overflow-wrap: anywhere;
  line-height: 1.55;
}

.story-section {
  display: grid;
  gap: 78px;
  background: #ffffff;
}

.story-row {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(300px, 1fr);
  align-items: center;
  gap: 64px;
}

.story-row:nth-child(even) img {
  order: 2;
}

.story-row img {
  width: 100%;
  max-height: 445px;
  object-fit: cover;
}

.story-row h2 {
  margin-bottom: 28px;
  text-align: left;
  font-size: clamp(30px, 3vw, 42px);
}

.story-row p {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.partner-card {
  display: block;
  min-height: 330px;
  padding: 36px 26px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  background: #ffffff;
}

.partner-card img {
  width: 100%;
  height: 60px;
  object-fit: contain;
  margin-bottom: 30px;
}

.partner-card h3 {
  text-align: center;
  margin-bottom: 16px;
}

.partner-card p {
  margin: 0;
  text-align: center;
  line-height: 1.55;
}

.socials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  background: #ffffff;
}

.socials h2 {
  max-width: 560px;
  margin: 0 0 28px;
  text-align: left;
  font-size: 34px;
}

.socials h3 {
  margin-bottom: 28px;
  font-size: 34px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 21px;
  font-weight: 700;
}

.social-link::before {
  content: "";
  width: 45px;
  height: 45px;
  flex: 0 0 45px;
  background-size: contain;
  background-repeat: no-repeat;
}

.social-tg::before {
  background-image: url("assets/design/icon-tg.png");
}

.social-fb::before {
  background-image: url("assets/design/icon-fb.png");
}

.social-ig::before {
  background-image: url("assets/design/icon-ig.png");
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 50px 64px 64px;
  background: var(--light);
}

.feedback-button {
  min-height: 46px;
  padding: 11px 20px;
  font-size: 16px;
}

.copyright {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(27, 55, 77, 0.55);
}

.modal.is-open {
  display: flex;
}

.modal-panel {
  position: relative;
  width: min(580px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 46px 70px 62px;
  border-radius: 6px;
  background: #ffffff;
}

.modal-panel h2 {
  margin-bottom: 28px;
  font-size: 34px;
}

.modal-close {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.modal-close::before,
.modal-close::after {
  content: "";
  position: absolute;
  top: 0;
  left: 19px;
  width: 2px;
  height: 40px;
  background: var(--link);
}

.modal-close::before {
  transform: rotate(45deg);
}

.modal-close::after {
  transform: rotate(-45deg);
}

.stack-form {
  display: grid;
  gap: 22px;
}

.stack-form label,
.compact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-bottom: 2px solid var(--blue);
  border-radius: 0;
  padding: 8px 0;
  font: inherit;
  color: var(--text);
  background: transparent;
}

textarea {
  border: 2px solid var(--blue);
  padding: 12px;
}

.checkbox-row {
  display: flex !important;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
  color: var(--text) !important;
}

.checkbox-row input {
  width: 18px;
  min-height: 18px;
}

.compact-form {
  display: grid;
  grid-template-columns: 1fr 100px;
  gap: 16px;
  align-items: end;
}

.compact-form .button {
  grid-column: 1 / -1;
  justify-self: center;
}

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

body.modal-open {
  overflow: hidden;
}

@media (max-width: 1100px) {
  .site-header,
  .site-footer {
    padding-inline: 28px;
  }

  .main-nav,
  .site-footer nav {
    gap: 16px;
  }

  .section {
    padding-inline: 32px;
  }

  .lectures-grid,
  .bank-grid,
  .partners-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: auto auto;
    min-height: 82px;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .main-nav,
  .language-switch {
    display: none;
  }

  .site-header.nav-open .main-nav,
  .site-header.nav-open .language-switch {
    display: flex;
    grid-column: 1 / -1;
    flex-direction: column;
    gap: 18px;
    padding: 18px 0;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 74px;
  }

  .hero-art {
    position: absolute;
    width: 260px;
    height: 320px;
    opacity: 0.45;
  }

  .hero-art-left {
    left: -110px;
    top: 160px;
    transform: none;
  }

  .hero-art-right {
    right: -95px;
    top: 270px;
    transform: none;
  }

  .schedule-grid,
  .lectures-grid,
  .partners-grid,
  .progress-stats,
  .bank-grid,
  .socials,
  .story-row,
  .lecture-detail-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .video-locked {
    grid-template-columns: 1fr;
  }

  .story-row:nth-child(even) img {
    order: 0;
  }

  .site-footer {
    justify-items: start;
  }
}

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

  .brand img {
    width: 176px;
  }

  .section {
    padding: 66px 20px 78px;
  }

  .hero p {
    font-size: 16px;
  }

  .button {
    width: 100%;
    font-size: 18px;
  }

  .schedule-item {
    grid-template-columns: 86px 1fr;
  }

  .lecture-body {
    min-height: auto;
    padding: 28px 24px;
  }

  .lecture-body h3 {
    min-height: auto;
    font-size: 22px;
  }

  .modal-panel {
    padding: 48px 24px 36px;
  }
}
