/*
Theme Name: SmartFit
Theme URI: https://fitnesakademiya.ru/
Author: Smart Fitness
Description: Собственная тема академии Smart Fitness для переноса существующих HTML-страниц в WordPress.
Version: 0.7.10
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: smartfit
*/

:root {
  --sf-ink: #0e2a24;
  --sf-ink-2: #16352e;
  --sf-cream: #f4efe6;
  --sf-paper: #fbf8f2;
  --sf-amber: #c9842a;
  --sf-amber-2: #b07320;
  --sf-line: rgba(14, 42, 36, .12);
  --sf-muted: #5c6b66;
  --sf-white: #fff;
  --sf-shadow: 0 10px 30px rgba(14, 42, 36, .06);
  --sf-radius: 16px;
  --sf-wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sf-paper);
  color: var(--sf-ink);
  font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
body.admin-bar .site-header { top: 32px; }
a { color: inherit; text-decoration: none; }
img { display: block; height: auto; max-width: 100%; }
button, input, select, textarea { font: inherit; }
.wrap, .site-wrap { margin-inline: auto; width: min(var(--sf-wrap), calc(100% - 40px)); }
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px;
  overflow: hidden; position: absolute; width: 1px; white-space: nowrap;
}

.site-header {
  background: var(--sf-ink); border-bottom: 1px solid rgba(255,255,255,.08);
  color: var(--sf-cream); position: sticky; top: 0; z-index: 100;
}
.site-header__inner { align-items: center; display: flex; gap: 24px; min-height: 72px; }
.site-brand { align-items: center; display: flex; flex: 0 0 auto; gap: 12px; }
.site-brand__mark {
  align-items: center; border: 1px solid #d4b06a; border-radius: 50%; color: #d4b06a;
  display: flex; font-size: 13px; height: 36px; justify-content: center; width: 36px;
}
.site-brand__name { font-family: "Playfair Display", Georgia, serif; font-size: 15px; letter-spacing: .08em; }
.primary-nav { margin-left: auto; }
.primary-nav ul { align-items: center; display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.primary-nav a { color: rgba(244,239,230,.82); font-size: 14px; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: #fff; }
.menu-toggle {
  background: transparent; border: 1px solid rgba(255,255,255,.28); border-radius: 8px;
  color: #fff; cursor: pointer; display: none; margin-left: auto; padding: 9px 12px;
}
.header-cta { flex: 0 0 auto; }

.btn, .wp-element-button, input[type="submit"] {
  align-items: center; background: var(--sf-ink); border: 0; border-radius: 8px; color: #fff;
  cursor: pointer; display: inline-flex; font-size: 14px; font-weight: 600; justify-content: center;
  padding: 12px 18px; transition: .2s ease;
}
.btn:hover, .wp-element-button:hover, input[type="submit"]:hover { filter: brightness(1.08); }
.btn-amber { background: var(--sf-amber); color: #fff; }
.btn-amber:hover { background: var(--sf-amber-2); }
.btn-ghost { background: transparent; border: 1px solid rgba(244,239,230,.35); color: var(--sf-cream); }
.btn-line { background: #fff; border: 1px solid var(--sf-line); color: var(--sf-ink); }

.site-main { min-height: 60vh; }
.page-title-area { background: var(--sf-cream); padding: 64px 0; }
.page-title-area h1, .entry-content h1, .entry-content h2, .entry-content h3 {
  font-family: "Playfair Display", Georgia, serif; line-height: 1.15;
}
.page-title-area h1 { font-size: clamp(36px, 6vw, 58px); margin: 0; }
.entry-content > :where(p, h1, h2, h3, h4, ul, ol, blockquote, figure):not(.alignwide):not(.alignfull),
.entry-content > .wp-block-group:not(.alignwide):not(.alignfull) { margin-inline: auto; max-width: 860px; }
.entry-content > p:first-child { margin-top: 48px; }
.entry-content > p:last-child { margin-bottom: 64px; }

/* Existing Smart Fitness page vocabulary. */
.hero {
  background-color: var(--sf-ink); color: var(--sf-cream); overflow: hidden;
  padding: 64px 0 72px; position: relative;
}
.hero::before { background: linear-gradient(90deg, rgba(8,22,19,.95), rgba(8,22,19,.62)); content: ""; inset: 0; position: absolute; }
.hero > .wrap { position: relative; z-index: 1; }
.hero-visual { inset: 0; opacity: .28; position: absolute; }
.crumb { color: rgba(244,239,230,.65); font-size: 13px; margin-bottom: 16px; }
.hero-kicker { color: #d4b06a; font-size: 12px; letter-spacing: .16em; margin-bottom: 14px; text-transform: uppercase; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 600; margin: 0; max-width: 820px; }
.hero p { color: rgba(244,239,230,.84); margin: 16px 0 28px; max-width: 650px; }
.hero-actions, .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.meta { color: rgba(244,239,230,.78); display: flex; flex-wrap: wrap; font-size: 13px; gap: 18px; margin-top: 28px; }
.section { padding: 72px 0; }
.section h2 { font-size: clamp(30px, 4vw, 40px); margin: 0 0 8px; }
.lead { color: var(--sf-muted); margin: 0 0 28px; max-width: 720px; }
.grid-2, .split { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3, .packs { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card, .form {
  background: #fff; border: 1px solid var(--sf-line); border-radius: var(--sf-radius);
  box-shadow: var(--sf-shadow); padding: 26px 24px;
}
.pack { position: relative; }
.pack.hit { background: #fffdf8; border-color: #d4b06a; }
.badge { background: var(--sf-amber); border-radius: 999px; color: #fff; font-size: 12px; padding: 4px 10px; }
.pack > .badge { left: 20px; position: absolute; top: -11px; }
.price { font-size: 32px; margin: 8px 0 4px; }
.old { color: var(--sf-muted); font-size: 13px; text-decoration: line-through; }
.pack ul { color: var(--sf-muted); list-style: none; margin: 16px 0; padding: 0; }
.pack li { border-bottom: 1px solid var(--sf-line); padding: 7px 0; }
.prog { border-bottom: 1px solid var(--sf-line); display: grid; gap: 14px; grid-template-columns: 80px 1fr; padding: 16px 0; }
.n { color: var(--sf-amber); font-family: "Playfair Display", Georgia, serif; font-size: 28px; }
.faq details { background: #fff; border: 1px solid var(--sf-line); border-radius: 12px; margin-bottom: 10px; padding: 14px 18px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--sf-muted); font-size: 14px; margin-top: 8px; }
.doc { border-radius: 14px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 180px; padding: 22px; }
.doc-d { background: linear-gradient(160deg, var(--sf-ink-2), var(--sf-ink)); color: var(--sf-cream); }
.doc-s { background: linear-gradient(160deg, #f7f1e4, #efe4cf); }
.form label { color: var(--sf-muted); display: block; font-size: 13px; margin: 12px 0 6px; }
.form input, .form select, .form textarea {
  background: #fff; border: 1px solid var(--sf-line); border-radius: 8px; color: var(--sf-ink);
  padding: 11px 12px; width: 100%;
}
.blog-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 28px; }
.blog-grid .card { overflow: hidden; padding: 0; }
.blog-image { background: var(--sf-ink-2); display: block; }
.blog-image img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.blog-body { padding: 24px; }
.blog-body .tag { color: #a8782e; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.blog-body h3 { font-family: "Playfair Display", Georgia, serif; font-size: 23px; line-height: 1.2; margin: 9px 0; }
.blog-body p { color: var(--sf-muted); }
.blog-hero { background: var(--sf-ink-2); color: var(--sf-cream); padding: 76px 0; }
.blog-hero h1 { font-family: "Playfair Display", Georgia, serif; font-size: clamp(38px, 6vw, 64px); line-height: 1.08; margin: 0 0 14px; max-width: 980px; }
.blog-hero p { color: rgba(244,239,230,.76); font-size: 18px; margin: 0; max-width: 760px; }
.blog-archive-heading h2 { margin-bottom: 8px; }
.wp-blog-grid { display: grid; gap: 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wp-blog-card { background: #fff; border: 1px solid var(--sf-line); border-radius: 16px; box-shadow: var(--sf-shadow); display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.wp-blog-card__image { align-items: center; aspect-ratio: 16/10; background: linear-gradient(135deg, var(--sf-ink-2), var(--sf-ink)); color: #d4b06a; display: flex; justify-content: center; overflow: hidden; }
.wp-blog-card__image img { height: 100%; object-fit: cover; width: 100%; }
.wp-blog-card__body { display: flex; flex: 1; flex-direction: column; padding: 22px; }
.wp-blog-card__meta { color: #a8782e; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.wp-blog-card h2 { display: -webkit-box; font-size: 23px; line-height: 1.2; margin: 10px 0; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.wp-blog-card p { color: var(--sf-muted); display: -webkit-box; font-size: 14px; line-height: 1.55; margin: 4px 0 20px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.wp-blog-card .btn { align-self: flex-start; margin-top: auto; }
.blog-pagination { margin-top: 36px; }
.blog-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.blog-pagination .page-numbers { background: #fff; border: 1px solid var(--sf-line); border-radius: 7px; padding: 9px 13px; }
.blog-pagination .current { background: var(--sf-ink); color: #fff; }
.single-post-hero { background: var(--sf-ink-2); color: var(--sf-cream); padding: 72px 20px; }
.single-post-wrap, .single-post-content, .single-post-cover, .single-post-cta { margin-inline: auto; max-width: 900px; }
.single-post-hero h1 { font-family: "Playfair Display", Georgia, serif; font-size: clamp(38px, 6vw, 64px); line-height: 1.08; margin: 0; }
.single-post-meta { color: rgba(244,239,230,.7); margin-top: 18px; }
.single-post-cover { margin-top: 42px; }
.single-post-cover img { border-radius: 18px; width: 100%; }
.single-post-content { font-size: 18px; padding: 44px 20px 72px; }
.single-post-content :where(h2,h3,h4) { font-family: "Playfair Display", Georgia, serif; line-height: 1.2; margin-top: 1.8em; }
.single-post-content img { border-radius: 12px; }
.single-post-content a { color: var(--sf-amber-2); text-decoration: underline; }
.single-post-cta { align-items: center; background: var(--sf-cream); border-radius: 18px; display: flex; gap: 28px; justify-content: space-between; margin-bottom: 72px; padding: 28px; }
.single-post-cta h2, .single-post-cta p { margin: 0; }

.site-footer { background: #0b211c; color: rgba(244,239,230,.7); padding: 44px 0; }
.site-footer__grid { display: grid; gap: 28px; grid-template-columns: 1.3fr 1fr 1fr; }
.site-footer h2 { color: #fff; font-family: "Playfair Display", Georgia, serif; font-size: 20px; margin: 0 0 10px; }
.site-footer p { margin: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 7px; }
.site-footer a:hover { color: #fff; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; margin-top: 32px; padding-top: 20px; }

@media (max-width: 900px) {
  body.admin-bar .site-header { top: 46px; }
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .primary-nav { background: var(--sf-ink); display: none; inset: 72px 0 auto; padding: 18px 20px 24px; position: absolute; }
  .site-header.is-open .primary-nav { display: block; }
  .primary-nav ul { align-items: stretch; flex-direction: column; gap: 0; }
  .primary-nav a { border-bottom: 1px solid rgba(255,255,255,.09); display: block; padding: 12px 0; }
  .grid-3, .grid-4, .packs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 641px) and (max-width: 1100px) {
  .wp-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .wrap, .site-wrap { width: min(100% - 28px, var(--sf-wrap)); }
  .site-brand__name { font-size: 13px; }
  .section { padding: 52px 0; }
  .grid-2, .grid-3, .grid-4, .split, .packs, .site-footer__grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .wp-blog-grid { grid-template-columns: 1fr; }
  .single-post-cta { align-items: flex-start; flex-direction: column; }
  .prog { grid-template-columns: 48px 1fr; }
}
