:root {
  --bg: #ffffff;
  --surface: #f4f4f4;
  --fg: #212529;
  --muted: #5f666d;
  --accent: #307400;
  --accent-fg: #ffffff;
  --radius: 0px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-headings: var(--font);
}

/* theme stylesheet */
/* Как а-фитнес.рф (Porto «band/gym»): тёмный графит #383f48, зелёный #307400, подвал #171b1f, оранжевые круги соцсетей #f5914f, Arial (их Poppins и Josefin Sans без кириллицы — браузер рисует Arial), заглавные в меню. */
html { overflow-x: clip; }
body { background: #fff; color: #212529; font: 400 15px/1.7 Arial, "Helvetica Neue", Helvetica, sans-serif; }
a { color: #307400; }
h1, h2, h3 { font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; letter-spacing: -.02em; }
.dev-bar { padding: 6px 16px; background: #12161a; color: #b9bec4; text-align: center; font: 400 13px/1.4 Arial, sans-serif; }
.dev-bar a { color: #8ad04f; }

/* Шапка: графит, белый логотип, меню прописными */
.site-header { background: #383f48; border: 0; padding: 10px 16px; }
.site-name { color: #fff; text-decoration: none; }
.site-name > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.site-logo img { width: auto; height: 34px; max-width: 170px; object-fit: contain; border-radius: 0; }
.site-nav a { color: #fff; border: 0; font: 700 12px/1.4 Arial, sans-serif; text-transform: uppercase; letter-spacing: .02em; }
.site-nav a:hover, .site-nav a[aria-current] { color: #fff; border: 0; box-shadow: inset 0 -2px 0 #fff; }
.site-city summary, .site-langs a { color: #fff; }
.menu-icon, .menu-icon::before, .menu-icon::after { background: #fff; }

/* Страницы */
.site-main { max-width: 1140px; padding: 40px 16px 60px; }
.site-main h1 { font: 700 34px/1.2 Arial, sans-serif; color: #212529; }
.rich h2 { font-weight: 700; color: #307400; }
.rich h3 { font-weight: 700; }
.rich blockquote { border-left: 3px solid #307400; margin-left: 0; padding-left: 18px; color: #444; }
.button, button.button { background: #307400; color: #fff; border-radius: 4px; font-weight: 700; text-transform: uppercase; font-size: 13px; }
.button:hover { background: #255a00; color: #fff; }
.site-footer { background: #171b1f; color: #a8adb3; }
.site-footer a { color: #fff; }

/* Главная */
.page-home .site-main { padding-top: 0; padding-bottom: 0; }
.page-home .layout-row { margin-bottom: 0; }
.af-full { width: 100vw; margin-left: calc(50% - 50vw); }
.af-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.site-main h2 { color: #212529; }
.af-btn { display: inline-block; background: #307400; color: #fff; padding: 12px 22px; border-radius: 4px; font: 700 12px/1 Arial, sans-serif; text-transform: uppercase; text-decoration: none; box-shadow: 0 3px 0 #1f4d00; }
.af-btn:hover { background: #3b8c00; color: #fff; }
.af-dark { display: inline-block; background: #212529; color: #fff; padding: 16px 26px; border-radius: 4px; font: 700 13px/1 Arial, sans-serif; text-decoration: none; }
.af-dark:hover { background: #000; color: #fff; }
.af-more { text-align: center; margin: 26px 0 0; font-size: 14px; }
.af-soc { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: #212529; color: #fff; font: 700 12px/1 Arial, sans-serif; text-decoration: none; margin-left: 6px; }

/* Первый экран: большой логотип, приглушённый, на графите */
.af-hero { background: radial-gradient(ellipse at 50% 40%, #454c55, #383f48 60%, #2f353d); min-height: 560px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.af-hero-in { max-width: 1240px; padding: 90px 16px 60px; text-align: center; }
.site-main .af-logo { margin: 0; line-height: 0; }
.af-logo img { width: 100%; max-width: 1200px; height: auto; opacity: .38; }
.af-hero-line { color: #c9cdd2; font: 400 16px/1.6 Arial, sans-serif; margin: 46px 0 0; }
.af-hero-line a { color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }

/* «А-фитнес» — женская студия фитнеса */
.af-about { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; max-width: 1140px; margin: 0 auto; padding: 70px 0 60px; align-items: start; }
.site-main .af-about h2 { font: 700 46px/1.1 Arial, sans-serif; color: #212529; margin: 0 0 30px; letter-spacing: -.04em; }
.af-about h2 span { display: block; color: #307400; font-size: 35px; text-transform: uppercase; margin-top: 6px; }
.af-feats { list-style: none; margin: 0; padding: 0; }
.af-feats li { position: relative; padding: 0 0 20px 44px; margin-bottom: 22px; border-bottom: 1px solid #e6e6e6; }
.af-feats li::before { content: "✓"; position: absolute; left: 0; top: 40px; width: 30px; height: 30px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.12); color: #307400; font: 700 13px/30px Arial, sans-serif; text-align: center; }
.site-main .af-feats h3 { font: 700 21px/1.25 Arial, sans-serif; text-transform: uppercase; color: #212529; margin: 0 0 14px; letter-spacing: -.03em; }
.af-feats p { color: #777; font-size: 14px; line-height: 1.85; margin: 0; }
.af-feats b { color: #212529; }
.af-about-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 0; }
.af-reach { font: 700 11px/1 Arial, sans-serif; text-transform: uppercase; color: #212529; }
.af-about-ph { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.af-about-ph li { border: 1px solid #e3e3e3; padding: 4px; background: #fff; border-radius: 4px; }
.af-about-ph img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; display: block; }

/* Раздевалка и залы: ленты фото во всю ширину */
.af-gallery { padding: 30px 0 10px; }
.af-strip { margin-bottom: 30px; }
.site-main .af-strip h2 { text-align: center; font: 700 30px/1.2 Arial, sans-serif; margin: 0 0 36px; }
.af-strip ul { list-style: none; margin: 0; padding: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.af-strip li { flex: 0 0 20%; scroll-snap-align: start; }
.af-strip img { width: 100%; height: 13.4vw; min-height: 150px; object-fit: cover; display: block; }

/* Обратная связь */
.af-reviews { max-width: 1140px; margin: 0 auto; padding: 40px 0 50px; }
.site-main .af-reviews h2 { text-align: center; font: 700 30px/1.2 Arial, sans-serif; margin: 0 0 36px; }
.af-reviews ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.af-reviews li { background: #fff; border: 1px solid #ececec; border-radius: 8px; padding: 22px 22px 18px; box-shadow: 0 2px 12px rgba(0,0,0,.05); }
.af-stars { color: #f6b500; font-size: 20px; letter-spacing: 2px; margin: 0 0 10px; }
.af-reviews blockquote { margin: 0 0 14px; font: 400 16px/1.5 Arial, sans-serif; color: #212529; }
.af-who { color: #8a8f95; font-size: 13px; margin: 0; }
.af-who b { color: #212529; }

/* Групповые занятия: карточки в духе их афиш */
.af-programs { max-width: 1140px; margin: 0 auto; padding: 50px 0 60px; }
.site-main .af-programs h2 { text-align: center; font: 700 30px/1.2 Arial, sans-serif; margin: 0 0 10px; }
.af-lead { text-align: center; color: #777; font-size: 15px; margin: 0 0 40px; }
.af-programs ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 26px; }
.af-programs a { color: #212529; text-decoration: none; display: block; }
.af-poster { background: linear-gradient(160deg, #f6efe6, #eadfd2 70%, #e2d4c3); border-radius: 6px; padding: 22px 20px 18px; min-height: 380px; display: flex; flex-direction: column; text-align: center; transition: transform .2s; }
.af-programs a:hover .af-poster { transform: translateY(-3px); }
.af-brand { font: 700 15px/1 Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px; color: #2b2b2b; }
.af-brand small { display: block; font: 400 10px/1.4 Arial, sans-serif; letter-spacing: 0; text-transform: none; color: #555; margin-top: 4px; }
.af-ptitle { font: 700 29px/1.05 "Arial Narrow", Arial, sans-serif; text-transform: uppercase; letter-spacing: -.02em; color: #111; margin: 0 0 8px; }
.af-ptag { color: #4a4a4a; font-size: 13px; margin: 0 0 16px; }
.af-dur { background: rgba(255,255,255,.75); border-radius: 12px; padding: 10px; margin: 0 0 14px; font: 700 20px/1.1 Arial, sans-serif; text-transform: uppercase; }
.af-dur span { display: block; font-size: 11px; letter-spacing: .06em; color: #555; margin-bottom: 4px; }
.af-pdesc { background: rgba(255,255,255,.75); border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; font-size: 13px; line-height: 1.55; text-align: left; flex: 1; }
.af-pfoot { margin: 0; font: italic 400 14px/1.3 Georgia, serif; color: #5a4a3a; }
.site-main .af-programs h3 { font: 700 14px/1.35 Arial, sans-serif; text-transform: uppercase; margin: 14px 0 0; color: #212529; }

/* Расписание: таблица, как у них */
.af-schedule { max-width: 1140px; margin: 0 auto; padding: 40px 0 60px; }
.site-main .af-schedule h2 { text-align: center; font: 700 28px/1.2 Arial, sans-serif; margin: 0 0 30px; padding-bottom: 30px; border-bottom: 1px solid #eee; }
.af-table { overflow-x: auto; }
.af-schedule table { border-collapse: collapse; width: 100%; max-width: 860px; margin: 0 auto; min-width: 640px; }
.af-schedule th, .af-schedule td { border: 1px solid #8e717a; text-align: center; vertical-align: middle; padding: 10px 4px; font-size: 12px; line-height: 1.5; }
.af-schedule thead th { color: #6b7783; font-weight: 700; }
.af-schedule tbody th { color: #8a6d4a; font-weight: 700; width: 46px; }
.af-schedule td { color: #6f5a44; font-weight: 700; height: 64px; }
.af-schedule td small { display: block; font-weight: 400; color: #8a7a6a; }

/* Первая тренировка — бесплатно */
.af-trial { background: #307400; position: relative; overflow: hidden; }
.af-trial::after { content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.06); }
.af-trial-in { max-width: 1140px; margin: 0 auto; padding: 46px 16px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; position: relative; z-index: 1; }
.af-trial p { margin: 0; color: #fff; font: 700 21px/1.3 Arial, sans-serif; }
.af-trial p span { font: 400 32px/1.1 Georgia, "Times New Roman", serif; }

/* Прайс */
.af-prices { background: #383f48; color: #fff; padding: 70px 0 80px; }
.af-in { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.site-main .af-prices h2 { color: #6fbf2a; text-align: center; font: 700 30px/1.2 Arial, sans-serif; margin: 0 0 44px; }
.af-prices ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.af-prices li { background: #2b3138; border-top: 3px solid #307400; padding: 26px 24px 24px; display: flex; flex-direction: column; }
.site-main .af-prices h3 { color: #fff; font: 700 17px/1.3 Arial, sans-serif; margin: 0 0 14px; }
.af-price { color: #c9cdd2; font-size: 14px; margin: 0 0 14px; }
.af-price b { color: #fff; font-size: 30px; letter-spacing: -.03em; }
.af-prices li p { color: #c9cdd2; font-size: 13px; line-height: 1.6; margin: 0 0 4px; }
.af-prices li .af-btn { margin-top: auto; align-self: flex-start; }
.af-prices li p:last-of-type { margin-bottom: 18px; }
.af-note { color: #aab0b6; font-size: 13px; text-align: center; max-width: 820px; margin: 34px auto 0; }
.af-prices .af-more a { color: #fff; }

/* Наши контакты */
.af-contacts { max-width: 1140px; margin: 0 auto; padding: 70px 0; display: grid; grid-template-columns: 3fr 1fr; gap: 30px; align-items: start; }
.site-main .af-contacts h2 { color: #307400; font: 700 28px/1.2 Arial, sans-serif; margin: 0 0 30px; }
.af-ct-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.af-pin { position: relative; padding-left: 40px; }
.af-pin::before { content: ""; position: absolute; left: 4px; top: 4px; width: 18px; height: 18px; border-radius: 50% 50% 50% 0; background: #e53935; transform: rotate(-45deg); box-shadow: 0 3px 6px rgba(0,0,0,.25); }
.site-main .af-contacts h3 { font: 700 18px/1.2 Arial, sans-serif; margin: 0 0 10px; color: #212529; }
.af-contacts p { color: #555; font-size: 14px; margin: 0 0 14px; }
.af-contacts p a { color: #212529; }
.af-socs .af-soc { width: 44px; height: 44px; background: #f5914f; font-size: 14px; margin: 0 8px 0 0; }
.af-join { background: #307400; color: #fff; padding: 24px; }
.site-main .af-join h3 { color: #fff; font-size: 21px; }
.af-join p { color: #e8f2df; font-size: 13px; }
.af-join .af-dark { display: block; text-align: center; margin: 0 0 10px; padding: 14px 10px; font-size: 13px; word-break: break-all; }
.af-join .af-small a { color: #fff; font-size: 12px; }

@media (max-width: 960px) {
  .af-hero { min-height: 340px; }
  .af-hero-in { padding: 60px 16px 40px; }
  .af-hero-line { font-size: 14px; margin-top: 26px; }
  .af-about { grid-template-columns: 1fr; padding: 44px 0 30px; }
  .site-main .af-about h2 { font-size: 36px; }
  .af-about h2 span { font-size: 26px; }
  .site-main .af-feats h3 { font-size: 18px; }
  .af-strip li { flex-basis: 70%; }
  .af-strip img { height: 46vw; }
  .site-main .af-strip h2, .site-main .af-reviews h2, .site-main .af-programs h2 { font-size: 24px; margin-bottom: 22px; }
  .af-reviews ul, .af-programs ul, .af-prices ul { grid-template-columns: 1fr; }
  .af-poster { min-height: 0; }
  .af-trial p { font-size: 18px; }
  .af-trial p span { font-size: 26px; }
  .af-prices { padding: 50px 0; }
  .af-contacts { grid-template-columns: 1fr; padding: 44px 0; }
  .af-ct-cols { grid-template-columns: 1fr; gap: 10px; }
}
@media (min-width: 761px) and (max-width: 960px) {
  .af-reviews ul, .af-programs ul, .af-prices ul { grid-template-columns: 1fr 1fr; }
}
