/* ============ Hero (home) ============ */
.ms-hero {
  position: relative;
  overflow: hidden;
  padding: 66px 0 74px;
  background:
    radial-gradient(640px 320px at 10% -5%, rgba(15, 163, 148, 0.14), transparent 62%),
    radial-gradient(560px 300px at 92% 6%, rgba(30, 143, 224, 0.13), transparent 62%),
    radial-gradient(460px 260px at 72% 105%, rgba(255, 180, 58, 0.16), transparent 60%);
}
.ms-hero__in { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 44px; align-items: center; }
.ms-hero h1 { margin-bottom: 18px; }
.ms-hero__lead { font-size: 18px; color: #516068; max-width: 560px; }
.ms-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #DCEBE6;
  color: #0E8A7E;
  font-family: 'Rubik', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(15, 46, 43, 0.05);
}
.ms-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.ms-hero__facts {
  list-style: none;
  padding: 0;
  margin: 34px 0 0;
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 10px 30px;
  justify-content: start;
}
.ms-hero__facts li { display: flex; flex-direction: column; }
.ms-hero__facts strong { font-family: 'Rubik', sans-serif; font-size: 21px; font-weight: 700; color: #0F2E2B; }
.ms-hero__facts span { font-size: 13px; color: #64737B; }
.ms-hero__art { display: flex; justify-content: center; }

/* ============ Page hero (inner pages) ============ */
.ms-hero--page {
  padding: 46px 0 52px;
  background:
    radial-gradient(560px 280px at 8% -10%, rgba(15, 163, 148, 0.12), transparent 60%),
    radial-gradient(500px 260px at 96% 0%, rgba(30, 143, 224, 0.11), transparent 60%),
    radial-gradient(420px 240px at 60% 115%, rgba(255, 180, 58, 0.13), transparent 60%);
}
.ms-hero--page h1 { max-width: 860px; }
.ms-hero__sub { font-size: 17.5px; color: #516068; max-width: 760px; margin-bottom: 4px; }

/* ============ Assortment / feature cards ============ */
.ms-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #E3ECE8;
  border-radius: 20px;
  padding: 26px 22px 22px;
  text-decoration: none;
  color: #33424A;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.ms-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(15, 46, 43, 0.10); border-color: #BCE3D8; color: #33424A; text-decoration: none; }
.ms-card__ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(15, 163, 148, 0.12) 0%, rgba(30, 143, 224, 0.12) 100%);
  margin-bottom: 16px;
}
.ms-card h3 { font-size: 18.5px; margin-bottom: 8px; }
.ms-card p { font-size: 14.5px; color: #64737B; flex-grow: 1; }
.ms-card__more { font-family: 'Rubik', sans-serif; font-weight: 600; font-size: 14.5px; color: #0E8A7E; margin-top: 8px; }
.ms-card--plain { cursor: default; }
.ms-card--plain:hover { transform: none; border-color: #E3ECE8; box-shadow: none; }

/* ============ Steps ============ */
.ms-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: ms-step; }
.ms-step { position: relative; background: #fff; border-radius: 20px; padding: 26px 20px 20px; border: 1px solid #E3ECE8; }
.ms-step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0FA394 0%, #1E8FE0 100%);
  color: #fff;
  font-family: 'Rubik', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
}
.ms-step h3 { font-size: 17px; margin-bottom: 7px; }
.ms-step p { font-size: 14px; color: #64737B; margin: 0; }

/* ============ Videos ============ */
.ms-video { margin: 0; }
.ms-video__frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #0C2B27;
  box-shadow: 0 16px 36px rgba(15, 46, 43, 0.16);
}
.ms-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.ms-video--wide .ms-video__frame { aspect-ratio: 16 / 9; }
.ms-video--tall .ms-video__frame { aspect-ratio: 9 / 16; }
.ms-video__cap { padding: 14px 6px 0; }
.ms-video__cap h3 { font-size: 17px; margin-bottom: 4px; }
.ms-video__cap p { font-size: 14px; color: #64737B; margin: 0; }
.ms-videos-tall { margin-top: 24px; }
.ms-videos-tall .ms-video__cap { padding: 12px 4px 0; }
.ms-video-main { max-width: 860px; margin: 0 auto; text-align: center; }

/* ============ Split sections ============ */
.ms-split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 46px; align-items: center; }
.ms-split__art { display: flex; justify-content: center; }
.ms-split h2 { margin-bottom: 12px; }
.ms-split p { color: #516068; }

/* ============ Partner band ============ */
.ms-partner-band {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 34px;
  align-items: center;
  background: linear-gradient(135deg, #0C2B27 0%, #123F3C 55%, #14484F 100%);
  border-radius: 26px;
  padding: 44px 46px;
  color: #D8ECE6;
  box-shadow: 0 24px 60px rgba(12, 43, 39, 0.28);
  position: relative;
  overflow: hidden;
}
.ms-partner-band::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 180, 58, 0.25), transparent 70%);
  pointer-events: none;
}
.ms-partner-band h2 { color: #fff; }
.ms-partner-band p { color: #B9D5CD; margin: 0; }
.ms-partner-band__link { display: inline-block; text-align: center; color: #FFD9A0; font-size: 14.5px; margin-top: 12px; }
.ms-partner-band__link:hover { color: #FFE7C2; }

/* ============ Bots CTA ============ */
.sec--bots { background: #0C2B27; }
.sec--bots h2 { color: #fff; }
.ms-bots { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 46px; align-items: center; }
.ms-bots__txt p { color: #B9D5CD; }
.ms-bots__txt a { color: #FFD9A0; }
.ms-bots__act { display: grid; gap: 12px; }
.ms-bots__micro { font-size: 12.5px; color: #7FA098; margin: 8px 0 0; }

/* reuse modal button style inside bots */
.ms-bots .ms-modal__btn { margin-bottom: 0; }

/* ============ Product type rows (cards page) ============ */
.ms-type {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 40px;
  align-items: center;
  background: #fff;
  border: 1px solid #E3ECE8;
  border-radius: 26px;
  padding: 40px 42px;
  margin-bottom: 26px;
}
.ms-type:nth-child(even) .ms-type__media { order: -1; }
.ms-type h2 { font-size: 26px; }
.ms-type__note { font-size: 14px; color: #64737B; }
.ms-type ul { margin-top: 10px; }
.ms-type .ms-video__frame { box-shadow: 0 14px 32px rgba(15, 46, 43, 0.14); }
.ms-type .ms-video--tall .ms-video__frame { max-width: 300px; margin: 0 auto; }

/* ============ Toy flow (toys page) ============ */
.ms-flow { list-style: none; counter-reset: ms-flow; margin: 0; padding: 0; display: grid; gap: 16px; max-width: 860px; }
.ms-flow li {
  counter-increment: ms-flow;
  position: relative;
  background: #fff;
  border: 1px solid #E3ECE8;
  border-radius: 18px;
  padding: 18px 20px 18px 74px;
}
.ms-flow li::before {
  content: counter(ms-flow);
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: linear-gradient(135deg, #FFB43A 0%, #FF7A59 100%);
  color: #402510;
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ms-flow h3 { font-size: 16.5px; margin: 0 0 4px; }
.ms-flow p { margin: 0; font-size: 14.5px; color: #516068; }

/* ============ Info cards (delivery, about, contacts) ============ */
.ms-infogrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.ms-infocard { background: #fff; border: 1px solid #E3ECE8; border-radius: 20px; padding: 24px 24px 18px; }
.ms-infocard h3 { font-size: 17.5px; }
.ms-infocard p:last-child { margin-bottom: 0; }
.ms-infocard--accent { background: #EAF8F4; border-color: #BCE3D8; }

.ms-requisites { background: #fff; border: 1px solid #E3ECE8; border-radius: 20px; padding: 26px 28px; }
.ms-requisites h3 { font-size: 18px; }
.ms-req-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ms-req-table th { text-align: left; width: 260px; padding: 9px 14px 9px 0; color: #64737B; font-weight: 500; vertical-align: top; border-bottom: 1px solid #EEF3F1; }
.ms-req-table td { padding: 9px 0; color: #24413C; font-weight: 500; border-bottom: 1px solid #EEF3F1; }
.ms-req-table tr:last-child th, .ms-req-table tr:last-child td { border-bottom: 0; }

/* ============ Audience cards (partners) ============ */
.ms-aud { background: #fff; border: 1px solid #E3ECE8; border-radius: 20px; padding: 24px 22px 20px; }
.ms-aud h3 { font-size: 17px; }
.ms-aud p { font-size: 14px; color: #64737B; margin: 0; }

/* ============ Value list (partners) ============ */
.ms-value { display: flex; gap: 16px; background: #fff; border: 1px solid #E3ECE8; border-radius: 18px; padding: 20px; }
.ms-value__ico { flex-shrink: 0; width: 46px; height: 46px; border-radius: 13px; background: linear-gradient(135deg, rgba(255, 180, 58, 0.16), rgba(255, 122, 89, 0.16)); display: flex; align-items: center; justify-content: center; }
.ms-value h3 { font-size: 16px; margin-bottom: 4px; }
.ms-value p { font-size: 13.5px; color: #64737B; margin: 0; }

/* ============ Contact tiles ============ */
.ms-contacts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.ms-contact-tile { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid #E3ECE8; border-radius: 20px; padding: 22px; text-decoration: none; color: #33424A; transition: transform 0.16s ease, box-shadow 0.16s ease; }
.ms-contact-tile:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(15, 46, 43, 0.10); text-decoration: none; color: #33424A; }
.ms-contact-tile__ico { flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #fff; }
.ms-contact-tile__ico--tg { background: #2AABEE; }
.ms-contact-tile__ico--max { background: linear-gradient(135deg, #6E5BFF, #8B7BFF); }
.ms-contact-tile__ico--mail { background: linear-gradient(135deg, #FFB43A, #FF7A59); }
.ms-contact-tile__ico--person { background: linear-gradient(135deg, #0FA394, #1E8FE0); }
.ms-contact-tile h3 { font-size: 16.5px; margin-bottom: 3px; }
.ms-contact-tile p { margin: 0; font-size: 14px; color: #64737B; }

/* ============ Responsive for sections ============ */
@media (max-width: 1080px) {
  .ms-steps { grid-template-columns: repeat(2, 1fr); }
  .ms-hero__in, .ms-split, .ms-bots { grid-template-columns: 1fr; gap: 34px; }
  .ms-hero__art { order: -1; }
  .ms-hero__art svg { max-width: 340px; height: auto; }
  .ms-type { grid-template-columns: 1fr; padding: 28px 24px; }
  .ms-type:nth-child(even) .ms-type__media { order: 0; }
  .ms-partner-band { grid-template-columns: 1fr; padding: 34px 28px; }
}
@media (max-width: 720px) {
  .ms-steps { grid-template-columns: 1fr; }
  .ms-infogrid, .ms-contacts { grid-template-columns: 1fr; }
  .ms-hero { padding: 44px 0 54px; }
  .ms-hero__facts { grid-template-columns: repeat(2, auto); }
  .ms-video--tall .ms-video__frame { max-width: 320px; margin: 0 auto; }
  .ms-req-table th { width: 150px; }
}
