
.rifert-scope{
  --orange: #ff7138;
  --orange-dark: #e85c24;
  --orange-light: #ffe4d5;
  --lilac: #c9b6f2;
  --lilac-light: #f2ecff;
  --violet: #7353a6;
  --milk: #fff8f3;
  --white: #ffffff;
  --ink: #2b211d;
  --muted: #6f655f;
  --border: rgba(78, 54, 43, 0.11);
  --shadow: 0 24px 70px rgba(76, 49, 35, 0.11);
  --shadow-soft: 0 14px 40px rgba(76, 49, 35, 0.08);
  --radius-lg: 36px;
  --radius-md: 24px;
  --radius-sm: 16px;
  --container: 1420px;
  --header-height: 96px;
}

.rifert-scope, .rifert-scope *{ box-sizing: border-box; }
.rifert-scope{ scroll-behavior: smooth; scroll-padding-top: 105px; }
.rifert-scope{
  margin: 0;
  color: var(--ink);
  background: var(--milk);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
.rifert-scope.modal-open{ overflow: hidden; }
.rifert-scope img{ display: block; max-width: 100%; }
.rifert-scope a{ color: inherit; text-decoration: none; }
.rifert-scope button, .rifert-scope input{ font: inherit; }
.rifert-scope button{ color: inherit; }

.rifert-scope .skip-link{
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-150%);
}
.rifert-scope .skip-link:focus{ transform: translateY(0); }

.rifert-scope .container{ width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.rifert-scope .section{ padding: 120px 0; position: relative; }
.rifert-scope .section-tight{ padding: 58px 0 104px; }

.rifert-scope h1, .rifert-scope h2, .rifert-scope h3{ font-family: "Manrope", sans-serif; margin: 0; line-height: 1.15; letter-spacing: -0.035em; }
.rifert-scope h1{ font-size: clamp(44px, 4.35vw, 70px); font-weight: 800; }
.rifert-scope h2{ font-size: clamp(36px, 3.25vw, 52px); font-weight: 750; }
.rifert-scope h3{ font-size: 23px; font-weight: 700; }
.rifert-scope p{ margin: 0; }

.rifert-scope .eyebrow{
  display: inline-block;
  margin-bottom: 16px;
  color: var(--violet);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.rifert-scope .button{
  min-height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border: 1px solid transparent;
  border-radius: 15px;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  white-space: normal;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.rifert-scope .button:hover{ transform: translateY(-2px); }
.rifert-scope .button:focus-visible{ outline: 3px solid rgba(115,83,166,.28); outline-offset: 3px; }
.rifert-scope .button-primary{ background: var(--orange); color: #fff; box-shadow: 0 14px 28px rgba(255,113,56,.24); }
.rifert-scope .button-primary:hover{ background: var(--orange-dark); box-shadow: 0 18px 32px rgba(255,113,56,.32); }
.rifert-scope .button-secondary{ background: rgba(255,255,255,.74); border-color: var(--lilac); color: var(--violet); }
.rifert-scope .button-secondary:hover{ background: var(--lilac-light); border-color: var(--violet); }
.rifert-scope .button-ghost{ background: transparent; border-color: var(--border); }
.rifert-scope .section-action{ margin-top: 42px; text-align: center; }

.rifert-scope .site-header{
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,248,243,.88);
  border-bottom: 1px solid rgba(78,54,43,.07);
  backdrop-filter: blur(18px);
}
.rifert-scope .header-inner{ height: 100%; display: flex; align-items: center; gap: 34px; }
.rifert-scope .brand{ width: 230px; flex: 0 0 auto; display: flex; align-items: center; height: 78px; overflow: hidden; }
.rifert-scope .brand img{ width: 205px; height: auto; transform: translateY(3px); }
.rifert-scope .desktop-nav{ margin-left: auto; display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 600; }
.rifert-scope .desktop-nav a{ position: relative; white-space: nowrap; }
.rifert-scope .desktop-nav a::after{ content: ""; position: absolute; height: 2px; left: 0; right: 100%; bottom: -8px; background: var(--orange); transition: right .2s ease; }
.rifert-scope .desktop-nav a:hover::after{ right: 0; }
.rifert-scope .header-actions{ display: flex; align-items: center; gap: 15px; margin-left: 16px; }
.rifert-scope .phone-link, .rifert-scope .messenger-link{ display: inline-flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 700; white-space: nowrap; }
.rifert-scope .messenger-link{ border: 0; background: transparent; cursor: default; opacity: .72; padding: 0; }
.rifert-scope .icon-circle{ width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--orange-light); color: var(--orange-dark); font-weight: 800; }
.rifert-scope .icon-max{ background: var(--lilac-light); color: var(--violet); }
.rifert-scope .menu-toggle{ display: none; width: 44px; height: 44px; padding: 9px; border: 0; background: transparent; }
.rifert-scope .menu-toggle span{ display: block; height: 2px; margin: 5px 0; background: var(--ink); border-radius: 3px; }
.rifert-scope .mobile-menu{ background: var(--milk); border-bottom: 1px solid var(--border); }
.rifert-scope .mobile-menu-inner{ padding: 22px 0 28px; display: grid; gap: 14px; font-weight: 600; }

.rifert-scope .hero{ overflow: hidden; }
.rifert-scope .hero-grid{ min-height: calc(100vh - var(--header-height) - 40px); display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: 56px; }
.rifert-scope .hero-copy{ position: relative; z-index: 2; }
.rifert-scope .addresses-line{ display: flex; align-items: center; gap: 12px; margin-bottom: 28px; color: #61534b; font-size: 16px; font-weight: 600; flex-wrap: wrap; }
.rifert-scope .addresses-line svg{ width: 22px; height: 22px; stroke: var(--orange); fill: none; stroke-width: 1.9; }
.rifert-scope .addresses-line i, .rifert-scope .trust-line i{ width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }
.rifert-scope .hero h1 span{ color: var(--orange); }
.rifert-scope .hero-lead{ max-width: 690px; margin-top: 26px; color: var(--muted); font-size: 21px; line-height: 1.55; }
.rifert-scope .hero-buttons{ display: flex; gap: 16px; margin-top: 34px; }
.rifert-scope .hero-buttons .button{ min-width: 230px; }
.rifert-scope .hero-features{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 32px; }
.rifert-scope .mini-card{ display: flex; align-items: center; gap: 13px; padding: 18px; background: rgba(255,255,255,.84); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-soft); }
.rifert-scope .mini-icon{ width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 13px; background: var(--lilac-light); color: var(--violet); font-family: "Manrope"; font-weight: 800; font-size: 22px; }
.rifert-scope .mini-card:nth-child(2) .mini-icon{ background: var(--orange-light); color: var(--orange-dark); }
.rifert-scope .mini-card strong, .rifert-scope .mini-card span{ display: block; }
.rifert-scope .mini-card strong{ font-size: 15px; }
.rifert-scope .mini-card span{ color: var(--muted); font-size: 13px; line-height: 1.3; }
.rifert-scope .trust-line{ margin-top: 26px; display: flex; align-items: center; gap: 12px; color: #7a6e67; font-size: 14px; font-weight: 500; flex-wrap: wrap; }
.rifert-scope .hero-media{ position: relative; z-index: 1; min-width: 0; }
.rifert-scope .hero-blob{ position: absolute; inset: -8% -8% -12% -10%; border-radius: 44% 56% 47% 53% / 54% 42% 58% 46%; background: linear-gradient(135deg, rgba(201,182,242,.55), rgba(242,236,255,.68) 58%, rgba(255,228,213,.78)); transform: rotate(-4deg); }
.rifert-scope .hero-image-frame{ position: relative; overflow: hidden; border: 8px solid rgba(255,255,255,.82); border-radius: 42px; box-shadow: var(--shadow); }
.rifert-scope .hero-image-frame img{ width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.rifert-scope .section-heading{ max-width: 880px; }
.rifert-scope .section-heading h2 + p, .rifert-scope .section-heading p:last-child{ margin-top: 22px; color: var(--muted); font-size: 20px; }
.rifert-scope .split-heading{ max-width: none; display: grid; grid-template-columns: 1.05fr .95fr; align-items: end; gap: 72px; }
.rifert-scope .split-heading > p{ color: var(--muted); font-size: 20px; }
.rifert-scope .centered-heading{ margin-inline: auto; text-align: center; }

.rifert-scope .approach{ background: #fff; }
.rifert-scope .feature-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 54px; }
.rifert-scope .feature-card{ padding: 34px; min-height: 270px; border-radius: var(--radius-md); background: var(--milk); border: 1px solid var(--border); }
.rifert-scope .feature-card:nth-child(2){ background: var(--lilac-light); }
.rifert-scope .feature-icon{ width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; background: #fff; font-size: 30px; box-shadow: 0 8px 22px rgba(79,56,43,.08); }
.rifert-scope .feature-card h3{ margin-top: 24px; }
.rifert-scope .feature-card p{ margin-top: 14px; color: var(--muted); }

.rifert-scope .mini-groups{ background: #fff; }
.rifert-scope .mini-groups-panel{ padding: 76px; border-radius: 44px; background: linear-gradient(135deg, #eee5ff 0%, #f8f3ff 52%, #ffece1 100%); overflow: hidden; position: relative; }
.rifert-scope .mini-groups-panel::after{ content: ""; position: absolute; width: 300px; height: 300px; border: 2px solid rgba(115,83,166,.13); border-radius: 50%; right: -140px; top: -90px; }
.rifert-scope .mini-groups-intro{ display: grid; grid-template-columns: 190px 1fr; gap: 44px; align-items: start; position: relative; z-index: 1; }
.rifert-scope .big-four{ font-family: "Manrope"; font-size: 190px; line-height: .82; font-weight: 800; color: var(--orange); text-shadow: 0 16px 42px rgba(255,113,56,.22); }
.rifert-scope .mini-groups-intro p:last-child{ margin-top: 22px; max-width: 930px; color: var(--muted); font-size: 19px; }
.rifert-scope .advantage-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 50px; position: relative; z-index: 1; }
.rifert-scope .advantage-grid article{ padding: 26px; background: rgba(255,255,255,.75); border: 1px solid rgba(255,255,255,.8); border-radius: 22px; }
.rifert-scope .advantage-grid article > span{ width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: #fff; color: var(--violet); font-weight: 800; font-size: 24px; }
.rifert-scope .advantage-grid h3{ margin-top: 18px; font-size: 19px; letter-spacing: -.02em; }
.rifert-scope .advantage-grid p{ margin-top: 11px; color: var(--muted); font-size: 15px; line-height: 1.55; }

.rifert-scope .branches{ background: var(--milk); }
.rifert-scope .branch-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.rifert-scope .branch-card{ overflow: hidden; border-radius: 26px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-soft); }
.rifert-scope .branch-gallery{ display: grid; grid-template-columns: 1.6fr .8fr; grid-template-rows: 1fr 1fr; gap: 5px; height: 410px; background: #eee; }
.rifert-scope .branch-gallery img{ width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.rifert-scope .branch-gallery:hover img{ transform: scale(1.02); }
.rifert-scope .branch-main{ grid-row: 1 / 3; }
.rifert-scope .branch-content{ display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding: 26px; }
.rifert-scope .branch-label{ color: var(--violet); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.rifert-scope .branch-content h3{ margin-top: 5px; }
.rifert-scope .map-link{ color: var(--orange-dark); font-size: 14px; font-weight: 700; white-space: nowrap; }

.rifert-scope .events{ background: #fff; overflow: hidden; }
.rifert-scope .events::before{ content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: rgba(201,182,242,.24); left: -220px; bottom: -250px; }
.rifert-scope .events-grid{ display: grid; grid-template-columns: .78fr 1.22fr; gap: 64px; align-items: center; }
.rifert-scope .events-copy h2{ max-width: 660px; }
.rifert-scope .events-copy > p:not(.eyebrow){ margin-top: 24px; color: var(--muted); font-size: 20px; }
.rifert-scope .tag-list{ display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 34px; }
.rifert-scope .tag-list span{ padding: 9px 14px; border-radius: 999px; background: var(--lilac-light); color: var(--violet); font-size: 14px; font-weight: 600; }
.rifert-scope .events-gallery{ display: grid; grid-template-columns: 1.1fr .9fr; grid-template-rows: 1fr 1fr; gap: 16px; min-height: 620px; }
.rifert-scope .gallery-photo{ padding: 0; border: 0; overflow: hidden; border-radius: 24px; cursor: zoom-in; background: #ddd; }
.rifert-scope .gallery-photo-large{ grid-row: 1 / 3; }
.rifert-scope .gallery-photo img{ width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.rifert-scope .gallery-photo:hover img{ transform: scale(1.035); }

.rifert-scope .teachers{ background: linear-gradient(180deg, var(--lilac-light), #fff 80%); }
.rifert-scope .teacher-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 58px; }
.rifert-scope .teacher-card{ overflow: hidden; background: rgba(255,255,255,.92); border: 1px solid rgba(115,83,166,.13); border-radius: 24px; box-shadow: var(--shadow-soft); }
.rifert-scope .teacher-card img{ width: 100%; aspect-ratio: .92; object-fit: cover; object-position: top center; }
.rifert-scope .teacher-card > div{ padding: 23px 22px 26px; }
.rifert-scope .teacher-role{ display: block; color: var(--violet); font-size: 13px; font-weight: 700; margin-bottom: 7px; }
.rifert-scope .teacher-card h3{ font-size: 20px; line-height: 1.25; }
.rifert-scope .teacher-card p{ margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.rifert-scope .teacher-director{ border: 2px solid rgba(255,113,56,.72); transform: translateY(-6px); }

.rifert-scope .reviews{ background: var(--milk); }
.rifert-scope .reviews-top{ display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.rifert-scope .reviews-badge{ padding: 24px 28px; border-radius: 22px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-soft); text-align: center; }
.rifert-scope .reviews-badge strong{ display: block; color: #f3b51b; letter-spacing: .08em; font-size: 24px; }
.rifert-scope .reviews-badge span{ display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }
.rifert-scope .review-grid{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 52px; }
.rifert-scope .review-card{ padding: 32px; background: #fff; border-radius: 24px; border: 1px solid var(--border); box-shadow: var(--shadow-soft); }
.rifert-scope .review-card header{ display: grid; grid-template-columns: 50px 1fr auto; gap: 14px; align-items: center; }
.rifert-scope .avatar{ width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; background: var(--lilac-light); color: var(--violet); font-weight: 800; }
.rifert-scope .review-card h3{ font-size: 18px; }
.rifert-scope .review-card header span{ color: var(--muted); font-size: 13px; }
.rifert-scope .review-card header b{ color: #f3b51b; font-size: 15px; letter-spacing: .05em; }
.rifert-scope .review-card > p{ margin-top: 22px; font-size: 17px; color: #4c403a; }
.rifert-scope .review-original{ margin-top: 20px; padding: 0; border: 0; background: none; color: var(--violet); font-size: 14px; font-weight: 700; cursor: pointer; }

.rifert-scope .programs{ padding-top: 80px; background: #fff; }
.rifert-scope .program-strip{ margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rifert-scope .program-strip div{ padding: 30px; border-radius: 22px; background: var(--lilac-light); border: 1px solid rgba(115,83,166,.13); }
.rifert-scope .program-strip div:nth-child(2){ background: var(--orange-light); }
.rifert-scope .program-strip strong, .rifert-scope .program-strip span{ display: block; }
.rifert-scope .program-strip strong{ color: var(--violet); font-family: "Manrope"; font-size: 21px; }
.rifert-scope .program-strip div:nth-child(2) strong{ color: var(--orange-dark); }
.rifert-scope .program-strip span{ margin-top: 8px; color: var(--muted); }

.rifert-scope .prices{ background: #fff; }
.rifert-scope .price-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; align-items: stretch; }
.rifert-scope .price-card{ position: relative; display: flex; flex-direction: column; padding: 34px 28px; border-radius: 25px; border: 1px solid var(--border); background: var(--milk); }
.rifert-scope .price-featured{ border: 2px solid var(--orange); background: #fff; box-shadow: 0 22px 50px rgba(255,113,56,.14); }
.rifert-scope .popular-badge{ position: absolute; top: -15px; left: 24px; padding: 7px 13px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 12px; font-weight: 700; }
.rifert-scope .price-card h3{ min-height: 58px; font-size: 22px; }
.rifert-scope .price{ display: flex; align-items: baseline; gap: 7px; margin-top: 22px; }
.rifert-scope .price strong{ font-family: "Manrope"; font-size: 35px; color: var(--orange-dark); }
.rifert-scope .price span{ color: var(--muted); font-size: 14px; }
.rifert-scope .price-card ul{ margin: 25px 0 30px; padding: 0; list-style: none; display: grid; gap: 12px; color: var(--muted); font-size: 15px; }
.rifert-scope .price-card li{ position: relative; padding-left: 24px; }
.rifert-scope .price-card li::before{ content: "✓"; position: absolute; left: 0; color: var(--violet); font-weight: 800; }
.rifert-scope .price-card .button{ margin-top: auto; width: 100%; min-height: 54px; padding-inline: 18px; font-size: 15px; }

.rifert-scope .final-cta{ background: var(--milk); }
.rifert-scope .final-cta-panel{ min-height: 500px; padding: 70px 76px; display: grid; grid-template-columns: 1.18fr .82fr; align-items: center; gap: 50px; border-radius: 42px; background: linear-gradient(135deg, #ffe4d5 0%, #fff3ec 40%, #eee5ff 100%); position: relative; overflow: hidden; }
.rifert-scope .final-cta-panel h2{ max-width: 850px; }
.rifert-scope .final-cta-panel p:not(.eyebrow){ margin-top: 22px; max-width: 800px; color: var(--muted); font-size: 19px; }
.rifert-scope .final-contacts{ display: flex; gap: 22px; margin: 27px 0; flex-wrap: wrap; font-weight: 700; }
.rifert-scope .final-contacts a{ color: var(--orange-dark); }
.rifert-scope .final-contacts span{ color: var(--violet); }
.rifert-scope .final-visual{ min-height: 330px; position: relative; display: grid; place-items: center; }
.rifert-scope .final-number{ width: 210px; height: 210px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.75); color: var(--orange); font: 800 128px/1 "Manrope"; box-shadow: var(--shadow-soft); }
.rifert-scope .final-visual > p{ position: absolute; bottom: 24px; margin: 0 !important; color: var(--violet) !important; text-align: center; font: 700 17px/1.2 "Manrope"; }
.rifert-scope .bubble{ position: absolute; padding: 10px 15px; border-radius: 999px; background: rgba(255,255,255,.78); color: var(--violet); box-shadow: var(--shadow-soft); font-size: 14px; font-weight: 700; }
.rifert-scope .bubble-1{ top: 8px; left: 8%; }
.rifert-scope .bubble-2{ top: 32%; right: 0; }
.rifert-scope .bubble-3{ bottom: 28%; left: 0; }

.rifert-scope .site-footer{ padding: 72px 0 24px; background: #241c19; color: #f7efe9; }
.rifert-scope .footer-grid{ display: grid; grid-template-columns: 1.35fr repeat(3, 1fr); gap: 54px; }
.rifert-scope .footer-brand img{ width: 190px; filter: invert(1) brightness(1.8); opacity: .94; }
.rifert-scope .footer-brand p{ margin-top: 18px; max-width: 330px; color: #cfc3bb; font-size: 15px; }
.rifert-scope .social-links{ display: flex; gap: 10px; margin-top: 24px; }
.rifert-scope .social-links a, .rifert-scope .social-links button{ width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: transparent; color: #fff; font-weight: 800; cursor: pointer; }
.rifert-scope .social-links button{ opacity: .55; cursor: default; }
.rifert-scope .footer-column{ display: flex; flex-direction: column; gap: 10px; }
.rifert-scope .footer-column h3{ margin-bottom: 9px; font-size: 17px; color: #fff; }
.rifert-scope .footer-column a, .rifert-scope .footer-column span{ color: #cfc3bb; font-size: 14px; }
.rifert-scope .footer-column a:hover{ color: #fff; }
.rifert-scope .footer-bottom{ margin-top: 56px; padding-top: 22px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.12); color: #9f9188; font-size: 13px; }

.rifert-scope .modal{ display: none; position: fixed; inset: 0; z-index: 500; }
.rifert-scope .modal.is-open{ display: block; }
.rifert-scope .modal-backdrop{ position: absolute; inset: 0; background: rgba(26,18,15,.72); backdrop-filter: blur(10px); }
.rifert-scope .quiz-dialog{ position: relative; width: min(calc(100% - 32px), 840px); max-height: calc(100vh - 32px); margin: 16px auto; padding: 48px; overflow-y: auto; background: var(--milk); border-radius: 30px; box-shadow: 0 32px 120px rgba(0,0,0,.3); }
.rifert-scope .modal-close{ position: absolute; top: 18px; right: 20px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(115,83,166,.08); color: var(--violet); font-size: 30px; line-height: 1; cursor: pointer; }
.rifert-scope .quiz-progress-wrap{ margin-bottom: 34px; padding-right: 55px; }
.rifert-scope .quiz-progress-wrap > span{ display: block; margin-bottom: 11px; color: var(--muted); font-size: 14px; font-weight: 600; }
.rifert-scope .quiz-progress{ height: 8px; border-radius: 99px; background: #e9dfd9; overflow: hidden; }
.rifert-scope .quiz-progress span{ display: block; width: 16.66%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--orange), var(--lilac)); transition: width .3s ease; }
.rifert-scope .quiz-step{ display: none; }
.rifert-scope .quiz-step.active{ display: block; animation: stepIn .25s ease; }
@keyframes stepIn{ from{ opacity: 0; transform: translateY(8px); } to{ opacity: 1; transform: none; } }
.rifert-scope .quiz-step h2{ font-size: clamp(30px, 4vw, 42px); }
.rifert-scope .quiz-options{ margin-top: 32px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.rifert-scope .quiz-options-wide{ grid-template-columns: 1fr; }
.rifert-scope .quiz-options label, .rifert-scope .contact-options label{ cursor: pointer; }
.rifert-scope .quiz-options input, .rifert-scope .contact-options input{ position: absolute; opacity: 0; pointer-events: none; }
.rifert-scope .quiz-options span{ min-height: 62px; display: flex; align-items: center; padding: 14px 18px; border: 1.5px solid var(--border); border-radius: 15px; background: #fff; font-weight: 600; transition: border .2s, background .2s, transform .2s; }
.rifert-scope .quiz-options label:hover span{ transform: translateY(-1px); border-color: var(--lilac); }
.rifert-scope .quiz-options input:checked + span{ border-color: var(--violet); background: var(--lilac-light); box-shadow: 0 0 0 3px rgba(115,83,166,.08); }
.rifert-scope .quiz-options input:focus-visible + span{ outline: 3px solid rgba(115,83,166,.2); }
.rifert-scope .quiz-controls{ display: flex; justify-content: space-between; gap: 14px; margin-top: 34px; }
.rifert-scope .quiz-controls .button-primary{ margin-left: auto; }
.rifert-scope .quiz-error{ margin-top: 18px; color: #b33c24; font-size: 14px; font-weight: 600; }
.rifert-scope .contact-intro{ margin-top: 16px; color: var(--muted); }
.rifert-scope .contact-options{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 26px; }
.rifert-scope .contact-options span{ min-height: 80px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px; border-radius: 16px; border: 1.5px solid var(--border); background: #fff; font-weight: 700; }
.rifert-scope .contact-options b{ width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--lilac-light); color: var(--violet); }
.rifert-scope .contact-options input:checked + span{ border-color: var(--violet); background: var(--lilac-light); }
.rifert-scope .phone-field{ display: block; margin-top: 24px; }
.rifert-scope .phone-field > span{ display: block; margin-bottom: 9px; font-weight: 700; }
.rifert-scope .phone-field input{ width: 100%; min-height: 62px; padding: 15px 18px; border: 1.5px solid var(--border); border-radius: 15px; background: #fff; font-size: 20px; outline: none; }
.rifert-scope .phone-field input:focus{ border-color: var(--violet); box-shadow: 0 0 0 3px rgba(115,83,166,.09); }
.rifert-scope .consent-field{ display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; color: var(--muted); font-size: 13px; }
.rifert-scope .consent-field input{ margin-top: 4px; accent-color: var(--violet); }
.rifert-scope .consent-field a{ color: var(--violet); text-decoration: underline; }
.rifert-scope .quiz-success{ padding: 28px 0 8px; text-align: center; }
.rifert-scope .success-icon{ width: 82px; height: 82px; display: grid; place-items: center; margin: 0 auto 26px; border-radius: 50%; background: var(--lilac-light); color: var(--violet); font-size: 42px; font-weight: 800; }
.rifert-scope .quiz-success p{ max-width: 580px; margin: 18px auto 28px; color: var(--muted); }
.rifert-scope .quiz-success .button{ margin: 7px; }

.rifert-scope .lightbox{ display: none; position: fixed; inset: 0; z-index: 600; place-items: center; padding: 30px; }
.rifert-scope .lightbox.is-open{ display: grid; }
.rifert-scope .lightbox-backdrop{ position: absolute; inset: 0; background: rgba(24,16,13,.88); }
.rifert-scope .lightbox img{ position: relative; z-index: 1; max-width: min(1100px, 96vw); max-height: 90vh; border-radius: 18px; box-shadow: 0 28px 90px rgba(0,0,0,.4); }
.rifert-scope .lightbox-close{ position: fixed; z-index: 2; top: 18px; right: 24px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: #fff; color: var(--ink); font-size: 34px; cursor: pointer; }

@media (max-width: 1280px){
  .rifert-scope{ --container: 1180px; }
  .rifert-scope .desktop-nav{ gap: 17px; }
  .rifert-scope .desktop-nav a:nth-child(4), .rifert-scope .desktop-nav a:nth-child(5){ display: none; }
  .rifert-scope .header-actions .messenger-link span:last-child{ display: none; }
  .rifert-scope .hero-grid{ gap: 36px; }
  .rifert-scope .hero-features{ grid-template-columns: 1fr 1fr; }
  .rifert-scope .hero-features .mini-card:last-child{ grid-column: 1 / 3; }
  .rifert-scope .teacher-grid{ grid-template-columns: repeat(3, 1fr); }
  .rifert-scope .price-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px){
  .rifert-scope{ --header-height: 82px; }
  .rifert-scope .container{ width: min(calc(100% - 32px), var(--container)); }
  .rifert-scope .section{ padding: 88px 0; }
  .rifert-scope .section-tight{ padding: 36px 0 78px; }
  .rifert-scope{ font-size: 17px; }
  .rifert-scope .brand{ width: 185px; height: 68px; }
  .rifert-scope .brand img{ width: 170px; }
  .rifert-scope .desktop-nav, .rifert-scope .header-actions .messenger-link{ display: none; }
  .rifert-scope .header-actions{ margin-left: auto; }
  .rifert-scope .phone-link span:last-child{ display: none; }
  .rifert-scope .menu-toggle{ display: block; }
  .rifert-scope .hero-grid{ min-height: auto; grid-template-columns: 1fr; gap: 60px; }
  .rifert-scope .hero-copy{ max-width: 800px; }
  .rifert-scope .hero-media{ max-width: 850px; width: 100%; margin-inline: auto; }
  .rifert-scope .hero-features{ grid-template-columns: repeat(3, 1fr); }
  .rifert-scope .hero-features .mini-card:last-child{ grid-column: auto; }
  .rifert-scope .split-heading{ grid-template-columns: 1fr; gap: 25px; }
  .rifert-scope .feature-grid{ grid-template-columns: 1fr; }
  .rifert-scope .feature-card{ min-height: 0; }
  .rifert-scope .mini-groups-panel{ padding: 58px 40px; }
  .rifert-scope .mini-groups-intro{ grid-template-columns: 120px 1fr; }
  .rifert-scope .big-four{ font-size: 130px; }
  .rifert-scope .advantage-grid{ grid-template-columns: 1fr 1fr; }
  .rifert-scope .branch-grid{ grid-template-columns: 1fr; }
  .rifert-scope .branch-gallery{ height: 520px; }
  .rifert-scope .events-grid{ grid-template-columns: 1fr; }
  .rifert-scope .teacher-grid{ grid-template-columns: repeat(2, 1fr); }
  .rifert-scope .reviews-top{ grid-template-columns: 1fr; }
  .rifert-scope .reviews-badge{ justify-self: start; }
  .rifert-scope .program-strip{ grid-template-columns: 1fr; }
  .rifert-scope .final-cta-panel{ padding: 58px 42px; grid-template-columns: 1fr; }
  .rifert-scope .final-visual{ min-height: 260px; }
  .rifert-scope .footer-grid{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px){
  .rifert-scope .container{ width: min(calc(100% - 24px), var(--container)); }
  .rifert-scope .section{ padding: 72px 0; }
  .rifert-scope .section-tight{ padding: 28px 0 64px; }
  .rifert-scope h1{ font-size: 38px; }
  .rifert-scope h2{ font-size: 31px; }
  .rifert-scope h3{ font-size: 20px; }
  .rifert-scope .header-actions{ gap: 6px; }
  .rifert-scope .icon-circle{ width: 34px; height: 34px; }
  .rifert-scope .hero-grid{ gap: 48px; }
  .rifert-scope .addresses-line{ font-size: 14px; gap: 8px; }
  .rifert-scope .addresses-line i{ display: none; }
  .rifert-scope .addresses-line span{ width: calc(50% - 16px); }
  .rifert-scope .hero-lead{ font-size: 18px; }
  .rifert-scope .hero-buttons{ flex-direction: column; }
  .rifert-scope .hero-buttons .button{ width: 100%; }
  .rifert-scope .hero-features{ grid-template-columns: 1fr; }
  .rifert-scope .hero-features .mini-card:last-child{ grid-column: auto; }
  .rifert-scope .trust-line{ font-size: 13px; }
  .rifert-scope .hero-image-frame{ border-width: 5px; border-radius: 28px; }
  .rifert-scope .section-heading h2 + p, .rifert-scope .section-heading p:last-child, .rifert-scope .split-heading > p, .rifert-scope .events-copy > p:not(.eyebrow){ font-size: 17px; }
  .rifert-scope .feature-card{ padding: 28px; }
  .rifert-scope .mini-groups-panel{ padding: 42px 22px; border-radius: 28px; }
  .rifert-scope .mini-groups-intro{ grid-template-columns: 1fr; gap: 16px; }
  .rifert-scope .big-four{ font-size: 112px; }
  .rifert-scope .advantage-grid{ grid-template-columns: 1fr; }
  .rifert-scope .branch-gallery{ height: 360px; }
  .rifert-scope .branch-content{ align-items: flex-start; flex-direction: column; }
  .rifert-scope .events-gallery{ min-height: 620px; grid-template-columns: 1fr; grid-template-rows: 2fr 1fr 1fr; }
  .rifert-scope .gallery-photo-large{ grid-row: auto; }
  .rifert-scope .teacher-grid{ grid-template-columns: 1fr; }
  .rifert-scope .teacher-card{ display: grid; grid-template-columns: 42% 58%; }
  .rifert-scope .teacher-card img{ aspect-ratio: auto; height: 100%; min-height: 230px; }
  .rifert-scope .teacher-card h3{ font-size: 18px; }
  .rifert-scope .teacher-director{ transform: none; }
  .rifert-scope .review-grid{ grid-template-columns: 1fr; }
  .rifert-scope .review-card{ padding: 24px; }
  .rifert-scope .review-card header{ grid-template-columns: 46px 1fr; }
  .rifert-scope .review-card header b{ grid-column: 2; }
  .rifert-scope .price-grid{ grid-template-columns: 1fr; }
  .rifert-scope .final-cta-panel{ padding: 42px 24px; border-radius: 28px; }
  .rifert-scope .final-visual{ display: none; }
  .rifert-scope .footer-grid{ grid-template-columns: 1fr; gap: 38px; }
  .rifert-scope .footer-bottom{ flex-direction: column; }
  .rifert-scope .quiz-dialog{ width: 100%; max-height: 100vh; height: 100%; margin: 0; border-radius: 0; padding: 34px 20px; }
  .rifert-scope .quiz-options{ grid-template-columns: 1fr; }
  .rifert-scope .contact-options{ grid-template-columns: 1fr; }
  .rifert-scope .quiz-controls{ position: sticky; bottom: -34px; margin: 32px -20px -34px; padding: 16px 20px 22px; background: linear-gradient(180deg, rgba(255,248,243,0), var(--milk) 18%); }
  .rifert-scope .quiz-controls .button{ flex: 1; }
}

@media (prefers-reduced-motion: reduce){
  .rifert-scope, .rifert-scope *, .rifert-scope *::before, .rifert-scope *::after{ scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}


/* ===== Правки по согласованному макету ===== */
.rifert-scope [hidden]{ display: none !important; }

/* Correct, uncropped brand */
.rifert-scope .site-header{ height: 104px; }
.rifert-scope .header-inner{ gap: 28px; }
.rifert-scope .brand{ width: 310px; height: 92px; overflow: visible; gap: 14px; }
.rifert-scope .brand img.brand-emblem{ width: 78px; height: 78px; object-fit: contain; transform: none; flex: 0 0 auto; }
.rifert-scope .brand-copy{ min-width: 0; display: flex; flex-direction: column; line-height: 1; }
.rifert-scope .brand-copy strong{ font-family: Georgia, "Times New Roman", serif; font-size: 25px; letter-spacing: .07em; font-weight: 500; white-space: nowrap; }
.rifert-scope .brand-copy small{ margin-top: 9px; font-size: 10px; letter-spacing: .28em; color: #75675f; white-space: nowrap; }
.rifert-scope .icon-circle.icon-max{ width: auto; min-width: 52px; padding: 0 10px; border-radius: 999px; }

/* Wide desktop hero as approved */
.rifert-scope{ --container: 1600px; --header-height: 104px; }
.rifert-scope .hero.section-tight{ padding: 56px 0 92px; }
.rifert-scope .hero-grid{ min-height: 720px; grid-template-columns: .9fr 1.1fr; gap: 70px; }
.rifert-scope .hero-copy{ max-width: 720px; }
.rifert-scope .hero h1{ font-size: clamp(48px, 4.15vw, 68px); }
.rifert-scope .hero-media-desktop .hero-image-frame img{ aspect-ratio: 16/10; }
.rifert-scope .hero-media-mobile{ display: none; }

/* Compact events block */
.rifert-scope .events.section{ padding-top: 86px; padding-bottom: 86px; }
.rifert-scope .events-grid{ grid-template-columns: .92fr 1.08fr; gap: 54px; align-items: center; }
.rifert-scope .events-copy > p:not(.eyebrow){ font-size: 18px; }
.rifert-scope .events-gallery{ min-height: 430px; max-height: 430px; gap: 12px; }
.rifert-scope .gallery-photo{ border-radius: 20px; }

/* Centre the second teacher row */
.rifert-scope .teacher-grid{ display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.rifert-scope .teacher-card{ flex: 0 1 calc((100% - 72px) / 4); min-width: 250px; }

/* Four compact review cards per desktop row */
.rifert-scope .reviews-badge strong{ display: flex; align-items: baseline; justify-content: center; gap: 8px; }
.rifert-scope .reviews-badge strong em{ color: var(--violet); font-style: normal; font-size: 30px; letter-spacing: 0; }
.rifert-scope .review-grid{ grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-top: 42px; }
.rifert-scope .review-card{ padding: 22px; border-radius: 20px; }
.rifert-scope .review-card header{ grid-template-columns: 42px 1fr; gap: 10px; align-items: center; }
.rifert-scope .review-card header b{ grid-column: 2; font-size: 13px; }
.rifert-scope .avatar{ width: 42px; height: 42px; }
.rifert-scope .review-card h3{ font-size: 16px; }
.rifert-scope .review-card header span{ font-size: 12px; }
.rifert-scope .review-card > p{ margin-top: 16px; font-size: 15px; line-height: 1.55; }

/* Branch photos open a gallery; only explicit map link navigates */
.rifert-scope .branch-gallery{ cursor: zoom-in; }
.rifert-scope .branch-gallery:focus-visible{ outline: 4px solid rgba(115,83,166,.35); outline-offset: 3px; }

/* Six-question circle */
.rifert-scope .final-number{ width: 230px; height: 230px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.rifert-scope .final-number span{ font: 800 112px/.82 "Manrope"; }
.rifert-scope .final-number small{ color: var(--violet); font: 700 17px/1.18 "Manrope"; text-align: center; }

/* Footer logo and MAX */
.rifert-scope .footer-logo{ display: flex; align-items: center; gap: 16px; }
.rifert-scope .footer-logo img{ width: 96px; height: 96px; object-fit: contain; }
.rifert-scope .footer-logo span{ display: flex; flex-direction: column; }
.rifert-scope .footer-logo strong{ color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 25px; font-weight: 500; letter-spacing: .07em; }
.rifert-scope .footer-logo small{ margin-top: 8px; color: #cfc3bb; font-size: 10px; letter-spacing: .22em; }
.rifert-scope .social-links button{ width: auto; min-width: 58px; padding: 0 12px; border-radius: 22px; }

/* Quiz: answers in two columns on desktop and button visibility */
.rifert-scope .quiz-dialog{ width: min(calc(100% - 32px), 920px); }
.rifert-scope .quiz-options-wide{ grid-template-columns: repeat(2, minmax(0,1fr)); }
.rifert-scope .quiz-controls [hidden]{ display: none !important; }

/* Lightbox gallery controls */
.rifert-scope .lightbox-nav{ position: fixed; z-index: 3; top: 50%; width: 56px; height: 56px; margin-top: -28px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink); font-size: 44px; line-height: 1; cursor: pointer; box-shadow: 0 12px 36px rgba(0,0,0,.25); }
.rifert-scope .lightbox-prev{ left: 24px; }
.rifert-scope .lightbox-next{ right: 24px; }
.rifert-scope .lightbox-counter{ position: fixed; z-index: 3; left: 50%; bottom: 20px; transform: translateX(-50%); padding: 7px 13px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--ink); font-size: 14px; }

@media (max-width: 1280px){
  .rifert-scope{ --container: 1180px; }
  .rifert-scope .brand{ width: 250px; }
  .rifert-scope .brand-copy strong{ font-size: 21px; }
  .rifert-scope .brand-copy small{ font-size: 8px; }
  .rifert-scope .teacher-card{ flex-basis: calc((100% - 48px)/3); }
  .rifert-scope .review-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 980px){
  .rifert-scope{ --header-height: 84px; }
  .rifert-scope .site-header{ height: 84px; }
  .rifert-scope .brand{ width: 224px; height: 76px; gap: 10px; }
  .rifert-scope .brand img.brand-emblem{ width: 62px; height: 62px; }
  .rifert-scope .brand-copy strong{ font-size: 19px; }
  .rifert-scope .brand-copy small{ font-size: 7px; margin-top: 7px; }
  .rifert-scope .hero-grid{ grid-template-columns: 1fr; min-height: auto; }
  .rifert-scope .hero-copy{ max-width: none; }
  .rifert-scope .teacher-card{ flex-basis: calc((100% - 24px)/2); }
  .rifert-scope .reviews-top{ grid-template-columns: 1fr auto; align-items: end; }
  .rifert-scope .reviews-badge{ justify-self: auto; }
  .rifert-scope .events-gallery{ min-height: 450px; max-height: none; }
}

@media (max-width: 640px){
  .rifert-scope .site-header{ height: 78px; }
  .rifert-scope{ --header-height: 78px; }
  .rifert-scope .brand{ width: 205px; height: 72px; gap: 8px; }
  .rifert-scope .brand img.brand-emblem{ width: 58px; height: 58px; }
  .rifert-scope .brand-copy strong{ font-size: 17px; }
  .rifert-scope .brand-copy small{ display: none; }
  .rifert-scope .phone-link span:last-child{ display: none; }

  .rifert-scope .hero.section-tight{ padding: 34px 0 62px; }
  .rifert-scope .hero-grid{ display: block; }
  .rifert-scope .hero-copy{ display: flex; flex-direction: column; }
  .rifert-scope .addresses-line{ order: 1; flex-wrap: nowrap; gap: 5px; margin-bottom: 24px; overflow: visible; white-space: nowrap; font-size: 10.5px; letter-spacing: -.01em; }
  .rifert-scope .addresses-line svg{ width: 16px; height: 16px; flex: 0 0 auto; }
  .rifert-scope .addresses-line i{ display: block; width: 3px; height: 3px; flex: 0 0 auto; }
  .rifert-scope .addresses-line span{ width: auto; flex: 0 0 auto; }
  .rifert-scope .hero h1{ order: 2; font-size: 36px; }
  .rifert-scope .hero-lead{ order: 3; font-size: 17px; }
  .rifert-scope .hero-buttons{ order: 4; }
  .rifert-scope .hero-media-mobile{ order: 5; display: block; width: 100%; margin-top: 28px; }
  .rifert-scope .hero-media-mobile .hero-image-frame img{ aspect-ratio: 16/11; object-fit: cover; }
  .rifert-scope .hero-features{ order: 6; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 7px; margin-top: 22px; }
  .rifert-scope .hero-features .mini-card:last-child{ grid-column: auto; }
  .rifert-scope .mini-card{ min-width: 0; padding: 10px 7px; gap: 6px; flex-direction: column; text-align: center; }
  .rifert-scope .mini-icon{ width: 34px; height: 34px; font-size: 17px; }
  .rifert-scope .mini-card strong{ font-size: 11px; line-height: 1.15; }
  .rifert-scope .mini-card span{ font-size: 9px; }
  .rifert-scope .trust-line{ order: 7; justify-content: center; font-size: 11px; }
  .rifert-scope .hero-media-desktop{ display: none; }

  .rifert-scope .events.section{ padding-top: 68px; padding-bottom: 68px; }
  .rifert-scope .events-grid{ gap: 34px; }
  .rifert-scope .events-gallery{ min-height: 470px; grid-template-rows: 1.6fr .8fr .8fr; }

  .rifert-scope .teacher-card{ flex-basis: 100%; min-width: 0; }

  .rifert-scope .reviews-top{ grid-template-columns: minmax(0,1fr) 118px; gap: 12px; align-items: end; }
  .rifert-scope .reviews-top .section-heading h2{ font-size: 25px; }
  .rifert-scope .reviews-top .section-heading p{ font-size: 14px !important; line-height: 1.45; }
  .rifert-scope .reviews-badge{ padding: 15px 8px; border-radius: 17px; }
  .rifert-scope .reviews-badge strong{ gap: 3px; font-size: 15px; letter-spacing: 0; }
  .rifert-scope .reviews-badge strong em{ font-size: 23px; }
  .rifert-scope .reviews-badge span{ font-size: 10px; }
  .rifert-scope .review-grid{ grid-template-columns: 1fr; }

  .rifert-scope .final-number{ width: 205px; height: 205px; }
  .rifert-scope .final-number span{ font-size: 96px; }

  .rifert-scope .footer-logo img{ width: 82px; height: 82px; }
  .rifert-scope .footer-logo strong{ font-size: 22px; }

  .rifert-scope .quiz-options-wide{ grid-template-columns: 1fr; }
  .rifert-scope .lightbox-nav{ width: 44px; height: 44px; margin-top: -22px; font-size: 34px; }
  .rifert-scope .lightbox-prev{ left: 8px; }
  .rifert-scope .lightbox-next{ right: 8px; }
}

  

/* === v4 mobile refresh: hero + events === */
@media (max-width: 640px){
  .rifert-scope{ --header-height: 82px; }
  .rifert-scope .site-header{ height: 82px; }
  .rifert-scope .header-inner{ gap: 8px; }
  .rifert-scope .brand{ width: auto; max-width: 215px; height: 70px; gap: 8px; padding: 0; border: 0; background: transparent; box-shadow: none; }
  .rifert-scope .brand img.brand-emblem{ width: 56px; height: 56px; }
  .rifert-scope .brand-copy strong{ font-size: 16px; }
  .rifert-scope .phone-link{ gap: 8px; padding: 0; border: 0; background: transparent; box-shadow: none; }
  .rifert-scope .phone-link .icon-circle{ width: 40px; height: 40px; font-size: 18px; border-radius: 14px; }
  .rifert-scope .menu-toggle{ width: 42px; height: 42px; border-radius: 14px; background: #fff; box-shadow: 0 10px 24px rgba(19, 22, 41, .09); }
  .rifert-scope .hero.section-tight{ padding: 22px 0 54px; }
  .rifert-scope .hero-grid{ display: block; gap: 0; }
  .rifert-scope .hero-copy{ display: flex; flex-direction: column; }
  .rifert-scope .addresses-line{ order: 1; margin: 2px 0 18px; padding-bottom: 2px; gap: 7px; font-size: 11px; line-height: 1.2; letter-spacing: -.01em; white-space: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .rifert-scope .addresses-line::-webkit-scrollbar{ display: none; }
  .rifert-scope .addresses-line svg{ width: 16px; height: 16px; }
  .rifert-scope .addresses-line i{ display: block; width: 4px; height: 4px; flex: 0 0 auto; }
  .rifert-scope .addresses-line span{ width: auto; flex: 0 0 auto; }
  .rifert-scope .hero h1{ order: 2; margin-bottom: 14px; font-size: 35px; line-height: 1.05; letter-spacing: -.035em; }
  .rifert-scope .hero-lead{ order: 3; margin-bottom: 22px; font-size: 16px; line-height: 1.5; }
  .rifert-scope .hero-buttons{ order: 4; gap: 12px; }
  .rifert-scope .hero-buttons .button{ width: 100%; min-height: 56px; border-radius: 18px; font-size: 16px; }
  .rifert-scope .hero-media-mobile{ order: 5; display: block; width: 100%; margin-top: 24px; }
  .rifert-scope .hero-media-mobile .hero-blob{ inset: -7% -5% 3%; border-radius: 42% 58% 52% 48% / 39% 41% 59% 61%; }
  .rifert-scope .hero-media-mobile .hero-image-frame{ border-width: 0; border-radius: 36px; overflow: hidden; box-shadow: 0 22px 40px rgba(19, 22, 41, .12); }
  .rifert-scope .hero-media-mobile .hero-image-frame img{ aspect-ratio: 1.16 / 1; object-fit: cover; }
  .rifert-scope .hero-features{ order: 6; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
  .rifert-scope .mini-card{ min-width: 0; min-height: 94px; padding: 12px 6px 10px; gap: 6px; flex-direction: column; justify-content: flex-start; text-align: center; border-radius: 18px; }
  .rifert-scope .mini-icon{ width: 32px; height: 32px; font-size: 14px; }
  .rifert-scope .mini-card strong{ display: block; font-size: 10px; line-height: 1.18; }
  .rifert-scope .mini-card span{ display: block; margin-top: 2px; font-size: 9px; line-height: 1.2; }
  .rifert-scope .trust-line{ display: none; }
  .rifert-scope .hero-media-desktop{ display: none; }
  .rifert-scope .events.section{ padding-top: 64px; padding-bottom: 64px; }
  .rifert-scope .events-grid{ display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); gap: 16px; align-items: start; }
  .rifert-scope .events-copy{ padding-top: 4px; }
  .rifert-scope .events-copy .eyebrow{ margin-bottom: 12px; font-size: 11px; letter-spacing: .08em; }
  .rifert-scope .events-copy h2{ margin-bottom: 16px; font-size: 34px; line-height: 1.03; letter-spacing: -.035em; }
  .rifert-scope .events-copy > p:not(.eyebrow){ font-size: 14px !important; line-height: 1.56; }
  .rifert-scope .tag-list{ display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
  .rifert-scope .tag-list span{ padding: 12px 20px; font-size: 13px; font-weight: 700; }
  .rifert-scope .events-copy .button{ width: 100%; min-height: 58px; margin-top: 18px; border-radius: 22px; font-size: 16px; }
  .rifert-scope .events-gallery{ min-height: 0; max-height: none; display: grid; grid-template-columns: 1fr; grid-template-rows: 1.16fr .82fr .82fr; gap: 16px; }
  .rifert-scope .gallery-photo, .rifert-scope .gallery-photo-large{ grid-row: auto; min-height: 0; border-radius: 28px; }
  .rifert-scope .gallery-photo img{ width: 100%; height: 100%; object-fit: cover; }
  .rifert-scope .gallery-label{ left: 16px; bottom: 16px; padding: 10px 18px; font-size: 14px; }
  .rifert-scope .gallery-photo .gallery-plus{ top: 16px; right: 16px; width: 54px; height: 54px; font-size: 38px; }
}
@media (max-width: 420px){
  .rifert-scope .hero h1{ font-size: 33px; }
  .rifert-scope .mini-card{ min-height: 90px; }
  .rifert-scope .events-grid{ grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 14px; }
  .rifert-scope .events-copy h2{ font-size: 31px; }
  .rifert-scope .tag-list span{ padding-inline: 16px; font-size: 12px; }
}



/* === v5 fix: events block is no longer text/photo columns on mobile === */
@media (max-width: 640px){
  .rifert-scope #events .events-grid{
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 28px !important;
    align-items: stretch !important;
  }
  .rifert-scope #events .events-copy{
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
  }
  .rifert-scope #events .events-copy h2{
    max-width: none !important;
    font-size: 32px !important;
    line-height: 1.08 !important;
  }
  .rifert-scope #events .events-copy > p:not(.eyebrow){
    max-width: none !important;
    font-size: 16px !important;
    line-height: 1.55 !important;
  }
  .rifert-scope #events .tag-list{
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
  }
  .rifert-scope #events .tag-list span{
    width: auto !important;
    padding: 11px 16px !important;
    font-size: 13px !important;
  }
  .rifert-scope #events .events-copy .button{
    width: 100% !important;
    min-height: 56px !important;
  }
  .rifert-scope #events .events-gallery{
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: auto !important;
    gap: 12px !important;
    min-height: 0 !important;
    max-height: none !important;
  }
  .rifert-scope #events .gallery-photo{
    min-width: 0 !important;
    min-height: 190px !important;
    aspect-ratio: 0.86 / 1 !important;
    border-radius: 24px !important;
  }
  .rifert-scope #events .gallery-photo-large{
    grid-column: 1 / -1 !important;
    min-height: 330px !important;
    aspect-ratio: 1.22 / 1 !important;
  }
  .rifert-scope #events .gallery-photo img{
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  .rifert-scope #events .gallery-label{
    left: 12px !important;
    bottom: 12px !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
  }
  .rifert-scope #events .gallery-photo::after{
    top: 12px !important;
    right: 12px !important;
    width: 42px !important;
    height: 42px !important;
    font-size: 28px !important;
  }
}

@media (max-width: 420px){
  .rifert-scope #events .events-grid{ gap: 24px !important; }
  .rifert-scope #events .events-copy h2{ font-size: 30px !important; }
  .rifert-scope #events .events-gallery{ gap: 10px !important; }
  .rifert-scope #events .gallery-photo{ min-height: 170px !important; }
  .rifert-scope #events .gallery-photo-large{ min-height: 300px !important; }
}


.rifert-scope{--orange:#ff7138;--orange-dark:#e95622;--violet:#7353a6;--violet-light:#c9b6f2;--lilac-light:#f4eeff;--green:#2f725b;--text:#2e231f;--muted:#756b66;--cream:#fff8f3;--white:#fff;--line:#eaded7;--shadow:0 28px 70px rgba(72,47,34,.13);--shadow-soft:0 16px 42px rgba(72,47,34,.10);font-family:"Manrope",Arial,sans-serif;color:var(--text);line-height:1.5;box-sizing:border-box;width:100%;}
.rifert-scope *, .rifert-scope *::before, .rifert-scope *::after{box-sizing:border-box;}
.rifert-scope img{max-width:100%;height:auto;}
.rifert-scope .quiz-open,.rifert-scope .rfm-open{cursor:pointer;}
.rifert-scope .site-header{position:relative;top:auto;z-index:20;}
.rifert-lightbox{position:fixed;inset:0;z-index:99998;display:none;align-items:center;justify-content:center;padding:24px;background:rgba(20,15,12,.88);}
.rifert-lightbox.is-open{display:flex;}
.rifert-lightbox img{max-width:min(1100px,94vw);max-height:90vh;border-radius:24px;box-shadow:0 28px 80px rgba(0,0,0,.35);}
.rifert-lightbox button{position:absolute;top:20px;right:20px;width:48px;height:48px;border:0;border-radius:50%;background:#fff;font-size:28px;cursor:pointer;}

/* Rifert Elementor Blocks 1.0.3 — раздельная часть заголовка города. */
.rifert-scope .hero h1 .reb-hero-title-main{
  color: inherit;
}
.rifert-scope .hero h1 .reb-hero-city{
  color: var(--orange);
}

/* =========================================================
   Rifert Elementor Blocks 1.0.3 — layout restoration fixes
   ========================================================= */

/* Button rows: prevent buttons from sticking together. */
.rifert-scope .section-action,
.rifert-scope .reb-button-row{
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}
.rifert-scope .section-action{ margin-top: 42px; }
.rifert-scope .events-actions{ margin-top: 26px; justify-content: flex-start; }
.rifert-scope .final-actions{ justify-content: flex-start; }
.rifert-scope .branch-action{ margin-top: 46px; }

/* Decorative background must stay behind content and buttons. */
.rifert-scope .events{ isolation: isolate; }
.rifert-scope .events::before{
  z-index: 0;
  pointer-events: none;
}
.rifert-scope .events-grid{
  position: relative;
  z-index: 1;
}

/* The approved hero contains exactly three benefit cards. */
.rifert-scope .hero-features{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.rifert-scope .hero-features .mini-card:last-child{
  grid-column: auto;
}

/* Final CTA photo: fixed size, crop and rounded frame. */
.rifert-scope .final-cta-panel{
  overflow: hidden;
}
.rifert-scope .final-copy{
  position: relative;
  z-index: 3;
}
.rifert-scope .final-visual{
  min-height: 420px;
  position: relative;
  display: block;
}
.rifert-scope .final-photo{
  position: absolute;
  top: 42px;
  right: 12px;
  width: 82%;
  height: 72%;
  overflow: hidden;
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 22px 50px rgba(76,46,131,.16);
}
.rifert-scope .final-photo img{
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
}
.rifert-scope .final-visual .bubble{
  z-index: 3;
}
.rifert-scope .final-number{
  position: absolute;
  z-index: 4;
  right: 44px;
  bottom: 0;
  width: 166px;
  height: 166px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(76,46,131,.17);
}
.rifert-scope .final-number span{
  font-size: 72px;
}
.rifert-scope .final-number small{
  font-size: 13px;
  text-transform: uppercase;
}
.rifert-scope .final-doc-icon{
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: 28px;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #b99bf5;
  color: #fff;
  font-size: 27px;
  line-height: 1;
  box-shadow: var(--shadow-soft);
}

/* Compact white footer matching the reference. */
.rifert-scope .site-footer{
  position: relative;
  z-index: 5;
  overflow: hidden;
  padding: 24px 0 26px;
  background: #fff;
  color: #6b5d56;
  border-top: 1px solid #ebe5df;
}
.rifert-scope .footer-compact{
  display: grid;
  gap: 14px;
}
.rifert-scope .footer-compact-top{
  display: grid;
  grid-template-columns: minmax(245px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}
.rifert-scope .footer-compact-bottom{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  padding-top: 12px;
  border-top: 1px solid #f2ece8;
}
.rifert-scope .compact-brand{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.rifert-scope .compact-brand img,
.rifert-scope .footer-brand img{
  width: 68px;
  height: 68px;
  flex: 0 0 auto;
  object-fit: contain;
  filter: none;
  opacity: 1;
  transform: none;
}
.rifert-scope .compact-brand span{
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.rifert-scope .compact-brand strong{
  color: #231815;
  font: 800 18px/1 "Manrope", sans-serif;
  letter-spacing: .02em;
  white-space: nowrap;
}
.rifert-scope .compact-brand small{
  margin-top: 6px;
  color: #8f7f75;
  font-size: 9px;
  letter-spacing: .12em;
  white-space: nowrap;
}
.rifert-scope .footer-mini-nav,
.rifert-scope .footer-branches-inline{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}
.rifert-scope .footer-mini-nav{
  justify-content: center;
}
.rifert-scope .footer-mini-nav a,
.rifert-scope .footer-branches-inline a,
.rifert-scope .footer-copy,
.rifert-scope .site-footer .privacy-open{
  color: #6b5d56;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
.rifert-scope .footer-mini-nav a:hover,
.rifert-scope .footer-branches-inline a:hover,
.rifert-scope .site-footer .privacy-open:hover{
  color: var(--orange-dark);
}
.rifert-scope .footer-sep{
  color: #d2c4bc;
}
.rifert-scope .footer-social-links{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.rifert-scope .footer-social-links a,
.rifert-scope .footer-social-links button{
  appearance: none;
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f4eeff;
  color: var(--violet);
  font: 800 11px/1 "Manrope", sans-serif;
  cursor: pointer;
  box-shadow: none;
}
.rifert-scope .footer-social-links .footer-social-vk{
  background: #eee5ff;
  color: #7353a6;
}
.rifert-scope .footer-social-links .footer-social-tg{
  background: #e8f6ff;
  color: #249bd7;
}
.rifert-scope .footer-social-links .footer-social-max{
  background: #f0eaff;
  color: #7455bd;
}
.rifert-scope .footer-social-links button{
  opacity: .72;
  cursor: default;
}

@media (max-width: 1280px){
  .rifert-scope .hero-features{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .rifert-scope .footer-compact-top{
    grid-template-columns: minmax(220px, auto) minmax(0, 1fr) auto;
    gap: 16px;
  }
  .rifert-scope .footer-mini-nav,
  .rifert-scope .footer-branches-inline{
    gap: 12px;
  }
  .rifert-scope .footer-mini-nav a,
  .rifert-scope .footer-branches-inline a,
  .rifert-scope .footer-copy,
  .rifert-scope .site-footer .privacy-open{
    font-size: 12px;
  }
}

@media (max-width: 980px){
  .rifert-scope .final-visual{
    min-height: 370px;
  }
  .rifert-scope .final-photo{
    top: 36px;
    right: 4%;
    width: 88%;
    height: 72%;
  }
  .rifert-scope .footer-compact-top{
    grid-template-columns: 1fr auto;
  }
  .rifert-scope .footer-mini-nav{
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
  }
  .rifert-scope .footer-compact-bottom{
    grid-template-columns: 1fr auto;
  }
  .rifert-scope .footer-branches-inline{
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px){
  .rifert-scope .hero-features{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }
  .rifert-scope .hero-features .mini-card{
    min-height: 92px;
  }
  .rifert-scope .section-action,
  .rifert-scope .reb-button-row{
    width: 100%;
    gap: 12px;
  }
  .rifert-scope .section-action .button,
  .rifert-scope .reb-button-row .button{
    width: 100%;
  }
  .rifert-scope .final-visual{
    min-height: 330px;
  }
  .rifert-scope .final-photo{
    top: 30px;
    right: 0;
    width: 100%;
    height: 225px;
    border-radius: 24px;
  }
  .rifert-scope .final-number{
    right: 12px;
    bottom: -4px;
    width: 122px;
    height: 122px;
  }
  .rifert-scope .final-number span{
    font-size: 50px;
  }
  .rifert-scope .final-number small{
    font-size: 10px;
  }
  .rifert-scope .final-doc-icon{
    display: none;
  }
  .rifert-scope .bubble{
    padding: 9px 12px;
    font-size: 12px;
  }
  .rifert-scope .bubble-1{ top: 0; left: 8px; }
  .rifert-scope .bubble-2{ top: 12px; right: 8px; }
  .rifert-scope .bubble-3{ bottom: 44px; left: 8px; }

  .rifert-scope .site-footer{
    padding: 22px 0;
  }
  .rifert-scope .footer-compact-top,
  .rifert-scope .footer-compact-bottom{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
  }
  .rifert-scope .compact-brand{
    justify-content: center;
  }
  .rifert-scope .compact-brand img,
  .rifert-scope .footer-brand img{
    width: 58px;
    height: 58px;
  }
  .rifert-scope .footer-mini-nav,
  .rifert-scope .footer-branches-inline{
    justify-content: center;
    gap: 10px 13px;
  }
  .rifert-scope .footer-social-links{
    justify-content: center;
  }
}


/* =========================================================
   Rifert Elementor Blocks 1.0.4 — branch/card/button fixes
   ========================================================= */

/* All branch photo mosaics keep exactly the same height. */
.rifert-scope .branches{ --reb-branch-gallery-height: 410px; }
.rifert-scope .branches .branch-grid{
  align-items: stretch;
}
.rifert-scope .branches .branch-card{
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}
.rifert-scope .branches .branch-gallery{
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, .8fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  flex: 0 0 var(--reb-branch-gallery-height);
  width: 100%;
  height: var(--reb-branch-gallery-height);
  min-height: var(--reb-branch-gallery-height);
  max-height: var(--reb-branch-gallery-height);
  overflow: hidden;
  line-height: 0;
}
.rifert-scope .branches .branch-gallery > img.branch-photo{
  display: block;
  width: 100% !important;
  min-width: 0;
  max-width: none !important;
  height: 100% !important;
  min-height: 0;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center;
}
.rifert-scope .branches .branch-gallery > img.branch-main{
  grid-row: 1 / 3;
}
.rifert-scope .branches .branch-content{
  flex: 1 1 auto;
  min-height: 102px;
}

/* First approach item is a compact full-width banner; three cards remain below. */
.rifert-scope .approach .feature-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}
.rifert-scope .approach .feature-card{
  min-width: 0;
}
.rifert-scope .approach .feature-card-wide{
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  column-gap: 24px;
  align-items: start;
  min-height: 0;
  padding: 28px 32px;
  background: linear-gradient(135deg, #fff3eb, #f8f2ff);
}
.rifert-scope .approach .feature-card-wide .feature-icon{
  grid-row: 1;
  margin: 0;
}
.rifert-scope .approach .feature-card-wide .feature-card-body{
  min-width: 0;
}
.rifert-scope .approach .feature-card-wide h3{
  margin-top: 0;
}
.rifert-scope .approach .feature-card-wide .feature-card-body > p:last-child{
  margin-bottom: 0;
}

/* Teacher buttons are always visible and aligned. */
.rifert-scope .teachers .teacher-card{
  display: flex;
  flex-direction: column;
}
.rifert-scope .teachers .teacher-card > img{
  flex: 0 0 auto;
}
.rifert-scope .teachers .teacher-card-body{
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}
.rifert-scope .teachers .teacher-card-body > p{
  flex: 1 1 auto;
}
.rifert-scope .teachers .teacher-select{
  display: inline-flex;
  width: 100%;
  min-height: 54px;
  margin-top: 18px;
  align-items: center;
  justify-content: center;
}
.rifert-scope .teachers .teachers-action,
.rifert-scope .approach .approach-action{
  margin-top: 42px;
}

@media (max-width: 980px){
  .rifert-scope .branches{ --reb-branch-gallery-height: 460px; }
  .rifert-scope .approach .feature-grid{ grid-template-columns: 1fr; }
  .rifert-scope .approach .feature-card-wide{ grid-column: auto; }
}

@media (max-width: 640px){
  .rifert-scope .branches{ --reb-branch-gallery-height: 340px; }
  .rifert-scope .approach .feature-card-wide{
    grid-template-columns: 1fr;
    row-gap: 16px;
    padding: 26px 22px;
  }
  .rifert-scope .teachers .teacher-card{
    display: grid;
    grid-template-columns: 42% 58%;
  }
  .rifert-scope .teachers .teacher-card-body{
    min-width: 0;
  }
}


/* Rifert Elementor Blocks 1.0.5 — branch card CTA buttons */
.rifert-scope .branches .branch-content{
  display:flex;
  flex-direction:column;
  gap:18px;
}
.rifert-scope .branches .branch-content-top{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
}
.rifert-scope .branches .branch-content-bottom{ margin-top:auto; }
.rifert-scope .branches .branch-content-bottom .button{
  width:100%;
  justify-content:center;
  min-height:58px;
  border-radius:18px;
  background: var(--orange);
  border-color: var(--orange);
  color:#fff;
  box-shadow: 0 14px 30px rgba(255,123,61,.18);
}
.rifert-scope .branches .branch-content-bottom .button:hover{ background: var(--orange-dark); border-color: var(--orange-dark); }
@media (max-width: 991px){
  .rifert-scope .branches .branch-content-top{ flex-direction:column; align-items:flex-start; }
  .rifert-scope .branches .branch-content-bottom .button{ min-height:54px; }
}


/* Rifert Elementor Blocks 1.0.6 — aligned branch CTAs, no section-level duplicate */
.rifert-scope .branches .branch-content{
  padding: 24px 28px 28px;
}
.rifert-scope .branches .branch-content-bottom{
  width: 100%;
  margin-top: auto;
  display: flex;
  justify-content: center;
}
.rifert-scope .branches .branch-content-bottom .button{
  display: inline-flex;
  width: min(100%, 370px);
  min-width: 0;
  min-height: 58px;
  padding: 15px 22px;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: normal;
  line-height: 1.2;
  font-size: 17px;
  border-radius: 18px;
  box-sizing: border-box;
}
.rifert-scope .branches .branch-action{ display:none !important; }
@media (max-width: 1200px){
  .rifert-scope .branches .branch-content{ padding: 22px 22px 26px; }
  .rifert-scope .branches .branch-content-bottom .button{ width: 100%; font-size: 16px; }
}
@media (max-width: 640px){
  .rifert-scope .branches .branch-content-bottom .button{ min-height: 54px; padding: 14px 18px; }
}


/* Rifert Elementor Blocks 1.0.7 — desktop branch content aligned left */
@media (min-width: 992px){
  .rifert-scope .branches .branch-content{
    align-items: stretch;
    text-align: left;
  }
  .rifert-scope .branches .branch-content-top{
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
  }
  .rifert-scope .branches .branch-content-top > div,
  .rifert-scope .branches .branch-label,
  .rifert-scope .branches .branch-content h3,
  .rifert-scope .branches .map-link{
    width: auto;
    margin-left: 0;
    margin-right: 0;
    text-align: left;
  }
  .rifert-scope .branches .branch-content-bottom{
    justify-content: flex-start;
    width: 100%;
  }
  .rifert-scope .branches .branch-content-bottom .button{
    width: 100%;
    max-width: none;
    margin: 0;
    justify-content: flex-start;
    text-align: left;
    padding-left: 28px;
    padding-right: 28px;
  }
}


/* Rifert Elementor Blocks 1.0.8 — mobile teachers/reviews + unified body type */
.rifert-scope .brand-copy small,
.rifert-scope .compact-brand small,
.rifert-scope .footer-brand small{
  display: none !important;
}

/* Unified size for ordinary descriptive text across all blocks. */
.rifert-scope p:not(.eyebrow):not(.branch-label),
.rifert-scope .section-heading > p:not(.eyebrow),
.rifert-scope .split-heading > p,
.rifert-scope .feature-card-body > p,
.rifert-scope .advantage-grid p,
.rifert-scope .events-copy > p:not(.eyebrow),
.rifert-scope .teacher-card p,
.rifert-scope .review-card > p,
.rifert-scope .price-card p,
.rifert-scope .price-card li,
.rifert-scope .program-card p,
.rifert-scope .program-card li{
  font-size: 16px !important;
  line-height: 1.6 !important;
}

@media (max-width: 640px){
  /* Teacher cards: photo above, all content and CTA below. */
  .rifert-scope .teachers .teacher-card,
  .rifert-scope .teachers .teacher-director{
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    width: 100% !important;
    transform: none !important;
  }
  .rifert-scope .teachers .teacher-card > img{
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 4 / 5 !important;
    object-fit: cover !important;
    object-position: top center !important;
  }
  .rifert-scope .teachers .teacher-card-body{
    width: 100% !important;
    padding: 24px 22px 26px !important;
    box-sizing: border-box !important;
  }
  .rifert-scope .teachers .teacher-card h3,
  .rifert-scope .teachers .teacher-role,
  .rifert-scope .teachers .teacher-card p{
    width: 100% !important;
    max-width: none !important;
    text-align: left !important;
  }
  .rifert-scope .teachers .teacher-select{
    width: 100% !important;
    min-height: 56px !important;
    margin-top: 18px !important;
    padding: 14px 18px !important;
    justify-content: center !important;
    text-align: center !important;
    font-size: 16px !important;
    line-height: 1.25 !important;
  }

  /* Reviews intro, title, copy and rating occupy the full mobile width. */
  .rifert-scope .reviews .reviews-top{
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 22px !important;
    align-items: stretch !important;
  }
  .rifert-scope .reviews .reviews-top .section-heading,
  .rifert-scope .reviews .reviews-top .section-heading h2,
  .rifert-scope .reviews .reviews-top .section-heading > p,
  .rifert-scope .reviews .reviews-badge{
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .rifert-scope .reviews .reviews-top .section-heading h2{
    font-size: 32px !important;
    line-height: 1.08 !important;
  }
  .rifert-scope .reviews .reviews-top .section-heading > p:not(.eyebrow){
    font-size: 16px !important;
    line-height: 1.6 !important;
  }
  .rifert-scope .reviews .reviews-badge{
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    padding: 20px 22px !important;
    text-align: left !important;
    justify-self: stretch !important;
  }
  .rifert-scope .reviews .reviews-badge strong{
    flex: 0 0 auto !important;
    font-size: 18px !important;
  }
  .rifert-scope .reviews .reviews-badge strong em{
    font-size: 32px !important;
  }
  .rifert-scope .reviews .reviews-badge span{
    flex: 1 1 auto !important;
    margin-top: 0 !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    text-align: right !important;
  }
}


/* =========================================================
   Rifert Elementor Blocks 1.0.10 — requested layout update
   ========================================================= */

/* Hero: exact heading layout and no old trust line. */
.rifert-scope .hero .reb-hero-city{ display:block; margin-left:0; }
.rifert-scope .hero .trust-line{ display:none !important; }

/* Approach: only three equal cards remain. */
.rifert-scope .approach .feature-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.rifert-scope .approach .feature-card{ height:100%; }

/* Separate compact “up to 4 pupils” banner. */
.rifert-scope .mini-groups-panel{
  padding:46px 54px;
  border-radius:34px;
  background:linear-gradient(135deg,#f5edff 0%,#fff7f1 100%);
  overflow:hidden;
}
.rifert-scope .mini-groups-panel::after{ display:none; }
.rifert-scope .mini-groups-top{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr);
  gap:48px;
  align-items:center;
}
.rifert-scope .mini-groups-headline .eyebrow{ margin-bottom:14px; }
.rifert-scope .mini-groups-number-line{
  display:grid;
  grid-template-columns:auto auto minmax(0,1fr);
  gap:12px;
  align-items:center;
}
.rifert-scope .mini-groups-before{ font-size:18px; font-weight:700; color:var(--ink); }
.rifert-scope .mini-groups-number-line .big-four{
  font-size:112px;
  line-height:.8;
  color:var(--orange);
  letter-spacing:-.08em;
}
.rifert-scope .mini-groups-number-line h2{
  margin:0;
  font-size:24px;
  line-height:1.18;
}
.rifert-scope .mini-groups-description p{
  margin:0;
  font-size:16px !important;
  line-height:1.6 !important;
}
.rifert-scope .mini-advantage-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  margin-top:34px;
}
.rifert-scope .mini-advantage-grid article{
  min-height:132px;
  padding:22px 18px;
  text-align:center;
  background:rgba(255,255,255,.88);
  border:1px solid rgba(115,83,166,.11);
  border-radius:20px;
  box-shadow:0 12px 28px rgba(67,45,94,.07);
}
.rifert-scope .mini-advantage-grid .mini-advantage-icon{
  width:48px;
  height:48px;
  margin:0 auto 14px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:#fff;
  color:var(--violet);
  font-size:23px;
}
.rifert-scope .mini-advantage-grid h3{ margin:0; font-size:15px; line-height:1.35; }
.rifert-scope .mini-groups-action{ margin-top:28px; text-align:right; }

/* Teachers: no separate CTA below cards. */
.rifert-scope .teachers .teachers-action{ display:none !important; }
.rifert-scope .teachers .teacher-select{ margin-top:18px; }

/* Branch CTA: fit its text instead of leaving a large empty area on the right. */
@media (min-width:992px){
  .rifert-scope .branches .branch-content-bottom .button{
    width:auto !important;
    max-width:100%;
    align-self:flex-start;
    justify-content:center;
    text-align:center;
    padding:15px 24px !important;
  }
}

@media (max-width:980px){
  .rifert-scope .approach .feature-grid{ grid-template-columns:1fr; }
  .rifert-scope .mini-groups-top{ grid-template-columns:1fr; gap:24px; }
  .rifert-scope .mini-advantage-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width:640px){
  .rifert-scope .mini-groups-panel{ padding:30px 20px; border-radius:26px; }
  .rifert-scope .mini-groups-number-line{
    grid-template-columns:auto auto minmax(0,1fr);
    gap:8px;
    align-items:center;
  }
  .rifert-scope .mini-groups-number-line .big-four{ font-size:82px; }
  .rifert-scope .mini-groups-number-line h2{ font-size:19px; }
  .rifert-scope .mini-advantage-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:24px; }
  .rifert-scope .mini-advantage-grid article{ min-height:116px; padding:17px 10px; }
  .rifert-scope .mini-advantage-grid h3{ font-size:13px; }
  .rifert-scope .mini-groups-action{ text-align:left; }
  .rifert-scope .mini-groups-action .button{ width:100%; }

  /* Teacher cards follow the supplied mobile reference: image left, text and CTA right. */
  .rifert-scope .teachers .teacher-card,
  .rifert-scope .teachers .teacher-director{
    display:grid !important;
    grid-template-columns:42% minmax(0,58%) !important;
    flex-direction:initial !important;
    width:100% !important;
    min-height:300px;
    transform:none !important;
  }
  .rifert-scope .teachers .teacher-card > img{
    width:100% !important;
    height:100% !important;
    min-height:300px !important;
    aspect-ratio:auto !important;
    object-fit:cover !important;
    object-position:top center !important;
  }
  .rifert-scope .teachers .teacher-card-body{
    min-width:0 !important;
    width:100% !important;
    padding:24px 18px !important;
    justify-content:center;
  }
  .rifert-scope .teachers .teacher-role{ font-size:14px !important; }
  .rifert-scope .teachers .teacher-card h3{ font-size:20px !important; line-height:1.18 !important; }
  .rifert-scope .teachers .teacher-card p{ font-size:16px !important; line-height:1.45 !important; }
  .rifert-scope .teachers .teacher-select{
    width:100% !important;
    min-height:48px !important;
    margin-top:16px !important;
    padding:12px 14px !important;
    font-size:15px !important;
  }
}

@media (max-width:400px){
  .rifert-scope .teachers .teacher-card,
  .rifert-scope .teachers .teacher-director{ grid-template-columns:44% minmax(0,56%) !important; }
  .rifert-scope .teachers .teacher-card-body{ padding:20px 14px !important; }
  .rifert-scope .teachers .teacher-card h3{ font-size:18px !important; }
  .rifert-scope .teachers .teacher-card p{ font-size:15px !important; }
}


/* Rifert Elementor Blocks 1.0.11 — price button hierarchy + reviews without dates */
.rifert-scope .prices .price-card:first-child .button{
  background: var(--orange);
  border-color: var(--orange);
  color:#fff;
}
.rifert-scope .prices .price-card:not(:first-child) .button{
  background: transparent;
  border: 1.5px solid var(--lilac);
  color: var(--violet);
  box-shadow:none;
}
.rifert-scope .prices .price-card:not(:first-child) .button:hover{
  background: var(--lilac-light);
  border-color: var(--violet);
}
.rifert-scope .review-card header > div:nth-child(2){ display:flex; align-items:center; min-height:42px; }
.rifert-scope .review-card header span{ display:none!important; }


/* Rifert Elementor Blocks 1.0.12 — adjustable final CTA columns */
.rifert-scope .final-cta-panel{
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:space-between;
  column-gap:50px;
}
.rifert-scope .final-cta-panel .final-copy{
  flex:0 1 55%;
  width:55%;
  max-width:55%;
  min-width:0;
}
.rifert-scope .final-cta-panel .final-visual{
  flex:0 1 45%;
  width:45%;
  max-width:45%;
  min-width:0;
}
@media (max-width:1100px){
  .rifert-scope .final-cta-panel{
    flex-direction:column;
    align-items:stretch;
    row-gap:34px;
  }
  .rifert-scope .final-cta-panel .final-copy,
  .rifert-scope .final-cta-panel .final-visual{
    flex-basis:100% !important;
    width:100% !important;
    max-width:100% !important;
  }
}

/* =========================================================
   Rifert Elementor Blocks 1.0.14 — solid CTA and mini-group reference layout
   ========================================================= */

/* Final CTA: solid color only. Elementor color control can override it. */
.rifert-scope .final-cta-panel{
  background-color:#fff2ea;
  background-image:none !important;
}

/* Mini-group banner rebuilt to match the supplied reference. */
.rifert-scope .mini-groups{
  background:#fff;
}
.rifert-scope .mini-groups-panel{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  padding:38px 42px 32px;
  border-radius:28px;
  background-color:#f5efff;
  background-image:none !important;
  box-shadow:0 16px 44px rgba(86,62,126,.08);
}
.rifert-scope .mini-groups-panel::before,
.rifert-scope .mini-groups-panel::after{
  content:"";
  position:absolute;
  z-index:-1;
  pointer-events:none;
  opacity:.28;
}
.rifert-scope .mini-groups-panel::before{
  width:230px;
  height:230px;
  right:-72px;
  top:-88px;
  border-radius:50%;
  background:
    radial-gradient(circle at 36% 52%, transparent 0 50%, rgba(138,99,210,.13) 51% 53%, transparent 54%),
    radial-gradient(ellipse at 55% 24%, rgba(138,99,210,.16) 0 12%, transparent 13%),
    radial-gradient(ellipse at 72% 43%, rgba(138,99,210,.14) 0 11%, transparent 12%),
    radial-gradient(ellipse at 52% 70%, rgba(138,99,210,.12) 0 11%, transparent 12%);
}
.rifert-scope .mini-groups-panel::after{
  width:180px;
  height:180px;
  left:-70px;
  bottom:-98px;
  border-radius:50%;
  background:rgba(255,109,56,.08);
}
.rifert-scope .mini-groups-top{
  display:grid;
  grid-template-columns:minmax(270px,.95fr) minmax(380px,1.45fr) minmax(235px,.72fr);
  gap:34px;
  align-items:center;
}
.rifert-scope .mini-groups-headline{
  min-width:0;
}
.rifert-scope .mini-groups-number-line{
  display:grid;
  grid-template-columns:auto auto minmax(0,1fr);
  align-items:center;
  gap:10px;
}
.rifert-scope .mini-groups-before{
  align-self:end;
  padding-bottom:16px;
  font-size:17px;
  font-weight:700;
  color:#221f2d;
}
.rifert-scope .mini-groups-number-line .big-four{
  display:block;
  font-size:102px;
  line-height:.78;
  letter-spacing:-.08em;
  color:#ff6d38;
  font-weight:500;
}
.rifert-scope .mini-groups-number-line h2{
  margin:0;
  max-width:230px;
  font-size:22px;
  line-height:1.12;
  font-weight:700;
  color:#2b2632;
}
.rifert-scope .mini-groups-description{
  min-width:0;
}
.rifert-scope .mini-groups-description p{
  margin:0 0 10px;
  font-size:16px !important;
  line-height:1.48 !important;
  color:#625b68;
}
.rifert-scope .mini-groups-description p:last-child{
  margin-bottom:0;
}
.rifert-scope .mini-groups-action{
  margin:0;
  text-align:right;
}
.rifert-scope .mini-groups-action .button{
  width:100%;
  min-height:58px;
  padding:14px 18px;
  border-radius:12px;
  justify-content:center;
  text-align:center;
  white-space:normal;
  font-size:16px;
  line-height:1.25;
}
.rifert-scope .mini-advantage-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
  margin-top:28px;
}
.rifert-scope .mini-advantage-grid article{
  min-width:0;
  min-height:126px;
  padding:17px 14px 15px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  border:1px solid rgba(138,99,210,.08);
  border-radius:15px;
  background-color:#fff;
  box-shadow:0 8px 22px rgba(76,52,109,.06);
}
.rifert-scope .mini-advantage-grid .mini-advantage-icon{
  width:58px;
  height:52px;
  margin:0 auto 8px;
  display:grid;
  place-items:center;
  border-radius:0;
  background:transparent;
  color:#8a63d2;
}
.rifert-scope .mini-advantage-grid .mini-advantage-icon svg{
  display:block;
  width:50px;
  height:50px;
}
.rifert-scope .mini-advantage-grid h3{
  margin:0;
  max-width:190px;
  font-size:14px;
  line-height:1.3;
  font-weight:600;
  color:#433b4c;
}

@media (max-width:1180px){
  .rifert-scope .mini-groups-top{
    grid-template-columns:minmax(250px,.9fr) minmax(320px,1.2fr);
  }
  .rifert-scope .mini-groups-action{
    grid-column:1 / -1;
    justify-self:end;
    width:min(360px,100%);
  }
}
@media (max-width:820px){
  .rifert-scope .mini-groups-panel{
    padding:30px 24px 26px;
  }
  .rifert-scope .mini-groups-top{
    grid-template-columns:1fr;
    gap:22px;
  }
  .rifert-scope .mini-groups-action{
    grid-column:auto;
    justify-self:stretch;
    width:100%;
  }
  .rifert-scope .mini-advantage-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
  }
}
@media (max-width:520px){
  .rifert-scope .mini-groups-panel{
    padding:26px 18px 22px;
    border-radius:22px;
  }
  .rifert-scope .mini-groups-number-line{
    grid-template-columns:auto auto minmax(0,1fr);
    gap:7px;
  }
  .rifert-scope .mini-groups-before{
    padding-bottom:11px;
    font-size:14px;
  }
  .rifert-scope .mini-groups-number-line .big-four{
    font-size:78px;
  }
  .rifert-scope .mini-groups-number-line h2{
    font-size:17px;
    line-height:1.15;
  }
  .rifert-scope .mini-groups-description p{
    font-size:16px !important;
  }
  .rifert-scope .mini-advantage-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;
    margin-top:20px;
  }
  .rifert-scope .mini-advantage-grid article{
    min-height:116px;
    padding:14px 8px 12px;
  }
  .rifert-scope .mini-advantage-grid .mini-advantage-icon{
    width:48px;
    height:44px;
  }
  .rifert-scope .mini-advantage-grid .mini-advantage-icon svg{
    width:43px;
    height:43px;
  }
  .rifert-scope .mini-advantage-grid h3{
    font-size:12px;
  }
}

/* =========================================================
   Rifert Elementor Blocks 1.0.16 — липкая шапка на компьютере
   На экранах до 1024px шапка остаётся обычной и не фиксируется.
   ========================================================= */
@media (min-width: 1025px){
  body:not(.elementor-editor-active):not(.elementor-editor-preview) .rifert-scope.reb-header-scope{
    min-height: var(--header-height, 104px);
  }

  body:not(.elementor-editor-active):not(.elementor-editor-preview) .rifert-scope.reb-header-scope > .site-header.reb-desktop-sticky-header{
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 99990 !important;
    box-shadow: 0 10px 30px rgba(72, 47, 34, .08);
  }

  body.admin-bar:not(.elementor-editor-active):not(.elementor-editor-preview) .rifert-scope.reb-header-scope > .site-header.reb-desktop-sticky-header{
    top: 32px !important;
  }
}

