* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f7f8fc;
  color: #11131a;
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* HEADER */

.header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid #e8e9ef;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.logo {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -1px;
}

.logo span {
  color: #635bff;
}

nav {
  display: flex;
  gap: 30px;
  font-size: 14px;
  color: #626574;
}

nav a {
  transition: 0.2s;
}

nav a:hover {
  color: #635bff;
}

.header-button {
  background: #11131a;
  color: white;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
}

/* HERO */

.hero {
  padding: 100px 0 90px;
  background:
    radial-gradient(circle at 80% 20%, rgba(99, 91, 255, 0.12), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f7f8fc 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 80px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eeedff;
  color: #635bff;
  padding: 8px 13px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 25px;
}

.hero h1 {
  font-size: clamp(48px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -4px;
  margin-bottom: 28px;
}

.hero h1 span {
  color: #635bff;
}

.hero-content > p {
  max-width: 610px;
  color: #666b7a;
  font-size: 19px;
  line-height: 1.7;
  margin-bottom: 34px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  padding: 15px 23px;
  border-radius: 13px;
  transition: 0.2s;
}

.button-primary {
  background: #635bff;
  color: white;
  box-shadow: 0 10px 25px rgba(99, 91, 255, 0.2);
}

.button-primary:hover {
  transform: translateY(-2px);
  background: #5148e8;
}

.button-secondary {
  background: white;
  border: 1px solid #dedfe7;
}

.button-secondary:hover {
  border-color: #635bff;
  color: #635bff;
}

.stats {
  display: flex;
  gap: 40px;
  margin-top: 55px;
}

.stats div {
  display: flex;
  flex-direction: column;
}

.stats strong {
  font-size: 16px;
}

.stats span {
  color: #858896;
  font-size: 12px;
  margin-top: 3px;
}

/* HERO CARD */

.hero-card {
  background: white;
  border: 1px solid #e5e6ed;
  border-radius: 25px;
  padding: 30px;
  box-shadow: 0 25px 70px rgba(20, 22, 40, 0.1);
}

.card-top {
  display: flex;
  justify-content: space-between;
  color: #858896;
  font-size: 13px;
  margin-bottom: 35px;
}

.green-dot {
  width: 8px;
  height: 8px;
  background: #36c98f;
  border-radius: 50%;
}

.hero-card h3 {
  font-size: 25px;
  margin-bottom: 22px;
}

.mini-service {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #ececf2;
  padding: 15px;
  border-radius: 15px;
  margin-bottom: 12px;
}

.icon {
  width: 43px;
  height: 43px;
  background: #f3f2ff;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
}

.mini-service div:last-child {
  display: flex;
  flex-direction: column;
}

.mini-service small {
  color: #8a8d99;
  margin-top: 2px;
}

.card-button {
  display: block;
  text-align: center;
  background: #11131a;
  color: white;
  padding: 15px;
  border-radius: 13px;
  margin-top: 20px;
  font-weight: 700;
}

/* SECTIONS */

.services,
.how {
  padding: 110px 0;
}

.section-title {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 55px;
}

.section-title > span,
.order-info > span {
  color: #635bff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.section-title h2 {
  font-size: 42px;
  letter-spacing: -2px;
  margin: 10px 0 14px;
}

.section-title p {
  color: #777b89;
}

/* SERVICES */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service {
  background: white;
  border: 1px solid #e7e8ee;
  border-radius: 20px;
  padding: 28px;
  transition: 0.25s;
}

.service:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(20, 22, 40, 0.07);
}

.service-icon {
  font-size: 28px;
  margin-bottom: 25px;
}

.service h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.service p {
  color: #777b89;
  font-size: 14px;
  min-height: 90px;
}

.service strong {
  color: #635bff;
}

/* HOW */

.how {
  background: #11131a;
  color: white;
}

.how .section-title p {
  color: #9b9eaa;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 35px;
}

.step {
  border-top: 1px solid #30323c;
  padding-top: 22px;
}

.step-number {
  color: #817aff;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 35px;
}

.step h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.step p {
  color: #999ca8;
  font-size: 14px;
}

/* ORDER */

.order {
  padding: 110px 0;
}

.order-box {
  background: white;
  border: 1px solid #e5e6ed;
  border-radius: 28px;
  padding: 55px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
  box-shadow: 0 20px 60px rgba(20, 22, 40, 0.06);
}

.order-info h2 {
  font-size: 42px;
  letter-spacing: -2px;
  line-height: 1.05;
  margin: 12px 0 20px;
}

.order-info p {
  color: #777b89;
  line-height: 1.7;
}

form {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #dedfe6;
  background: #fafafd;
  padding: 15px 17px;
  border-radius: 12px;
  font: inherit;
  outline: none;
  transition: 0.2s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #635bff;
  background: white;
}

textarea {
  resize: vertical;
}

form button {
  width: 100%;
}

#formMessage {
  text-align: center;
  font-size: 14px;
  color: #36a777;
}

/* FOOTER */

footer {
  background: #11131a;
  color: white;
  padding: 35px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer p {
  color: #858896;
  font-size: 13px;
  margin-top: 5px;
}

/* MOBILE */

@media (max-width: 900px) {
  nav {
    display: none;
  }

  .hero-inner,
  .order-box {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    gap: 50px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .header-button {
    display: none;
  }

  .hero {
    padding: 65px 0;
  }

  .hero h1 {
    font-size: 48px;
    letter-spacing: -3px;
  }

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

  .stats {
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 35px;
  }

  .services,
  .how,
  .order {
    padding: 75px 0;
  }

  .section-title h2,
  .order-info h2 {
    font-size: 34px;
  }

  .services-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .order-box {
    padding: 28px;
    gap: 35px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }
}


/* FORM FIELDS */

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-field label {
  color: #242631;
  font-size: 14px;
  font-weight: 650;
}

.required-mark {
  color: #e04848;
  font-weight: 800;
}

.optional-mark {
  color: #8a8d99;
  font-weight: 500;
}

.field-hint {
  color: #858896;
  font-size: 12px;
  line-height: 1.45;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #666b7a;
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
}

.consent-row input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: #635bff;
}

.consent-row a {
  color: #635bff;
  font-weight: 600;
}

#educationOtherWrap[hidden] {
  display: none;
}

#formMessage {
  min-height: 20px;
}

.form-message-error {
  color: #c52b2b !important;
}

@media (max-width: 600px) {
  .consent-row {
    font-size: 12px;
  }
}

/* ===== Студенческие работы ===== */

.student-work {
  padding: 90px 0;
  background: #f7f7fb;
}

.student-work .container {
  max-width: 1180px;
  margin: 0 auto;
}

.student-work .section-title {
  text-align: center;
  max-width: 850px;
  margin: 0 auto 45px;
}

.student-work .section-title span {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #eeebff;
  color: #635bff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.student-work .section-title h2 {
  margin: 0 0 18px;
  font-size: 48px;
  line-height: 1.08;
  letter-spacing: -1.5px;
}

.student-work .section-title p {
  margin: 0;
  color: #73778a;
  font-size: 19px;
  line-height: 1.6;
}

.student-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 42px 48px;
  background: #fff;
  border: 1px solid #e7e7ef;
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(30, 30, 60, .08);
}

.student-card h3 {
  margin: 0 0 12px;
  font-size: 25px;
  line-height: 1.25;
}

.student-card p {
  margin: 0 0 25px;
  color: #555a6d;
  font-size: 17px;
  line-height: 1.65;
}

.student-card ul {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.student-card ul li {
  position: relative;
  margin: 0 0 11px;
  padding-left: 28px;
  color: #303341;
  font-size: 17px;
  line-height: 1.5;
}

.student-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #635bff;
  font-weight: 800;
}

.student-card p strong {
  display: inline-block;
  margin-top: 4px;
  color: #171820;
  font-size: 19px;
}

.student-card p:last-child {
  margin-top: 30px;
  margin-bottom: 0;
  padding-top: 25px;
  border-top: 1px solid #ececf2;
  color: #555a6d;
}

.student-card p:last-child br {
  line-height: 2;
}

@media (max-width: 768px) {
  .student-work {
    padding: 60px 20px;
  }

  .student-work .section-title h2 {
    font-size: 36px;
  }

  .student-work .section-title p {
    font-size: 17px;
  }

  .student-card {
    padding: 30px 24px;
    border-radius: 22px;
  }

  .student-card h3 {
    font-size: 22px;
  }

  .student-card p,
  .student-card ul li {
    font-size: 16px;
  }
}

