/*
Theme Name: Maxim Strength Coach
Author: Максим Зюзиков
Description: Одностраничная тема персонального тренера по силовой подготовке в Воронеже.
Version: 1.0.0
Text Domain: maxim-strength
*/

:root {
  --paper: #f3eee4;
  --paper-2: #e7dfd1;
  --ink: #16202b;
  --muted: #58616a;
  --red: #e74727;
  --red-dark: #b92916;
  --blue: #155274;
  --yellow: #f2b33d;
  --white: #fffdf8;
  --line: rgba(22, 32, 43, .18);
  --shadow: 0 18px 55px rgba(23, 31, 39, .13);
  --wrap: min(1180px, calc(100% - 40px));
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-display: "Arial Black", "Segoe UI Black", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(22, 32, 43, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 32, 43, .035) 1px, transparent 1px),
    var(--paper);
  background-size: 34px 34px;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
.wrap { width: var(--wrap); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -100px; z-index: 1000; background: var(--ink); color: white; padding: 10px 16px; }
.skip-link:focus { top: 12px; }
.reading-progress { position: fixed; inset: 0 auto auto 0; z-index: 100; height: 4px; width: 0; background: var(--red); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 238, 228, .91);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--line);
}
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 900; letter-spacing: -.03em; }
.brand-mark { display: grid; place-items: center; width: 42px; aspect-ratio: 1; color: var(--white); background: var(--red); clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%); font-size: 18px; }
.brand span:last-child { line-height: 1.05; }
.brand small { display: block; color: var(--muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.site-nav { display: flex; gap: 22px; margin-left: auto; }
.site-nav a { text-decoration: none; font-size: 14px; font-weight: 750; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--red); }
.header-cta { text-decoration: none; background: var(--ink); color: var(--white); padding: 12px 18px; border-radius: 999px; font-weight: 850; font-size: 14px; }

.hero { position: relative; min-height: 760px; display: grid; align-items: center; padding: 70px 0 55px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 45px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--red-dark); font-size: 13px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 28px; height: 5px; background: var(--red); transform: skewX(-22deg); }
h1, h2, h3 { margin-top: 0; font-family: var(--font-display); font-weight: 900; letter-spacing: -.045em; line-height: 1.02; text-transform: uppercase; }
h1 { max-width: 760px; margin: 24px 0 25px; font-size: clamp(50px, 6.8vw, 94px); }
h1 .h1-kicker { display: block; margin-bottom: 10px; color: var(--blue); font-size: .48em; line-height: 1; letter-spacing: .01em; }
h1 .stroke { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.hero-lead { max-width: 650px; margin: 0 0 26px; font-size: clamp(20px, 2vw, 27px); line-height: 1.35; font-weight: 720; }
.hero-note { max-width: 610px; color: var(--muted); }
.actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 14px 24px; border: 2px solid var(--ink); text-decoration: none; font-weight: 900; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover, .button:focus-visible { transform: translateY(-3px); box-shadow: 7px 7px 0 var(--ink); }
.button-primary { background: var(--red); color: var(--white); }
.button-secondary { background: transparent; }
.quick-proof { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--line); }
.quick-proof strong { display: block; font-size: 22px; line-height: 1.15; }
.quick-proof span { color: var(--muted); font-size: 13px; }
.hero-visual { position: relative; min-height: 610px; isolation: isolate; }
.photo-frame { position: absolute; z-index: 1; inset: 30px 0 20px 17%; overflow: hidden; background: var(--blue); clip-path: polygon(13% 0, 100% 0, 87% 100%, 0 100%); box-shadow: var(--shadow); }
.photo-frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, transparent 45%, rgba(21, 82, 116, .56)); mix-blend-mode: multiply; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 40%; filter: saturate(.75) contrast(1.1); }
.mascot { position: absolute; z-index: 2; width: min(48%, 280px); height: auto; max-width: none; left: -1%; bottom: 2%; filter: drop-shadow(12px 15px 16px rgba(22, 32, 43, .22)); transform: rotate(-1deg); transform-origin: center bottom; }
.hero-stamp { position: absolute; z-index: 3; right: -16px; top: 8px; width: 142px; aspect-ratio: 1; display: grid; place-items: center; text-align: center; background: var(--yellow); border: 3px solid var(--ink); border-radius: 50%; font-weight: 950; line-height: 1.1; transform: rotate(8deg); }

.ticker { overflow: hidden; background: var(--ink); color: var(--white); transform: rotate(-1.1deg) scale(1.02); }
.ticker-track { display: flex; width: max-content; gap: 42px; padding: 14px 0; animation: ticker 26s linear infinite; }
.ticker span { font-family: var(--font-display); font-size: 18px; font-weight: 900; letter-spacing: .055em; text-transform: uppercase; }
.ticker i { color: var(--red); font-style: normal; }
@keyframes ticker { to { transform: translateX(-50%); } }

.section { padding: 110px 0; }
.section-head { display: grid; grid-template-columns: 1fr .65fr; gap: 40px; align-items: end; margin-bottom: 45px; }
.section h2 { margin: 14px 0 0; font-size: clamp(44px, 6vw, 76px); }
.section-intro { color: var(--muted); font-size: 18px; }
.goals { background: var(--white); }
.goal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.goal-card { position: relative; min-height: 265px; padding: 28px; border: 2px solid var(--ink); background: var(--paper); overflow: hidden; transition: transform .25s ease, background .25s ease, color .25s ease; }
.goal-card::after { content: attr(data-index); position: absolute; right: -2px; bottom: -30px; color: rgba(22, 32, 43, .08); font: 900 120px/1 var(--font-display); }
.goal-card:hover { transform: translateY(-7px) rotate(-.6deg); background: var(--blue); color: var(--white); }
.goal-card h3 { margin: 20px 0 14px; font-size: 30px; }
.goal-card p { position: relative; z-index: 1; margin: 0; }
.goal-card .card-line { display: block; width: 48px; height: 7px; background: var(--red); transform: skewX(-22deg); }
.goal-card:last-child { grid-column: span 2; min-height: 210px; }

.method { background: var(--blue); color: var(--white); }
.method .eyebrow { color: #ffb39f; }
.method .section-intro { color: rgba(255,255,255,.72); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.25); }
.step { padding: 32px 25px; background: var(--blue); }
.step-number { color: var(--yellow); font: 900 54px/1 var(--font-display); }
.step h3 { margin: 24px 0 12px; font-size: 25px; }
.step p { margin: 0; color: rgba(255,255,255,.78); }
.method-callout { display: flex; justify-content: space-between; gap: 35px; align-items: center; margin-top: 42px; padding: 26px 30px; color: var(--ink); background: var(--yellow); }
.method-callout strong { font-size: 24px; }

.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 65px; align-items: center; }
.about-photo { position: relative; }
.about-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center; clip-path: polygon(0 0, 92% 0, 100% 91%, 8% 100%); filter: saturate(.7) contrast(1.08); }
.about-photo::before { content: ''; position: absolute; inset: 18px -18px -18px 18px; background: var(--red); clip-path: polygon(0 0, 92% 0, 100% 91%, 8% 100%); }
.about-copy h2 { margin: 15px 0 26px; font-size: clamp(48px, 6vw, 80px); }
.about-copy .large { font-size: 22px; font-weight: 750; }
.rank-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 30px 0; }
.rank { padding: 18px; border-left: 6px solid var(--red); background: var(--white); }
.rank strong { display: block; font-size: 18px; }
.rank span { color: var(--muted); font-size: 14px; }
.safety { padding: 24px; border: 2px solid var(--ink); background: var(--paper-2); }
.safety strong { display: block; margin-bottom: 8px; }
.safety p { margin: 0; }

.proof { padding: 0 0 110px; }
.proof-frame { position: relative; min-height: 470px; overflow: hidden; color: var(--white); background: var(--ink); }
.proof-frame img { width: 100%; height: 470px; object-fit: cover; object-position: center 38%; filter: saturate(.55) contrast(1.08) brightness(.73); }
.proof-overlay { position: absolute; inset: 0; display: flex; align-items: end; padding: 45px; background: linear-gradient(90deg, rgba(22,32,43,.92), rgba(22,32,43,.1) 76%); }
.proof-overlay h2 { max-width: 720px; margin: 14px 0; font-size: clamp(40px, 5.5vw, 72px); }
.proof-overlay p { max-width: 590px; margin: 0; }

.format { background: var(--white); }
.format-grid { display: grid; grid-template-columns: 1fr .9fr; gap: 25px; }
.format-card { padding: 38px; border: 2px solid var(--ink); background: var(--paper); }
.format-card.accent { background: var(--red); color: var(--white); }
.format-card h3 { font-size: 34px; }
.price { display: block; margin: 30px 0 5px; font: 900 56px/1 var(--font-display); }
.price-note { margin: 0; font-size: 15px; opacity: .8; }
.location-list { margin: 28px 0; padding: 0; list-style: none; }
.location-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.location-list strong { display: block; }

.contact { position: relative; padding: 100px 0; color: var(--white); background: var(--ink); overflow: hidden; }
.contact::after { content: 'СИЛА'; position: absolute; right: -20px; bottom: -58px; color: rgba(255,255,255,.035); font: 900 270px/1 var(--font-display); }
.contact-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr .75fr; gap: 50px; }
.contact h2 { margin: 16px 0 22px; font-size: clamp(48px, 7vw, 92px); }
.contact p { max-width: 620px; color: rgba(255,255,255,.75); font-size: 19px; }
.contact-links { display: grid; gap: 12px; align-content: center; }
.contact-link { display: flex; justify-content: space-between; align-items: center; min-height: 66px; padding: 16px 20px; color: var(--ink); background: var(--white); border-left: 7px solid var(--red); text-decoration: none; font-weight: 900; transition: transform .2s ease; }
.contact-link:hover, .contact-link:focus-visible { transform: translateX(7px); }
.contact-link.telegram { background: var(--yellow); }
.site-footer { padding: 25px 0; color: var(--muted); background: var(--paper); font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.legal-note { max-width: 760px; }

.reveal { opacity: 1; transform: none; }
.motion-ready .reveal { opacity: 0; transform: translateY(30px); transition: opacity .65s ease, transform .65s ease; }
.motion-ready .reveal.visible { opacity: 1; transform: none; }

@media (max-width: 940px) {
  .site-nav { display: none; }
  .hero { min-height: auto; }
  .hero-grid, .section-head, .about-grid, .format-grid, .contact-inner { grid-template-columns: 1fr; }
  .hero-copy { position: relative; z-index: 4; }
  .hero-visual { min-height: 560px; }
  .mascot { width: min(40%, 250px); left: 1%; bottom: 2%; }
  .goal-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: 55px; }
  .about-photo { width: min(600px, 92%); }
}

@media (max-width: 640px) {
  :root { --wrap: min(100% - 28px, 1180px); }
  body { font-size: 16px; }
  .header-inner { min-height: 66px; gap: 12px; }
  .brand small, .header-cta { display: none; }
  .brand { font-size: 15px; }
  .hero { padding-top: 48px; }
  h1 { font-size: clamp(43px, 13vw, 62px); }
  .hero-lead { font-size: 19px; }
  .hero-visual { min-height: 475px; margin-top: 10px; }
  .photo-frame { inset: 35px 0 5px 12%; }
  .mascot { width: min(48vw, 230px); left: -2%; bottom: 1%; }
  .hero-stamp { width: 105px; right: -8px; font-size: 13px; }
  .quick-proof { gap: 17px; }
  .quick-proof > div { width: calc(50% - 10px); }
  .section { padding: 75px 0; }
  .section h2, .about-copy h2 { font-size: 42px; }
  .goal-grid, .steps, .rank-grid { grid-template-columns: 1fr; }
  .goal-card:last-child { grid-column: auto; }
  .method-callout { align-items: flex-start; flex-direction: column; padding: 23px; }
  .proof { padding-bottom: 75px; }
  .proof-frame, .proof-frame img { min-height: 520px; height: 520px; }
  .proof-frame img { object-position: 42% center; }
  .proof-overlay { padding: 26px; background: linear-gradient(0deg, rgba(22,32,43,.96), rgba(22,32,43,.05) 90%); }
  .format-card { padding: 26px; }
  .contact { padding: 75px 0; }
  .contact::after { font-size: 120px; bottom: -20px; }
  .contact h2 { font-size: 51px; }
}

.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .motion-ready .reveal { opacity: 1; transform: none; }
}
