:root {
  --accent: #f28c28;
  --accent-dark: #d9700d;
  --dark: #191c20;
  --text: #20242a;
  --muted: #69717a;
  --line: #e2e5e8;
  --soft: #f5f6f7;
  --white: #ffffff;
  --container: 1180px;
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--white);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

body.beton-mobile-menu-open {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

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

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  line-height: 1.08;
  letter-spacing: -0.04em;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(46px, 7vw, 78px);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 5vw, 52px);
}

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

.container {
  width: min(calc(100% - 36px), var(--container));
  margin-inline: auto;
}

.header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(226, 229, 232, 0.9);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.header__inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 28px;
}

.logo {
  font-size: 18px;
  font-weight: 800;
}

.nav {
  display: flex;
  margin-left: auto;
  gap: 26px;
}

.nav a {
  color: #454b52;
  font-size: 14px;
  font-weight: 650;
}

.nav a:hover,
.header__phone:hover {
  color: var(--accent-dark);
}

.header__phone {
  font-weight: 800;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--white);
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 3px;
  background: var(--dark);
}

.hero {
  display: flex;
  min-height: calc(100vh - 76px);
  padding: 82px 0;
  align-items: center;
  background:
    radial-gradient(circle at 88% 20%, rgba(242, 140, 40, 0.18), transparent 30%),
    linear-gradient(135deg, #fff9f3, #f4f5f6);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.65fr);
  gap: 70px;
  align-items: center;
}

.hero__content > p {
  max-width: 700px;
  margin-bottom: 34px;
  font-size: 20px;
}

.label {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.label--light {
  color: #ffc78e;
}

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

.button {
  display: inline-flex;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 13px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 750;
  transition: 0.18s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  color: var(--white);
  background: var(--accent);
}

.button--primary:hover {
  background: var(--accent-dark);
}

.button--secondary {
  border-color: #cfd4d8;
  background: rgba(255, 255, 255, 0.7);
}

.button--light {
  color: var(--dark);
  background: var(--white);
}

.hero__card {
  display: flex;
  min-height: 360px;
  padding: 34px;
  border-radius: 28px;
  flex-direction: column;
  justify-content: space-between;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.18)),
    var(--dark);
  box-shadow: 0 30px 80px rgba(24, 27, 31, 0.18);
}

.hero__card span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
}

.hero__card strong {
  max-width: 360px;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.grades {
  padding: 108px 0;
}

.section-title {
  max-width: 760px;
  margin-bottom: 44px;
}

.section-title p {
  margin-bottom: 0;
  font-size: 18px;
}

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

.grade-card {
  display: flex;
  min-height: 170px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  flex-direction: column;
  justify-content: space-between;
  background: var(--white);
  transition: 0.18s ease;
}

.grade-card:hover {
  border-color: rgba(242, 140, 40, 0.55);
  transform: translateY(-4px);
}

.grade-card--accent {
  border-color: rgba(242, 140, 40, 0.28);
  background: #fff7ef;
}

.grade-card strong {
  font-size: 30px;
  letter-spacing: -0.04em;
}

.grade-card span {
  color: var(--muted);
  font-size: 14px;
}

.contact {
  padding: 100px 0;
  color: var(--white);
  background:
    radial-gradient(circle at 12% 30%, rgba(242, 140, 40, 0.16), transparent 28%),
    var(--dark);
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 0.7fr);
  gap: 90px;
  align-items: center;
}

.contact__content p {
  max-width: 580px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
}

.contact__links {
  display: flex;
  margin-top: 30px;
  flex-direction: column;
  gap: 6px;
  font-size: 19px;
  font-weight: 750;
}

.form {
  display: grid;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  gap: 16px;
  background: rgba(255, 255, 255, 0.05);
}

.form label {
  display: grid;
  gap: 7px;
}

.form label > span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 700;
}

.form input,
.form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 11px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
  outline: none;
}

.form input {
  height: 50px;
  padding: 0 14px;
}

.form textarea {
  padding: 13px 14px;
  resize: vertical;
}

.form input::placeholder,
.form textarea::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.form input:focus,
.form textarea:focus {
  border-color: var(--accent);
}

.form small {
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
}

.footer {
  padding: 24px 0;
  color: rgba(255, 255, 255, 0.48);
  background: #101214;
  font-size: 12px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.toast {
  position: fixed;
  z-index: 50;
  right: 20px;
  bottom: 20px;
  max-width: 380px;
  padding: 15px 18px;
  border-radius: 12px;
  color: var(--white);
  background: var(--accent-dark);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: 0.18s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .nav {
    position: fixed;
    top: 76px;
    right: 0;
    left: 0;
    display: none;
    padding: 20px;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    background: var(--white);
  }

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

  .header__phone {
    margin-left: auto;
  }

  .menu-button {
    display: block;
  }

  .hero__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .hero__card {
    min-height: 280px;
  }

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

@media (max-width: 620px) {
  .header__phone {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 60px 0;
  }

  .hero__content > p {
    font-size: 17px;
  }

  .hero__actions,
  .hero__actions .button {
    width: 100%;
  }

  .hero__card {
    min-height: 240px;
    padding: 26px;
  }

  .hero__card strong {
    font-size: 24px;
  }

  .grades {
    padding: 76px 0;
  }

  .grades__grid {
    grid-template-columns: 1fr;
  }

  .grade-card {
    min-height: 130px;
  }

  .contact {
    padding: 76px 0;
  }

  .form {
    padding: 22px;
  }

  .footer__inner {
    flex-direction: column;
    gap: 7px;
  }

  .toast {
    right: 14px;
    bottom: 14px;
    left: 14px;
    max-width: none;
  }
}
