  :root {
    --purple: #8e209d;
    --purple-dark: #41104f;
    --berry: #c82ab7;
    --yellow: #ffcc36;
    --orange: #ff8b35;
    --ink: #2d1e32;
    --muted: #736878;
    --cream: #fffaf1;
    --card: #ffffff;
    --border: #ecdfeb;
    --shadow: 0 20px 65px rgba(64, 16, 79, 0.10);
    --radius: 26px;
  }
  * { box-sizing: border-box; }
  /* ВАЖНО: штатный hidden должен побеждать display:flex/grid/block у слайдера. */
  [hidden] { display: none !important; }
  html { scroll-behavior: smooth; }
  body { margin: 0; background: var(--cream); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
  button, a { -webkit-tap-highlight-color: transparent; }
  button { font: inherit; }
  a { color: inherit; text-decoration: none; }
  button:focus-visible, a:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
  .container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
  .header { position: relative; z-index: 3; background: #fff; border-bottom: 1px solid rgba(96, 36, 108, .08); }
  .header-inner { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
  .brand { display: inline-flex; align-items: center; gap: 13px; font-size: 24px; font-weight: 900; letter-spacing: -.9px; }
  .brand-badge { width: 47px; height: 47px; border-radius: 17px; background: linear-gradient(135deg, var(--yellow) 0%, var(--orange) 65%, var(--berry) 100%); display: grid; place-items: center; color: #4d174d; font-size: 18px; font-weight: 950; transform: rotate(-7deg); box-shadow: 0 8px 18px #ff933b38; }
  .brand-badge span { transform: rotate(7deg); }
  .brand-name strong { color: var(--purple); }
  .nav { display: flex; align-items: center; gap: 31px; color: #594760; font-size: 14px; font-weight: 700; }
  .nav a:hover { color: var(--purple); }
  .nav .nav-contact { padding: 12px 19px; border-radius: 100px; background: #faf0fa; color: var(--purple); }
  .hero { position: relative; overflow: hidden; background: linear-gradient(120deg, #fff9e7 0%, #fffaf2 51%, #fdf0fc 100%); }
  .hero::before { content: ""; position: absolute; width: 400px; height: 400px; right: -135px; top: -215px; border-radius: 50%; background: radial-gradient(circle, #fdbf4380, #ffda5e13 70%); }
  .hero::after { content: ""; position: absolute; width: 370px; height: 370px; left: -250px; bottom: -265px; border-radius: 50%; background: #f8d1f0b0; }
  .hero-inner { position: relative; display: grid; grid-template-columns: 1fr .74fr; align-items: center; gap: 55px; padding-block: 88px 92px; }
  .eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 19px; color: #9b337d; text-transform: uppercase; letter-spacing: 2.5px; font-size: 11px; font-weight: 900; }
  .eyebrow::before { content: ""; display: block; width: 24px; height: 3px; background: var(--orange); border-radius: 5px; }
  h1 { font-size: clamp(41px, 5.1vw, 66px); line-height: 1.07; letter-spacing: -2.8px; font-weight: 900; margin: 0 0 23px; max-width: 650px; }
  h1 .gradient { color: var(--purple); background: linear-gradient(110deg, #8b1e9b, #c82ab7); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
  .hero-copy { max-width: 500px; margin: 0; color: #6c5d6e; font-size: 17px; line-height: 1.7; }
  .hero-art { min-height: 290px; position: relative; display: grid; place-items: center; }
  .art-big { width: min(330px, 83%); aspect-ratio: 1 / 1; background: linear-gradient(135deg, #ffcb44 0%, #ff9839 48%, #e43d92 100%); border-radius: 38% 62% 58% 42% / 45% 40% 60% 55%; transform: rotate(-13deg); box-shadow: 23px 32px 70px #e98c5c36; }
  .art-big::after { content: ""; position: absolute; inset: 25%; border: 21px solid #ffffff90; border-radius: 50%; box-shadow: 0 0 0 18px #ffffff38; }
  .art-camera { position: absolute; width: 176px; height: 136px; border: 8px solid #fff; border-radius: 26px; background: #ffffffd9; box-shadow: 0 17px 40px #6b1a4a25; display: grid; place-items: center; transform: rotate(9deg); }
  .art-camera svg { width: 98px; height: 98px; color: var(--purple); }
  .art-star { position: absolute; font-size: 42px; color: #b12cac; }
  .art-star.one { top: 4%; left: 11%; transform: rotate(-14deg); }
  .art-star.two { bottom: 12%; right: 0; color: #f7aa1e; transform: rotate(20deg); }
  .catalog { padding: 78px 0 100px; }
  .section-heading { text-align: center; max-width: 660px; margin: 0 auto 35px; }
  .section-kicker { color: #af2c97; letter-spacing: 2.5px; font-size: 11px; font-weight: 900; text-transform: uppercase; }
  h2 { margin: 12px 0 13px; font-size: clamp(30px, 3.6vw, 43px); line-height: 1.16; letter-spacing: -1.6px; }
  .section-heading p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); }
  .choices { max-width: 880px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 0 auto; }
  .choice { position: relative; cursor: pointer; border: 2px solid #f1e7ea; text-align: left; padding: 28px; display: flex; align-items: center; gap: 18px; min-height: 136px; border-radius: 23px; background: #fff; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
  .choice:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
  .choice[aria-selected="true"] { border-color: var(--purple); background: #fef8ff; box-shadow: 0 13px 34px #911f9730; }
  .choice-icon { flex: 0 0 66px; width: 66px; height: 66px; display: grid; place-items: center; border-radius: 20px; }
  .choice-icon svg { width: 32px; height: 32px; }
  .choice-garden .choice-icon { background: #fff1c2; color: #d68010; }
  .choice-school .choice-icon { background: #f6d9f8; color: #9c239e; }
  .choice-text { display: flex; flex-direction: column; gap: 5px; }
  .choice-text strong { font-size: 23px; letter-spacing: -.5px; }
  .choice-text small { color: var(--muted); font-size: 13px; line-height: 1.5; }
  .choice-arrow { margin-left: auto; color: #a17b9f; font-size: 27px; }
  .choice[aria-selected="true"] .choice-arrow { color: var(--purple); }
  .slider-panel { max-width: 1000px; margin: 34px auto 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
  .slider-panel[hidden] { display: none; }
  .slider-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
  .slider-head h3 { margin: 0 0 6px; font-size: clamp(21px, 2.7vw, 29px); letter-spacing: -.7px; }
  .slider-head p { margin: 0; font-size: 14px; color: var(--muted); }
  .slider-count { color: var(--purple); font-weight: 800; font-size: 14px; border-radius: 30px; padding: 10px 13px; background: #fcf0fd; white-space: nowrap; }
  /* Фиксированная область не раздвигается из-за размеров загруженной картинки. */
  .slider-stage { width: 100%; height: clamp(300px, 52vw, 555px); background: linear-gradient(135deg, #fff9ed, #faf2fb); border-radius: 18px; overflow: hidden; position: relative; display: grid; place-items: center; }
  .slider-empty { position: absolute; inset: 15px; border: 2px dashed #d9bad5; border-radius: 18px; margin: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 22px; text-align: center; }
  .empty-icon { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 22px; background: #fff; margin-bottom: 18px; color: #a650a1; box-shadow: 0 7px 20px #69207913; }
  .empty-icon svg { width: 35px; height: 35px; }
  .slider-empty strong { font-size: clamp(18px, 2.5vw, 25px); margin-bottom: 8px; }
  .slider-empty p { max-width: 440px; margin: 0; color: #8b7a8b; line-height: 1.55; font-size: 14px; }
  /* Фото показывается ОДНО, строго в границах сцены, без обрезки и искажений. */
  .slide-photo { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
  .slider-bottom { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding-top: 22px; }
  .slider-hint { color: #8c7c8e; font-size: 13px; }
  .slider-tools { display: flex; align-items: center; gap: 12px; }
  .slider-arrow { width: 43px; height: 43px; border-radius: 50%; border: 1px solid #dbc9da; color: var(--purple); background: white; cursor: pointer; font-size: 25px; line-height: 1; transition: .15s; }
  .slider-arrow:hover:not(:disabled) { background: var(--purple); border-color: var(--purple); color: #fff; }
  .slider-arrow:disabled { color: #bdb4be; background: #faf8fa; cursor: not-allowed; opacity: .75; }
  .dots { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; justify-content: center; }
  .dots button { display: block; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 20px; background: #dfcbde; cursor: pointer; }
  .dots button.active { width: 24px; background: var(--purple); }

/* Footer: three balanced columns, with no oversized SVGs. */
.footer {
  background: var(--purple-dark);
  color: #fff;
  padding: 64px 0 0;
  overflow: hidden;
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(26px, 3.5vw, 50px);
  padding-bottom: 52px;
}
.footer-inner > div { min-width: 0; }
.footer .brand { font-size: 22px; margin-bottom: 17px; }
.footer .brand-name strong { color: var(--yellow); }
.footer-about {
  color: #e3cae8;
  font-size: 14px;
  line-height: 1.75;
  margin: 0;
  max-width: 305px;
}
.footer h3 { margin: 3px 0 23px; font-size: 16px; line-height: 1.4; }
.footer-line {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-width: 0;
  margin: 0 0 18px;
  color: #e3cae8;
  line-height: 1.5;
}
.footer-line b { display: block; color: white; font-size: 13px; font-weight: 750; }
.footer-line > span { display: block; max-width: 100%; font-size: 14px; overflow-wrap: anywhere; }
.footer-placeholder { color: #dec0e4; font-style: normal; }
.contact-list { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.contact-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  min-height: 51px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.09);
  color: #fff;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 650;
  text-decoration: none;
  transition: background .2s;
}
a.contact-item:hover { background: rgba(255,255,255,.18); }
.contact-item svg {
  display: block;
  width: 22px;
  height: 22px;
  min-width: 22px;
  max-width: 22px;
  min-height: 22px;
  max-height: 22px;
  flex: 0 0 22px;
  color: var(--yellow);
}
.contact-item > span { display: block; min-width: 0; flex: 1; overflow-wrap: anywhere; }
.contact-item.is-empty { color: #e1c9e7; font-weight: 450; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.17);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 23px 0;
  font-size: 12px;
  color: #d2b6d9;
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr .6fr; gap: 12px; }
  .hero-art { transform: scale(.82); }
  .footer-inner { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 32px; }
  .footer-brand-col { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .container { width: min(calc(100% - 32px), 1160px); }
  .header-inner { min-height: 77px; }
  .brand { font-size: 20px; gap: 9px; }
  .brand-badge { width: 39px; height: 39px; border-radius: 13px; font-size: 16px; }
  .nav { gap: 10px; }
  .nav a:first-child { display: none; }
  .nav .nav-contact { padding: 10px 13px; font-size: 12px; }
  .hero-inner { display: block; padding-block: 63px 59px; }
  .hero-art { display: none; }
  h1 { letter-spacing: -2px; }
  .hero-copy { font-size: 15px; }
  .catalog { padding: 62px 0 75px; }
  .choices { grid-template-columns: 1fr; gap: 12px; }
  .choice { min-height: 108px; padding: 18px; }
  .choice-icon { flex-basis: 59px; width: 59px; height: 59px; border-radius: 17px; }
  .choice-text strong { font-size: 21px; }
  .slider-panel { padding: 16px; margin-top: 20px; border-radius: 20px; }
  .slider-stage { height: clamp(270px, 80vw, 430px); }
  .slider-head { align-items: center; margin-bottom: 16px; }
  .slider-head p { font-size: 12px; }
  .slider-empty { padding: 18px; }
  .slider-empty p { font-size: 12px; }
  .empty-icon { margin-bottom: 12px; }
  .slider-hint { font-size: 11px; max-width: 150px; }
  .slider-bottom { gap: 7px; }
  .slider-tools { gap: 7px; }
  .slider-arrow { flex: 0 0 40px; width: 40px; height: 40px; }
  .footer { padding-top: 46px; }
  .footer-inner { grid-template-columns: minmax(0,1fr); gap: 34px; padding-bottom: 36px; }
  .footer-brand-col { grid-column: auto; }
  .footer h3 { margin-bottom: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
