:root{
    --bg:#f4f6f9;
    --card:#ffffff;
    --line:#e3e8ef;
    --text:#1f2937;
    --muted:#6b7280;
    --accent:#2563eb;
    --accent-soft:#eff4ff;
    --danger:#dc2626;
    --green:#16a34a;
    --shadow:0 1px 2px rgba(16,24,40,.06),0 8px 24px rgba(16,24,40,.06);
  }
  *{box-sizing:border-box}
  body{
    margin:0;
    padding:32px 16px 64px;
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
    background:var(--bg);
    color:var(--text);
    line-height:1.5;
  }
  .wrap{max-width:980px;margin:0 auto}

  h1{
    font-size:clamp(22px,3vw,30px);
    line-height:1.25;
    margin:0 0 8px;
    letter-spacing:-.02em;
  }
  .lead{
    color:var(--muted);
    margin:0 0 24px;
    font-size:15px;
    max-width:70ch;
  }

  /* ===== Аккордеон-таблица ===== */
  .price-table{
    background:var(--card);
    border:1px solid var(--line);
    border-radius:14px;
    box-shadow:var(--shadow);
    overflow:hidden;
  }

  /* Заголовок «таблицы» (скрывается на мобильных) */
  .price-head{
    display:grid;
    grid-template-columns:64px 1fr 220px 130px 40px;
    gap:16px;
    align-items:center;
    padding:14px 20px;
    font-size:12px;
    font-weight:600;
    letter-spacing:.04em;
    text-transform:uppercase;
    color:var(--muted);
    background:#fafbfd;
    border-bottom:1px solid var(--line);
  }

  /* Строка-аккордеон */
  details.row{
    border-bottom:1px solid var(--line);
  }
  details.row:last-child{border-bottom:none}

  details.row > summary{
    display:grid;
    grid-template-columns:64px 1fr 220px 130px 40px;
    gap:16px;
    align-items:center;
    padding:16px 20px;
    cursor:pointer;
    list-style:none;
    transition:background .18s ease;
    position:relative;
  }
  details.row > summary::-webkit-details-marker{display:none}
  details.row > summary:hover{background:var(--accent-soft)}
  details.row[open] > summary{background:var(--accent-soft)}
  details.row > summary:focus-visible{
    outline:2px solid var(--accent);
    outline-offset:-2px;
    border-radius:4px;
  }

  /* Иконка */
  .icon{
    width:44px;height:44px;
    display:grid;place-items:center;
    background:#f8fafc;
    border:1px solid var(--line);
    border-radius:10px;
    flex:none;
  }
  .icon svg{display:block}

  /* Название */
  .title{font-weight:600;font-size:15px}
  .subtitle{font-size:13px;color:var(--muted);margin-top:2px}

  /* Цена */
  .price{font-weight:700;font-size:15px;white-space:nowrap}
  .price small{display:block;font-weight:400;font-size:12px;color:var(--muted)}

  /* Срок */
  .term{font-size:14px;color:var(--muted);white-space:nowrap}

  /* Шеврон */
  .chevron{
    width:20px;height:20px;
    justify-self:end;
    color:var(--muted);
    transition:transform .25s ease;
  }
  details.row[open] .chevron{transform:rotate(180deg);color:var(--accent)}

  /* Раскрывающееся содержимое */
  .row-body{
    padding:0 20px 20px 100px;
    font-size:14px;
    color:#374151;
    animation:slideDown .22s ease;
  }
  @keyframes slideDown{
    from{opacity:0;transform:translateY(-6px)}
    to{opacity:1;transform:translateY(0)}
  }
  .row-body p{margin:0 0 10px}
  .row-body p:last-child{margin-bottom:0}

  .tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
  .tag{
    font-size:12px;
    padding:4px 10px;
    border-radius:999px;
    background:#eef2f7;
    color:#475569;
    border:1px solid var(--line);
  }
  .tag.warn{background:#fef2f2;color:var(--danger);border-color:#fecaca}
  .tag.ok{background:#f0fdf4;color:var(--green);border-color:#bbf7d0}

  .note{
    margin-top:24px;
    font-size:13px;
    color:var(--muted);
    padding:14px 18px;
    background:#fff;
    border:1px dashed var(--line);
    border-radius:12px;
  }

  /* ===== Адаптив ===== */
  @media (max-width:820px){
    .price-head{display:none}
    details.row > summary{
      grid-template-columns:48px 1fr 20px;
      grid-template-areas:
        "icon title chevron"
        "icon price chevron"
        "icon term  chevron";
      row-gap:2px;
      padding:14px 16px;
    }
    .icon{grid-area:icon;width:40px;height:40px;align-self:start}
    .title{grid-area:title}
    .price{grid-area:price;font-size:14px}
    .term{grid-area:term;font-size:13px}
    .chevron{grid-area:chevron;align-self:center}
    .row-body{padding:0 16px 18px 64px}
  }