/* ==========================================================================
   Katrin Kreutzberg — personaaltreener
   Kujundussüsteem: soe kreem + sügav ploomlilla + salveiroheline
   Ainus stiilifail. Kõik värvid, fondid ja mõõdud tulevad :root muutujatest.
   ========================================================================== */

:root {
  /* ground */
  --bg: #d8bede;
  --surface: #c6f2b5;
  --text: #201e1d;
  --divider: color-mix(in srgb, #201e1d 16%, transparent);

  /* aktsent — ploomlilla */
  --plum-100: #f8f1fa;
  --plum-200: #ecdcf0;
  --plum-300: #d8bede;
  --plum-400: #b995c2;
  --plum-500: #8e6597;
  --plum-600: #714a7a;
  --plum-700: #56355e;
  --plum-800: #3d2444;
  --plum-900: #28162d;

  /* teine hääl — salvei */
  --sage-100: #f0fae1;
  --sage-200: #e1eecc;
  --sage-500: #8fa073;
  --sage-600: #728157;
  --sage-700: #56633f;

  /* rõhuvärv — hele roheline */
  --green: #aceb94;
  --green-hover: #97e07b;
  --pink: #f9e4ea;

  --font-heading: "Caprasimo", Georgia, serif;
  --font-body: "Figtree", system-ui, sans-serif;

  --radius-sm: 16px;
  --radius-md: 28px;
  --radius-lg: clamp(28px, 6vw, 64px);
  --pill: 999px;

  --shadow-sm: 0 1px 2px color-mix(in srgb, #2e2b25 14%, transparent);
  --shadow-md: 0 3px 10px color-mix(in srgb, #2e2b25 16%, transparent);

  --edge: clamp(20px, 5vw, 48px);
  --maxw: 1200px;
}

/* — alus — */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 26px;
  text-wrap: pretty;
  overflow-x: clip;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.12;
  margin: 0;
}
h2, h3 { color: var(--plum-800); }
.dark h1, .dark h2, .dark h3 { color: inherit; }
p { margin: 0; }
img { display: block; max-width: 100%; }
figure { margin: 0; }
a { color: var(--plum-700); text-underline-offset: 3px; }
a:hover { color: var(--plum-600); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--plum-600); outline-offset: 2px; }
::selection { background: var(--plum-200); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--edge); }
.section { padding: clamp(32px, 5vw, 72px) 0; }
#minust { padding-top: clamp(8px, 1.5vw, 16px); padding-bottom: clamp(12px, 2vw, 24px); }
#teenused { padding-top: clamp(28px, 3vw, 58px); }
#teenused h2 { font-size: clamp(22px, 2.7vw, 34px); }
#treeningkavad { padding-top: clamp(18px, 2.2vw, 34px); }
#koolitused { padding-bottom: clamp(12px, 2vw, 30px); }
#kliendilood { padding: clamp(18px, 2.2vw, 32px) 0; }
#blogi { padding: clamp(16px, 2vw, 30px) 0; }
#kkk { padding: clamp(16px, 2vw, 30px) 0; }
#toimunud { padding-top: clamp(18px, 2.2vw, 34px); }
#oskused { padding: clamp(12px, 1.6vw, 22px) 0; }
#treeningkavad .card h3 { color: var(--plum-800); }
#minust h2 { font-size: clamp(22px, 2.4vw, 31px); }
#minust > div:last-child { margin-top: 34px; }
#minust p { text-align: justify; hyphens: auto; }
.kicker {
  display: block; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  font-weight: 700; color: var(--plum-700); margin-bottom: 14px;
}
.h-lg { font-size: clamp(28px, 3.4vw, 44px); margin-left: -0.028em; }
.h-md { font-size: clamp(26px, 3.2vw, 40px); margin-left: -0.028em; }
.h-sm { font-size: clamp(24px, 3vw, 34px); margin-left: -0.028em; }
.plum { color: var(--plum-800); }
.lead { font-size: 17px; line-height: 28px; }
.muted { color: color-mix(in srgb, var(--text) 78%, transparent); }
.washed { filter: saturate(0.6) contrast(0.85) brightness(1.1) opacity(0.94); }
.callout {
  margin-top: 24px; padding: 20px 24px; border-radius: var(--radius-md);
  background: var(--surface); color: var(--plum-800); font-weight: 700;
}

/* — nupud — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 16px; line-height: 1.2;
  padding: 13px 26px; border-radius: var(--pill); border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; transition: background 140ms ease, color 140ms ease;
}
.btn-primary { background: var(--plum-700); color: var(--plum-100); }
.btn-primary:hover { background: var(--plum-600); color: var(--plum-100); }
.btn-primary:active { background: var(--plum-800); }
.btn-outline { background: transparent; color: var(--plum-700); border-color: var(--plum-300); }
.btn-outline:hover { background: var(--plum-100); color: var(--plum-700); }
.btn-ghost { background: transparent; color: var(--plum-700); }
.btn-ghost:hover { background: var(--plum-100); }
.btn-light { background: var(--plum-300); color: var(--plum-900); }
.btn-light:hover { background: var(--plum-200); color: var(--plum-900); }
.btn-green { background: var(--green); color: var(--plum-900); }
.btn-green:hover { background: var(--green-hover); color: var(--plum-900); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 20px; font-size: 15px; font-weight: 600; }

/* — sildid — */
.tag {
  display: inline-flex; align-items: center; font-size: 13px; font-weight: 600;
  padding: 5px 14px; border-radius: var(--pill);
}
.tag-plum { background: var(--plum-100); color: var(--plum-800); }
.tag-sage { background: var(--sage-200); color: var(--sage-700); }
.tag-outline { border: 1px solid var(--divider); color: color-mix(in srgb, var(--text) 75%, transparent); }
.tag-neutral { background: var(--surface); color: color-mix(in srgb, var(--text) 80%, transparent); }

/* — tume plokk (hero ja kontakt) — */
.dark { background: var(--plum-800); color: var(--plum-200); }
.dark a:not(.btn) { color: var(--plum-300); }
.dark a.btn-light { color: var(--plum-900); }
.dark a.btn-primary { color: var(--plum-100); }
.dark .muted { color: rgba(236, 220, 240, 0.82); }

/* — navigatsioon — */
.nav {
  display: flex; align-items: flex-start; gap: clamp(12px, 2vw, 28px); flex-wrap: nowrap;
  max-width: var(--maxw); margin: 0 auto; padding: 16px var(--edge) 0;
}
.nav .nav-title { font-size: clamp(64px, 8vw, 130px); line-height: 1.06; margin: 0 0 0 -0.028em; margin-right: auto; flex-shrink: 1; min-width: 0; }
.nav-links { display: flex; align-items: center; gap: 10px; flex-shrink: 0; margin-left: auto; padding-top: 12px; }
.nav-links > a:not(.btn) + a:not(.btn)::before {
  content: "·"; margin-right: 10px; color: var(--plum-400); font-weight: 400;
}
.nav-links > a.btn { margin-left: 18px; }
.nav > a, .nav-links > a { color: var(--plum-300); text-decoration: none; font-size: 15px; }
.nav > a:not(.btn), .nav-links > a:not(.btn) { text-transform: uppercase; font-weight: 700; }
.nav > a:hover, .nav-links > a:hover { color: #fff; }
.nav > a.btn, .nav-links > a.btn { color: var(--plum-900); white-space: nowrap; }

/* — hero — */
.hero { overflow: hidden; }
.hero-role {
  font-size: clamp(26px, 3.2vw, 46px);
  line-height: 1.1; text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--plum-200);
}
.hero-role-sub {
  margin-top: 10px; font-size: clamp(14px, 1.5vw, 19px);
  text-transform: uppercase; letter-spacing: 0.3em;
  color: rgba(236, 220, 240, 0.72);
}
.hero-grid {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(20px, 3vw, 36px) var(--edge) clamp(40px, 5vw, 72px);
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 48px) clamp(32px, 5vw, 72px); align-items: center;
}
.hero h1 { font-size: clamp(38px, 5.4vw, 72px); line-height: 1.06; margin: 24px 0 0 -0.028em; }
.hero-photo { position: relative; align-self: start; }
.hero-photo::before {
  content: ""; position: absolute; top: -18px; right: -18px; width: 180px; height: 180px;
  border-radius: 50%; background: var(--sage-600); opacity: 0.5;
}
.hero-photo figure {
  position: relative; border-radius: 50%; overflow: hidden;
  width: min(360px, 100%); margin-left: auto; aspect-ratio: 1;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.row { display: flex; gap: 13px; flex-wrap: wrap; margin-top: 32px; }

/* — pildikohad (kuni päris fotod tulevad) — */
.ph { background: var(--surface); }

/* — numbrid — */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; }
.stat { background: var(--surface); border-radius: var(--radius-md); padding: 24px; text-align: center; }
.stat b { display: block; font-family: var(--font-heading); font-weight: 400; font-size: 32px; line-height: 38px; color: var(--plum-700); }
.stat .sage { color: var(--sage-700); }
.stat span { display: block; font-size: 14px; font-weight: 700; margin-top: 6px; color: var(--plum-800); }
.stat-link { display: inline-block; margin-top: 6px; color: var(--plum-600); text-decoration: none; }
.stat-link:hover { color: var(--plum-700); text-decoration: underline; }

/* — kaks veergu — */
.split {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(28px, 4vw, 40px) clamp(32px, 5vw, 72px); align-items: start;
}
.split figure { border-radius: 40px; overflow: hidden; }
.split figure img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; }
.ticks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks i { width: 12px; height: 12px; border-radius: 50%; background: var(--plum-800); margin-top: 8px; flex: none; }
.ticks-green i { background: var(--sage-600); margin-top: 5px; }
.ticks-green {
  gap: 6px; background: var(--pink); color: var(--plum-800); font-weight: 700;
  padding: 20px 24px; border-radius: var(--radius-md);
}
.ticks-green li { line-height: 22px; }

/* — tabel — */
.table-scroll { overflow-x: auto; border-radius: var(--radius-sm); }
.table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 16px; }
.table th {
  text-align: left; font-family: var(--font-body); font-size: 13px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--plum-700);
  padding: 14px 16px; background: var(--surface);
}
.table th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.table th:last-child { border-radius: 0 var(--radius-sm) 0 0; }
.table td { padding: 18px 16px; border-bottom: 1px solid var(--divider); vertical-align: top; }
.table tr:last-child td { border-bottom: none; }
.table .nowrap { white-space: nowrap; color: var(--plum-800); font-weight: 700; }
.table .name { font-weight: 700; color: var(--plum-800); }
/* — avanevad hinnagrupid — */
.pricegroup { border-bottom: 1px solid var(--divider); }
.pricegroup > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0; cursor: pointer; list-style: none;
}
.pg-head {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap; flex: 1 1 auto;
}
.pg-head .tag {
  font-size: 14px; padding: 9px 20px; flex: none;
  text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700;
}
.pg-desc { font-size: 15px; line-height: 22px; color: color-mix(in srgb, var(--plum-800) 82%, transparent); }
.alert { color: #b3261e; font-weight: 700; }
.reval-logo {
  display: inline-block; height: 1.5em; width: auto;
  vertical-align: -0.4em; border-radius: 4px; margin-left: 2px;
}
.regains-logo {
  display: inline-block; height: 1.5em; width: auto;
  vertical-align: -0.4em; border-radius: 4px;
}
.pricegroup > summary::-webkit-details-marker { display: none; }
.pricegroup > summary i {
  font-style: normal; font-size: 20px; color: var(--plum-700);
  transition: transform 160ms ease; flex: none;
}
.pricegroup[open] > summary i { transform: rotate(45deg); }
.pricegroup > summary:hover .tag { background: var(--plum-200); }
.pricegroup .table-scroll { padding-bottom: 12px; }
.price-table .muted strong { display: inline-block; margin-top: 6px; color: var(--plum-800); }
.price-table { table-layout: fixed; min-width: 620px; }
.price-table td:nth-child(1) { width: 28%; }
.price-table td:nth-child(2) { width: 40%; }
.price-table td:nth-child(3) { width: 14%; }
.price-table td:nth-child(4) { width: 18%; }
.price-table tr:last-child td { border-bottom: none; }

/* — kaardid — */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card {
  display: flex; flex-direction: column; gap: 10px; background: var(--surface);
  border-radius: var(--radius-md); padding: 28px; box-shadow: var(--shadow-sm);
}
.card-kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--plum-700); }
.card h3 { font-size: 22px; }
.card p { font-size: 16px; color: color-mix(in srgb, var(--text) 80%, transparent); }
.card .price { font-family: var(--font-heading); font-size: 26px; color: var(--plum-700); margin-top: 4px; }
.card .btn { margin-top: auto; }

/* koolituste kaardid — hele lilla */
#koolitused .card { background: var(--plum-100); }

/* toimunud koolitused — tume lilla */
#toimunud .card { background: var(--plum-800); }
#toimunud .card h3 { color: var(--plum-200); }
#toimunud .card p { color: rgba(236, 220, 240, 0.82); }
#toimunud .card-kicker { color: rgba(236, 220, 240, 0.7); }

/* — kükimäng — */
.game { background: #e2f7d5; margin: clamp(24px, 3.5vw, 48px) 0; padding: clamp(24px, 3.5vw, 44px) 0; border-radius: var(--radius-lg); }
.game .kicker { color: var(--sage-700); }
.game-grid {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--edge);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(18px, 2.5vw, 28px); align-items: start;
}
.panel { background: var(--bg); border-radius: var(--radius-md); padding: clamp(18px, 2.2vw, 26px); }
.game-stage { min-height: 140px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 20px; }
.game-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.game-count { font-family: var(--font-heading); font-size: 40px; line-height: 44px; color: var(--plum-700); }
.game-unit { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; color: color-mix(in srgb, var(--text) 70%, transparent); }
.figure { font-size: 44px; display: inline-block; }
.figure.jump { animation: kykk 260ms ease; }
@keyframes kykk {
  0% { transform: translateY(0) scaleY(1); }
  40% { transform: translateY(14px) scaleY(0.78); }
  100% { transform: translateY(0) scaleY(1); }
}
.board { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.board li { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; padding: 8px 0; border-bottom: 1px solid var(--divider); }
.board b { font-variant-numeric: tabular-nums; color: var(--plum-700); }
.board .empty { border: none; color: color-mix(in srgb, var(--text) 60%, transparent); }

/* — väljad — */
.input {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 18px;
  border: 1px solid var(--divider); border-radius: var(--pill);
  background: var(--bg); color: var(--text); caret-color: var(--plum-600);
}
textarea.input { border-radius: var(--radius-md); resize: vertical; }
.input:focus-visible { border-color: var(--plum-600); outline-offset: 0; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; color: color-mix(in srgb, var(--text) 72%, transparent); }
.dark .field label { color: rgba(236, 220, 240, 0.8); }
.dark .input { background: rgba(248, 241, 250, 0.08); border-color: rgba(248, 241, 250, 0.3); color: var(--plum-200); }
.dark .input::placeholder { color: rgba(236, 220, 240, 0.5); }

/* — kliendilood — */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; align-items: stretch; }
.readmore summary {
  display: inline-block; margin-top: 12px; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 13px; color: var(--plum-700);
  text-decoration: underline; text-underline-offset: 3px;
}
.readmore summary::-webkit-details-marker { display: none; }
.readmore summary::after { content: "Loe edasi →"; }
.readmore[open] summary::after { content: "Näita vähem ↑"; }
.readmore summary:hover { color: var(--plum-900); }
.readmore p { margin-top: 12px; }
.quote { border-radius: 40px; padding: 26px; }
.quote p { font-size: 16px; line-height: 24px; font-weight: 400; color: var(--plum-800); }
.quote cite { display: block; margin-top: 14px; font-size: 14px; font-style: normal; color: color-mix(in srgb, var(--plum-800) 75%, transparent); }
.quote-2 p { font-size: 15px; line-height: 22px; }
.quote-1 { background: var(--pink); }
.quote-2 { background: var(--pink); }
.quote-3 { background: var(--pink); }

/* — KKK — */
.faq { display: grid; gap: 4px; }
.faq details { border-bottom: 1px solid var(--divider); padding: 12px 0; }
.faq summary {
  display: flex; justify-content: space-between; gap: 16px; cursor: pointer;
  font-family: var(--font-heading); font-size: 16px; line-height: 22px; list-style: none;
  color: var(--plum-800);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { color: var(--plum-700); flex: none; font-style: normal; transition: transform 160ms ease; }
.faq details[open] summary i { transform: rotate(45deg); }
.faq p { margin-top: 12px; max-width: 60ch; color: color-mix(in srgb, var(--plum-800) 85%, transparent); }

/* — galerii — */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: clamp(12px, 1.6vw, 18px); }
.gallery figure { border-radius: 24px; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.gallery .wide { grid-column: span 2; }
.gallery .wide img { aspect-ratio: 2 / 1; }

/* Instagrami postitused */
.ig-title {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--plum-800); text-decoration: none;
}
.ig-title:hover { color: var(--plum-600); }
.ig-title svg { width: 0.9em; height: 0.9em; flex: none; }
.ig-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.ig-item { height: 600px; overflow: hidden; border-radius: 12px; background: #fff; }
.ig-item .instagram-media { min-width: 0 !important; width: 100% !important; margin: 0 !important; border: none !important; box-shadow: none !important; border-radius: 0 !important; }

/* — blogi read — */
.posts { display: grid; }
.post {
  display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline;
  padding: 20px 0; border-top: 1px solid var(--divider);
  text-decoration: none; color: inherit;
}
.posts .post:last-child { border-bottom: 1px solid var(--divider); }
.post:hover .post-title { color: var(--plum-600); }
.post-date { font-size: 14px; color: color-mix(in srgb, var(--text) 65%, transparent); flex: none; min-width: 96px; }
.post-title { font-family: var(--font-heading); font-size: 21px; line-height: 28px; flex: 1 1 240px; color: var(--plum-800); }
.post-min { font-size: 14px; color: var(--plum-700); flex: none; margin-left: auto; }

/* — kontakt ja jalus — */
.contact { border-radius: var(--radius-lg) var(--radius-lg) 0 0; margin-top: clamp(32px, 5vw, 72px); }
.contact-grid {
  max-width: var(--maxw); margin: 0 auto; padding: clamp(40px, 6vw, 88px) var(--edge);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 48px;
}
.contact h2 { font-size: clamp(28px, 3.6vw, 46px); line-height: 1.1; margin-left: -0.028em; }
.contact form { display: grid; gap: 16px; }
.foot { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--edge) 40px; font-size: 14px; color: rgba(236, 220, 240, 0.6); }

/* — mobiil — */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo figure { margin: 0 auto; }
  .hero-photo::before { width: 120px; height: 120px; }
  .nav { gap: 10px 16px; flex-wrap: wrap; }
  .nav .nav-title { flex: 1 1 100%; margin-right: 0; }
  .nav-links { flex-wrap: wrap; padding-top: 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .card { padding: 22px; }
  .quote { padding: 24px; border-radius: 28px; }
  .post-min { margin-left: 0; }
}

/* — kerimisel püsiv menüüriba — */
.stickybar {
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  position: sticky; top: 0; z-index: 50;
  background: var(--plum-800);
  box-shadow: 0 2px 12px color-mix(in srgb, #28162d 22%, transparent);
}
.stickybar-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 10px var(--edge);
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.stickybar-name {
  font-family: var(--font-heading); font-size: 21px; line-height: 1.1;
  color: var(--plum-300); text-decoration: none; margin-right: auto;
}
.stickybar-name:hover { color: #fff; }
.stickybar .nav-links { padding-top: 0; }
/* ankrud ei jää riba taha peitu */
section[id], details[id] { scroll-margin-top: 76px; }
