/* ============================================
   Студворк — Clean Autonomous Build
   ============================================ */

/* ---- Fonts ---- */
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat-cyrillic.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Rubik';
  src: url('../fonts/rubik-cyrillic.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Rubik';
  src: url('../fonts/rubik-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: radial-gradient(49.35% 205.89% at 49.35% 50%, #2e99e3 21.88%, rgba(46, 57, 227, 0.9));
  min-height: 100vh;
  overflow-x: hidden;
  font-family: 'Rubik', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #3d424d;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; }
ul { list-style: none; }

/* ---- Layout ---- */
.layout {
  width: 100%;
  overflow-x: hidden;
  font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #fff;
}
.layout__inner {
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 90%;
  max-width: 1650px;
}

/* ---- Nav ---- */
.nav {
  padding-top: 1.25rem;
  margin-bottom: 5rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.logo__icon {
  width: 30px;
  height: 30px;
}
.logo__text {
  font-size: 2rem;
  font-weight: 500;
}
.nav__tagline {
  font-size: 1.25rem;
  font-weight: 400;
  margin-top: 0.5rem;
}

/* ---- Content ---- */
.content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ---- Intro — two columns ---- */
.intro {
  display: grid;
  grid-template-columns: 414px 1fr;
  gap: 0;
  align-items: start;
  flex: 1;
  height: 721px;
}

/* Left: text */
.intro__text {
  width: 500px;
}
.intro__title {
  font-size: 3.75rem;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 3rem;
}
.intro__title-main {
  display: block;
  font-size: 3.75rem;
}
.intro__title-sub {
  display: block;
  font-size: 2.25rem;
  white-space: nowrap;
}
.intro__details {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.intro__detail {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.intro__detail-icon {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
}
.intro__detail-info {
  display: flex;
  flex-direction: column;
}
.intro__detail-value {
  font-size: 2.25rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.intro__detail-label {
  font-size: 1.5rem;
  font-weight: 400;
  color: #fff;
}

/* Right: form block — student image + form card */
.form-block {
  display: grid;
  grid-template-columns: 350px 1fr;
  align-items: stretch;
  height: 100%;
  padding-top: 0;
}
.form-block__student {
  width: 350px;
  height: 577px;
  background-image: url('../images/student-with-smartphone.png');
  background-size: contain;
  background-position: 0 0;
  background-repeat: no-repeat;
  align-self: end;
  justify-self: start;
}
.form-block__action {
  display: flex;
  justify-content: flex-start;
  align-items: start;
  padding-left: 0;
  align-self: start;
}

/* ---- Form ---- */
.fast-form {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  padding: 2.5rem;
  width: 532px;
  max-width: 100%;
}
.fast-form__group {
  border: 0;
}
.fast-form__title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #21295b;
  margin-bottom: 1.5rem;
  padding: 0;
}
.fast-form__input {
  width: 100%;
  height: 47px;
  padding: 0 1.5rem;
  font-size: 1.25rem;
  font-weight: 500;
  color: #21295b;
  background: rgba(128, 128, 128, 0.1);
  border: 2px solid transparent;
  border-radius: 25px;
  outline: none;
  margin-bottom: 0.75rem;
  font-family: inherit;
}
.fast-form__input::placeholder {
  color: rgba(33, 41, 91, 0.5);
}
.fast-form__input:focus {
  border-color: #2e99e3;
}
.fast-form__promocode {
  position: relative;
  display: flex;
  align-items: center;
  height: 47px;
  padding: 0 3rem 0 1.5rem;
  background: rgba(128, 128, 128, 0.1);
  border: 2px solid transparent;
  border-radius: 25px;
  margin-bottom: 1.5rem;
}
.fast-form__promocode-label {
  font-size: 1.25rem;
  font-weight: 400;
  color: #21295b;
  margin-right: 0.5rem;
}
.fast-form__promocode-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #21295b;
}
.fast-form__promocode-check {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 23px;
  height: 23px;
}
.check-icon {
  width: 100%;
  height: 100%;
  fill: #32cc46;
}
.fast-form__btn {
  display: block;
  width: 240px;
  height: 57px;
  margin: 0 auto;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  background: #32cc46;
  border: 2px solid transparent;
  border-radius: 10px;
  transition: background 0.2s ease, transform 0.2s ease;
  font-family: inherit;
}
.fast-form__btn:hover {
  background: #28b53b;
  transform: translateY(-1px);
}

/* ---- Footer ---- */
.footer {
  font-size: 1.25rem;
  font-weight: 400;
  color: #fff;
  padding: 1.5rem 0;
  text-align: left;
}

/* ---- Responsive ---- */
@media (max-width: 1219px) {
  .layout__inner { width: calc(100% - 15rem); }
  .intro { grid-template-columns: 1fr; gap: 2rem; }
  .intro__text { width: 100%; }
  .intro__title { font-size: 2.5rem; }
  .form-block { grid-template-columns: 1fr; }
  .form-block__student { display: none; }
}

@media (max-width: 767px) {
  .layout__inner { width: calc(100% - 7.5rem); }
  .nav { margin-bottom: 2.67rem; display: flex; justify-content: start; }
  .logo__text { font-size: 1.5rem; }
  .intro__title { font-size: 2rem; }
  .intro__detail-icon { width: 48px; height: 48px; }
  .intro__detail-value { font-size: 1.75rem; }
  .intro__detail-label { font-size: 1.25rem; }
  .fast-form { padding: 1.5rem; width: 100%; }
  .fast-form__title { font-size: 1.75rem; }
  .fast-form__btn { width: 100%; }
}

@media (max-width: 479px) {
  .layout__inner { width: calc(100% - 2.25rem); }
  .nav__tagline { display: none; }
  .intro__title { font-size: 1.75rem; }
  .intro__details { gap: 1.5rem; }
  .intro__detail-icon { width: 40px; height: 40px; }
  .intro__detail-value { font-size: 1.25rem; }
  .intro__detail-label { font-size: 1rem; }
  .fast-form { padding: 1rem; }
  .fast-form__title { font-size: 1.5rem; }
  .fast-form__input { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
