/* Главная страница (index.html). */
  .v3 { max-width: none; padding: 0; font-variant-numeric: lining-nums; }
  .v3 * { font-variant-numeric: lining-nums; }
  .rub { font-family: -apple-system, "Segoe UI", sans-serif; font-weight: 500; font-size: .52em; margin-left: .12em; vertical-align: .38em; }
  .v3 section { padding: 0 24px; }
  .wrap { max-width: 1120px; margin: 0 auto; }

  .v3 h1, .v3 h2, .v3 .serif {
    font-family: var(--serif);
    font-weight: 600;
    letter-spacing: -0.01em;
  }
  .v3 h2 { font-size: 44px; line-height: 1.08; margin: 0 0 14px; }
  .v3 em { font-style: italic; font-weight: 500; color: var(--sepia); }

  .eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sepia-dim);
    margin-bottom: 18px;
  }

  .btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
  .btn-primary, .btn-ghost {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 24px; border-radius: 999px;
    font-weight: 700; font-size: 15px; text-decoration: none;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
  }
  .btn-primary { background: var(--accent); color: #fff; }
  .btn-primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }
  .btn-ghost { border: 1px solid var(--border); color: var(--text); }
  .btn-ghost:hover { border-color: var(--muted); color: var(--text); }

  .only-mobile { display: none !important; }
  @media (max-width: 720px) {
    .only-mobile { display: inline-flex !important; }
    .only-desktop { display: none !important; }
  }

  /* ---------- Hero ---------- */
  .hero { padding-top: 72px !important; padding-bottom: 88px !important; }
  .hero .wrap {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
    align-items: center;
  }
  .hero .display { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; font-size: 76px; line-height: 0.98; margin: 0 0 24px; color: var(--text); }
  .hero h1.eyebrow { font-family: inherit; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; line-height: 1.4; margin: 0 0 18px; display: block; }
  .hero .lead { font-size: 18px; max-width: 30em; color: var(--muted); margin: 0; }
  .hero-meta {
    margin-top: 26px; font-size: 13px; color: var(--muted);
    display: flex; flex-wrap: wrap; gap: 6px 18px;
  }
  .hero-meta > span::before { content: '—'; color: var(--sepia-dim); margin-right: 8px; }

  .print {
    position: relative;
    margin: 0;
    padding: 14px 14px 48px;
    background: #efe8da;
    border-radius: 4px;
    box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.04);
    transform: rotate(1.2deg);
    max-width: 440px;
    justify-self: center;
  }
  .print img { display: block; width: 100%; height: auto; border-radius: 1px; }
  .print figcaption {
    position: absolute; left: 0; right: 0; bottom: 14px;
    text-align: center; font-family: var(--serif); font-style: italic;
    font-size: 17px; color: #5b5244;
  }

  /* Загрузка фото прямо в первом экране (restore-tool, brush-tool.js).
     Блок виден сразу, а не после скрипта, чтобы экран не прыгал. */
  .hero-tool { margin-top: 30px; }
  .hero-tool #toolBlock.hidden { display: block; }
  .hero-tool #balanceLine { margin: 0 0 10px; max-width: none; }
  .hero-tool #balanceLine a { color: var(--sepia); }
  .hero-tool .drop-zone {
    display: flex; flex-direction: column; justify-content: center; min-height: 168px;
    padding: 32px 20px; border-color: var(--sepia-dim); border-radius: 6px;
    background: rgba(239, 232, 218, .03);
  }
  .hero-tool .drop-zone:hover, .hero-tool .drop-zone.drag { border-color: var(--sepia); background: rgba(239, 232, 218, .07); }
  .hero-tool #dropZoneText { font-weight: 700; font-size: 17px; color: var(--text); }
  /* Фото загружено: редактор на всю ширину, пример уходит. */
  .hero .wrap:has(#previewWrap:not(.hidden)) { grid-template-columns: minmax(0, 1fr); }
  .hero .wrap:has(#previewWrap:not(.hidden)) .print { display: none; }
  .hero-tool:has(#previewWrap:not(.hidden)) .drop-zone { min-height: 0; padding: 14px 20px; }
  .hero-tool:has(#previewWrap:not(.hidden)) #dropZoneText { font-size: 15px; font-weight: 600; color: var(--muted); }
  .hero-tool:has(#previewWrap:not(.hidden)) .drop-zone .hint { display: none; }

  /* ---------- Facts ---------- */
  .facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .facts .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
  .fact { padding: 28px 24px 28px 0; }
  .fact + .fact { padding-left: 24px; border-left: 1px solid var(--line); }
  .fact b { display: block; font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1.1; margin-bottom: 6px; }
  .fact span { color: var(--muted); font-size: 14px; }

  .block { padding-top: 112px !important; }
  .block-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; }
  .block-head p { color: var(--muted); max-width: 26em; margin: 0; }
  .price-compare { color: var(--text); max-width: 46em; margin: -8px 0 22px; font-size: 16px; }
  .more-link { color: var(--text); text-decoration: none; font-weight: 700; white-space: nowrap; border-bottom: 1px solid var(--border); padding-bottom: 2px; }
  .more-link:hover { color: var(--accent-light); border-color: var(--accent-light); }

  /* ---------- Что умеет ---------- */
  .skills { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .skills li { margin: 0; border-top: 1px solid var(--line); }
  .skills a {
    display: grid; grid-template-columns: 48px 1fr auto; gap: 16px; align-items: baseline;
    padding: 22px 0; text-decoration: none; color: var(--text);
  }
  .skills .num { font-family: var(--serif); font-size: 22px; color: var(--sepia-dim); }
  .skills .t { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.15; display: block; }
  .skills .d { color: var(--muted); font-size: 14px; display: block; margin-top: 4px; }
  .skills .arr { color: var(--muted); transition: transform .15s ease, color .15s ease; }
  .skills a:hover .arr { color: var(--accent-light); transform: translateX(4px); }
  .skills a:hover .t { color: var(--sepia); }

  /* ---------- Галерея ---------- */
  .gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
  .shot { margin: 0; }
  .shot .frame { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
  .shot img { display: block; width: 100%; height: auto; }
  .shot .tag.before { top: 14px; left: 14px; }
  .shot .tag.after { bottom: 14px; right: 14px; }
  .shot figcaption { margin-top: 14px; }
  .shot figcaption b { font-family: var(--serif); font-size: 22px; font-weight: 600; display: block; }
  .shot figcaption span { color: var(--muted); font-size: 14px; }
  .gallery { grid-template-columns: 1fr; }
  .shot.case { display: grid; grid-template-columns: minmax(0, 480px) 1fr; gap: 56px; align-items: center; }
  .shot.case figcaption { margin: 0; }
  .shot.case figcaption .k { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sepia-dim); margin-bottom: 12px; }
  .shot.case figcaption b { font-size: 36px; line-height: 1.1; margin-bottom: 14px; }
  .shot.case figcaption span:last-child { font-size: 16px; line-height: 1.65; display: block; max-width: 30em; }
  .gallery { gap: 88px; }
  .shot.case.flip { grid-template-columns: 1fr minmax(0, 400px); }
  .shot.case.flip .frame { order: 2; }
  .shot .frame .ba .tag.before { top: 12px; left: 12px; }
  .shot .frame .ba .tag.after { top: 12px; right: 12px; bottom: auto; }
  @media (max-width: 720px) {
    .gallery { gap: 56px; }
    .shot.case, .shot.case.flip { grid-template-columns: 1fr; gap: 20px; }
    .shot.case.flip .frame { order: 0; }
    .shot.case figcaption b { font-size: 28px; }
  }

  /* ---------- Где работает ---------- */
  .ways { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .way {
    display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: var(--text);
    transition: border-color .15s ease, transform .15s ease;
  }
  .way:hover { border-color: #3d4250; transform: translateY(-2px); color: var(--text); }
  .way .k { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sepia-dim); }
  .way h3 { font-family: var(--serif); font-size: 28px; font-weight: 600; margin: 14px 0 10px; line-height: 1.1; }
  .way p { color: var(--muted); font-size: 15px; flex: 1; }
  .way .go { font-weight: 700; color: var(--accent-light); margin-top: 8px; }

  /* ---------- Шаги ---------- */
  .steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: s; }
  .steps li { margin: 0; padding-top: 22px; border-top: 1px solid var(--border); counter-increment: s; color: var(--muted); font-size: 15px; }
  .steps li::before { content: counter(s, decimal-leading-zero); display: block; font-family: var(--serif); font-size: 40px; color: var(--sepia); line-height: 1; margin-bottom: 14px; }
  .steps li b { display: block; color: var(--text); font-size: 16px; margin-bottom: 6px; }

  /* ---------- Цены ---------- */
  .prices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .price-card {
    position: relative; display: flex; flex-direction: column; padding: 26px 22px 22px;
    border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
    text-decoration: none; color: var(--text); transition: border-color .15s ease, transform .15s ease;
  }
  .price-card:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--text); }
  .price-card.best { border-color: rgba(111,155,255,.55); box-shadow: 0 0 0 1px rgba(111,155,255,.25), 0 30px 60px -30px rgba(47,111,237,.45); }
  .price-card .badge {
    position: absolute; top: -11px; left: 22px; padding: 3px 10px; border-radius: 999px;
    background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
  }
  .price-card .name { font-weight: 700; font-size: 15px; }
  .price-card .per { font-family: var(--serif); font-size: 50px; font-weight: 600; line-height: 1; margin: 18px 0 2px; }
  .price-card .per small { font-family: -apple-system, "Segoe UI", sans-serif; font-size: 14px; color: var(--muted); font-weight: 500; margin-left: 4px; }
  .price-card .total { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
  .price-card .cta { margin-top: auto; padding: 11px; border-radius: 999px; text-align: center; font-weight: 700; font-size: 14px; border: 1px solid var(--border); }
  .price-card:hover .cta, .price-card.best .cta { background: var(--accent); border-color: var(--accent); color: #fff; }
  .price-note { color: var(--muted); font-size: 13px; margin-top: 22px; }
  .reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
  .review { margin: 0; padding: 22px 22px 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
  .review blockquote { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text); }
  .review figcaption { margin-top: 14px; color: var(--muted); font-size: 13px; }

  /* ---------- Финал ---------- */
  .finale { padding-top: 128px !important; padding-bottom: 112px !important; text-align: center; }
  .finale h2 { font-size: 60px; }
  .finale p { color: var(--muted); max-width: 32em; margin: 0 auto; }
  .finale .btn-row { justify-content: center; }
  .finale .faq-line { margin-top: 40px; font-size: 14px; }

  /* ---------- Адаптив ---------- */
  @media (max-width: 960px) {
    .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
    .hero .display { font-size: 60px; }
    .ways { grid-template-columns: 1fr; }
    .prices { grid-template-columns: 1fr 1fr; row-gap: 26px; }
    .steps { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 720px) {
    .v3 section { padding: 0 16px; }
    .hero { padding-top: 40px !important; padding-bottom: 56px !important; }
    .hero .display { font-size: 46px; }
    .hero .lead { font-size: 16px; }
    .btn-row a { flex: 1 1 100%; }
    .hero-tool { margin-top: 24px; }
    .hero-tool .drop-zone { min-height: 0; padding: 26px 16px; }
    .hero-tool:has(#previewWrap:not(.hidden)) .drop-zone { padding: 12px 16px; }
    .print { max-width: 320px; }
    .facts .wrap { grid-template-columns: 1fr; }
    .fact, .fact + .fact { padding: 18px 0; border-left: 0; }
    .fact + .fact { border-top: 1px solid var(--line); }
    .fact b { font-size: 24px; }
    .block { padding-top: 76px !important; }
    .v3 h2 { font-size: 34px; }
    .block-head { flex-direction: column; align-items: start; margin-bottom: 28px; }
    .skills { grid-template-columns: 1fr; }
    .skills a { grid-template-columns: 36px 1fr auto; padding: 18px 0; }
    .skills .t { font-size: 22px; }
    .gallery { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; gap: 20px; }
    .prices { grid-template-columns: 1fr 1fr; gap: 12px; row-gap: 22px; }
    .price-card { padding: 22px 16px 16px; }
    .price-card .per { font-size: 40px; margin-top: 14px; }
    .price-card .per small { display: block; margin: 4px 0 0; }
    .price-card .badge { left: 16px; right: 16px; text-align: center; font-size: 10px; }
    .finale { padding-top: 88px !important; padding-bottom: 80px !important; }
    .finale h2 { font-size: 40px; }
  }
