
:root {
    --brand-purple: #3d2ead;
    --brand-orange: #fc6621;
    --ink: #101125;
    --muted: #5f6680;
    --surface: #ffffff;
    --sand: #f8f1e7;
    --line: #e8e7ef;
    --success: #00a86b;
    --radius-lg: 24px;
    --radius-md: 16px;
    --shadow: 0 18px 50px rgba(27, 30, 65, 0.14);

  --spb-main-bg: #3f31a1;
  --spb-orange: #ff6b35;
  --spb-radius: 12px;    
}

* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    color: var(--ink);
    background:
    radial-gradient(1100px 500px at 100% -10%, rgba(252, 102, 33, 0.2), transparent 45%),
    radial-gradient(900px 480px at -10% 20%, rgba(61, 46, 173, 0.2), transparent 44%),
    linear-gradient(180deg, #ffffff 0%, #f8f8fc 100%);
    line-height: 1.55;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(232, 231, 239, 0.9);
}

.topbar__inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.logo {
  width: 150px;
}

.logo__ball {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, var(--brand-orange), #ff995b);
    box-shadow: 0 10px 22px rgba(252, 102, 33, 0.35);
    color: #fff;
    font-size: 18px;
}

.logo__text {
    display: grid;
    gap: 0;
    line-height: 1.02;
}

.logo__name {
    font-family: "Inter", sans-serif;
    letter-spacing: 0;
    font-size: 17px;
    font-weight: 700;
}

.logo__sub {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.topbar__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.btn {
    appearance: none;
    border: 0;
    border-radius: 999px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    cursor: pointer;
    padding: 13px 20px;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn_primary {
    color: #fff;
    background: linear-gradient(135deg, var(--brand-purple), #5741d6);
    box-shadow: 0 14px 28px rgba(61, 46, 173, 0.35);
}

.btn_secondary {
    color: var(--brand-purple);
    background: #fff;
    border: 1px solid rgba(61, 46, 173, 0.24);
}

.hero {
    padding: 56px 0 40px;
}

.hero__layout {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 26px;
}

.hero__main,
.hero__card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.hero__main {
    padding: 38px;
    background:
    radial-gradient(620px 340px at 100% 0, rgba(252, 102, 33, 0.12), transparent 44%),
    radial-gradient(680px 320px at 0 100%, rgba(61, 46, 173, 0.11), transparent 43%),
    #fff;
}

.hero__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    border: 1px solid rgba(61, 46, 173, 0.2);
    color: var(--brand-purple);
    font-weight: 700;
    font-size: 13px;
    padding: 8px 12px;
    margin-bottom: 20px;
    background: #f7f6ff;
}

h1 {
    margin: 0;
    font-family: "Inter", sans-serif;
    font-size: clamp(34px, 4.5vw, 52px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
    max-width: 18ch;
    color: #1d1f3f;
}

.hero__lead {
    margin: 18px 0 24px;
    color: #384062;
    font-size: clamp(18px, 2.1vw, 22px);
    font-weight: 400;
    line-height: 1.55;
    max-width: 56ch;
}

.hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.chip {
    background: #fff;
    border: 1px solid #ebe8f8;
    color: #2f3058;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}

.hero__cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero__card {
    padding: 30px;
    display: grid;
    align-content: start;
    gap: 18px;
    background:
    radial-gradient(460px 220px at -10% -10%, rgba(61, 46, 173, 0.09), transparent 45%),
    linear-gradient(180deg, #ffffff, #fbfbff);
}

.hero__card h2 {
    margin: 0;
    font-size: 22px;
    color: #20234a;
    line-height: 1.25;
}

.hero__photo-card {
    padding: 0;
    min-height: 460px;
    display: block;
}

.hero__photo {
    width: 100%;
    height: 100%;
    margin: 0;
    position: relative;
}

.hero__photo img {
    width: 100%;
    height: 100%;
    min-height: 460px;
    object-fit: cover;
    display: block;
}

.hero__photo figcaption {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    margin: 0;
    background: rgba(22, 25, 54, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 700;
}

.hero__price {
    border: 1px solid #eceaf8;
    border-radius: var(--radius-md);
    padding: 16px;
    background: #fff;
}

.hero__price + .hero__price {
    margin-top: 8px;
}

.hero__price-title {
    margin: 0 0 4px;
    color: #252750;
    font-size: 16px;
    font-weight: 700;
}

.hero__price-value {
    margin: 0;
    color: var(--brand-purple);
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
}

.hero__price-note {
    margin: 6px 0 0;
    color: #676d86;
    font-size: 14px;
    font-weight: 600;
}

.section {
    padding: 44px 0;
}

.section__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.section__title {
    margin: 0;
    font-size: clamp(30px, 3.4vw, 42px);
    line-height: 1.23;
    font-weight: 700;
    color: #1f2245;
    font-family: "Inter", sans-serif;
    text-transform: none;
    letter-spacing: 0;
}

.section__caption {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.card {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #fff;
    padding: 20px;
    box-shadow: 0 10px 24px rgba(27, 30, 65, 0.08);
    height: 100%;
}

.shift {
    background:
    linear-gradient(160deg, rgba(61, 46, 173, 0.06), transparent 50%),
    #fff;
    border-top: 4px solid var(--brand-purple);
}

.shift__title {
    margin: 0 0 8px;
    color: #1d2043;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.08;
}

.shift__meta {
    margin: 0;
    color: #515774;
    font-size: 15px;
    font-weight: 600;
}

.program {
    background:
    radial-gradient(860px 280px at 80% -10%, rgba(252, 102, 33, 0.09), transparent 40%),
    #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    padding: 24px;
    box-shadow: var(--shadow);
}

.program-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.program-list li {
    position: relative;
    padding: 14px 14px 14px 48px;
    border: 1px solid #ebe9f7;
    border-radius: 14px;
    background: #fff;
    color: #2f365a;
    font-weight: 600;
    min-height: 68px;
    display: flex;
    align-items: center;
}

.program-list li::before {
    content: "✓";
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--brand-orange), #ff8c4a);
}

.lead {
    background:
    radial-gradient(500px 260px at 100% 0, rgba(252, 102, 33, 0.14), transparent 55%),
    radial-gradient(500px 230px at 0 100%, rgba(61, 46, 173, 0.14), transparent 52%),
    #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 28px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 26px;
}

.lead__title {
    margin: 0 0 14px;
    color: #202348;
    font-size: clamp(30px, 3.2vw, 40px);
    line-height: 1.23;
    font-weight: 700;
    font-family: "Inter", sans-serif;
    text-transform: none;
}

.lead__text {
    color: #394064;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.lead__urgent {
    margin: 16px 0 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff2ea;
    border: 1px solid #ffd6bf;
    color: #c94b11;
    font-weight: 700;
    font-size: 13px;
}

.lead-pricing {
    padding: 24px;
}

.contacts {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.contact {
    border-radius: 999px;
    padding: 10px 14px;
    border: 1px solid #ebe8f7;
    background: #fff;
    color: #2f325a;
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
}

.faq {
    padding-bottom: 120px;
}

.faq-grid {
    display: grid;
    gap: 12px;
}

.faq-item {
    border: 1px solid #ebe9f7;
    border-radius: 14px;
    background: #fff;
    padding: 16px;
}

.faq-item h3 {
    margin: 0 0 8px;
    font-size: 16px;
    color: #1f234a;
}

.faq-item p {
    margin: 0;
    color: #4f5674;
    font-size: 15px;
    font-weight: 600;
}

.float-cta {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 40;
    display: none;
    gap: 10px;
}

.float-cta .btn {
    flex: 1;
    min-height: 48px;
    padding: 12px 14px;
    font-size: 14px;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .hero__layout,
    .lead {
    grid-template-columns: 1fr;
    }

    .hero {
    padding-top: 32px;
    }

    .grid-3 {
    grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .topbar__inner {
    min-height: 66px;
    }

    .topbar__actions .btn_secondary {
    display: none;
    }

    .hero__main,
    .hero__card,
    .program,
    .lead {
    padding: 20px;
    }

    .grid-3,
    .grid-2,
    .program-list {
    grid-template-columns: 1fr;
    }

    .section {
    padding: 30px 0;
    }

    .float-cta {
    display: flex;
    flex-direction: column;
    }

    .faq {
    padding-bottom: 96px;
    }

    .hero__cta .btn {
    width: 100%;
    }
}

/* Форма */
.contact-section {
  padding: 40px 20px;
  background: #f4f3fb;
  font-family: Inter, sans-serif;
}

.contact-card {
  max-width: 1200px;
  margin: 0 auto;
  background: linear-gradient(135deg, #fff 0%, #f8f6ff 100%);
  border-radius: 32px;
  padding: 56px;
  box-shadow: 0 10px 40px rgba(22, 32, 91, 0.04);
  border: 1px solid rgba(114, 91, 255, 0.08);
}

.contact-content {
  max-width: 560px;
}

.contact-badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff4ec;
  border: 1px solid #ffcda7;
  color: #d96c1f;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 28px;
}

.contact-title {
  margin: 0 0 18px;
  font-size: 52px;
  line-height: 1.05;
  font-weight: 800;
  color: #17255a;
  letter-spacing: -0.03em;
}

.contact-text {
  margin: 0 0 36px;
  font-size: 20px;
  line-height: 1.6;
  color: #44507a;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 10px 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group label {
  font-size: 15px;
  font-weight: 600;
  color: #17255a;
}

.form-group input {
  height: 55px;
  padding: 0 22px;
  border-radius: 20px;
  border: 1px solid #dcdcf3;
  background: #fff;
  font-size: 17px;
  color: #17255a;
  transition: 0.2s ease;
  outline: none;
}

.form-group input::placeholder {
  color: #9aa3c2;
}

.form-group input:focus {
  border-color: #5c4eff;
  box-shadow: 0 0 0 4px rgba(92, 78, 255, 0.08);
}

.submit-btn {
  height: 55px;
  margin-top: 0px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #5c4eff 0%, #4435db 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s ease;
}
.submit-btn {
  position: relative;
  height: 64px;
  border: none;
  border-radius: 20px;
  background: linear-gradient(135deg, #5c4eff 0%, #4435db 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(92, 78, 255, 0.25);
}

.submit-btn:disabled {
  cursor: not-allowed;
  opacity: 0.8;
  transform: none;
}

.submit-btn.loading .btn-text {
  opacity: 0.7;
}

.btn-loader {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  display: none;
  animation: spin 0.7s linear infinite;
}

.submit-btn.loading .btn-loader {
  display: block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.form-message {
  display: none;
  padding: 18px 20px;
  border-radius: 18px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.form-message.show {
  display: block;
}

.form-message.success {
  background: #edf9f0;
  border: 1px solid #b8e7c2;
  color: #1f7a36;
}

.form-message.error {
  background: #fff1f1;
  border: 1px solid #ffcaca;
  color: #c0392b;
}

@media (max-width: 768px) {
  .contact-card {
    padding: 32px 24px;
    border-radius: 24px;
  }

  .contact-title {
    font-size: 38px;
  }

  .contact-text {
    font-size: 17px;
  }

  .form-group input,
  .submit-btn {
    height: 58px;
  }
}

/* Футер */
.footer {
  background: #3d2db0;
  padding: 95px 20px 40px;
}

.footer__container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer__nav {
  display: flex;
  justify-content: left;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 28px;
}

.footer__nav a {
  position: relative;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  line-height: 1.2;
  transition: opacity 0.2s ease;
  border-bottom: 1px solid rgb(255, 163, 69);
}


.footer__nav a:hover {
  opacity: 0.75;
}

@media (max-width: 470px){
    .topbar__inner{
        flex-wrap: wrap;
        justify-content: center;
        padding: 10px;
    }
}


/* Используем переменные внутри блока, чтобы не загрязнять глобальную область */
.spb-card-widget {

  
  width: 360px;
  background: var(--spb-main-bg);
  border-radius: var(--spb-radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  line-height: 1.4;
  
  position: absolute;
  top: 100px;
  left: 320px;

  z-index: 10;

  border-radius: 10px;


  box-shadow:
    0 20px 60px rgba(0,0,0,0.18),
    0 4px 16px rgba(0,0,0,0.08);
}

/* Элементы верхней части */
.spb-card-widget__header {
  padding: 35px 30px;
  border-radius: 10px;
  background-color: #FFFFFF;
}

.spb-card-widget__brand {
  margin-bottom: 10px;
  width: 190px;
}

.spb-card-widget__logo-main {
  font-size: 24px;
  font-weight: 800;
  color: var(--spb-main-bg);
  font-style: italic;
  letter-spacing: -0.5px;
}

.spb-card-widget__logo-accent {
  color: #2b2175;
}

.spb-card-widget__details {
  margin-bottom: 24px;
}

.spb-card-widget__text {
  font-size: 16px;
  color: #333333;
  margin: 0 0 10px 0;
}

.spb-card-widget__text--bold {
  font-weight: 700;
  margin-bottom: 0;
}

/* Элементы нижней части */
.spb-card-widget__footer {
  background-color: var(--spb-main-bg);
  padding: 35px 30px 25px;
  color: #ffffff;
}

.spb-card-widget__contacts {
  margin-bottom: 24px;
}

.spb-card-widget__link {
  display: block;
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.spb-card-widget__link:hover {
  opacity: 0.8;
}

.spb-card-widget__link--phone {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.spb-card-widget__link--email {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

/* Кнопки */
.spb-card-widget__action {
  display: block;
  width: 180px;
  height: 40px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: 0.2s all;

}




.spb-card-widget__action:active {
  transform: scale(0.98);
}

.spb-card-widget__action--outline {
  border: 1px solid var(--spb-orange);
  color: var(--spb-orange);
  background: transparent;
}

.spb-card-widget__action--outline:hover {
  background-color: var(--spb-orange);
  color: #ffffff;
}

.spb-card-widget__action--filled {
  background-color: var(--spb-orange);
  color: #ffffff;
  margin-bottom: 24px;
  margin-top: 24px;
}

.spb-card-widget__action:hover {
  filter: brightness(1.1);
}

/* Соцсети */
.spb-card-widget__social-row {
  display: flex;
  gap: 25px;
  margin-bottom: 20px;
  margin-top: 20px;
}

.spb-card-widget__social-item {
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: start;
  transition: transform 0.2s ease;
}

.spb-card-widget__social-item span {
  margin-top: -5px;
}

.spb-card-widget__social-item:hover {
  transform: translateY(-2px);
}

.spb-card-widget__note {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

section {
  position: relative;
}

.map {
  position: relative;
  z-index: 1;
}

.map iframe {
  width: 100%;
}


.spb-card-mobile-widget {
  display: none;
}

.map__iframe-mobile {
  display: none;
}

@media (max-width: 1200px){
  .spb-card-widget {
      left: 60px;
  }
}


.ymaps-layers-pane {
    -webkit-filter: grayscale(100%);
}

#map {
  width: 100%;
  height: 800px
}

#map_mobile {
  width: 100%;
  height: 350px;
  display: none;
}

@media (max-width: 700px){
  .spb-card-widget {
      display: none;
  }
  .spb-card-mobile-widget {
    display: block;
  }
  .map__iframe {
    display: none;
  }
  .map__iframe-mobile {
    display: block;
  }  

  #map {
    display: none;
  }
  #map_mobile {
    display: block;
  }
  .spb-card-mobile-widget .spb-card-widget__footer {
    background-color: #3f31a1;
  }

  .spb-card-mobile-widget .spb-card-mobile-widget__title {
    font-size: 40px;
    font-weight: 700;
    color: #3f31a1;
    text-transform: uppercase;
    margin: 0 5px 12px;
  }

  .spb-card-mobile-widget .spb-card-widget__details {
    color: #333333;
    margin: 0 0 20px 5px;
  }

  .spb-card-mobile-widget .spb-card-widget__text {
    font-size: 16px;
  }

  .spb-card-widget__buttons {
    display: flex;
    flex-direction: row;
    gap: 15px;
    margin: 0 5px 12px;
  }

  .spb-card-mobile-widget .spb-card-widget__action--outline{
    border: 1px solid var(--spb-orange);
    color: var(--spb-orange);
    font-size: 12px;
  }

  .spb-card-mobile-widget .spb-card-widget__action--filled {
    background-color: var(--spb-orange);
    color: #ffffff;
    margin: 0;
    font-size: 12px;
  }
}
