/* =============================================================================
   Design tokens
   Change these values to update the main colors across the whole website.
   ============================================================================= */

:root {
  --ink: #08236f;
  --muted: #58677f;
  --line: #dfe7f2;
  --violet: #0879e8;
  --lime: #ff9c16;
  --cyan: #08b8d8;
  --coral: #ec1350;
  --white: #fff;
  --shadow: 0 24px 70px rgba(8,35,111,.13);
}

/* =============================================================================
   Base styles and reusable elements
   ============================================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fbfbfd;
  line-height: 1.55;
}

a {
  text-decoration: none;
  color: inherit;
}

button, input, select, textarea {
  font: inherit;
}

.container {
  width: min(1180px,calc(100% - 32px));
  margin: auto;
}

/* =============================================================================
   Header and navigation
   ============================================================================= */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251,251,253,.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}

.logo {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  display: block;
  object-fit: cover;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(27,24,73,.14);
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.menu {
  display: flex;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 750;
  color: #505361;
}

.menu a:hover {
  color: var(--violet);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 16px;
  padding: 15px 22px;
  font-weight: 850;
  cursor: pointer;
  transition: .2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.primary {
  background: var(--violet);
  color: white;
  box-shadow: 0 16px 32px rgba(91,69,255,.24);
}

.secondary {
  background: white;
  border: 1px solid var(--line);
}

.burger {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}

/* =============================================================================
   Hero section
   ============================================================================= */

.hero {
  padding: 78px 0 46px;
  overflow: hidden;
  background: radial-gradient(circle at 90% 4%,rgba(217,255,98,.62),transparent 23%), radial-gradient(circle at 10% 18%,rgba(191,231,255,.62),transparent 25%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 44px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  padding: 9px 13px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--line);
  color: var(--violet);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 22px;
}

h1 {
  margin: 0;
  font-size: clamp(46px,7vw,84px);
  line-height: .96;
  letter-spacing: -.055em;
}

.accent {
  color: var(--violet);
  position: relative;
  white-space: nowrap;
}

.accent:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 12px;
  background: var(--lime);
  z-index: -1;
  border-radius: 999px;
}

.lead {
  max-width: 720px;
  margin: 26px 0 30px;
  font-size: clamp(18px,2vw,22px);
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.chips span {
  padding: 9px 12px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 750;
  color: #555866;
}

.visual {
  min-height: 560px;
  border-radius: 34px;
  padding: 24px;
  background: linear-gradient(145deg,#1d1f2e,#30345a);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.visual:before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: #5b45ff;
  top: -70px;
  right: -80px;
}

.visual:after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--lime);
  bottom: -100px;
  left: -70px;
}

.tiles {
  position: relative;
  z-index: 2;
  min-height: 512px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-content: end;
}

.tile {
  border-radius: 24px;
  padding: 22px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
  color: white;
  backdrop-filter: blur(18px);
}

.tile.big {
  grid-column: 1/-1;
  padding: 28px;
}

.tile i {
  font-style: normal;
  font-size: 28px;
}

.tile strong {
  display: block;
  font-size: 20px;
  line-height: 1.15;
  margin-top: 28px;
}

.tile p {
  margin: 8px 0 0;
  color: rgba(255,255,255,.7);
  font-size: 14px;
}

.quick {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 14px;
  margin-top: 20px;
}

.quick div {
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
}

.quick b {
  display: block;
}

.quick span {
  color: var(--muted);
  font-size: 14px;
}

/* =============================================================================
   Shared section headings
   ============================================================================= */

section {
  padding: 88px 0;
}

.head {
  max-width: 780px;
  margin-bottom: 36px;
}

.head small {
  color: var(--violet);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.head h2 {
  margin: 10px 0 14px;
  font-size: clamp(34px,5vw,58px);
  line-height: 1.02;
  letter-spacing: -.04em;
}

.head p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

/* =============================================================================
   Program catalog and filters
   ============================================================================= */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter {
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  padding: 10px 15px;
  font-weight: 800;
  color: #555866;
}

.filter.active {
  background: var(--ink);
  color: white;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px;
}

.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 26px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  transition: .22s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ico {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 26px;
  background: #f5f4ff;
}

.tag {
  font-size: 12px;
  font-weight: 900;
  color: var(--muted);
}

.card h3 {
  font-size: 23px;
  line-height: 1.12;
  margin: 24px 0 10px;
}

.card p {
  margin: 0 0 20px;
  color: var(--muted);
}

.card ul {
  list-style: none;
  padding: 0;
  margin: auto 0 0;
  display: grid;
  gap: 8px;
  font-size: 14px;
}

.card li:before {
  content: "—";
  color: var(--violet);
  margin-right: 8px;
}

/* =============================================================================
   About the center
   ============================================================================= */

.dark {
  background: var(--ink);
  color: white;
}

.dark .head p {
  color: #b8bbc8;
}

.why {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 18px;
}

.why article {
  border-radius: 26px;
  padding: 28px;
  background: #232534;
  border: 1px solid rgba(255,255,255,.08);
  min-height: 230px;
}

.why .featured {
  background: linear-gradient(145deg,#5b45ff,#7c68ff);
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.why h3 {
  font-size: 28px;
  line-height: 1.05;
  margin: 16px 0;
}

.why p {
  color: #b8bbc8;
}

.featured p {
  color: rgba(255,255,255,.8);
}

/* =============================================================================
   Start steps
   ============================================================================= */

.steps {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 16px;
  counter-reset: s;
}

.step {
  counter-increment: s;
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
}

.step:before {
  content: "0" counter(s);
  display: block;
  color: var(--violet);
  font-size: 32px;
  font-weight: 950;
  margin-bottom: 28px;
}

.step h3 {
  margin: 0 0 8px;
}

.step p {
  margin: 0;
  color: var(--muted);
}

/* =============================================================================
   Frequently asked questions
   ============================================================================= */

details {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 0 22px;
  margin-bottom: 12px;
}

summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  font-weight: 850;
  display: flex;
  justify-content: space-between;
}

summary:after {
  content: "+";
  color: var(--violet);
  font-size: 24px;
}

details[open] summary:after {
  content: "−";
}

details p {
  color: var(--muted);
  margin: 0;
  padding: 0 0 20px;
}

/* =============================================================================
   Contacts and lead form
   ============================================================================= */

.contact {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 20px;
}

.contact-info, .form-card {
  border-radius: 30px;
  padding: 32px;
}

.contact-info {
  background: linear-gradient(145deg,#202231,#343859);
  color: white;
}

.contact-info p {
  color: #c1c4cf;
}

.contact-list {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.contact-row {
  display: flex;
  gap: 14px;
}

.contact-row b {
  display: block;
}

.contact-row span, .contact-row a {
  color: #d9dbe4;
}

.vk-community {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  padding: 16px;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  background: linear-gradient(135deg,rgba(39,135,245,.96),rgba(0,87,184,.96));
  box-shadow: 0 12px 28px rgba(0,54,128,.26);
  transition: transform .2s ease, box-shadow .2s ease;
}

.vk-community:hover {
  transform: translateY(-3px);
  box-shadow: 0 17px 36px rgba(0,54,128,.34);
}

.vk-community-icon {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 15px;
  background: rgba(255,255,255,.18);
  color: #fff;
  font-weight: 900;
  letter-spacing: -.05em;
}

.vk-community-copy {
  display: grid;
  gap: 3px;
  color: #fff;
}

.vk-community-copy small {
  color: rgba(255,255,255,.82);
  line-height: 1.35;
}

.form-card {
  background: white;
  border: 1px solid var(--line);
}

.form-card h3, .contact-info h3 {
  font-size: 32px;
  margin: 0 0 14px;
}

form {
  display: grid;
  gap: 13px;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fafafd;
  border-radius: 15px;
  padding: 15px 16px;
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(91,69,255,.1);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.policy {
  font-size: 12px;
  color: var(--muted);
}

/* =============================================================================
   Footer and floating call button
   ============================================================================= */

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  background: white;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

.float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  padding: 14px 17px;
  border-radius: 999px;
  background: var(--violet);
  color: white;
  font-weight: 900;
  box-shadow: 0 18px 36px rgba(91,69,255,.3);
}

.hidden {
  display: none!important;
}

/* =============================================================================
   Responsive layout
   ============================================================================= */

@media(max-width:980px) {
  .menu, .nav>.btn {
    display: none;
  }

  .burger {
    display: block;
  }

  .menu.open {
    display: flex;
    position: absolute;
    top: 76px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: flex-start;
    background: white;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
  }

  .hero-grid, .contact {
    grid-template-columns: 1fr;
  }

  .quick, .steps {
    grid-template-columns: repeat(2,1fr);
  }

  .grid {
    grid-template-columns: repeat(2,1fr);
  }

  .why {
    grid-template-columns: 1fr 1fr;
  }

  .why .featured {
    grid-column: 1/-1;
    min-height: 340px;
  }

}

@media(max-width:680px) {
  .container {
    width: min(100% - 22px,1180px);
  }

  .hero {
    padding-top: 54px;
  }

  h1 {
    font-size: 46px;
  }

  section {
    padding: 64px 0;
  }

  .actions {
    flex-direction: column;
  }

  .actions .btn {
    width: 100%;
  }

  .visual {
    min-height: 430px;
    padding: 16px;
  }

  .tiles {
    min-height: 398px;
  }

  .quick, .grid, .why, .steps, .row {
    grid-template-columns: 1fr;
  }

  .why .featured {
    grid-column: auto;
  }

  .footer {
    flex-direction: column;
  }

  .float {
    right: 12px;
    bottom: 12px;
  }

}

/* Form-specific helpers */

label {
  font-size: 14px;
  font-weight: 800;
}

.optional {
  color: var(--muted);
  font-weight: 500;
}

.row>div {
  display: grid;
  gap: 7px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  color: var(--muted);
}

.consent input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin: 2px 0 0;
}

.consent a, .form-status a, .policy a, .footer a:hover {
  color: var(--violet);
  text-decoration: underline;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* =============================================================================
   Brand-specific component refinements
   ============================================================================= */

body {
  background: #f8fbff;
  color: #14213d;
}

.header {
  background: rgba(255,255,255,.94);
  border-bottom-color: #dce7f5;
}

.nav {
  min-height: 84px;
}

.brand {
  gap: 14px;
  color: var(--ink);
}

.brand b {
  display: block;
  font-size: 15px;
  line-height: 1.15;
}

.brand small {
  margin-top: 3px;
  color: #60708a;
  font-size: 10px;
  letter-spacing: .01em;
}

.logo {
  width: 62px;
  height: 62px;
  border-radius: 17px;
  border-color: #d8e5f4;
  box-shadow: 0 9px 24px rgba(8,35,111,.13);
}

.menu {
  color: #44536c;
}

.primary {
  background: linear-gradient(135deg,#0879e8,#082d87);
  box-shadow: 0 16px 32px rgba(8,83,184,.25);
}

.secondary {
  border-color: #cedced;
  color: var(--ink);
}

.hero {
  padding: 70px 0 40px;
  background: radial-gradient(circle at 7% 15%,rgba(8,184,216,.14),transparent 27%), radial-gradient(circle at 92% 8%,rgba(255,156,22,.18),transparent 25%), linear-gradient(180deg,#fff 0%,#f5faff 100%);
}

.hero-grid {
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.eyebrow {
  border: 0;
  background: #eaf5ff;
  color: #075eb7;
  box-shadow: inset 0 0 0 1px #cfe8ff;
}

.hero h1 {
  max-width: 720px;
  color: var(--ink);
  font-size: clamp(48px,6.2vw,78px);
  line-height: .98;
}

.accent {
  background: linear-gradient(90deg,#0879e8 5%,#08aecd 46%,#f28b18 72%,#e91551);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.accent:after {
  display: none;
}

.lead {
  max-width: 650px;
  color: #52617a;
}

.legal-name {
  max-width: 650px;
  margin: 18px 0 0;
  padding-left: 16px;
  border-left: 4px solid #ff9c16;
  color: #6a768a;
  font-size: 13px;
}

.footer-vk {
  white-space: nowrap;
}

.hero .actions {
  margin-top: 24px;
}

.brand-showcase {
  position: relative;
  overflow: hidden;
  border: 1px solid #dce7f3;
  border-radius: 34px;
  background: #fff;
  box-shadow: var(--shadow);
}

.brand-showcase:before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg,#0879e8,#08b8d8,#ff9c16,#ec1350);
}

.brand-showcase img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: contain;
  padding: 12px 24px 4px;
}

.brand-motto {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 0 20px 25px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.brand-motto span:after {
  content: "•";
  margin-left: 10px;
  color: #ff9c16;
}

.brand-motto span:last-child:after {
  display: none;
}

.quick div {
  position: relative;
  overflow: hidden;
  border-color: #dfe8f3;
  box-shadow: 0 10px 30px rgba(8,35,111,.05);
}

.quick div:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: #0879e8;
}

.quick div:nth-child(2):before {
  background: #08b8d8;
}

.quick div:nth-child(3):before {
  background: #ff9c16;
}

.quick div:nth-child(4):before {
  background: #ec1350;
}

.head small {
  color: #0879e8;
}

.filter.active {
  background: linear-gradient(135deg,#08236f,#0879e8);
}

.card {
  border-color: #dfe8f3;
}

.card:nth-child(4n+1) .ico {
  background: #e9f4ff;
}

.card:nth-child(4n+2) .ico {
  background: #e8fbfd;
}

.card:nth-child(4n+3) .ico {
  background: #fff3df;
}

.card:nth-child(4n) .ico {
  background: #ffeaf1;
}

.dark {
  background: radial-gradient(circle at 90% 20%,rgba(8,184,216,.15),transparent 28%), linear-gradient(145deg,#061747,#0a2d7b);
}

.why article {
  background: rgba(255,255,255,.075);
  border-color: rgba(255,255,255,.1);
}

.why .featured {
  background: linear-gradient(145deg,#0879e8,#08a9c8);
}

.contact-info {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg,#071b58,#0a388e);
}

.contact-info:after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  right: -55px;
  bottom: -60px;
  background: linear-gradient(135deg,#ff9c16,#ec1350);
  opacity: .9;
}

.form-card {
  border-color: #dce7f3;
  box-shadow: 0 20px 60px rgba(8,35,111,.08);
}

.float {
  background: linear-gradient(135deg,#ff9c16,#ec1350);
  box-shadow: 0 18px 36px rgba(236,19,80,.22);
}

footer {
  border-top-color: #dce7f3;
}

.footer-identity {
  max-width: 780px;
}

.footer-identity b {
  display: block;
  color: var(--ink);
}

.footer-identity span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
}

.footer {
  align-items: flex-start;
}

@media(max-width:980px) {
  .menu.open {
    top: 84px;
  }

  .brand-showcase img {
    height: 280px;
  }

  .brand b {
    font-size: 14px;
  }

}

@media(max-width:680px) {
  .brand span {
    max-width: 180px;
  }

  .brand b {
    font-size: 12px;
  }

  .brand small {
    font-size: 9px;
  }

  .logo {
    width: 52px;
    height: 52px;
  }

  .nav {
    min-height: 72px;
  }

  .menu.open {
    top: 72px;
  }

  .hero {
    padding-top: 42px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .brand-showcase {
    border-radius: 24px;
  }

  .brand-showcase img {
    height: 210px;
    padding: 8px 12px 2px;
  }

  .brand-motto {
    gap: 5px;
    padding-bottom: 18px;
    font-size: 10px;
    letter-spacing: .04em;
  }

  .brand-motto span:after {
    margin-left: 5px;
  }

  .legal-name {
    font-size: 12px;
  }

  .quick {
    margin-top: 14px;
  }

}
