/* SHABARSHOV swimming club — одностраничник.
   Палитра из логотипов: лаванда #9477E0, белый, светлая лаванда #F5F3FB. Тёмных блоков нет.
   Один контейнер: .tile (карточка); ряды карточек — .cards. Логотип — вектор через маску. */

@font-face { font-family: "Inter"; src: url("../fonts/inter-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+2011, U+2013-2014, U+2018-201D, U+2026, U+20BD; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-cyrillic.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --ink: #241C4F; --head: #2B2262; --text: #4A4272; --grey: #6E6E73; --grey-2: #86868B;
  --line: #E4E0F0; --white: #FFF; --light: #F5F3FB;
  --lav: #9477E0; --lav-deep: #7B5FD0; --lav-light: #C3B4F0;
  --r: 22px; --ease: cubic-bezier(.25, .1, .25, 1); --ease-out: cubic-bezier(.22, 1, .36, 1);
  --w: 980px; --w-mid: 820px; --w-narrow: 640px; --nav-h: 48px;
  --s-section: 88px; --s-head: 36px; --s-tile: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { background: var(--light); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif; font-optical-sizing: auto; font-size: 17px; line-height: 1.47; letter-spacing: -0.022em; color: var(--ink); background: var(--white); overflow-x: clip; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance; color: var(--head); }
h2 { font-size: clamp(32px, 4.6vw, 52px); margin-bottom: 16px; }
p { overflow-wrap: anywhere; }
.nw { white-space: nowrap; }
.name { font-weight: 600; color: var(--lav-deep); }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 22px; }
.wrap--mid { max-width: var(--w-mid); }
.wrap--narrow { max-width: var(--w-narrow); }
.center { text-align: center; }
.anchor { scroll-margin-top: var(--nav-h); }
:focus-visible { outline: 2px solid var(--lav); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.skip:focus { position: fixed; left: 12px; top: 12px; width: auto; height: auto; clip-path: none; background: var(--lav); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }

.logo { display: inline-block; aspect-ratio: 673 / 682; background: currentColor; color: var(--lav); -webkit-mask: url("../img/logo.svg") center / contain no-repeat; mask: url("../img/logo.svg") center / contain no-repeat; }
.logo--nav { width: 30px; }
.logo--foot { width: 26px; vertical-align: middle; margin-right: 10px; }

.eyebrow { font-size: 13px; font-weight: 500; letter-spacing: .08em; color: var(--grey); margin-bottom: 12px; text-transform: uppercase; }
.lead { font-size: 20px; line-height: 1.4; color: var(--grey); letter-spacing: -0.02em; margin: 0 auto; max-width: 34em; }
.note { font-size: 15px; color: var(--text); margin-top: 22px; line-height: 1.5; }
.note a { color: var(--lav-deep); }
.note a:hover { text-decoration: underline; }

/* Появление */
.rv { opacity: 0; transform: translateY(24px) scale(.98); transition: opacity .85s var(--ease-out), transform .85s var(--ease-out); }
.rv.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto } .rv { opacity: 1; transform: none; transition: none } *, *::before, *::after { transition-duration: .01ms !important; animation: none !important } }

/* Кнопки и ссылки */
.arrow { display: inline-flex; align-items: center; gap: 4px; color: var(--lav-deep); font-size: 16px; white-space: nowrap; }
.arrow::after { content: "›"; font-size: 21px; line-height: 1; transition: transform .3s var(--ease-out); }
.arrow:hover { text-decoration: underline; text-underline-offset: 3px; }
.arrow:hover::after { transform: translateX(3px); }
.center .arrow, .tile .arrow { padding-left: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 24px; border-radius: 980px; background: var(--lav); color: #fff; font-size: 17px; letter-spacing: -0.01em; transition: background .3s var(--ease), transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.btn:hover { background: var(--lav-deep); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(148, 119, 224, .28); }
.btn:active { transform: translateY(0) scale(.98); box-shadow: none; }
.btn--outline { background: transparent; color: var(--ink); border: 1px solid rgba(43, 34, 98, .3); }
.btn--outline:hover { background: rgba(148, 119, 224, .1); border-color: var(--lav); box-shadow: none; }

/* Шапка */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .78); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(43, 34, 98, .08); }
.nav__in { height: var(--nav-h); display: flex; align-items: center; gap: 28px; }
.nav__links { margin-left: auto; display: flex; gap: 28px; font-size: 13px; color: rgba(43, 34, 98, .8); }
.nav__links a { transition: color .25s var(--ease); }
.nav__links a:hover, .nav__links a.on { color: var(--lav-deep); }
.nav__cta { font-size: 13px; padding: 6px 14px; border-radius: 980px; background: var(--lav); color: #fff; transition: background .25s var(--ease); }
.nav__cta:hover { background: var(--lav-deep); }
@media (max-width: 734px) { .nav__links { display: none } .nav__cta { margin-left: auto } }

/* Первый и последний экран: живой перелив воды */
.hero { position: relative; color: var(--ink); text-align: center; background: radial-gradient(55% 45% at 18% 12%, rgba(148, 119, 224, .20) 0%, transparent 70%), radial-gradient(45% 40% at 84% 22%, rgba(122, 196, 255, .22) 0%, transparent 70%), linear-gradient(180deg, #F5F3FB 0%, #FFFFFF 100%); }
.hero::before { content: ""; position: absolute; inset: -20% -10%; pointer-events: none; background: radial-gradient(40% 35% at 30% 30%, rgba(148, 119, 224, .16) 0%, transparent 70%), radial-gradient(35% 30% at 75% 40%, rgba(122, 196, 255, .18) 0%, transparent 70%); animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift { 0% { transform: translate3d(-3%, -2%, 0) scale(1); } 100% { transform: translate3d(3%, 3%, 0) scale(1.06); } }
.hero > .wrap { position: relative; }
.wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 40px; display: block; }
.wave--top { top: -1px; bottom: auto; }
.hero__in { padding: 112px 22px 128px; }
.hero__title { font-size: clamp(38px, 6vw, 62px); letter-spacing: -0.03em; margin-bottom: 14px; }
.hero__sub { font-size: clamp(19px, 2.3vw, 25px); color: var(--grey); letter-spacing: -0.02em; max-width: 30em; margin: 0 auto; }
.hero__btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero--end { background: radial-gradient(55% 45% at 82% 10%, rgba(148, 119, 224, .22) 0%, transparent 70%), radial-gradient(45% 40% at 16% 30%, rgba(122, 196, 255, .22) 0%, transparent 70%), linear-gradient(180deg, #FFF 0%, #F5F3FB 100%); }
.hero--end .hero__in { padding: 88px 22px 44px; }
.hero--end .hero__title { font-size: clamp(30px, 4.4vw, 46px); }
.hero--end .hero__btns { margin-top: 26px; }
.foot__row { margin-top: 44px; font-size: 13px; color: var(--grey-2); display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 8px; }
.foot__row a:hover { color: var(--lav-deep); text-decoration: underline; }
@media (max-width: 734px) { .hero__in { padding: 56px 22px 64px; } .hero__btns { flex-direction: column; align-items: stretch; margin-top: 26px; } .hero--end .hero__in { padding: 60px 22px calc(24px + 70px); } .foot__row { margin-top: 30px; } }

/* Полосы и ритм */
.band { padding: var(--s-section) 0; }
.band--light { background: var(--light); }
.band .wrap--narrow + .wrap, .band .wrap--narrow + .wrap--mid { margin-top: var(--s-head); }
@media (max-width: 734px) { :root { --s-section: 52px; --s-head: 26px; --s-tile: 10px; } }

/* Плитка-карточка */
.tile { background: var(--white); border-radius: var(--r); padding: 26px 24px; min-width: 0; border: 1px solid rgba(148, 119, 224, .14); box-shadow: 0 8px 24px rgba(148, 119, 224, .10); transition: border-color .35s var(--ease), box-shadow .4s var(--ease-out), transform .4s var(--ease-out); }
.tile:hover, .tile:active { border-color: rgba(148, 119, 224, .6); box-shadow: 0 18px 44px rgba(148, 119, 224, .22); transform: translateY(-4px); }
.tile--static:hover, .tile--static:active { transform: none; box-shadow: 0 8px 24px rgba(148, 119, 224, .10); border-color: rgba(148, 119, 224, .14); }

/* Карточки в ряд (тренер, форматы, бассейны) */
.cards { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-tile); align-items: stretch; }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 30px 22px 26px; }
.cards b { font-size: 19px; font-weight: 600; color: var(--head); letter-spacing: -0.02em; }
.cards p { color: var(--text); font-size: 16px; line-height: 1.45; text-wrap: balance; }
.cards em { font-style: normal; color: var(--lav-deep); font-weight: 500; font-size: 16px; font-variant-numeric: tabular-nums; }
.cards .arrow { margin-top: auto; padding-top: 8px; font-size: 15px; }
.ico { width: 40px; height: 40px; margin-bottom: 4px; fill: none; stroke: var(--lav-deep); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease-out); }
.tile:hover .ico { transform: scale(1.1); }
.pools p { font-size: 15px; }
@media (max-width: 734px) {
  .cards, .cards--4 { grid-template-columns: 1fr; }
  .cards li { padding: 22px 18px 20px; gap: 6px; }
  .pools { grid-template-columns: 1fr 1fr; }
  .pools li { padding: 18px 10px 16px; }
  .pools b { font-size: 16px; }
  .pools p, .pools em { font-size: 13px; }
  .pools .arrow { font-size: 14px; }
}

/* Тренер: место для фото и раскрывающиеся факты */
.photo { margin: 32px auto 24px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.photo__ph { width: 200px; height: 200px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(70% 70% at 30% 25%, rgba(122, 196, 255, .35) 0%, transparent 70%), linear-gradient(160deg, #E9E3FA 0%, #C9BCF2 100%); border: 1px solid rgba(148, 119, 224, .3); box-shadow: 0 18px 44px rgba(148, 119, 224, .22); overflow: hidden; }
.photo__ph .logo { width: 84px; color: #fff; opacity: .9; }
.photo img { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(148, 119, 224, .3); box-shadow: 0 18px 44px rgba(148, 119, 224, .22); }
.photo figcaption { display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.photo figcaption .name { font-size: 21px; }
.photo figcaption span { font-size: 14px; color: var(--grey); }
.more { margin-top: 28px; text-align: center; }
.more > summary { display: inline-flex; align-items: center; gap: 4px; list-style: none; cursor: pointer; color: var(--lav-deep); font-size: 17px; font-weight: 500; padding: 8px 4px; }
.more > summary::-webkit-details-marker { display: none }
.more > summary::after { content: "›"; display: inline-block; font-size: 22px; line-height: 1; transform: rotate(90deg); transition: transform .3s var(--ease-out); }
.more[open] > summary::after { transform: rotate(-90deg); }
.more > summary:hover { text-decoration: underline; text-underline-offset: 4px; }
.more .cards { margin-top: 24px; width: min(936px, calc(100vw - 44px)); position: relative; left: 50%; transform: translateX(-50%); animation: fade .45s var(--ease-out); }
@media (max-width: 734px) { .photo { margin-top: 24px; } .photo__ph, .photo img { width: 160px; height: 160px; } .photo__ph .logo { width: 68px; } }

/* Где и цены */
.map { margin-top: var(--s-tile); border-radius: var(--r); overflow: hidden; border: 1px solid rgba(148, 119, 224, .14); box-shadow: 0 8px 24px rgba(148, 119, 224, .10); background: var(--light); min-height: 300px; }
.map iframe { display: block; width: 100%; height: 100%; min-height: 300px; border: 0; filter: saturate(.85); }
.prices { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-tile); margin-top: var(--s-tile); align-items: stretch; }
.prices li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 28px 22px; }
.prices li > span { font-size: 15px; color: var(--grey); }
.prices b { font-weight: 600; font-size: 28px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.15; color: var(--head); }
.prices .free { color: var(--lav-deep); }
.prices small { font-size: 13px; color: var(--grey-2); }
.prices .arrow { margin-top: auto; padding-top: 12px; }
.prices--extra { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; margin-left: auto; margin-right: auto; }
.prices--extra b { font-size: 24px; }
.tile--best { border-color: rgba(148, 119, 224, .4); }
@media (max-width: 734px) {
  .prices--extra { grid-template-columns: 1fr 1fr; }
  .map, .map iframe { min-height: 220px; }
  .prices { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .prices li { padding: 18px 8px; gap: 4px; }
  .prices li > span { font-size: 13px; }
  .prices b { font-size: 19px; }
  .prices small { font-size: 12px; }
  .prices .arrow { font-size: 14px; padding-left: 8px; }
}

/* Отзыв */
.quote { margin: 8px auto 0; max-width: 32em; }
.quote p { font-size: clamp(22px, 3.2vw, 34px); line-height: 1.25; letter-spacing: -0.025em; font-weight: 500; color: var(--head); }
.quote footer { margin-top: 16px; }

/* Вопросы */
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 20px 36px; font-size: 18px; font-weight: 500; position: relative; text-align: center; color: var(--head); transition: color .25s var(--ease); }
summary:hover { color: var(--lav-deep); }
summary::-webkit-details-marker { display: none }
summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 300; color: var(--lav-deep); transition: transform .3s var(--ease-out); }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details > p { color: var(--text); padding: 0 36px 20px; font-size: 16px; text-align: center; }
details[open] > p { animation: fade .4s var(--ease-out); }
@keyframes fade { from { opacity: 0; transform: translateY(-4px) } to { opacity: 1; transform: none } }

/* Панель записи на телефоне */
.dock { display: none; }
@media (max-width: 734px) {
  .dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .82); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid rgba(43, 34, 98, .08); transform: translateY(100%); transition: transform .5s var(--ease-out); }
  .dock.on { transform: none; }
  .dock .btn { width: 100%; }
}
