/*
Theme Name: Edvita Directory
Theme URI: https://edvita.ru/
Author: Edvita
Description: Светлый каталог ИИ-инструментов на токенах MeiGen Gallery.
Version: 1.2.0
Requires at least: 6.0
Text Domain: edvita-directory
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  /* Единственный визуальный источник: токены из MeiGen Gallery. */
  --ink: #292c33;
  --muted: #717987;
  --line: rgba(33, 37, 45, .10);
  --soft: #f7f8fa;
  --surface: rgba(255, 255, 255, .88);
  --primary: #191a1c;
  --accent: #2c86ff;
  --radius-lg: 26px;
  --radius-md: 18px;
  --shadow: 0 24px 60px rgba(56, 65, 78, .11);

  /* Только layout-токены темы, без новых цветовых/теневых шкал. */
  --rail: 68px;
  --header: 68px;
  --content-max: 1600px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #f6f7f9;
  font-family: "Poppins", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { border: 0; }
svg { display: block; }

.edvita-shell { min-height: 100vh; position: relative; padding-left: var(--rail); }
.edvita-shell::before {
  position: fixed;
  inset: -18%;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(44% 42% at 8% 4%, rgba(255, 194, 161, .23), transparent 72%),
    radial-gradient(45% 55% at 92% 14%, rgba(127, 182, 255, .20), transparent 70%),
    radial-gradient(42% 46% at 48% 88%, rgba(198, 151, 255, .14), transparent 72%),
    var(--soft);
  filter: blur(26px);
}

.edvita-topbar {
  position: fixed;
  inset: 0 0 auto var(--rail);
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header);
  padding: 0 20px 0 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(18px);
}
.edvita-brand { display: inline-flex; align-items: center; gap: 10px; min-width: 180px; font-size: 18px; font-weight: 700; letter-spacing: -.045em; }
.edvita-brand-mark { position: relative; width: 25px; height: 21px; overflow: hidden; color: transparent; }
.edvita-brand-mark::before, .edvita-brand-mark::after { position: absolute; bottom: 0; width: 0; height: 0; content: ""; border-right: 12px solid transparent; border-bottom: 21px solid var(--primary); border-left: 12px solid transparent; }
.edvita-brand-mark::before { left: 0; opacity: .92; }
.edvita-brand-mark::after { left: 10px; transform: scale(.72); transform-origin: bottom; opacity: .42; }
.edvita-topnav { display: flex; align-items: center; gap: 10px; }
.topnav-link { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 12px; border: 0; border-radius: 13px; background: rgba(255, 255, 255, .38); color: var(--muted); font-size: 13px; font-weight: 500; transition: background .2s ease, color .2s ease; }
.topnav-link:hover, .topnav-link:focus-visible { background: rgba(255, 255, 255, .72); color: var(--ink); }
.topnav-link .badge { display: grid; place-items: center; min-width: 19px; height: 19px; border-radius: 8px; background: var(--soft); color: var(--muted); font-size: 11px; }
.topnav-link .tag-icon { color: var(--accent); }
.topnav-link.search { min-width: 154px; justify-content: space-between; background: rgba(255, 255, 255, .72); }
.topnav-link.search svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; }
.shortcut { color: var(--muted); font-size: 11px; }
.account-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; min-width: 180px; }
.login-link { color: var(--ink); font-weight: 600; }
.signup-button { display: inline-flex; align-items: center; min-height: 36px; padding: 0 15px; border-radius: 13px; background: var(--primary); color: #fff; font-size: 13px; font-weight: 600; transition: background .2s ease; }
.signup-button:hover, .signup-button:focus-visible { background: #303238; }

.edvita-rail { position: fixed; inset: var(--header) auto 0 0; z-index: 28; display: flex; width: var(--rail); flex-direction: column; align-items: center; gap: 9px; padding: 20px 10px; border-right: 1px solid var(--line); background: var(--surface); backdrop-filter: blur(18px); }
.rail-button { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); cursor: pointer; transition: background .2s ease, color .2s ease; }
.rail-button:hover, .rail-button.active, .rail-button:focus-visible { background: rgba(255, 255, 255, .72); color: var(--ink); }
.rail-button svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.rail-spacer { flex: 1; }
.rail-button.plus { color: var(--accent); font-size: 24px; }

.edvita-main { position: relative; min-height: 100vh; padding-top: var(--header); }
.edvita-hero { max-width: var(--content-max); min-height: 415px; margin: 0 auto; padding: 58px clamp(22px, 6vw, 96px) 48px; border-bottom: 1px solid var(--line); text-align: center; }
.hero-eyebrow { margin-bottom: 10px; color: var(--muted); font-size: 11px; font-weight: 500; }
.hero-title { max-width: 1120px; margin: 0 auto; color: var(--primary); font-size: clamp(38px, 5vw, 72px); font-weight: 700; letter-spacing: -.065em; line-height: .98; white-space: nowrap; }
.hero-title span { color: var(--accent); font-size: .42em; letter-spacing: -.03em; vertical-align: 23%; }
.spotlight { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; margin: 24px auto 20px; padding: 6px 10px; border: 0; border-radius: 13px; background: rgba(255, 255, 255, .72); font-size: 13px; font-weight: 600; }
.spotlight-badge { padding: 3px 8px; border-radius: 10px; background: var(--soft); color: var(--muted); font-size: 10px; font-weight: 500; }
.spotlight-logo { width: 18px; height: 18px; border-radius: 7px; background: linear-gradient(135deg, var(--accent), #7c8fe9); }
.task-pill { display: inline-flex; align-items: center; width: max-content; max-width: 100%; padding: 5px 9px; border-radius: 10px; background: var(--soft); color: var(--ink); font-size: 11px; font-weight: 500; }
.hero-search { display: flex; width: min(100%, 610px); height: 50px; margin: 0 auto; padding: 4px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255, 255, 255, .88); }
.hero-search input { min-width: 0; flex: 1; padding: 0 17px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 15px; }
.hero-search input::placeholder { color: var(--muted); }
.search-button { display: grid; place-items: center; width: 42px; border-radius: 10px; background: var(--primary); color: #fff; cursor: pointer; }
.search-button svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 2.2; }
.hero-subtitle { margin: 13px 0 20px; color: var(--muted); }
.hero-actions { display: flex; justify-content: center; gap: 9px; }
.hero-action { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 12px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .38); color: var(--ink); font-size: 13px; font-weight: 500; transition: background .2s ease, color .2s ease; }
.hero-action:hover, .hero-action:focus-visible { background: rgba(255, 255, 255, .72); color: var(--accent); }

.catalog-toolbar { max-width: var(--content-max); margin: 0 auto; padding: 32px clamp(22px, 3.2vw, 64px) 18px; }
.chip-row, .subtabs { display: flex; align-items: center; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.chip-row::-webkit-scrollbar, .subtabs::-webkit-scrollbar { display: none; }
.catalog-chip, .subtab { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 12px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .38); color: var(--muted); font-size: 13px; font-weight: 500; cursor: pointer; transition: background .2s ease, color .2s ease; }
.catalog-chip:hover, .subtab:hover, .catalog-chip:focus-visible, .subtab:focus-visible { background: rgba(255, 255, 255, .72); color: var(--ink); }
.catalog-chip.active, .subtab.active { background: rgba(255, 255, 255, .72); color: var(--ink); }
.chip-count { color: var(--muted); font-size: 11px; }
.subtabs { justify-content: center; margin-top: 22px; }
.subtab { min-height: 30px; padding-inline: 10px; background: transparent; font-size: 12px; }

.directory-table { max-width: var(--content-max); margin: 0 auto 60px; overflow: hidden; border-top: 1px solid var(--line); }
.directory-head, .tool-row { display: grid; grid-template-columns: minmax(275px, 2.6fr) minmax(130px, 1.2fr) 1fr .85fr .85fr .85fr .85fr .85fr; align-items: center; gap: 16px; }
.directory-head { min-height: 54px; padding: 0 clamp(22px, 3.2vw, 64px); color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.tool-row { min-height: 78px; padding: 10px clamp(22px, 3.2vw, 64px); border-top: 1px solid var(--line); background: rgba(255, 255, 255, .24); transition: background .2s ease, transform .2s ease; }
.tool-row:hover { background: rgba(255, 255, 255, .78); transform: translateX(2px); }
.tool-main { display: flex; align-items: center; gap: 13px; min-width: 0; }
.tool-logo { display: grid; flex: 0 0 auto; place-items: center; width: 46px; height: 46px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255, 255, 255, .72); }
.tool-logo img { width: 100%; height: 100%; object-fit: contain; }
.tool-copy { min-width: 0; }
.tool-name { display: flex; align-items: center; gap: 5px; font-weight: 600; }
.verified { color: var(--accent); font-size: 12px; }
.tool-description { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.price { white-space: nowrap; font-weight: 600; }
.price small { color: var(--muted); font-weight: 400; }
.table-metric { color: var(--ink); font-weight: 500; }
.metric-icon { display: inline-block; width: 15px; margin-right: 5px; color: var(--muted); }
.released { color: var(--accent); font-weight: 500; }

.detail-wrap { max-width: var(--content-max); margin: 0 auto; padding: 30px clamp(22px, 3.2vw, 64px) 70px; }
.breadcrumbs { display: flex; align-items: center; gap: 13px; overflow-x: auto; padding-bottom: 24px; color: var(--muted); white-space: nowrap; scrollbar-width: none; }
.breadcrumbs::-webkit-scrollbar { display: none; }
.breadcrumb-current { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255, 255, 255, .78); color: var(--ink); font-weight: 500; box-shadow: 0 4px 20px rgba(40, 50, 65, .05); }
.detail-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .88); box-shadow: var(--shadow); }
.detail-card-inner { padding: clamp(24px, 3.5vw, 56px); }
.detail-meta { display: flex; align-items: center; gap: 28px; color: var(--muted); font-size: 15px; }
.detail-meta span { display: inline-flex; align-items: center; gap: 8px; }
.detail-head { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 30px; }
.detail-brand { display: flex; align-items: center; gap: 16px; min-width: 0; }
.detail-logo { width: 80px; height: 80px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--soft); object-fit: contain; }
.detail-name { margin: 0; color: var(--primary); font-size: clamp(28px, 3vw, 45px); letter-spacing: -.06em; line-height: 1; }
.detail-name .verified { font-size: .48em; vertical-align: 25%; }
.detail-task { display: flex; align-items: center; gap: 16px; margin-top: 13px; }
.detail-task .task-pill { padding: 7px 12px; font-size: 13px; }
.detail-stat { color: var(--muted); font-size: 14px; }
.detail-actions { display: flex; align-items: center; gap: 10px; }
.detail-action { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 13px; background: rgba(255, 255, 255, .52); color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s ease, color .2s ease; }
.detail-action:hover, .detail-action:focus-visible { background: rgba(255, 255, 255, .82); }
.detail-action.primary { border-color: var(--primary); background: var(--primary); color: #fff; }
.detail-action.primary:hover, .detail-action.primary:focus-visible { background: #303238; }
.detail-action.save { min-width: 52px; }
.detail-divider { height: 1px; margin: 34px 0 24px; background: var(--line); }
.io-row { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 16px; color: var(--ink); font-size: 15px; font-weight: 600; }
.io-group { display: inline-flex; align-items: center; gap: 8px; }
.model-tags, .detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.model-tag, .detail-tag { padding: 4px 8px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .62); color: var(--ink); font-size: 12px; }
.detail-description { margin: 26px 0 14px; color: var(--ink); font-size: 16px; }
.detail-tags .detail-tag { border: 0; background: var(--soft); font-size: 12px; }
.detail-tabs { display: flex; align-items: center; gap: 20px; overflow-x: auto; margin-top: 28px; padding-bottom: 12px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.detail-tabs::-webkit-scrollbar { display: none; }
.detail-tab { flex: 0 0 auto; color: var(--muted); font-size: 13px; font-weight: 500; }
.detail-tab:hover, .detail-tab:focus-visible, .detail-tab.active { color: var(--ink); }
.preview-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(280px, .8fr); gap: 28px; margin-top: 28px; }
.preview-window, .alternatives { overflow: hidden; border: 0; border-radius: var(--radius-lg); background: var(--soft); }
.preview-window { min-height: 520px; padding: 26px; background: linear-gradient(135deg, rgba(255, 255, 255, .88), rgba(229, 241, 255, .74) 60%, rgba(247, 248, 250, .88)); }
.fake-product-nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-radius: var(--radius-md); background: rgba(255, 255, 255, .88); font-weight: 500; }
.fake-product-hero { display: grid; place-items: center; min-height: 310px; color: var(--ink); font-size: 35px; font-weight: 700; letter-spacing: -.06em; text-align: center; }
.fake-product-hero small { color: var(--accent); font-size: .54em; font-weight: 500; letter-spacing: -.02em; }
.fake-product-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; color: var(--muted); font-size: 11px; }
.fake-product-stats span { padding: 5px 9px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .72); }
.alternatives { padding: 18px; }
.alternatives-title { width: max-content; margin: -4px auto 16px; padding: 0; border: 0; border-radius: 0; background: transparent; font-weight: 500; }
.alternative { display: flex; align-items: center; gap: 12px; padding: 14px 0; border: 0; border-top: 1px solid var(--line); background: transparent; }
.alternative + .alternative { margin-top: 0; }
.alternative-logo { width: 36px; height: 36px; border-radius: 10px; object-fit: contain; }
.alternative strong { display: block; font-size: 13px; }
.alternative span { color: var(--muted); font-size: 11px; }

.tool-section { margin-top: 56px; padding-top: 30px; border-top: 1px solid var(--line); }
.tool-section h2 { margin: 0 0 16px; color: var(--ink); font-size: 20px; letter-spacing: -.035em; }
.tool-section p { max-width: 820px; margin: 0; color: var(--muted); line-height: 1.7; }
.tool-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.tool-fact { padding: 14px 0; border-top: 1px solid var(--line); }
.tool-fact span { display: block; color: var(--muted); font-size: 12px; }
.tool-fact strong { display: block; margin-top: 6px; color: var(--ink); font-size: 25px; letter-spacing: -.045em; }
.release-list { display: grid; }
.release-item { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); }
.release-item time { color: var(--muted); font-size: 12px; }
.release-item strong { display: block; color: var(--ink); font-size: 14px; }
.release-item p { margin-top: 6px; font-size: 13px; }
.pricing-row { display: grid; grid-template-columns: minmax(0, 1fr) 160px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); color: var(--muted); }
.pricing-row strong { color: var(--ink); }
.tool-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.tool-list { margin: 0; padding: 0; list-style: none; color: var(--muted); }
.tool-list li { padding: 10px 0; border-top: 1px solid var(--line); }
.prompt-example { padding: 18px 0; border-top: 1px solid var(--line); }
.prompt-example code { display: block; max-width: 860px; color: var(--muted); font-family: inherit; font-size: 13px; line-height: 1.7; white-space: normal; }
.tool-inline-action { margin-top: 12px; padding: 0; border: 0; background: transparent; color: var(--accent); font-size: 13px; font-weight: 600; cursor: pointer; }
.tool-qa details { padding: 15px 0; border-top: 1px solid var(--line); }
.tool-qa summary { cursor: pointer; color: var(--ink); font-weight: 500; }
.tool-qa details p { margin-top: 9px; font-size: 13px; }

/* Материалы Reelo живут рядом с каталогом, но используют его же токены и ритм. */
.reelo-main { min-height: calc(100vh - var(--header)); }
.reelo-content-shell { max-width: 1120px; margin: 0 auto; padding: 32px clamp(16px, 3.2vw, 64px) 76px; }
.reelo-wp-page { padding: clamp(24px, 4vw, 56px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255,255,255,.88); box-shadow: var(--shadow); }
.reelo-wp-page #content { max-width: 860px; margin: 0 auto; }
.reelo-wp-page .breadcrumbs { margin-bottom: 28px; color: var(--muted); font-size: 12px; }
.reelo-wp-page .breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 7px 14px; margin: 0; padding: 0; list-style: none; }
.reelo-wp-page .breadcrumbs li { display: inline-flex; align-items: center; }
.reelo-wp-page .breadcrumbs li + li::before { margin-right: 14px; color: var(--muted); content: '/'; }
.reelo-wp-page .breadcrumbs a { color: var(--ink); font-weight: 600; }
.reelo-wp-page .page-header { padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.reelo-wp-page .page-header h1 { max-width: 780px; margin: 0; color: var(--primary); font-size: clamp(28px, 4vw, 52px); letter-spacing: -.065em; line-height: 1.03; }
.reelo-wp-page .publication-dates, .reelo-wp-page .verification-status { margin: 13px 0 0; color: var(--muted); font-size: 12px; }
.reelo-wp-page .verification-status strong { color: var(--ink); font-weight: 600; }
.reelo-wp-page .visual-recipe, .reelo-wp-page .ai-task-guide { color: var(--ink); font-size: 15px; }
.reelo-wp-page .visual-recipe > p:first-child, .reelo-wp-page .ai-task-guide > p:first-child { margin-top: 30px; color: var(--ink); font-size: 18px; line-height: 1.65; }
.reelo-wp-page h2 { margin: 42px 0 14px; color: var(--primary); font-size: 22px; letter-spacing: -.04em; }
.reelo-wp-page h3 { margin: 28px 0 10px; color: var(--primary); font-size: 16px; }
.reelo-wp-page p { margin: 0 0 14px; line-height: 1.75; }
.reelo-wp-page ul, .reelo-wp-page ol { margin: 0 0 22px; padding-left: 21px; }
.reelo-wp-page li + li { margin-top: 8px; }
.reelo-wp-page pre, .reelo-wp-page code, .reelo-wp-page .data-card, .reelo-wp-page table { border-radius: 14px; background: var(--soft); }
.reelo-wp-page pre { overflow: auto; margin: 18px 0; padding: 18px; color: var(--ink); font: 13px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; }
.reelo-wp-page code { padding: 2px 5px; color: var(--ink); font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.reelo-wp-page pre code { padding: 0; background: transparent; }
.reelo-wp-page .data-card { margin: 20px 0; padding: 18px; }
.reelo-wp-page table { width: 100%; margin: 20px 0; border-collapse: collapse; overflow: hidden; }
.reelo-wp-page th, .reelo-wp-page td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.reelo-wp-page th { color: var(--muted); font-size: 12px; font-weight: 600; }
.reelo-wp-page .related-guides { margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--line); }
.reelo-wp-page .related-guides h2 { margin-top: 0; }
.reelo-wp-page .related-guides a, .reelo-wp-page .page-sources a { color: var(--accent); font-weight: 600; }
.reelo-wp-page .reelo-cta { margin: 38px 0 24px; padding: 20px 22px; border-radius: var(--radius-md); background: var(--primary); color: #fff; }
.reelo-wp-page .reelo-cta a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.reelo-wp-page .source-note, .reelo-wp-page .page-sources { color: var(--muted); font-size: 12px; }
.reelo-wp-page .page-sources { margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--line); }
.reelo-wp-page .page-sources h2 { margin-top: 0; font-size: 18px; }
.reelo-wp-page .page-context-note { color: var(--muted); font-size: .86em; }

:where(a, button, input):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 1200px) {
  .topnav-link { padding-inline: 12px; }
  .edvita-brand { min-width: auto; }
  .directory-head, .tool-row { grid-template-columns: minmax(240px, 2.5fr) minmax(120px, 1fr) .8fr .75fr .75fr; }
  .directory-head > :nth-child(n+6), .tool-row > :nth-child(n+6) { display: none; }
}
@media (max-width: 820px) {
  :root { --rail: 0px; --header: 60px; }
  .edvita-topbar { inset: 0; padding-inline: 12px; }
  .edvita-brand { font-size: 16px; }
  .edvita-topnav { gap: 5px; }
  .topnav-link { padding-inline: 10px; font-size: 12px; }
  .topnav-link:nth-child(2), .topnav-link:nth-child(3) { display: none; }
  .topnav-link.search { min-width: 42px; width: 42px; padding: 0; justify-content: center; }
  .topnav-link.search span { display: none; }
  .account-actions { min-width: auto; gap: 8px; }
  .login-link { display: none; }
  .signup-button { min-height: 36px; padding-inline: 14px; font-size: 12px; }
  .edvita-rail { display: none; }
  .edvita-hero { min-height: 420px; padding-top: 44px; }
  .hero-title { font-size: clamp(32px, 10vw, 55px); white-space: normal; }
  .hero-search { height: 54px; }
  .catalog-toolbar { padding-inline: 14px; }
  .directory-table { margin-inline: 10px; }
  .directory-head { display: none; }
  .tool-row { display: flex; flex-wrap: wrap; gap: 12px; padding: 16px 13px; }
  .tool-main { flex: 1 0 100%; }
  .tool-row > :nth-child(2) { order: 3; }
  .tool-row > :nth-child(3) { order: 2; }
  .tool-row > :nth-child(n+4) { flex: 1; }
  .detail-wrap { padding-inline: 12px; }
  .detail-head { align-items: flex-start; flex-direction: column; }
  .detail-actions { width: 100%; }
  .detail-action { flex: 1; padding-inline: 12px; font-size: 14px; }
  .preview-grid { grid-template-columns: 1fr; }
  .preview-window, .alternatives { min-height: auto; }
  .fake-product-hero { min-height: 240px; font-size: 29px; }
  .tool-facts, .tool-split { grid-template-columns: 1fr; }
  .release-item, .pricing-row { grid-template-columns: 1fr; gap: 5px; }
  .reelo-content-shell { padding-inline: 12px; }
  .reelo-wp-page { padding: 22px 18px; border-radius: 18px; }
  .reelo-wp-page .page-header h1 { font-size: clamp(27px, 9vw, 42px); }
  .reelo-wp-page .visual-recipe > p:first-child, .reelo-wp-page .ai-task-guide > p:first-child { font-size: 16px; }
  .reelo-wp-page table { display: block; overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Страница инструмента: светлая directory-сетка по референсу AI Directory. */
.edvita-tool-body { --tool-bg: #f5f3ed; --tool-surface: #fbfaf5; --tool-card: #ece9e0; --tool-ink: #171614; --tool-muted: #6f6b63; --tool-border: #dcd7c8; background: var(--tool-bg); color: var(--tool-ink); font-family: Geist, Poppins, ui-sans-serif, system-ui, sans-serif; }
.edvita-tool-shell { min-height: 100vh; padding-left: 0; background: var(--tool-bg); }
.edvita-tool-shell::before { inset: 0; background: var(--tool-bg); filter: none; }
.tool-directory-header { position: relative; z-index: 20; height: 78px; border-bottom: 1px solid var(--tool-border); background: rgba(250,249,244,.96); }
.tool-directory-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: min(100% - 64px, 1152px); height: 100%; margin: 0 auto; }
.tool-directory-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--tool-ink); font-size: 19px; font-weight: 600; letter-spacing: -.045em; }
.tool-directory-mark { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.45; }
.tool-directory-actions { display: flex; align-items: center; gap: 12px; }
.tool-directory-search { display: flex; align-items: center; width: min(360px, 34vw); height: 40px; padding: 0 12px; border: 1px solid var(--tool-border); border-radius: 11px; background: var(--tool-surface); box-shadow: 0 1px 4px rgba(73,68,58,.07); }
.tool-directory-search svg { flex: 0 0 auto; width: 20px; height: 20px; margin-right: 9px; fill: none; stroke: var(--tool-muted); stroke-width: 1.8; }
.tool-directory-search input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--tool-ink); font: inherit; font-size: 14px; }
.tool-directory-search input::placeholder { color: var(--tool-muted); }
.tool-submit-button, .tool-visit-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 11px; background: var(--tool-ink); color: #fff; font-size: 13px; font-weight: 600; transition: transform .2s ease, background .2s ease; }
.tool-submit-button:hover, .tool-visit-button:hover { background: #36332e; transform: translateY(-1px); }
.tool-grid-overlay { position: fixed; inset: 78px 0 0; z-index: 0; display: flex; justify-content: center; pointer-events: none; }
.tool-grid-side { flex: 0 0 40px; border-left: 1px solid rgba(220,215,200,.7); border-right: 1px solid rgba(220,215,200,.7); background: repeating-linear-gradient(-45deg, var(--tool-border) 0, var(--tool-border) 1px, transparent 1px, transparent 8px); opacity: .78; }
.tool-grid-center { width: 100%; max-width: 1152px; border-left: 1px solid rgba(220,215,200,.7); border-right: 1px solid rgba(220,215,200,.7); }
.tool-directory-main { position: relative; z-index: 1; min-height: calc(100vh - 78px); }
.tool-directory-container { width: min(100%, 1152px); margin: 0 auto; padding: 0 32px 84px; }
.tool-breadcrumbs { display: flex; align-items: center; gap: 10px; padding-top: 92px; margin-bottom: 42px; color: var(--tool-muted); font-size: 14px; }
.tool-breadcrumbs a { color: var(--tool-muted); }
.tool-breadcrumbs span:last-child { color: var(--tool-ink); }
.tool-hero { padding: 0 0 64px; border-bottom: 1px solid var(--tool-border); background-image: radial-gradient(rgba(220,215,200,.78) .8px, transparent .9px); background-size: 7px 7px; }
.tool-hero-head { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.tool-identity { display: flex; align-items: center; gap: 22px; min-width: 0; }
.tool-directory-logo { width: 64px; height: 64px; padding: 12px; border-radius: 14px; background: var(--tool-ink); object-fit: contain; filter: grayscale(1) brightness(2.2); }
.tool-identity h1 { margin: 0; color: var(--tool-ink); font-size: clamp(44px, 5.5vw, 70px); font-weight: 400; letter-spacing: -.085em; line-height: .95; }
.tool-visit-button { min-height: 44px; padding-inline: 20px; border-radius: 999px; font-size: 14px; }
.tool-hero-description { max-width: 820px; margin: 34px 0 22px; color: var(--tool-ink); font-size: clamp(18px, 1.7vw, 22px); line-height: 1.48; letter-spacing: -.035em; }
.tool-labels { display: flex; flex-wrap: wrap; gap: 10px; }
.tool-labels span { padding: 6px 12px; border: 1px solid var(--tool-border); border-radius: 999px; color: var(--tool-muted); background: rgba(251,250,245,.5); font-size: 12px; }
.tool-directory-section { padding: 66px 0; border-bottom: 1px solid var(--tool-border); }
.tool-directory-section h2 { margin: 0 0 18px; color: var(--tool-ink); font-size: clamp(22px, 2.2vw, 28px); font-weight: 400; letter-spacing: -.065em; }
.tool-about { padding-inline: 8px; background: var(--tool-card); }
.tool-about h2 { padding-top: 0; }
.tool-about-card { padding: 28px 30px; border: 1px solid var(--tool-border); border-radius: 20px; background: rgba(251,250,245,.9); box-shadow: 0 2px 4px rgba(73,68,58,.08); }
.tool-about-card p { max-width: 980px; margin: 0; color: var(--tool-ink); font-size: clamp(16px, 1.6vw, 19px); line-height: 1.58; letter-spacing: -.025em; }
.tool-about-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 12px 0; color: var(--tool-muted); font-size: 14px; }
.tool-feedback-actions, .tool-helpful { display: flex; align-items: center; gap: 12px; }
.tool-feedback-actions button, .tool-helpful button { padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; font: inherit; }
.tool-feedback-actions button:hover, .tool-helpful button:hover { color: var(--tool-ink); }
.tool-helpful strong { color: var(--tool-ink); font-weight: 400; }
.tool-facts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tool-facts-grid > div { padding: 18px 0; border-top: 1px solid var(--tool-border); }
.tool-facts-grid span { display: block; color: var(--tool-muted); font-size: 14px; }
.tool-facts-grid strong { display: block; margin-top: 7px; color: var(--tool-ink); font-size: 22px; font-weight: 500; letter-spacing: -.055em; }
.related-tools-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.related-tool { display: block; padding: 18px 18px 17px; border-radius: 18px; background: var(--tool-card); transition: transform .2s ease, background .2s ease; }
.related-tool:hover { background: #e5e1d7; transform: translateY(-2px); }
.related-tool > strong { display: block; margin-bottom: 11px; color: var(--tool-ink); font-size: 16px; font-weight: 600; letter-spacing: -.035em; }
.related-tool-card { display: flex; align-items: flex-start; gap: 11px; min-height: 72px; padding: 11px; border: 1px solid var(--tool-border); border-radius: 13px; background: rgba(251,250,245,.9); color: var(--tool-muted); font-size: 12px; line-height: 1.38; }
.related-tool-card img { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 9px; object-fit: contain; }
.related-tool small { display: block; margin-top: 11px; color: var(--tool-muted); font-size: 10px; letter-spacing: .02em; }
.tool-split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; }
.tool-clean-list { margin: 0; padding: 0; list-style: none; color: var(--tool-muted); }
.tool-clean-list li { padding: 13px 0; border-top: 1px solid var(--tool-border); line-height: 1.5; }
.tool-pricing-row { display: grid; grid-template-columns: minmax(0, 1fr) 180px minmax(0, 1fr); gap: 18px; padding: 16px 0; border-top: 1px solid var(--tool-border); color: var(--tool-muted); }
.tool-pricing-row strong { color: var(--tool-ink); font-weight: 600; }
.tool-prompt-card { padding: 24px; border-radius: 18px; background: var(--tool-card); }
.tool-prompt-card code { display: block; color: var(--tool-ink); font: 14px/1.65 Geist, Poppins, ui-sans-serif, sans-serif; white-space: normal; }
.tool-prompt-card button { margin-top: 18px; padding: 0; border: 0; background: transparent; color: var(--tool-ink); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; font: inherit; font-weight: 600; }
.tool-directory-section details { padding: 17px 0; border-top: 1px solid var(--tool-border); }
.tool-directory-section summary { cursor: pointer; color: var(--tool-ink); font-size: 17px; }
.tool-directory-section details p { max-width: 760px; margin: 12px 0 0; color: var(--tool-muted); line-height: 1.65; }

@media (max-width: 820px) {
  .tool-directory-header { height: auto; min-height: 68px; }
  .tool-directory-header-inner { width: min(100% - 28px, 1152px); padding: 11px 0; align-items: flex-start; flex-direction: column; gap: 10px; }
  .tool-directory-actions { width: 100%; }
  .tool-directory-search { width: 100%; height: 42px; }
  .tool-submit-button { min-height: 42px; padding-inline: 12px; font-size: 12px; white-space: nowrap; }
  .tool-grid-overlay { inset: 110px 0 0; }
  .tool-grid-side { flex-basis: 16px; }
  .tool-directory-container { padding-inline: 18px; }
  .tool-breadcrumbs { padding-top: 58px; margin-bottom: 32px; font-size: 14px; }
  .tool-hero { padding-bottom: 56px; }
  .tool-hero-head { align-items: flex-start; flex-direction: column; }
  .tool-directory-logo { width: 64px; height: 64px; padding: 12px; }
  .tool-identity { gap: 15px; }
  .tool-identity h1 { font-size: clamp(48px, 16vw, 72px); }
  .tool-visit-button { min-height: 48px; }
  .tool-hero-description { margin-top: 30px; font-size: 20px; }
  .tool-directory-section { padding: 48px 0; }
  .tool-about { padding-inline: 0; background: transparent; }
  .tool-about-card { padding: 22px 18px; }
  .tool-about-card p { font-size: 18px; }
  .tool-about-footer { align-items: flex-start; flex-direction: column; padding-inline: 0; }
  .tool-facts-grid, .related-tools-grid, .tool-split-section { grid-template-columns: 1fr; }
  .tool-pricing-row { grid-template-columns: 1fr; gap: 5px; }
}

.tool-catalog-main { min-height: calc(100vh - 78px); }
.tool-catalog-hero { padding: 118px 0 92px; border-bottom: 1px solid var(--tool-border); background-image: radial-gradient(rgba(220,215,200,.78) .8px, transparent .9px); background-size: 7px 7px; }
.tool-catalog-hero h1 { max-width: 850px; margin: 0; color: var(--tool-ink); font-size: clamp(45px, 6vw, 70px); font-weight: 400; letter-spacing: -.085em; line-height: .98; }
.tool-catalog-hero h1 span { color: var(--tool-muted); }
.tool-catalog-hero > p { max-width: 700px; margin: 34px 0 30px; color: var(--tool-muted); font-size: 19px; line-height: 1.55; letter-spacing: -.025em; }
.tool-catalog-search { display: flex; align-items: center; width: min(100%, 610px); height: 48px; padding: 4px 5px 4px 14px; border: 1px solid var(--tool-border); border-radius: 14px; background: var(--tool-surface); box-shadow: 0 2px 7px rgba(73,68,58,.08); }
.tool-catalog-search svg { flex: 0 0 auto; width: 20px; height: 20px; margin-right: 9px; fill: none; stroke: var(--tool-muted); stroke-width: 1.8; }
.tool-catalog-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--tool-ink); font: inherit; font-size: 16px; }
.tool-catalog-search input::placeholder { color: var(--tool-muted); }
.tool-catalog-search button { min-height: 38px; padding: 0 16px; border-radius: 10px; background: var(--tool-ink); color: #fff; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; }
.tool-catalog-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; padding: 64px 0 0; }
.tool-catalog-sidebar { min-width: 0; }
.tool-filter-label { margin-bottom: 19px; color: var(--tool-muted); font-size: 12px; font-weight: 600; letter-spacing: .12em; }
.tool-filter-list { display: grid; gap: 4px; }
.tool-filter-item { display: flex; align-items: center; gap: 11px; padding: 7px 0; border: 0; background: transparent; color: var(--tool-muted); cursor: pointer; text-align: left; font: inherit; font-size: 14px; }
.tool-filter-item:hover, .tool-filter-item.active { color: var(--tool-ink); }
.tool-filter-check { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--tool-border); border-radius: 7px; background: rgba(251,250,245,.72); color: transparent; font-size: 13px; }
.tool-filter-item.active .tool-filter-check { border-color: var(--tool-ink); background: var(--tool-ink); color: #fff; }
.tool-catalog-results { min-width: 0; }
.tool-catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid var(--tool-border); color: var(--tool-muted); font-size: 16px; }
.tool-catalog-toolbar > span strong { color: var(--tool-ink); font-weight: 500; }
.tool-catalog-tabs { display: inline-flex; align-items: center; gap: 3px; padding: 3px; border: 1px solid var(--tool-border); border-radius: 999px; background: var(--tool-card); }
.tool-catalog-tabs button, .tool-catalog-tabs a { min-height: 32px; padding: 0 15px; border: 0; border-radius: 999px; background: transparent; color: var(--tool-muted); cursor: pointer; font: inherit; font-size: 13px; }
.tool-catalog-tabs button.active, .tool-catalog-tabs a:hover { background: var(--tool-surface); color: var(--tool-ink); box-shadow: 0 1px 4px rgba(73,68,58,.12); }
.tool-cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-top: 28px; }
.directory-tool-card { min-width: 0; padding: 16px 16px 15px; border-radius: 18px; background: var(--tool-card); color: var(--tool-ink); transition: transform .2s ease, background .2s ease; }
.directory-tool-card:hover { background: #e5e1d7; transform: translateY(-2px); }
.directory-tool-card > strong { display: block; margin-bottom: 12px; overflow: hidden; font-size: 16px; font-weight: 600; letter-spacing: -.03em; text-overflow: ellipsis; white-space: nowrap; }
.directory-tool-inner { display: flex; align-items: flex-start; gap: 11px; min-height: 74px; padding: 11px; border: 1px solid var(--tool-border); border-radius: 13px; background: rgba(251,250,245,.9); color: var(--tool-muted); font-size: 12px; line-height: 1.4; }
.directory-tool-inner img { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 9px; object-fit: contain; }
.directory-tool-card > small { display: block; margin-top: 12px; color: var(--tool-muted); font-size: 10px; letter-spacing: .015em; }

@media (max-width: 820px) {
  .tool-catalog-hero { padding: 72px 0 58px; }
  .tool-catalog-hero h1 { font-size: clamp(42px, 12vw, 62px); }
  .tool-catalog-hero > p { margin-top: 24px; font-size: 16px; }
  .tool-catalog-search { height: 44px; }
  .tool-catalog-search button { min-height: 34px; padding-inline: 12px; }
  .tool-catalog-layout { grid-template-columns: 1fr; gap: 34px; padding-top: 40px; }
  .tool-filter-list { display: flex; flex-wrap: wrap; gap: 4px 14px; }
  .tool-filter-item { padding-block: 4px; font-size: 13px; }
  .tool-catalog-toolbar { align-items: flex-start; flex-direction: column; }
  .tool-cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .tool-cards-grid { grid-template-columns: 1fr; }
}
