/* Swimming Moscow Hero 2.2.40. Theme-only presentation; Core owns data/submit. */
body.home{background:#f3f9ff}
/* The approved hero reference uses a floating white navigation shell. Scoped to home. */
body.home .site-header{
  width:min(1370px,calc(100% - 48px));margin:8px auto 0;
  border:1px solid rgba(225,238,248,.85);border-radius:22px;
  background:rgba(255,255,255,.97);box-shadow:0 8px 32px rgba(32,86,134,.045)
}
body.home .site-header__inner{width:100%;max-width:100%;min-height:68px;padding:7px clamp(16px,2.6vw,32px);gap:clamp(14px,2.1vw,28px)}
body.home .site-brand .site-brand__image{max-height:54px;width:clamp(185px,16.5vw,232px)}
body.home .site-header__cta{border-radius:999px;min-height:47px;padding-inline:22px;background:linear-gradient(105deg,#176dc5,#0c468f);color:#fff}

.sw-hero-studio{
  --sw-hero-ink:#0c2748;--sw-hero-blue:#1468ba;--sw-hero-blue-deep:#0c448f;
  position:relative;isolation:isolate;overflow:clip;min-width:0;
  padding:clamp(20px,1.55vw,26px) 0 22px;
  color:var(--sw-hero-ink);
  background:radial-gradient(ellipse at 48% 22%,#fff 0%,#f7fbff 46%,transparent 78%),linear-gradient(115deg,#eaf5ff,#f7fbff 50%,#eaf5ff)
}
/* Depth is separated from the broad water ribbons below. No strokes or drops. */
.sw-hero-studio::before{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background:
    radial-gradient(ellipse 42% 35% at -11% 28%,rgba(172,213,250,.35),transparent 75%),
    radial-gradient(ellipse 50% 35% at 108% 48%,rgba(173,214,250,.3),transparent 75%),
    radial-gradient(ellipse 46% 32% at 47% 97%,rgba(176,215,248,.24),transparent 78%);
}
/* Always behind content. Stretches across both top columns and all photo slots. */
.sw-hero-studio::after{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='820' viewBox='0 0 1600 820' preserveAspectRatio='none'%3E%3Cpath fill='%23D8ECFF' fill-opacity='.65' d='M-80 30C150 70 166 326 403 347S727 211 948 291 1300 366 1680-58V126C1363 637 1159 433 927 390S646 476 426 443 148 275-80 334Z'/%3E%3Cpath fill='%23D8ECFF' fill-opacity='.52' d='M-80 534C174 534 221 795 473 684S875 432 1157 527 1437 475 1680 409V561C1434 657 1388 754 1152 636S703 641 500 796 185 713-80 666Z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-size:100% 100%;background-position:center}
.sw-hero-studio,.sw-hero-studio *{box-sizing:border-box}
.sw-hero-studio__container{position:relative;z-index:1;width:min(1340px,calc(100% - 48px));margin-inline:auto;min-width:0}
.sw-hero-studio__top{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(415px,.9fr);align-items:start;gap:clamp(26px,3vw,44px);min-width:0}
.sw-hero-studio__copy{min-width:0;padding-top:clamp(10px,1.25vw,18px)}
.sw-hero-studio__eyebrow{display:inline-flex;align-items:center;min-height:30px;margin:0 0 17px;padding:7px 13px;border-radius:999px;background:#dcefff;color:#075aaa;font-size:13px;font-weight:750;line-height:1.2}
.sw-hero-studio h1{max-width:740px;margin:0 0 16px;color:var(--sw-hero-ink);font-size:clamp(42px,4.1vw,62px);font-weight:800;line-height:1.055;letter-spacing:-.028em;text-wrap:balance}
.sw-hero-studio__intro{max-width:640px;margin:0 0 21px;color:#486b95;font-size:clamp(17px,1.38vw,20px);line-height:1.42;letter-spacing:-.015em}
.sw-hero-studio__benefits{display:grid;gap:12px;max-width:635px;margin:0!important;padding:0!important;list-style:none!important}
.sw-hero-studio__benefits li{display:flex;align-items:center;gap:17px;min-width:0;margin:0!important;padding:0!important;color:#183857;font-size:clamp(15px,1.13vw,18px);font-weight:640;line-height:1.35}
.sw-hero-studio__benefit-icon{display:grid;place-items:center;flex:0 0 56px;width:56px;height:56px;border:2px solid #fff;border-radius:50%;background:linear-gradient(145deg,#fff,#e9f5ff);color:#147bd6;box-shadow:0 8px 26px rgba(26,93,151,.085)}
.sw-hero-studio__benefit-icon--trophy{color:#d39a05;background:linear-gradient(145deg,#fff,#fff6d7)}
.sw-hero-studio__benefit-icon svg{width:29px;height:29px}

.sw-hero-studio__form{position:relative;justify-self:end;width:100%;max-width:545px;min-width:0;padding:clamp(24px,1.7vw,26px);border:1px solid rgba(226,237,249,.9);border-radius:27px;background:#fff;box-shadow:0 22px 60px rgba(30,86,143,.11);scroll-margin-top:110px}
.sw-hero-studio__form h2{max-width:100%;margin:0 0 8px;color:#0d2b4c;font-size:clamp(23px,1.72vw,26px);font-weight:700;line-height:1.16;letter-spacing:-.02em;text-wrap:balance}
.sw-hero-studio__form-intro{margin:0 0 12px;color:#526d8e;font-size:13.5px;line-height:1.4}
.sw-hero-studio__form .sw-contact-form-wrap{min-width:0;margin:0;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.sw-hero-studio__form .sw-contact-form{display:flex;flex-direction:column;gap:8px;min-width:0;margin:0}
.sw-hero-studio__form .sw-form-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;min-width:0;margin:0}
.sw-hero-studio__form .sw-form-grid label{position:relative;display:block;min-width:0;margin:0;font-size:0;line-height:0}
.sw-hero-studio__form .sw-form-grid label::before{content:"";position:absolute;z-index:2;left:18px;top:50%;width:20px;height:20px;transform:translateY(-50%);pointer-events:none;background-repeat:no-repeat;background-position:center;background-size:contain;opacity:.68}
.sw-hero-studio__form .sw-form-grid label.sw-field--name::before,
.sw-hero-studio__form .sw-form-grid label:has(input[name="name"])::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237289a2' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.2'/%3E%3Cpath d='M5.5 20c.3-4 2.5-6.2 6.5-6.2s6.2 2.2 6.5 6.2'/%3E%3C/svg%3E")}
.sw-hero-studio__form .sw-form-grid label.sw-field--phone::before,
.sw-hero-studio__form .sw-form-grid label:has(input[name="phone"])::before{content:"RU";width:22px;height:auto;background:none;font-size:11px;font-weight:800;line-height:1;color:#315376;opacity:1}
.sw-hero-studio__form .sw-form-grid :is(input[type="text"],input[type="tel"]){display:block;width:100%;max-width:100%;height:48px;min-height:48px;margin:0;padding:12px 17px 12px 51px;border:1px solid #d7e5f3;border-radius:999px;outline:0;background:#fcfdff;color:#173553;font:400 16px/1.25 var(--sw-font-body);transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}
.sw-hero-studio__form .sw-form-grid input::placeholder{color:#91a3b9;opacity:1;font-size:15px}
.sw-hero-studio__form .sw-form-grid input:focus{border-color:#4194df;background:#fff;box-shadow:0 0 0 4px rgba(52,150,227,.13)}
.sw-hero-studio__form .sw-form-grid input[name="phone"]{font-variant-numeric:tabular-nums}
.sw-hero-studio__form .sw-phone-mask__ghost{padding:12px 17px 12px 51px;border-radius:999px;font:400 16px/1.25 var(--sw-font-body);font-variant-numeric:tabular-nums;letter-spacing:.01em}

.sw-hero-studio__pool-picker{display:block;min-width:0;margin:2px 0 0;padding:0;border:0}
.sw-hero-studio__pool-picker legend{display:block;width:100%;margin:0 0 8px;padding:0;color:#1c3959;font-size:14px;font-weight:750;line-height:1.25}
.sw-hero-studio__pool-list{display:flex;flex-wrap:wrap;align-items:stretch;gap:7px;min-width:0}
.sw-hero-studio__form .sw-contact-form label.sw-hero-studio__pool{display:inline-flex!important;align-items:center!important;gap:7px;flex:0 1 auto;min-width:105px;max-width:100%;min-height:36px;margin:0!important;padding:7px 10px;border:1px solid #d6e3ef;border-radius:999px;background:#fff;color:#3d5e7e;font-size:12.5px!important;font-weight:580!important;line-height:1.2!important;white-space:normal;cursor:pointer;box-shadow:0 1px 2px rgba(30,75,120,.025);transition:border-color .18s ease,background .18s ease,box-shadow .18s ease,color .18s ease}
.sw-hero-studio__form .sw-contact-form label.sw-hero-studio__pool:hover{border-color:#a9cee9;background:#f9fdff}
.sw-hero-studio__form .sw-contact-form label.sw-hero-studio__pool:has(input:checked),.sw-hero-studio__form .sw-contact-form label.sw-hero-studio__pool.is-selected{border-color:#449bea;background:#eaf6ff;color:#075b9d;box-shadow:0 3px 12px rgba(40,125,202,.09)}
.sw-hero-studio__form .sw-contact-form label.sw-hero-studio__pool input[type="radio"]{position:relative;display:block;flex:0 0 18px;width:18px!important;height:18px!important;min-width:18px!important;min-height:18px!important;margin:0!important;padding:0!important;border:1.6px solid #9aadc2;border-radius:50%;appearance:none;background:#fff;outline:0;cursor:pointer}
.sw-hero-studio__form .sw-contact-form label.sw-hero-studio__pool input[type="radio"]:checked{border-color:#1689eb;background:radial-gradient(circle at center,#1689eb 0 4px,#fff 4.5px);box-shadow:0 0 0 2px rgba(22,137,235,.08)}
.sw-hero-studio__form .sw-contact-form label.sw-hero-studio__pool span{min-width:0;overflow-wrap:break-word}
.sw-pool-picker-empty{margin:2px 0;padding:10px 12px;border-radius:12px;background:#fff6df;color:#74500d;font-size:13px;line-height:1.35}
.sw-hero-studio__form .sw-consent{display:flex!important;align-items:flex-start!important;gap:9px;min-width:0;margin:3px 0 0!important;color:#647990;font-size:12.5px!important;font-weight:400!important;line-height:1.38!important}
.sw-hero-studio__form .sw-consent input{display:block;flex:0 0 18px;width:18px!important;height:18px!important;min-width:18px!important;min-height:18px!important;margin:0!important;accent-color:var(--sw-hero-blue)}
.sw-hero-studio__form .sw-consent a{color:#147bcf;text-decoration:none;border-bottom:1px solid rgba(20,123,207,.25)}
.sw-hero-studio__form .sw-contact-form button[type="submit"]{position:relative;width:100%;min-height:54px;margin:0;padding:13px 46px 13px 20px;border:0;border-radius:999px;background:linear-gradient(105deg,#176dc5 0%,#0c468f 100%);color:#fff;font:700 15px/1.2 var(--sw-font-rounded);box-shadow:0 12px 25px rgba(13,72,147,.17);cursor:pointer;transition:transform .18s ease,filter .18s ease,box-shadow .18s ease}
.sw-hero-studio__form .sw-contact-form button[type="submit"]::after{content:"\2192";position:absolute;right:22px;top:50%;font-size:21px;font-weight:400;line-height:1;transform:translateY(-53%)}
.sw-hero-studio__form .sw-contact-form button[type="submit"]:hover{filter:brightness(1.055);transform:translateY(-1px);box-shadow:0 16px 30px rgba(13,72,147,.23)}
.sw-hero-studio__form :is(input,button,a):focus-visible{outline:3px solid #57acfa;outline-offset:3px}
.sw-hero-studio__form .sw-form-success,.sw-hero-studio__form .sw-form-error{margin:0 0 13px;padding:12px 14px;border-radius:13px;font-size:14px;line-height:1.4}

/* Photo slots stay in normal flow beneath the taller top column.
   With three photos, side cards are 3:2 and the middle card is 4:5.
   Grid padding reserves rotated bounds; shifts and stacking stay local. */
.sw-hero-studio__media-row{min-width:0;margin:16px 0 0}
.sw-hero-studio__gallery{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.08fr) minmax(0,1fr);gap:clamp(12px,1.1vw,16px);align-items:center;min-width:0;padding:10px 6px 12px}
.sw-hero-studio__photo{position:relative;display:block;min-width:0;width:100%;height:clamp(175px,13.2vw,210px);aspect-ratio:auto;overflow:hidden;border:4px solid #fff;border-radius:26px;background:#e2effa;box-shadow:0 12px 28px rgba(24,74,127,.13);transform-origin:center center;transition:box-shadow .22s ease}
.sw-hero-studio__gallery:focus-visible{outline:3px solid #5aaafb;outline-offset:-3px;border-radius:16px}
.sw-hero-studio__photo img,.sw-hero-studio__image{display:block;width:100%;height:100%;max-width:none;object-fit:cover;object-position:var(--sw-photo-position,50% 45%)}
.sw-hero-studio__photo--full-frame img{object-fit:contain;object-position:center}
/* Scope the new proportions to the three filled slots. One/two-image layouts stay intact. */
.sw-hero-studio--photos-3 .sw-hero-studio__gallery{
  grid-template-columns:minmax(0,3fr) minmax(0,2fr) minmax(0,3fr);
  gap:0;max-width:1280px;width:100%;margin-inline:auto;isolation:isolate;
  padding:clamp(18px,2vw,28px) clamp(12px,1.6vw,22px);
}
.sw-hero-studio__photo--landscape{height:auto;aspect-ratio:3 / 2}
.sw-hero-studio__photo--portrait{height:auto;aspect-ratio:4 / 5;box-shadow:0 14px 30px rgba(24,74,127,.16)}
.sw-hero-studio__photo--1{--sw-photo-position:50% 42%;z-index:1;transform:rotate(-1.6deg)}
.sw-hero-studio__photo--2{--sw-photo-position:50% 45%;z-index:2;transform:rotate(1.5deg)}
.sw-hero-studio__photo--3{--sw-photo-position:50% 42%;z-index:1;transform:rotate(-1.4deg)}
/* The reference fans outward: left/right clockwise, portrait counterclockwise.
   Small inward shifts overlap only edges; the existing portrait z-index wins. */
.sw-hero-studio--photos-3 .sw-hero-studio__photo--1{transform:translate(8px,6px) rotate(5deg)}
.sw-hero-studio--photos-3 .sw-hero-studio__photo--2{transform:translateY(-4px) rotate(-5deg)}
.sw-hero-studio--photos-3 .sw-hero-studio__photo--3{transform:translate(-8px,-8px) rotate(4deg)}
.sw-hero-studio--photos-1 .sw-hero-studio__gallery{grid-template-columns:minmax(0,1fr);max-width:620px;width:100%;margin-inline:auto}
.sw-hero-studio--photos-2 .sw-hero-studio__gallery{grid-template-columns:repeat(2,minmax(0,1fr));max-width:1000px;width:100%;margin-inline:auto}
/* Both existing optional extras remain editable; one compact desktop row. */
.sw-hero-studio__meta{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px 24px;margin-top:8px;min-width:0}
.sw-hero-studio__note{min-width:0;max-width:100%;margin:0;color:#1e6caf;font:600 clamp(18px,1.45vw,21px)/1.12 var(--sw-font-hand);text-align:right;text-wrap:balance;flex:0 1 auto}
.sw-hero-studio__tags{position:relative;z-index:2;display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0;min-width:0}
.sw-hero-studio__tag{display:inline-flex;align-items:center;gap:8px;min-height:34px;padding:7px 12px;border-radius:999px;background:rgba(220,239,255,.8);color:#28557f;font-size:12px;font-weight:560;line-height:1.2}
.sw-hero-studio__tag svg{flex:0 0 18px;width:18px;height:18px;color:#2084df;stroke-width:2.1}
@media(hover:hover) and (pointer:fine){.sw-hero-studio__photo:hover{box-shadow:0 17px 34px rgba(24,74,127,.19)}}

/* Preserve the former shallow layout only when fewer than three slots are filled. */
@media(min-width:1024px) and (max-height:900px){.sw-hero-studio--photos-1 .sw-hero-studio__photo,.sw-hero-studio--photos-2 .sw-hero-studio__photo{height:175px}}
@media(max-width:1199px){
  body.home .site-header__inner{gap:16px}
  .sw-hero-studio__top{grid-template-columns:minmax(0,1fr) minmax(395px,.96fr);gap:clamp(22px,2.5vw,35px)}
  .sw-hero-studio h1{font-size:clamp(39px,4.15vw,52px)}
  .sw-hero-studio__form{padding:25px}
  .sw-hero-studio__benefits li{font-size:15.5px}
  .sw-hero-studio__benefit-icon{width:50px;height:50px;flex-basis:50px}
}
@media(max-width:1023px){
  .sw-hero-studio__container{width:min(860px,calc(100% - 36px))}
  .sw-hero-studio__top{grid-template-columns:minmax(0,1fr);gap:26px}
  .sw-hero-studio__copy{padding-top:0}
  .sw-hero-studio h1{font-size:clamp(39px,6.2vw,57px)}
  .sw-hero-studio__intro{max-width:780px}
  .sw-hero-studio__benefits{max-width:none}
  .sw-hero-studio__form{justify-self:center;max-width:680px}
}
@media(max-width:850px){
  .sw-hero-studio--photos-1 .sw-hero-studio__gallery,.sw-hero-studio--photos-2 .sw-hero-studio__gallery{
    display:flex;align-items:center;gap:13px;max-width:none;width:100%;margin:0;
    overflow-x:auto;overflow-y:hidden;overscroll-behavior-inline:contain;scroll-snap-type:x mandatory;
    scroll-padding-inline:7px;padding:9px 7px 16px;scrollbar-width:thin;scrollbar-color:#b5d5eb transparent;
  }
  .sw-hero-studio--photos-1 .sw-hero-studio__photo,.sw-hero-studio--photos-2 .sw-hero-studio__photo{
    flex:0 0 72%;width:72%;height:auto;aspect-ratio:1.65;margin:0;transform:none!important;scroll-snap-align:start;border-width:4px;border-radius:22px
  }
  /* Tablet triptych: keep all three visible without distorting any image. */
  .sw-hero-studio--photos-3 .sw-hero-studio__photo{border-radius:22px}
  .sw-hero-studio__media-row{margin-top:20px}
  .sw-hero-studio__meta{justify-content:center}.sw-hero-studio__note{text-align:center;font-size:18px}
}
@media(max-width:600px){
  body.home .site-header{width:calc(100% - 20px);margin-top:6px;border-radius:17px}
  body.home .site-header__inner{min-height:58px;padding:6px 12px}
  body.home .site-brand .site-brand__image{max-height:44px;width:clamp(150px,47vw,186px)}
  .sw-hero-studio{padding:22px 0 28px}
  .sw-hero-studio__container{width:calc(100% - 28px)}
  .sw-hero-studio__eyebrow{margin-bottom:13px;font-size:12px}
  .sw-hero-studio h1{margin-bottom:12px;font-size:clamp(32px,9.2vw,44px);line-height:1.08;letter-spacing:-.039em}
  .sw-hero-studio__intro{margin-bottom:18px;font-size:16px;line-height:1.43}
  .sw-hero-studio__benefits{gap:10px}
  .sw-hero-studio__benefits li{gap:12px;font-size:14.5px}
  .sw-hero-studio__benefit-icon{flex:0 0 45px;width:45px;height:45px}
  .sw-hero-studio__benefit-icon svg{width:24px;height:24px}
  .sw-hero-studio__form{padding:22px 18px;border-radius:23px}
  .sw-hero-studio__form h2{font-size:23px}
  .sw-hero-studio__form-intro{font-size:13.5px;margin-bottom:15px}
  .sw-hero-studio__pool-list{gap:7px}
  .sw-hero-studio__form .sw-contact-form label.sw-hero-studio__pool{min-height:44px;padding:9px 11px;font-size:12.5px!important}
  .sw-hero-studio__form .sw-contact-form button[type="submit"]{min-height:55px;font-size:14px}
  .sw-hero-studio--photos-1 .sw-hero-studio__photo,.sw-hero-studio--photos-2 .sw-hero-studio__photo{flex-basis:85%;width:85%;height:auto;aspect-ratio:1.55}
  .sw-hero-studio__tags{gap:7px}
  .sw-hero-studio__tag{min-height:36px;padding:7px 11px;font-size:11.5px}
}
/* Smaller triptych: reduced rotations/overlap, with room for transformed edges. */
@media(min-width:601px) and (max-width:1023px){
  .sw-hero-studio--photos-3 .sw-hero-studio__gallery{padding:16px 12px}
  .sw-hero-studio--photos-3 .sw-hero-studio__photo--1{transform:translate(3px,3px) rotate(2deg)}
  .sw-hero-studio--photos-3 .sw-hero-studio__photo--2{transform:translateY(-2px) rotate(-2.5deg)}
  .sw-hero-studio--photos-3 .sw-hero-studio__photo--3{transform:translate(-3px,-3px) rotate(2deg)}
}
/* On phones the same three slots become a native, keyboard-scrollable gallery.
   The portrait opens the mobile gallery; all three slots remain accessible. No extra script or duplicated images. */
@media(max-width:600px){
  .sw-hero-studio--photos-3 .sw-hero-studio__gallery{
    display:flex;align-items:center;gap:14px;max-width:100%;width:100%;margin:0;
    overflow-x:auto;overflow-y:hidden;overscroll-behavior-inline:contain;scroll-snap-type:x mandatory;
    scroll-padding-inline:7px;padding:10px 7px 16px;scrollbar-width:thin;scrollbar-color:#b5d5eb transparent;
  }
  .sw-hero-studio--photos-3 .sw-hero-studio__photo{margin:0;scroll-snap-align:start;scroll-snap-stop:always;transform:none!important}
  .sw-hero-studio--photos-3 .sw-hero-studio__photo--landscape{flex:0 0 min(85%,420px);width:min(85%,420px);height:auto;aspect-ratio:8 / 5}
  .sw-hero-studio--photos-3 .sw-hero-studio__photo--portrait{order:-1;flex:0 0 min(62%,252px);width:min(62%,252px);height:auto;aspect-ratio:4 / 5}
}
@media(max-width:360px){
  .sw-hero-studio__container{width:calc(100% - 22px)}
  .sw-hero-studio__form{padding:20px 15px}
  .sw-hero-studio__form .sw-contact-form label.sw-hero-studio__pool{max-width:100%;width:100%;flex-basis:100%}
}
@media(prefers-reduced-motion:reduce){
  .sw-hero-studio__form .sw-contact-form button[type="submit"],
  .sw-hero-studio__form .sw-form-grid input,
  .sw-hero-studio__form .sw-contact-form label.sw-hero-studio__pool{transition:none!important}
  .sw-hero-studio__gallery{scroll-behavior:auto!important}
  .sw-hero-studio__photo{transition:none!important}
}
