:root {
  --accent: #0184a0;
  --navy: #00374b;
  --text: #3d5664;
  --muted: #5c7280;
  --line: #d3eaf1;
  --soft: #f3fafc;
  --font-family: "Montserrat", sans-serif;
  --second-family: "Inter", sans-serif;
  --container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--second-family);
  font-size: 20px;
  line-height: 1.45;
  background: #fff;
  overflow-x: clip;
}

body.is-locked {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p,
ul,
blockquote {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

h2 {
  font-family: var(--font-family);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.22;
  color: var(--navy);
  letter-spacing: -0.02em;
}

h3 {
  font-family: var(--font-family);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
}

p {
  font-size: 20px;
  line-height: 1.45;
}

a {
  color: inherit;
  text-decoration: none;
}

.center {
  text-align: center;
}

.wrap {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.section-sub {
  max-width: 1080px;
  margin: 18px auto 40px;
  text-align: center;
  font-family: var(--font-family);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--navy);
}

.lead-31 {
  margin-top: 16px;
  font-family: var(--font-family);
  font-size: 31px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border: 0;
  border-radius: 49px;
  background: linear-gradient(180deg, #00aac1 0%, #12768d 51.43%, #06768c 72.46%, #0699b0 100%);
  color: #fff;
  font-family: var(--font-family);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: 0 8px 20px rgba(1, 116, 148, 0.22);
  transition: filter 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  filter: brightness(1.06);
}

.btn:focus-visible,
.modal__close:focus-visible,
.footer a:focus-visible {
  outline: 3px solid #7ad7ea;
  outline-offset: 3px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 26px;
  margin: 22px 0 26px;
}

.meta li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-family: var(--font-family);
  font-size: 18px;
  font-weight: 600;
}

.meta img {
  width: 28px;
  height: 28px;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  background: url("../img/newbg.jpg") right center / cover no-repeat;
  padding: 48px 0;
}

.hero__inner {
  width: min(1280px, calc(100% - 48px));
  margin-inline: auto;
}

.hero__inner > * {
  max-width: 680px;
}

.hero__logo {
  width: 250px;
  height: auto;
  margin-bottom: 22px;
}

.hero__badge {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #01394d 0%, #02a4b4 100%);
  color: #fff;
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero__title {
  font-family: var(--font-family);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.hero__title span {
  display: block;
}

.hero__title .is-intro {
  font-size: 34px;
  font-weight: 600;
}

.hero__title .is-accent {
  font-size: 48px;
  font-weight: 800;
  color: var(--accent);
}

.hero__title .is-mid {
  font-size: 36px;
  font-weight: 700;
}

.hero__title .is-strong {
  font-size: 48px;
  font-weight: 800;
}

.hero__lead {
  max-width: 680px;
  margin-top: 18px;
  color: #314b59;
}

.gift {
  position: relative;
  display: flex;
  align-items: center;
  gap: 40px;
  width: fit-content;
  max-width: 100%;
  margin-top: 28px;
  padding: 14px 28px 14px 146px;
  border: 2px solid transparent;
  border-radius: 40px;
  background: transparent;
}

.gift::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(90deg, #00586c 0%, #00abd2 100%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.gift img {
  position: absolute;
  left: 0;
  top: 50%;
  width: 156px;
  height: auto;
  transform: translateY(-59%);
}

.gift__title {
  margin-left: 40px;
  font-family: var(--font-family);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--navy);
}

.gift__sum {
  color: #000;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
}

.deadline {
  position: relative;
  min-height: 811px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 48px clamp(20px, 4vw, 72px);
  background: url("../img/second-bg.jpg") left center / cover no-repeat;
}

.deadline__content {
  width: min(980px, calc(100% - 190px));
  margin-right: 190px;
}

.deadline__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.info-card,
.step,
.result,
.prize,
.fit-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(1, 70, 100, 0.06);
}

.info-card {
  padding: 22px 20px 24px;
}

.info-card img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 14px;
}

.info-card h3 {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 22px;
}

.info-card p {
  font-size: 18px;
  color: var(--muted);
}

.deadline__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
}

.deadline__cta p {
  font-family: var(--font-family);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
}

.rates {
  position: relative;
  min-height: 725px;
  display: flex;
  align-items: center;
  padding: 56px 0;
  background: url("../img/third-bg.jpg") right center / cover no-repeat;
  color: #fff;
}

.rates__content {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 48px));
  margin-inline: auto;
}

.rates__content > * {
  max-width: 680px;
}

.rates h2,
.rates p,
.rates strong {
  color: #fff;
}

.rates strong {
  font-weight: 800;
}

.rates__accent {
  display: block;
  margin-top: 8px;
  color: #3ad4ef;
}

.rates__sub {
  margin: 22px 0 16px;
  font-family: var(--font-family);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.35;
}

.rates p + p {
  margin-top: 16px;
}

.rates .btn {
  margin-top: 28px;
}

.program {
  padding: 84px 0 90px;
  background: #fff;
}

.program__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

.step {
  display: flex;
  flex-direction: column;
  padding: 26px 22px 28px;
}

.step__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.step__num {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: url("../img/programm-ellipse.png") center / cover no-repeat;
  color: #fff;
  font-family: var(--font-family);
  font-size: 26px;
  font-weight: 700;
}

.step__lead {
  margin-bottom: 16px;
  font-family: var(--font-family);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy);
}

.step__plan {
  margin-bottom: 10px;
  font-family: var(--font-family);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
}

.step__scheme {
  width: min(100%, 341px);
  margin: 0 auto 16px;
}

.checks {
  display: grid;
  gap: 12px;
}

.checks li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  font-size: 18px;
  line-height: 1.4;
  color: var(--text);
}

.checks li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
}

.after {
  padding: 72px 0 84px;
  background: var(--soft);
}

.after .wrap {
  width: min(1360px, calc(100% - 48px));
}

.after h2 {
  margin-bottom: 36px;
}

.after h2 span {
  color: #0184a0;
}

.after__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.result {
  padding: 22px 18px 24px;
}

.result__num {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-family: var(--font-family);
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}

.result h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.result p {
  font-size: 18px;
  color: var(--muted);
}

.result-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  max-width: 955px;
  margin: 28px auto 0;
  padding: 18px 28px;
  border-radius: 22px;
  background: linear-gradient(90deg, #01384c 0%, #0184a0 100%);
  color: #fff;
}

.result-banner p {
  display: grid;
  color: #fff;
  font-family: var(--font-family);
  font-size: 32px;
  line-height: 1.25;
}

.result-banner strong {
  font-weight: 700;
}

.result-banner img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.raffle {
  padding: 78px 0 84px;
  background: #01324a url("../img/bg-rozigrish.jpg") center / cover no-repeat;
  color: #fff;
}

.raffle h2,
.raffle__sub {
  color: #fff;
}

.raffle .wrap {
  width: min(1294px, calc(100% - 48px));
}

.raffle__sub {
  max-width: 820px;
  margin: 14px auto 36px;
  text-align: center;
  font-size: 30px;
  line-height: 1.4;
}

.raffle__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 388px));
  gap: 65px;
}

.prize {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 388px;
  min-height: 100%;
  padding: 22px 22px 26px;
}

.prize__top {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}

.prize__top img {
  width: 72px;
  height: 72px;
}

.prize__place {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 700;
}

.prize h3 {
  font-size: 22px;
}

.prize__set {
  margin-top: 14px;
  color: var(--text);
  font-size: 18px;
}

.prize__old {
  margin-top: auto;
  padding-top: 28px;
  color: var(--muted);
  font-size: 16px;
}

.prize__price {
  margin-top: 4px;
  color: var(--accent);
  font-family: var(--font-family);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
}

.winners {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 45px;
  width: min(680px, 100%);
  margin: 28px auto 0;
  padding: 16px 24px;
  border-radius: 20px;
  background: #06283a;
}

.winners img {
  width: 56px;
  height: 56px;
}

.winners p {
  color: #fff;
  font-family: var(--font-family);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

.winners strong {
  color: #3ad4ef;
  font-weight: 700;
}

.speaker {
  padding: 80px 0 72px;
  background: #fff;
}

.speaker__top {
  display: grid;
  grid-template-columns: minmax(280px, 430px) 1fr;
  gap: 48px;
  align-items: center;
}

.speaker__photo {
  width: 100%;
  height: auto;
}

.speaker__name {
  margin-top: 10px;
  color: var(--accent);
  font-family: var(--font-family);
  font-size: 36px;
  font-weight: 800;
  line-height: 1.15;
}

.speaker__role {
  margin-top: 6px;
  color: var(--navy);
  font-family: var(--font-family);
  font-size: 22px;
  font-weight: 600;
}

.quote {
  position: relative;
  max-width: 400px;
  margin: 22px 0 18px;
  padding: 20px 22px;
  border-radius: 22px;
  background: #d7f4f8;
  color: var(--navy);
  font-family: var(--font-family);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

.quote::before {
  content: "";
  position: absolute;
  top: 28px;
  left: -12px;
  border-width: 10px 12px 10px 0;
  border-style: solid;
  border-color: transparent #d7f4f8 transparent transparent;
}

.speaker__note {
  margin-left: 50px;
  color: var(--muted);
  font-size: 18px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.facts li {
  display: grid;
  gap: 12px;
}

.facts img {
  width: 69px;
  height: 69px;
}

.facts p {
  max-width: 320px;
  font-size: 18px;
  color: var(--text);
}

.audience {
  background: #eef8fb;
  padding: 72px 0 88px;
}

.audience__inner {
  width: min(1840px, calc(100% - 80px));
  margin-inline: auto;
}

.audience__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 315px));
  justify-content: start;
  width: min(100%, calc(315px * 5 + 18px * 4));
  gap: 18px;
}

.fit-card {
  width: 100%;
  max-width: 315px;
  padding: 22px 18px 24px;
}

.fit-card img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 16px;
}

.fit-card h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.fit-card p {
  font-size: 18px;
  color: var(--muted);
}

.audience__note {
  position: absolute;
  top: -80px;
  right: -200px;
  width: 280px;
  height: auto;
  pointer-events: none;
}

.final {
  position: relative;
  min-height: 508px;
  display: flex;
  align-items: center;
  padding: 48px 0;
  background: url("../img/bg-2027.png") right center / cover no-repeat;
}

.final__inner {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 48px));
  margin-inline: auto;
}

.final__inner > * {
  max-width: 760px;
}

.final h2 span {
  display: block;
  margin-top: 4px;
  font-size: 52px;
  color: var(--accent);
}

.footer {
  background: #002d55;
  color: #fff;
  padding: 36px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.footer__brand img {
  width: 220px;
  margin-bottom: 16px;
}

.footer__brand p,
.footer__brand a {
  color: #d5e7ee;
  font-size: 18px;
  line-height: 1.55;
}

.footer__nav {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.footer__nav a {
  color: #d7eef5;
  font-size: 18px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 28, 42, 0.62);
}

.modal[hidden] {
  display: none;
}

.modal__dialog {
  position: relative;
  width: min(520px, 100%);
  padding: 36px 32px 32px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 20, 35, 0.28);
}

.modal__dialog h2 {
  margin-bottom: 12px;
  padding-right: 36px;
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #e7f5f8;
  color: var(--navy);
  font-size: 28px;
  line-height: 1;
}

@media (max-width: 1400px) {
  .hero__title .is-intro {
    font-size: 30px;
  }

  .hero__title .is-mid {
    font-size: 32px;
  }

  .hero__title .is-accent,
  .hero__title .is-strong {
    font-size: 42px;
  }

  .lead-31 {
    font-size: 26px;
  }

  .audience__note {
    width: 220px;
    top: -80px;
    right: -40px;
  }
}

@media (max-width: 1440px) {
  .deadline {
    align-items: stretch;
    min-height: 0;
    background-color: #e4f3f8;
    background-position: left top;
    background-size: 100% auto;
    background-repeat: no-repeat;
  }

  .deadline__content {
    width: 100%;
    margin-right: 0;
    margin-top: 22%;
    padding: 28px 22px 32px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
  }
}

@media (max-width: 1100px) {
  .deadline__grid,
  .program__grid,
  .raffle__grid {
    grid-template-columns: 1fr;
  }

  .raffle__grid {
    gap: 22px;
  }

  .prize {
    max-width: none;
  }

  .fit-card {
    max-width: none;
  }

  .after__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .audience__inner {
    width: calc(100% - 32px);
  }

  .audience__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .audience__note {
    position: static;
    width: 220px;
    margin: 8px 0 0 auto;
    grid-column: 1 / -1;
  }

  .speaker__top {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .speaker__photo {
    max-width: 420px;
  }

  .speaker__text {
    width: 100%;
  }

  .speaker__note {
    margin-left: 0;
  }

  .rates::before,
  .final::before,
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
  }

  .hero::before {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.82) 46%, rgba(255, 255, 255, 0.28) 100%);
  }

  .hero__inner,
  .rates__content,
  .final__inner {
    position: relative;
    z-index: 1;
  }

  .rates::before {
    background: linear-gradient(90deg, rgba(0, 18, 36, 0.82) 0%, rgba(0, 22, 42, 0.62) 58%, rgba(0, 22, 42, 0.28) 100%);
  }

  .final::before {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.72) 55%, rgba(255, 255, 255, 0.2) 100%);
  }
}

@media (max-width: 768px) {
  h2 {
    font-size: 32px;
  }

  h3,
  .info-card h3,
  .result h3,
  .prize h3,
  .fit-card h3 {
    font-size: 22px;
  }

  p,
  .hero__lead,
  .info-card p,
  .result p,
  .fit-card p,
  .checks li {
    font-size: 18px;
  }

  .hero {
    padding: 32px 0 40px;
  }

  .hero__title .is-intro {
    font-size: 26px;
  }

  .hero__title .is-mid {
    font-size: 28px;
  }

  .hero__title .is-accent,
  .hero__title .is-strong {
    font-size: 34px;
  }

  .lead-31,
  .section-sub,
  .raffle__sub,
  .speaker__role,
  .winners p,
  .result-banner p {
    font-size: 20px;
  }

  .speaker__name,
  .prize__price,
  .result__num {
    font-size: 28px;
  }

  .final h2 span {
    font-size: 34px;
  }

  .btn {
    font-size: 18px;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .deadline__cta,
  .footer__inner,
  .result-banner,
  .winners {
    flex-direction: column;
    align-items: flex-start;
  }

  .result-banner,
  .winners {
    align-items: center;
    gap: 16px;
    text-align: center;
  }

  .footer__nav {
    justify-items: start;
  }
}

@media (max-width: 480px) {
  h2 {
    font-size: 28px;
  }

  h3,
  .info-card h3,
  .result h3,
  .prize h3,
  .fit-card h3 {
    font-size: 20px;
  }

  p,
  .hero__lead,
  .info-card p,
  .result p,
  .fit-card p,
  .checks li,
  .footer__brand p,
  .footer__brand a,
  .footer__nav a,
  .meta li {
    font-size: 16px;
  }

  .hero__title .is-intro {
    font-size: 22px;
  }

  .hero__title .is-mid {
    font-size: 24px;
  }

  .hero__title .is-accent,
  .hero__title .is-strong {
    font-size: 28px;
  }

  .lead-31 {
    font-size: 22px;
  }

  .gift {
    gap: 8px;
    padding: 10px 14px 10px 78px;
  }

  .gift img {
    left: -4px;
    width: 88px;
  }

  .gift__title {
    margin-left: 0;
    font-size: 15px;
  }

  .gift__sum {
    font-size: 13px;
  }

  .btn {
    width: 100%;
    font-size: 18px;
    padding: 16px 18px;
  }

  .after__grid,
  .audience__grid {
    grid-template-columns: 1fr;
  }

  .wrap,
  .raffle .wrap,
  .footer__inner {
    width: calc(100% - 32px);
  }

  .hero__inner,
  .rates__content,
  .final__inner {
    width: min(1280px, calc(100% - 32px));
    margin-inline: auto;
  }

  .quote::before {
    display: none;
  }
}
