/* renkid.ru — светлый минимал с тёплым акцентом */

:root{
  --bg:#FBF9F4;
  --warm:#F4EBDD;
  --ink:#231F1A;
  --muted:#6E665A;
  --line:#E6DDCD;
  --accent:#B4551F;
  --accent-dark:#8E4217;
  --radius:14px;
  --serif:Georgia,"Noto Serif","Times New Roman",serif;
  --sans:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font:17px/1.65 var(--sans);
  overflow-x:hidden;
}
img{max-width:100%;height:auto;display:block}

h1,h2,h3{font-family:var(--serif);font-weight:400;line-height:1.2;margin:0}
h1{font-size:clamp(34px,7vw,52px);letter-spacing:-.01em}
h2{font-size:clamp(25px,4.5vw,32px);margin-bottom:14px}
h3{font-size:20px}
p{margin:0 0 16px}

a{color:var(--accent);text-decoration:none}
a:hover{color:var(--accent-dark)}

.wrap{max-width:1000px;margin:0 auto;padding:0 22px}
.narrow{max-width:720px}
.center{text-align:center}

.skip{position:absolute;left:-9999px}
.skip:focus{left:12px;top:12px;background:#fff;padding:8px 14px;border-radius:8px;z-index:9}

/* ---------- Первый экран ---------- */
.hero{padding:clamp(38px,7vw,72px) 0 clamp(30px,5vw,54px)}
.hero__grid{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:32px;
  align-items:center;
}
.hero__eyebrow{
  font-size:13px;letter-spacing:.16em;text-transform:uppercase;
  color:var(--muted);margin:0 0 12px;
}
.hero__tagline{
  font-family:var(--serif);font-size:clamp(18px,3vw,22px);line-height:1.4;
  color:var(--accent);margin:14px 0 20px;
}
.hero__lead{color:var(--muted);max-width:34em}
.hero__cta{margin:24px 0 0}
.hero__photo{margin:0}
.hero__photo img{
  border-radius:var(--radius);
  box-shadow:0 18px 40px rgba(60,42,20,.14);
}

@media (min-width:760px){
  /* Фото — резиновое: на планшете сжимается, чтобы не душить колонку с текстом */
  .hero__grid{grid-template-columns:minmax(0,1fr) clamp(260px,30vw,380px);gap:clamp(28px,4vw,52px)}
  .hero__photo img{width:100%}
}

/* ---------- Кнопки ---------- */
.btn{
  display:inline-block;
  background:var(--accent);color:#fff;
  padding:12px 24px;border-radius:999px;
  font-size:16px;font-weight:500;line-height:1.3;
  transition:background .15s ease;
}
.btn:hover{background:var(--accent-dark);color:#fff}
.btn--big{padding:15px 34px;font-size:18px}
.btn--ghost{
  background:transparent;color:var(--accent);
  border:1px solid var(--line);padding:10px 20px;font-size:15px;
}
.btn--ghost:hover{background:#fff;border-color:var(--accent);color:var(--accent-dark)}

/* ---------- Секции ---------- */
.sec{padding:clamp(38px,6vw,62px) 0;border-top:1px solid var(--line)}
.sec--warm{background:var(--warm);border-top-color:transparent}
.sec__note{color:var(--muted);margin-bottom:26px;max-width:38em}
.sec--warm .sec__note{margin-left:auto;margin-right:auto}

/* ---------- Карточки проектов ---------- */
.cards{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));
  gap:18px;
}
.card{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  padding:22px;min-width:0;
}
.card h3{margin-bottom:10px}
.card h3 a{color:var(--ink)}
.card h3 a:hover{color:var(--accent)}
.card p{font-size:16px;color:var(--muted);margin-bottom:12px}
.card__link{margin:0;font-size:15px}
.card__link a{color:var(--accent)}

/* ---------- Тёплый блок: курсы и туры ---------- */
.warm__grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));
  gap:30px;
}
.warm__item{min-width:0}
.warm__item h3{margin-bottom:12px}
.warm__item p{color:#4A4238}
.warm__hint{font-size:15px;color:var(--muted);margin-top:14px}

/* ---------- Лента канала ---------- */
.feed{margin:0 0 22px;min-width:0}
.feed iframe{max-width:100%}
.feed__cta{margin:0}

/* ---------- Футбол: Барса, десятка и мяч ---------- */
.sec--pitch{
  position:relative;overflow:hidden;
  border-top:0;padding-bottom:0;
  background:#FDFBF6;
}
/* Тонкая сине-гранатовая лента поверху, медленно едет вбок */
.stripes{
  position:absolute;left:0;right:0;top:0;height:6px;
  background:repeating-linear-gradient(90deg,#A50044 0 14px,#004D98 14px 28px);
  animation:slide 3.2s linear infinite;
}
@keyframes slide{to{background-position:28px 0}}

.fb__grid{
  display:grid;grid-template-columns:minmax(0,1fr);
  gap:26px;align-items:center;
}
.fb__text{min-width:0}
.fb__coach{
  margin:22px 0 0;font-family:var(--serif);
  font-size:clamp(18px,3vw,21px);line-height:1.4;color:var(--accent);
}
.fb__shirt{justify-self:center;line-height:0}
.fb__shirt svg{
  animation:sway 5s ease-in-out infinite;
  transform-origin:60px 12px;
}
@keyframes sway{0%,100%{transform:rotate(-2.5deg)}50%{transform:rotate(2.5deg)}}

@media (min-width:760px){
  .fb__grid{grid-template-columns:minmax(0,1fr) 170px;gap:44px}
}

/* Поле во всю ширину: по нему катится мяч */
.pitch{
  position:relative;height:96px;margin-top:34px;
  background:linear-gradient(180deg,#E9F1DF,#D9E7C7);
  overflow:hidden;
}
.pitch__line{
  position:absolute;left:0;right:0;top:30px;
  border-top:2px dashed rgba(255,255,255,.9);
}
.ball{
  position:absolute;bottom:14px;left:0;
  padding:0;border:0;background:none;line-height:0;cursor:pointer;
  animation:run 15s linear infinite;
}
.ball svg{display:block;animation:spin 2.6s linear infinite}
.ball:focus-visible{outline:2px solid var(--accent);outline-offset:4px;border-radius:50%}
@keyframes run{from{left:-60px}to{left:calc(100% + 60px)}}
@keyframes spin{to{transform:rotate(360deg)}}

/* ---------- Кроме работы ---------- */
.life{list-style:none;margin:0;padding:0}
.life li{
  padding:14px 0;border-bottom:1px solid var(--line);
  color:var(--muted);
}
.life li:last-child{border-bottom:0}
.life b{color:var(--ink);font-weight:600}
.life__kicker{
  margin:26px 0 0;font-family:var(--serif);
  font-size:clamp(18px,3vw,21px);line-height:1.4;color:var(--accent);
}

/* ---------- Контакты ---------- */
.mailrow{margin-top:18px;color:var(--muted);font-size:16px}
.social{margin:22px 0 0;font-size:16px}
.social a{margin:0 12px;display:inline-block}

/* ---------- Подвал ---------- */
.foot{
  padding:26px 0 34px;border-top:1px solid var(--line);
  color:var(--muted);font-size:14px;
}
.foot p{margin:0}

/* ---------- Кому движение мешает ---------- */
@media (prefers-reduced-motion: reduce){
  .ball,.ball svg,.fb__shirt svg,.stripes{animation:none}
  .ball{left:28px}
}
