/* =========================================================
   Tarelka.fit — Premium mobile-first styles (v1)
   Works with: index.html, system.html, menu.html
   ========================================================= */

/* ---------- Base / Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

:root{
  /* Final locked palette */
  --bg: #F6F4EF;      /* cream */
  --soft: #ECE8DF;    /* beige block */
  --ink: #2E2E2E;     /* graphite */
  --muted: #555555;   /* secondary graphite */
  --green: #5F7D67;   /* CTA */
  --green-hover: #4E6B57;
  --card: #ffffff;
  --border: rgba(16,16,16,.10);

  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --shadow-soft: 0 8px 22px rgba(0,0,0,.06);

  --radius: 18px;
  --radius-sm: 12px;

  --pad: 20px;
  --max: 1120px;

  --h1: clamp(30px, 5vw, 46px);
  --h2: clamp(22px, 3.6vw, 30px);
  --h3: 16px;
  --body: 19px;

  --btn: 17px;
  --btn-pad-y: 14px;
  --btn-pad-x: 18px;
}

body{
  line-height: 1.65;
  margin: 0;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  font-size: var(--body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}

img{ max-width: 100%; display:block; height:auto; }
a{ color: inherit; }
.inline-link{ text-decoration: underline; text-underline-offset: 3px; }

/* Better focus */
:focus-visible{ outline: 2px solid rgba(16,16,16,.55); outline-offset: 3px; border-radius: 10px; }

/* ---------- Layout ---------- */
.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section{ padding: 64px 0; }
.section.alt{ background: var(--soft); }

@media (min-width: 900px){
  .section{ padding: 76px 0; }
}

/* ---------- Typography ---------- */
h1, h2, h3{
  margin: 0 0 14px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

h1{ font-size: var(--h1); line-height: 1.10; }
h2{ font-size: var(--h2); line-height: 1.18; }
h3{ font-size: var(--h3); line-height: 1.25; margin-bottom: 8px; }

p{ margin: 0 0 14px; }

.subtitle{
  max-width: 720px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.45;
}

.note{
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.pay-note{
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
}

.help-note{
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

.transition{
  margin: 0;
  font-size: 18px;
  color: var(--ink);
  max-width: 820px;
  letter-spacing: -0.01em;
}

.cta-row{ margin-top: 14px; }

.small{ color: rgba(16,16,16,.55); font-size: 13px; }

/* ---------- Hero ---------- */
.hero{
  background: var(--bg);
  color: var(--ink);
  padding: 70px 0 44px;
}

.hero h1{ max-width: 880px; }
.hero .subtitle{ color: var(--muted); }
.hero .note{ color: var(--muted); }

.hero-actions{
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 520px;
}

@media (min-width: 560px){
  .hero-actions{ flex-direction: row; flex-wrap: wrap; }
}

@media (min-width: 900px){
  .hero{ padding: 96px 0 84px; }
  .hero-actions{ margin-top: 26px; }
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: 12px;
  font-size: var(--btn);
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .08s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  user-select: none;
}

@media (min-width: 560px){
  .btn{ width: auto; min-width: 220px; }
}

.btn:active{ transform: translateY(1px); }

.btn.primary{
  background: var(--green);
  color: #ffffff;
  box-shadow: none;
}

.btn.primary:hover{ background: var(--green-hover); }

.btn.secondary{
  background: transparent;
  color: var(--green);
  border-color: rgba(95,125,103,.55);
}

.btn.secondary:hover{
  border-color: rgba(95,125,103,.85);
}

/* keep hero clean — no special button overrides */

/* ---------- Lists ---------- */
.list{
  list-style: none;
  padding: 0;
  margin: 0;
}

.list li{
  position: relative;
  padding-left: 18px;
  margin: 0 0 10px;
}

.list li::before{
  content: "—";
  position: absolute;
  left: 0;
  top: 0;
  color: rgba(16,16,16,.55);
}

/* ---------- Cards / Surfaces ---------- */
.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

/* ---------- Outcome grid (index) ---------- */
.outcome-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 18px;
}

.outcome-item{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-soft);
}

.outcome-item p{ margin: 0; color: var(--muted); }

@media (min-width: 860px){
  .outcome-grid{ grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .outcome-item{ padding: 22px 22px 18px; }
}

/* ---------- Results grid (photos) ---------- */
.results-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 18px;
}

.result-card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.result-card img{
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.result-cap{
  padding: 14px 16px 16px;
  margin: 0;
  color: rgba(46,46,46,.92);
  font-size: 15px;
  line-height: 1.4;
}

.result-cap strong{ color: var(--ink); }

@media (min-width: 900px){
  .results-grid{ grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
}

/* ---------- Plates grid ---------- */
.plates-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 18px;
}

.plate{
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

@media (min-width: 900px){
  .plates-grid{ grid-template-columns: repeat(3, 1fr); gap: 18px; }
}

/* ---------- Chat quotes (premium “cut from chat”) ---------- */
.chat-quotes{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 18px;
}

.chat-card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 16px 14px;
  box-shadow: var(--shadow-soft);
}

.chat-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(16,16,16,.08);
}

.chat-name{
  font-weight: 700;
  letter-spacing: -0.01em;
}

.chat-icon{
  font-size: 18px;
  opacity: .75;
}

.chat-text{
  margin: 0;
  color: var(--muted);
}

@media (min-width: 860px){
  .chat-quotes{ grid-template-columns: repeat(3, 1fr); gap: 18px; }
  /* system page has 2 reviews → it will auto-center visually */
}

/* ---------- About ---------- */
.about-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}

.about-media{
  display:flex;
  flex-direction: column;
  gap: 10px;
}

.about-photo{
  width: 200px;
  height: 200px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(26,26,28,.10);
}


.about-caption{
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.about-name{
  font-weight: 750;
  letter-spacing: -0.01em;
}

.about-role{
  color: var(--muted);
  font-size: 14px;
}

.about-text p{ color: var(--muted); }

.cert{
  margin-top: 14px;
}

.cert-img{ width:100%; max-width:520px; border-radius:16px; box-shadow: var(--shadow); border:1px solid rgba(26,26,28,.10); display:block; margin:10px auto 0; }

@media (min-width: 900px){
  .about-grid{ grid-template-columns: 260px 1fr; gap: 28px; }
  .about-photo{ width: 240px; height: 240px; }
}

/* ---------- Steps (1-2-3) ---------- */
.steps{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 18px;
}

.step{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 16px 14px;
  box-shadow: var(--shadow-soft);
  display:flex;
  gap: 12px;
  align-items:flex-start;
}

.step-num{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 800;
  background: rgba(16,16,16,.08);
}

.step-text{ color: var(--muted); font-size: 15px; }
.step-text strong{ color: var(--ink); }

@media (min-width: 860px){
  .steps{ grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .step{ padding: 18px 18px 16px; }
}

/* ---------- Product blocks ---------- */
.product{
  max-width: 780px;
}

.product .btn{ margin-top: 8px; }

/* ---------- Footer ---------- */
.footer{
  background: var(--bg);
  color: var(--muted);
  padding: 34px 0;
  border-top: 1px solid rgba(16,16,16,.08);
}

.footer a{
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(16,16,16,.20);
  padding-bottom: 2px;
}

.footer a:hover{ border-bottom-color: rgba(16,16,16,.45); }

.footer-small{ color: rgba(16,16,16,.55); font-size: 13px; }

/* ---------- Small phones: extra readability ---------- */
@media (max-width: 380px){
  :root{ --pad: 16px; --btn-pad-y: 14px; --btn-pad-x: 16px; }
  .subtitle{ font-size: 17px; }
}

/* ---------- Print guard (optional) ---------- */
@media print{
  .hero{ background:#fff; color:#000; padding: 24px 0; }
  .hero::before{ display:none; }
  .btn{ display:none; }
  .footer{ background:#fff; color:#000; }
}


/* better wrapping for long links */
a{ word-break: break-word; }
