/* Страницы меню Features: /trace-drawing, /sketching, /ai-drawing-generator. Грузится поверх home.css (functions.php).
   Разметка — template-parts/feature-page.php и inc/modules/features.php. Токены — base.css. */

/* Hero */
.ae-feat-hero{background:var(--ae-grad-hero)}
.ae-feat-hero__text{flex:1 1 0;max-width:540px}
.ae-feat-hero__media{flex:1 1 0;max-width:540px}
/* Sketching: картинка крупнее и ближе к тексту — текст уже, картинка заходит в зазор колонок и в правое поле */
.ae-feat-hero--sketching .ae-feat-hero__text{flex:0 1 470px}
.ae-feat-hero--sketching .ae-feat-hero__media{max-width:none}
/* картинка ближе к тексту: сдвиг влево за счёт зазора колонок (2026-10-26); на ≥1230 ещё и шире контейнера справа */
@media (min-width:992px){.ae-feat-hero--sketching .ae-feat-hero__media{margin-left:-40px}}
@media (min-width:1230px){.ae-feat-hero--sketching .ae-feat-hero__media{margin-left:-60px;margin-right:-40px}}
.ae-feat-hero__img{display:block;width:100%;height:auto}
.ae-feat-hero .ae-stores{margin-top:8px}

/* Шапка секции */
.ae-feat-head{display:flex;flex-direction:column;align-items:center;gap:16px;margin-bottom:40px;text-align:center}
.ae-feat-head__text{max-width:760px;margin:0;color:var(--ae-ink-muted);text-align:center}
.ae-feat-text .ae-feat-head{margin-bottom:0}

/* Карточки: заголовок и текст */
.ae-feat-card__title{margin:0;color:var(--ae-ink-strong);font-size:22px;line-height:28px;font-weight:700}
.ae-feat-card__text{margin:0;color:var(--ae-ink-muted);font-size:16px;line-height:24px;font-weight:500}
/* На страницах Features все блоки на белом, кроме hero и розовой полосы тарифов (решение 2026-10-26) */
.ae-feat-use .ae-home-use__band,.ae-feat-showcase,.ae-feat-showcase .ae-home-showcase__inner{background:var(--ae-bg)}
/* Шаги — разметка «How to Use» главной (home.css); здесь только заголовок шага h3 и кнопка под рядом */
.ae-feat-use .ae-home-step__title{margin:0}
.ae-feat-steps__cta{display:flex;justify-content:center}

/* Карточки */
.ae-feat-cards__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.ae-feat-card{display:flex;flex-direction:column;gap:12px;padding:28px 24px}

/* Карточки с иконками (Tracing Tools, макет Claude Design 2026-10-26) */
.ae-feat-cards--icons{padding-block:80px}
.ae-feat-cards--icons .ae-feat-head{margin-bottom:60px}
.ae-feat-cards--icons .ae-feat-cards__grid{gap:24px}
@media (min-width:768px){.ae-feat-cards--icons .ae-feat-cards__grid{grid-auto-rows:1fr}} /* все карточки одной высоты, пока они в несколько колонок */
.ae-feat-cards--icons .ae-feat-card{gap:16px;padding:28px 32px}
.ae-feat-card__icon{display:flex;align-items:center;justify-content:center;width:56px;height:56px;border-radius:16px;background:var(--ae-pink-soft);color:var(--ae-pink)}
.ae-feat-card__icon svg{display:block;width:28px;height:28px}
.ae-feat-cards--icons .ae-feat-card__title{margin-top:8px;font-size:24px;line-height:30px}
.ae-feat-cards--icons .ae-feat-card__text{font-size:18px;line-height:26px;text-wrap:pretty}

/* Инфо-карточки (Sketching «Make Sketching Easier with AR», макет Claude Design 2026-10-26; разметка как .ae-pgcard в pages.css) */
.ae-feat-info{display:flex;justify-content:center;padding:64px 24px;background:var(--ae-bg)}
.ae-feat-info__in{display:flex;flex-direction:column;align-items:center;gap:60px;width:100%;max-width:1146px}
.ae-feat-info__in .ae-h2{width:100%;margin:0}
.ae-feat-info__cards{display:flex;justify-content:center;align-items:flex-start;gap:22px;width:100%}
.ae-feat-info__cards>li{display:flex;flex:1 1 0;min-width:0}
.ae-feat-info__card{width:100%;border-radius:var(--ae-r-card);background:var(--ae-bg);box-shadow:0 4px 20px #2b3a551a;overflow:hidden}
.ae-feat-info__body{display:flex;flex-direction:column;align-items:flex-start;gap:20px;padding:28px 24px 32px}
.ae-feat-info__icon{display:block;width:56px;height:56px;padding:12px;box-sizing:border-box;border-radius:16px;background:var(--ae-pink-soft);object-fit:contain}
.ae-feat-info__wrap{display:flex;flex-direction:column;gap:12px;width:100%}
.ae-feat-info__name{margin:0;font-size:24px;line-height:28px;font-weight:700;color:var(--ae-ink-strong)}
.ae-feat-info__desc{margin:0;font-size:16px;line-height:24px;font-weight:500;color:var(--ae-ink-muted)}

/* Сплиты Sketching: «Turn Your Photos into Sketches» и «Learn to Draw…» */
.ae-feat-split{padding-block:80px}
.ae-split.ae-feat-split__row{gap:80px}
.ae-feat-split__text{max-width:474px;align-items:flex-start}
.ae-feat-split__text .ae-h2,.ae-feat-split__text .ae-body{margin:0}
.ae-feat-sheet{flex:none;width:540px;max-width:100%;padding:14px;box-sizing:border-box;background:var(--ae-bg);border-radius:var(--ae-r-card);box-shadow:0 4px 20px rgba(43,58,85,.1);transform:rotate(2deg)}
.ae-feat-sheet__img{display:block;width:100%;height:auto;border-radius:18px}
.ae-feat-photo__art{flex:none;width:560px;max-width:100%}
.ae-feat-photo__img{display:block;width:100%;height:auto}
.ae-feat-strip{flex:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;width:520px;max-width:100%}
.ae-feat-frame{position:relative;padding:14px;background:var(--ae-bg);border-radius:var(--ae-r-card);box-shadow:var(--ae-shadow-slide)}
.ae-feat-frame--1{transform:rotate(-2deg)}
.ae-feat-frame--2{transform:rotate(1.5deg) translateY(10px)}
.ae-feat-frame--3{transform:rotate(1deg)}
.ae-feat-frame--4{transform:rotate(-1.5deg) translateY(10px)}
.ae-feat-frame__n{position:absolute;top:14px;left:18px;z-index:2;width:20px;height:31px}
.ae-feat-frame__art{position:relative;aspect-ratio:1/1}
.ae-feat-frame__art img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.ae-feat-frame__ghost{opacity:.12}
.ae-feat-frame__art:has(.ae-feat-frame__pic){overflow:hidden;border-radius:16px}
.ae-feat-frame__art .ae-feat-frame__pic{transform:scale(1.2)} /* у кадров урока широкие белые поля — рисунок крупнее */
.ae-feat-frame--1 .ae-feat-frame__ink{--r:28%}
.ae-feat-frame--2 .ae-feat-frame__ink{--r:52%}
.ae-feat-frame--3 .ae-feat-frame__ink{--r:76%}
.ae-feat-frame__ink{-webkit-mask-image:linear-gradient(to bottom,#000 var(--r),transparent calc(var(--r) + 10%));mask-image:linear-gradient(to bottom,#000 var(--r),transparent calc(var(--r) + 10%))}
.ae-feat-frame--4 .ae-feat-frame__ink{-webkit-mask-image:none;mask-image:none}

/* Стили AI карточками (AI Drawing Generator, макет Claude Design 2026-10-26; фон белый — решение 2026-10-26) */
.ae-feat-styles{padding-block:80px}
.ae-feat-styles .ae-feat-head{margin-bottom:60px}
.ae-feat-styles__grid{display:flex;flex-wrap:wrap;justify-content:center;gap:22px}
.ae-feat-style{display:flex;flex-direction:column;align-items:center;gap:16px;width:166px;padding:18px 12px 22px;box-sizing:border-box;background:var(--ae-bg);border-radius:var(--ae-r-card);box-shadow:var(--ae-shadow-slide);transition:transform .25s,box-shadow .25s}
.ae-feat-style:hover{transform:translateY(-.15rem);box-shadow:var(--ae-shadow-hover)}
.ae-feat-style__img{width:120px;height:120px;border-radius:50%;overflow:hidden;background:var(--ae-bg)}
.ae-feat-style__img img{display:block;width:100%;height:100%;object-fit:cover}
.ae-feat-style__img.is-placeholder{background:var(--ae-pink-blush) url("../images/home/features-pattern.avif") 50%/260% no-repeat}
.ae-feat-style__label{margin:0;font-size:18px;line-height:22px;font-weight:500;color:var(--ae-plum-label);text-align:center}

/* Templates: своя шапка вместо заголовка-div главной */
.ae-feat-templates .ae-feat-head{margin-bottom:0}
@media (min-width:480px){.ae-feat-templates .ae-feat-head:has(.ae-feat-head__text){margin-bottom:-28px}} /* заголовок с описанием ближе к карточкам: 32px вместо 60 (на ≤479 отступ и так 20) */

@media (max-width:991px){
  .ae-feat-hero__text,.ae-feat-hero__media{max-width:none;width:100%}
  .ae-feat-hero--sketching .ae-feat-hero__text{flex:1 1 auto}
  .ae-feat-hero--sketching .ae-feat-hero__media{max-width:640px}
  .ae-feat-hero .ae-rating,.ae-feat-hero .ae-stores{justify-content:center}
  .ae-feat-cards__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ae-feat-cards--icons{padding-block:64px}
  .ae-feat-styles{padding-block:64px}
  .ae-feat-styles .ae-feat-head{margin-bottom:40px}
  .ae-feat-cards--icons .ae-feat-head{margin-bottom:40px}
  .ae-feat-info__cards{flex-direction:column;align-items:center;gap:22px}
  .ae-feat-info__cards>li{width:100%;max-width:520px;flex:0 0 auto}
  .ae-split.ae-feat-split__row{gap:40px}
  .ae-feat-split__text{align-items:center}
  .ae-feat-lessons .ae-feat-split__row{flex-direction:column-reverse}
}
@media (max-width:767px){
  .ae-feat-cards__grid{grid-template-columns:1fr}
  .ae-feat-head{margin-bottom:28px}
  .ae-feat-cards--icons .ae-feat-cards__grid{gap:16px}
}
@media (max-width:479px){
  .ae-feat-cards--icons{padding-block:40px}
  .ae-feat-cards--icons .ae-feat-head{margin-bottom:24px}
  .ae-feat-cards--icons .ae-feat-card{gap:12px;padding:20px 24px}
  .ae-feat-cards--icons .ae-feat-card__title{font-size:20px;line-height:26px}
  .ae-feat-cards--icons .ae-feat-card__text{font-size:16px;line-height:24px}
  .ae-feat-info{padding:40px 24px 20px}
  .ae-feat-styles{padding-block:40px}
  .ae-feat-styles .ae-feat-head{margin-bottom:24px}
  .ae-feat-styles__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
  .ae-feat-style{width:auto;gap:10px;padding:12px 6px 14px;border-radius:20px}
  .ae-feat-style__img{width:76px;height:76px}
  .ae-feat-style__label{font-size:14px;line-height:18px}
  .ae-feat-info__in{gap:20px}
  .ae-feat-split{padding-block:40px}
  .ae-feat-sheet{padding:10px;transform:rotate(1.5deg)}
  .ae-feat-strip{gap:14px}
  .ae-feat-frame{padding:10px;border-radius:20px}
  .ae-feat-frame__n{top:10px;left:12px;width:16px;height:25px}
}
