/* =====================================================================
   home.css — общий каркас главной страницы ({lang}/index.php).

   Единый источник формы для главной на любом языке: сброс, hero с колодой
   скриншотов, каталог приложений, «О студии», отзывы, блок доверия.
   Раньше эти правила лежали инлайн в <style> ru/index.php — теперь правишь
   здесь один раз, и меняются главные всех языков (шаблон assets/partials/home.php).
   Токены/типографика — по дизайн-системе (выведена из этой же страницы).
   ===================================================================== */
  :root{
    --teal:#1B7FA7;
    --navy:#0C3A52;
    --green:#169476;
    --amber:#EF9F27;
    --bg-soft:#EEF7F6;
    --bg-softer:#FAFCFC;
    --white:#FFFFFF;
    --text-muted:#526A78;
    --text-faint:#5A707D;
    --border:#DDEBEE;
    --pink:#D4537E;
    --shadow-soft:0 18px 48px rgba(12,58,82,.12);
    --shadow-card:0 12px 28px rgba(12,58,82,.10);
  }

  *{box-sizing:border-box; margin:0; padding:0;}

  html{scroll-behavior:smooth;}
  html.js-anchor-jump{scroll-behavior:auto;} /* instant fragment positioning while the page loads with a #hash */

  /* Cross-document view transition: browser cross-fades the old page into the new one,
     already positioned at the anchor. Chromium + Safari 18.2+; others fall back to an
     instant clean appearance. Both pages of the pair must opt in (contact page too). */
  @view-transition{ navigation: auto; }
  @media (prefers-reduced-motion: reduce){
    @view-transition{ navigation: none; }
  }

  body{
    font-family:'Inter', sans-serif;
    color:var(--navy);
    background:var(--white);
    line-height:1.5;
  }

  h1,h2,h3, .display{
    font-family:'Nunito', sans-serif;
    font-weight:800;
    color:var(--navy);
    letter-spacing:-0.01em;
  }

  a{color:inherit; text-decoration:none;}
  button{font-family:inherit; cursor:pointer; border:none; background:none;}
  img{max-width:100%; display:block;}
  select{font-family:inherit;}

  :focus-visible{
    outline:3px solid var(--teal);
    outline-offset:2px;
  }

  .container{
    max-width:1160px;
    margin:0 auto;
    padding:0 24px;
  }
  @media (min-width:901px){ .container{ padding:0 48px; } }

  /* ---------- Hero ---------- */
  .hero{
    position:relative;
    background:
      linear-gradient(180deg, #F3FBFD 0%, #E5F5F8 58%, #D5EAEF 100%);
    overflow:hidden;
    padding:64px 0 44px;
  }
  .hero-bg{
    position:absolute; inset:0; z-index:0; pointer-events:none;
  }
  .hero-inner{
    position:relative; z-index:1;
    display:grid; grid-template-columns:1.1fr 0.9fr; gap:40px; align-items:center;
  }
  @media (max-width:900px){
    .hero{ padding-top:36px; }
    .hero-inner{ grid-template-columns:1fr; row-gap:52px; }
    .hero-copy{ text-align:center; }
    .hero h1, .hero p.subhead{ margin-inline:auto; }
    .cta-row{ justify-content:center; }
  }

  .eyebrow{
    display:inline-block;
    font-family:'Nunito', sans-serif;
    font-size:13px; font-weight:800; letter-spacing:.06em; text-transform:uppercase;
    color:#1D9E75;
    margin-bottom:18px;
  }
  .hero h1{
    font-size:clamp(33px, 4.5vw, 44px);
    line-height:1.12;
    margin-bottom:16px;
    max-width:560px;
  }
  .hero p.subhead{
    font-size:17px; color:#5D7280; max-width:460px; margin-bottom:20px;
  }
  .trust-badges{
    display:flex;
    flex-wrap:wrap;
    gap:9px;
    margin-bottom:24px;
  }
  .trust-badge{
    display:inline-flex; align-items:center; gap:6px;
    font-size:12.5px; font-weight:700; color:#0F6E56;
    background:rgba(255,255,255,.82); border:1px solid rgba(12,58,82,.08);
    padding:7px 13px; border-radius:20px;
    box-shadow:0 8px 20px rgba(12,58,82,.06);
    white-space:nowrap;
  }
  .trust-badge svg{ width:14px; height:14px; flex-shrink:0; }

  .cta-row{ display:flex; align-items:center; gap:20px; flex-wrap:wrap; }
  .btn-primary{
    background:linear-gradient(180deg, #2188AF 0%, var(--teal) 100%);
    color:#fff; font-weight:800; font-size:16px;
    padding:17px 31px; border-radius:16px;
    transition:transform .15s ease, box-shadow .15s ease;
    box-shadow:0 16px 32px rgba(29,122,158,.32), 0 4px 0 rgba(12,58,82,.07);
  }
  .btn-primary:hover{ transform:translateY(-2px); box-shadow:0 20px 38px rgba(29,122,158,.38), 0 4px 0 rgba(12,58,82,.06); }
  .link-secondary{
    font-weight:600; font-size:14.5px; color:var(--teal);
    border-bottom:1px solid transparent;
  }
  .link-secondary:hover{ border-bottom-color:var(--teal); }

  .hero-proof{
    position:relative;
    z-index:1;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:0;
    margin-top:28px;
    overflow:hidden;
    border-radius:16px;
    background:linear-gradient(135deg, rgba(255,255,255,.78), rgba(244,250,248,.56));
    border:1px solid rgba(255,255,255,.82);
    box-shadow:0 14px 34px rgba(12,58,82,.09);
    backdrop-filter:blur(12px);
  }
  .hero-proof-item{
    position:relative;
    padding:15px 22px 14px 30px;
    border-right:1px solid rgba(12,58,82,.08);
  }
  .hero-proof-item:last-child{ border-right:0; }
  .hero-proof-dot{
    display:none;
    width:8px;
    height:8px;
    border-radius:50%;
    background:var(--green);
    box-shadow:0 0 0 7px rgba(29,158,117,.11);
  }
  .hero-proof-item:nth-child(2) .hero-proof-dot{
    background:var(--teal);
    box-shadow:0 0 0 7px rgba(29,122,158,.11);
  }
  .hero-proof-item:nth-child(3) .hero-proof-dot{
    background:var(--amber);
    box-shadow:0 0 0 7px rgba(239,159,39,.13);
  }
  .hero-proof-kicker{
    display:block;
    color:var(--navy);
    font-family:'Nunito', sans-serif;
    font-size:15.5px;
    line-height:1.15;
    font-weight:800;
    letter-spacing:0;
    text-transform:none;
    margin-bottom:3px;
  }
  .hero-proof-value{
    display:block;
    color:#5D7280;
    font-family:'Inter', sans-serif;
    font-size:12.5px;
    font-weight:600;
    line-height:1.35;
  }

  /* ---------- Entrance animation ---------- */
  @keyframes fadeInUp{
    from{ opacity:0; transform:translateY(18px); }
    to{ opacity:1; transform:translateY(0); }
  }
  @keyframes fadeIn{
    from{ opacity:0; }
    to{ opacity:1; }
  }
  .eyebrow, .hero h1, .hero p.subhead, .trust-badges, .cta-row, .hero-proof{
    animation:fadeInUp .6s cubic-bezier(.22,.61,.36,1) both;
  }
  .hero-art{ animation:fadeIn .7s ease both; }
  .hero h1{ animation-delay:.08s; }
  .hero p.subhead{ animation-delay:.16s; }
  .hero-art{ animation-delay:.18s; }
  .trust-badges{ animation-delay:.24s; }
  .cta-row{ animation-delay:.3s; }
  .hero-proof{ animation-delay:.42s; }
  @media (prefers-reduced-motion: reduce){
    .eyebrow, .hero h1, .hero p.subhead, .trust-badges, .cta-row, .hero-art, .hero-proof{
      animation:none;
    }
  }

  /* hero screenshots — animated deck of 4, ring carousel */
  .hero-art{
    position:relative; height:320px;
    transform:translate(-28px, -8%);
    filter:drop-shadow(0 30px 48px rgba(12,58,82,.12));
  }
  .hero-art .shot{
    position:absolute;
    max-width:none;
    aspect-ratio:16/9; object-fit:cover;
    border-radius:18px; border:6px solid #fff;
    box-shadow:0 20px 40px rgba(12,58,82,.22);
    transition:
      right .7s cubic-bezier(.4,0,.2,1),
      top .7s cubic-bezier(.4,0,.2,1),
      width .7s cubic-bezier(.4,0,.2,1),
      rotate .7s cubic-bezier(.4,0,.2,1),
      opacity .45s ease;
  }
  .hero-art .shot-1{ right:-4%;  top:8px;  width:100%; rotate:6deg; z-index:5; border-width:6px; box-shadow:0 32px 60px rgba(12,58,82,.32); }
  .hero-art .shot-2{ right:6%;   top:48px;  width:96%;  rotate:-3.33deg;  z-index:4; }
  .hero-art .shot-3{ right:12%;  top:82px;  width:86%;  rotate:-12.67deg; z-index:3; }
  .hero-art .shot-4{ right:19%;  top:136px; width:72%;  rotate:-22deg; z-index:2; }

  .hero-art .shot.is-leaving{
    translate:260% -15%;
    rotate:44deg;
    opacity:0;
    z-index:6;
    transition:
      right .8s linear,
      top .8s linear,
      width .8s linear,
      translate .8s linear,
      rotate 1s linear,
      opacity 1s linear;
  }
  .hero-art .shot.is-entering{ opacity:0; }
  .hero-art .shot.is-queue{ opacity:0; z-index:0; pointer-events:none; }
  .hero-art .shot.is-resetting{ transition:none !important; }

  @media (max-width:900px){
    .hero-art{ max-width:420px; margin:12px auto 0; width:100%; height:309px; transform:translateX(-4.56%); }
    .hero-art .shot-1{ width:94%; }
    .hero-art .shot-2{ width:90%; }
    .hero-art .shot-3{ width:80%; }
    .hero-art .shot-4{ width:66%; }
    .hero-proof{ grid-template-columns:1fr; max-width:420px; margin:72px auto 0; }
    .hero-proof-item{ border-right:0; border-bottom:1px solid rgba(12,58,82,.08); text-align:left; padding:13px 18px 13px 28px; }
    .hero-proof-item:last-child{ border-bottom:0; }
    .trust-badges{ justify-content:center; }
  }
  @media (max-width:760px){
    .link-secondary{ width:100%; text-align:center; }
    .trust-badges{
      display:grid;
      grid-template-columns:repeat(2, max-content);
      justify-content:center;
      max-width:360px;
      margin-left:auto;
      margin-right:auto;
    }
    .trust-badge:last-child{ grid-column:1 / -1; justify-self:center; }
    .trust-badge{ font-size:12px; padding:7px 11px; }
  }
  @media (max-width:467px){
    .cta-row{ gap:16px; }
    .btn-primary{ width:min(100%, 372px); text-align:center; }
    .trust-badges{ gap:8px; }
    .hero-art{ height:calc(48vw + 84px); }
  }

  /* ---------- Our apps ---------- */
  .our-apps{
    background:#FAFCFC;
    padding:70px 0 76px;
    scroll-margin-top:28px;
  }
  /* Стрелка «наверх, к списку категорий» после заголовка категории.
     Скрыта, пока виден блок-заголовок «Наши развивающие игры»; появляется, когда он ушёл за верх. */
  .cat-up{
    display:inline-flex; align-items:center; justify-content:center;
    width:30px; height:30px; margin-left:10px; vertical-align:middle;
    border-radius:999px; color:var(--teal);
    background:#EAF3F6; border:1px solid var(--border);
    opacity:0; visibility:hidden;
    transition:background .15s ease, color .15s ease, transform .15s ease, border-color .15s ease, opacity .2s ease, visibility .2s ease;
  }
  .our-apps.cats-scrolled .cat-up{ opacity:1; visibility:visible; }
  .cat-up svg{ width:15px; height:15px; }
  .cat-up:hover, .cat-up:focus-visible{
    background:var(--teal); color:#fff; border-color:var(--teal);
    transform:translateY(-2px); outline:none;
  }
  .section-head{ text-align:center; margin-bottom:38px; }
  .install-proof{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:4px;
    margin:10px auto 0;
  }
  .laurel-wrap{ flex:0 0 auto; display:flex; }
  .laurel-wrap-left{ transform:translateY(-8px) rotate(-22deg); transform-origin:bottom right; }
  .laurel-wrap-right{ transform:translateY(-8px) rotate(22deg); transform-origin:bottom left; }
  .install-proof .laurel{ height:72px; width:auto; display:block; color:#2F9B86; }
  .laurel-wrap-right .laurel{ transform:scaleX(-1); }
  .install-proof-text{ min-width:0; }
  .install-proof-main{
    display:block;
    font-family:'Nunito', sans-serif;
    color:#0F6E56;
    font-size:26px;
    font-weight:800;
    line-height:1.15;
  }
  .install-proof-sub{
    display:block;
    margin-top:2px;
    color:var(--text-muted);
    font-size:16.5px;
    font-weight:700;
  }
  .section-head h2{ font-size:clamp(30px, 3.4vw, 38px); margin-bottom:6px; }
  .section-copy{
    max-width:680px;
    margin:14px auto 0;
    color:var(--text-muted);
    font-size:15px;
  }
  /* Category quick-nav — outline pills with accent border (per-category colour) */
  .our-apps .section-head{ margin-bottom:24px; } /* кнопки категорий стоят ближе к первому разделу, чем прежняя подпись */
  .cat-nav{
    display:flex; flex-wrap:wrap; justify-content:center; gap:10px;
    max-width:840px; margin:22px auto 0;
  }
  .cat-pair{ display:inline-flex; flex-wrap:wrap; justify-content:center; gap:10px; } /* последние две категории переносятся на новую строку вместе */
  .cat-chip{
    display:inline-flex; align-items:center; gap:8px;
    padding:10px 19px; border-radius:999px;
    font-family:'Nunito', sans-serif; font-weight:800; font-size:14.5px;
    color:var(--chip-ink, var(--navy));
    background:#fff;
    border:1.5px solid var(--chip-line, var(--border));
    text-decoration:none;
    transition:transform .15s ease, box-shadow .15s ease, color .15s ease, background .15s ease, border-color .15s ease;
  }
  .cat-chip[data-cat="cards"]{          --chip-ink:#0F8465; --chip-line:#9FDDC8; }
  .cat-chip[data-cat="reading"]{        --chip-ink:#146B8C; --chip-line:#A9D3E2; }
  .cat-chip[data-cat="first-puzzles"]{  --chip-ink:#B5720C; --chip-line:#F1CE93; }
  .cat-chip[data-cat="jigsaw-puzzles"]{ --chip-ink:#584FB0; --chip-line:#C4BEEE; }
  .cat-chip[data-cat="family"]{         --chip-ink:#B23F66; --chip-line:#EEB1C6; }
  .cat-chip:hover, .cat-chip:focus-visible{
    transform:translateY(-2px);
    border-color:var(--chip-ink);
    box-shadow:0 10px 20px color-mix(in srgb, var(--chip-ink) 22%, transparent);
    outline:none;
  }
  .cat-chip.is-active{
    color:#fff; background:var(--chip-ink); border-color:var(--chip-ink);
    box-shadow:0 12px 22px color-mix(in srgb, var(--chip-ink) 34%, transparent);
  }
  /* Узкие экраны: ровная сетка 2×N вместо рваного переноса пилюль.
     .cat-pair распускается (display:contents), последняя нечётная категория — по центру во всю ширину. */
  @media (max-width:820px){
    .cat-nav{
      display:grid; grid-template-columns:repeat(2, minmax(0,1fr));
      gap:10px; max-width:430px; margin:22px auto 0;
    }
    .cat-pair{ display:contents; }
    .cat-chip{ justify-content:center; text-align:center; }
    .cat-chip[data-cat="family"]{ grid-column:1 / -1; justify-self:center; } /* «Для всей семьи» — нечётная последняя */
  }
  @media (max-width:560px){
    .cat-nav{ gap:8px; max-width:360px; }
    .cat-chip{ padding:9px 15px; font-size:13.5px; }
  }
  @media (max-width:560px){
    .install-proof{ gap:14px; }
    .install-proof .laurel{ height:52px; }
    .install-proof-main{ font-size:22px; }
    .install-proof-sub{ font-size:14.5px; }
  }
  @media (max-width:430px){
    .install-proof{ gap:6px; }
    .install-proof .laurel{ height:34px; }
    .install-proof-main{ font-size:20px; }
  }
  @media (max-width:380px){
    .laurel-wrap{ display:none; }
    .install-proof{ gap:0; }
  }

  /* app cards — look restored from the previous design (index.html), grid size kept as in index1 */
  .app-grid{
    display:grid; grid-template-columns:repeat(3, 1fr); gap:18px;
  }
  @media (max-width:860px){ .app-grid{ grid-template-columns:repeat(2,1fr); } }
  @media (max-width:560px){ .app-grid{ grid-template-columns:1fr; } }

  .app-card{
    position:relative;
    overflow:hidden;
    border-radius:18px; padding:20px 18px 18px;
    display:flex; flex-direction:column; gap:8px;
    background:#fff;
    border:1px solid rgba(12,58,82,.09);
    box-shadow:0 14px 30px rgba(12,58,82,.09);
    transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  }
  .app-card::before{
    content:"";
    position:absolute; inset:0 0 auto 0; height:5px;
    background:var(--card-accent);
    pointer-events:none;
  }
  .app-card > *{ position:relative; z-index:1; }
  a.app-card{ cursor:pointer; }
  a.app-card:hover{
    transform:translateY(-4px);
    border-color:color-mix(in srgb, var(--card-accent-strong) 34%, rgba(12,58,82,.09));
    box-shadow:0 22px 44px rgba(12,58,82,.16);
  }
  a.app-card:focus-visible{
    outline:3px solid color-mix(in srgb, var(--card-accent-strong) 34%, transparent);
    outline-offset:4px;
  }
  .app-card.is-static{ cursor:default; }

  .app-card-head{ display:flex; align-items:center; gap:12px; padding-right:88px; min-height:48px; }
  /* Длинные названия (напр. «Животные для малышей (полная версия)») при кегле 17px
     переносятся на 3 строки, растят шапку и сдвигают описание/скриншот вниз. Класс
     навешивается шаблоном по длине заголовка (см. home.php) и слегка ужимает кегль,
     чтобы имя укладывалось в те же 2 строки — страдает только эта карточка. */
  .app-card--long-title .app-card-head h3{ font-size:14.5px; line-height:1.18; }
  .app-card-icon{ width:46px; height:46px; object-fit:contain; flex-shrink:0; box-shadow:0 7px 16px rgba(12,58,82,.13); }
  .app-card-head h3{ margin:0; min-width:0; font-size:17px; line-height:1.22; font-weight:800; color:var(--navy); }

  .app-card-tags{ position:absolute; top:20px; right:18px; z-index:2; display:block; }
  .app-card-tags span{
    background:color-mix(in srgb, var(--card-accent) 36%, #fff);
    font-size:10px; font-weight:800; line-height:1;
    padding:6px 8px; border-radius:999px; color:var(--card-accent-strong);
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.55);
    white-space:nowrap;
  }
  .app-card-tags span:not(:first-child){ display:none; }

  .app-card p{
    margin:4px 0 4px; font-size:12.8px; line-height:1.5; opacity:.9; font-weight:500; color:var(--navy);
    height:calc(1.5em * 3); overflow:hidden;
    display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical;
  }

  .app-card-shot{
    width:100%; aspect-ratio:16/9; display:block; object-fit:cover;
    box-sizing:border-box; padding:6px; background:#fff;
    border-radius:12px;
    box-shadow:0 10px 22px rgba(12,58,82,.16);
  }

  /* Typography-only category heading: no emblem, no panel. Separation comes from
     a larger title and generous air between blocks. */
  .apps-cat{ margin-top:78px; scroll-margin-top:100px; } /* заголовок категории виден под липким хедером + воздух при переходе по #id-якорю */
  .apps-cat:first-child{ margin-top:24px; }
  .apps-cat-title{
    margin:0 0 8px;
    font-size:clamp(27px, 3.2vw, 31px); line-height:1.15; letter-spacing:-.015em;
  }
  .apps-cat-copy{
    color:var(--text-muted); font-size:15.5px; line-height:1.55;
    margin:0 0 22px;
  }

  /* 4 акцента без близнецов (персик/волна убраны — были неотличимы от янтаря/мяты).
     На шестёрке карточек цвета идут м·я·л·я·м·роза: янтарь и мята повторяются во
     2-м ряду, роза уходит в правый нижний угол как финальный акцент. */
  .app-grid .app-card:nth-child(6n+1){ --card-accent:#83D8BD; --card-accent-strong:#0F8465; background:linear-gradient(180deg,#F8FFFC 0%,#EFFAF6 100%); }
  .app-grid .app-card:nth-child(6n+2){ --card-accent:#F5BD75; --card-accent-strong:#BC6B11; background:linear-gradient(180deg,#FFFDF8 0%,#FFF5E8 100%); }
  .app-grid .app-card:nth-child(6n+3){ --card-accent:#B9B4F0; --card-accent-strong:#665DBD; background:linear-gradient(180deg,#FCFCFF 0%,#F2F1FF 100%); }
  .app-grid .app-card:nth-child(6n+4){ --card-accent:#F5BD75; --card-accent-strong:#BC6B11; background:linear-gradient(180deg,#FFFDF8 0%,#FFF5E8 100%); }
  .app-grid .app-card:nth-child(6n+5){ --card-accent:#83D8BD; --card-accent-strong:#0F8465; background:linear-gradient(180deg,#F8FFFC 0%,#EFFAF6 100%); }
  .app-grid .app-card:nth-child(6n){ --card-accent:#ECA2B5; --card-accent-strong:#B24D6A; background:linear-gradient(180deg,#FFFBFC 0%,#FFF0F4 100%); }

  @media (max-width:560px){
    .app-card-head{ padding-right:88px; }
    .apps-cat{ margin-top:56px; }
    .apps-cat:first-child{ margin-top:20px; }
    .our-apps .section-head{ margin-bottom:20px; }
    .apps-cat-copy{ font-size:14px; margin-bottom:17px; }
  }

  /* ---------- About studio ---------- */
  .about-studio{
    background:#D6EBF0;
    padding:72px 0 76px;
    scroll-margin-top:28px;
  }
  .about-studio-card{
    display:grid;
    grid-template-columns:minmax(0, 1.12fr) minmax(280px, .72fr);
    gap:58px;
    align-items:center;
    max-width:1160px;
    margin:0 auto;
    padding:0;
  }
  .about-studio-copy{
    max-width:680px;
  }
  .about-studio h2{
    font-size:clamp(30px, 3.4vw, 38px);
    margin-bottom:16px;
  }
  .about-studio p{
    color:var(--text-muted);
    font-size:15.5px;
    line-height:1.72;
    margin:0 0 13px;
  }
  .about-studio p:last-of-type{ margin-bottom:0; }
  .about-studio-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:220px;
    min-height:54px;
    margin-top:24px;
    padding:0 36px;
    border-radius:16px;
    background:linear-gradient(180deg, #2188AF 0%, var(--teal) 100%);
    color:#fff;
    box-shadow:0 14px 28px rgba(29,122,158,.28), 0 4px 0 rgba(12,58,82,.06);
    font-size:16px;
    font-weight:800;
    transition:transform .18s ease, box-shadow .18s ease;
  }
  .about-studio-button:hover{
    transform:translateY(-2px);
    box-shadow:0 18px 34px rgba(29,122,158,.34), 0 4px 0 rgba(12,58,82,.05);
  }
  .about-studio-art{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:320px;
  }
  .about-studio-art::before{
    content:"";
    position:absolute;
    width:78%;
    aspect-ratio:1;
    border-radius:50%;
    background:radial-gradient(circle, rgba(27,127,167,.09) 0%, rgba(22,148,118,.05) 48%, rgba(255,255,255,0) 74%);
    filter:blur(10px);
    transform:translateY(6%);
  }
  .about-studio-art img{
    position:relative;
    z-index:1;
    width:min(100%, 360px);
    height:auto;
    object-fit:contain;
    filter:drop-shadow(0 16px 24px rgba(12,58,82,.10));
  }
  @media (max-width:820px){
    .about-studio-card{ grid-template-columns:1fr; gap:30px; }
    .about-studio-copy{ max-width:none; }
    .about-studio h2{ text-align:center; }
    .about-studio-button{ display:flex; width:max-content; margin-left:auto; margin-right:auto; }
    .about-studio-art{ min-height:0; }
    .about-studio-art img{ width:min(78%, 320px); }
  }
  @media (max-width:520px){
    .about-studio{ padding:54px 0 58px; }
    .about-studio-button{ width:100%; min-height:54px; }
    .about-studio-art img{ width:min(84%, 280px); }
  }

  /* ---------- Reviews ----------
     Карточки отзывов — единый для сайта вид: разметка в
     assets/partials/review-cards.php, форма в assets/css/reviews.css (тот же
     файл на деталках). Здесь — только обёртка секции и отступ грида. */
  .reviews{ background:var(--white); padding:72px 0; }
  .reviews .reviews-grid{ margin-top:34px; }

  /* ---------- Safety ---------- */
  .safety{ background:#DDF0E8; padding:74px 0; }
  .safety-grid{
    display:grid; grid-template-columns:repeat(4,1fr); gap:18px; margin-top:34px; text-align:center;
  }
  @media (max-width:800px){ .safety-grid{ grid-template-columns:repeat(2,1fr); } }
  @media (max-width:520px){ .safety-grid{ grid-template-columns:1fr; } }
  .safety-item{
    background:#fff;
    border:1px solid var(--border);
    border-radius:18px;
    padding:24px 18px 22px;
    box-shadow:0 12px 26px rgba(12,58,82,.08);
  }
  .safety-icon{
    width:56px; height:56px; border-radius:18px; margin:0 auto 14px;
    display:flex; align-items:center; justify-content:center; font-size:22px; color:#fff;
    background:linear-gradient(145deg, var(--icon-start), var(--icon-end));
    box-shadow:0 12px 22px rgba(12,58,82,.16), inset 0 1px 0 rgba(255,255,255,.28);
  }
  .safety-icon svg{
    width:30px;
    height:30px;
    stroke:currentColor;
    stroke-width:2.1;
    stroke-linecap:round;
    stroke-linejoin:round;
    fill:none;
  }
  .safety-item h4{ font-family:'Nunito'; font-weight:800; font-size:16px; margin-bottom:7px; }
  .safety-item p{ font-size:13px; color:var(--text-muted); line-height:1.55; }
