/* Публичная главная: фирменная палитра кабинета (businesses/cabinet.css). */
:root {
  --purple: #8359db;
  --purple-dark: #6942bc;
  --purple-soft: #f0eafa;
  --ink: #28282a;
  --muted: #6b6b73;
  --canvas: #f8f8f9;
  --line: #ededf0;
  --ok: #2f8f5b;
  --warn: #c27a0e;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: #fff; color: var(--ink); font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-text-size-adjust: 100%; overflow-wrap: break-word; }
a { color: var(--purple-dark); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.skip-link { position: absolute; left: -9999px; top: 8px; padding: 8px 12px; background: #fff; border-radius: 8px; z-index: 20; }
.skip-link:focus { left: 8px; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border-radius: 12px; background: var(--purple); color: #fff; font-weight: 600; text-decoration: none; border: 1px solid var(--purple); white-space: nowrap; }
.button:hover { background: var(--purple-dark); border-color: var(--purple-dark); }
.button-ghost { background: #fff; color: var(--purple-dark); border-color: #d9cdf5; }
.button-ghost:hover { background: var(--purple-soft); border-color: #d9cdf5; }
.button-large { min-height: 52px; padding: 12px 26px; font-size: 17px; }
.link-button { color: var(--ink); font-weight: 600; text-decoration: none; padding: 10px 6px; }
.link-button:hover { color: var(--purple-dark); }

.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; text-decoration: none; line-height: 1.15; }
.brand-text { display: grid; gap: 5px; }
.brand-wordmark { display: block; width: 124px; height: auto; }
.brand-description { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
.brand-icon { width: 38px; height: 38px; border-radius: 10px; flex: 0 0 auto; }
.section-nav { display: flex; gap: 22px; margin-left: auto; }
.section-nav a { color: var(--ink); text-decoration: none; font-size: 15px; white-space: nowrap; }
.section-nav a:hover { color: var(--purple-dark); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .language-options { flex-wrap: nowrap; gap: 4px; }
/* В шапке у языков только флаги: название остаётся для экранного диктора. */
.header-actions .language-options button { min-height: 40px; min-width: 44px; padding: 6px 9px; justify-content: center; }
.header-actions .language-options button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.header-actions .language-options button[aria-pressed=false] { border-color: transparent; }
.header-actions .language-picker { margin: 0; }
.header-actions .language-picker legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.hero { background: linear-gradient(180deg, var(--purple-soft) 0%, #fff 100%); padding: 72px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
/* Армянские слова длинные: элементы сеток должны сжиматься, а не расширять страницу. */
.hero-grid > *, .contacts > *, .plans > *, .features > *, .steps > * { min-width: 0; }
.eyebrow { display: inline-block; padding: 6px 12px; border-radius: 999px; background: #fff; color: var(--purple-dark); font-weight: 600; font-size: 14px; border: 1px solid #e3d8f8; }
.hero h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -.02em; margin: 18px 0 16px; }
.lead { font-size: 19px; color: #46464c; max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 16px; color: var(--muted); font-size: 15px; }

.preview-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: 0 24px 60px -28px rgba(105, 66, 188, .35); }
.preview-title { font-weight: 700; margin-bottom: 12px; }
.preview-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 15px; }
.preview-row { flex-wrap: wrap; }
/* Если название и метка не помещаются в строку, метка уходит под название. */
.preview-row span:nth-child(2) { flex: 1 1 200px; min-width: 0; }
.preview-row .chip { margin-left: auto; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--purple); flex: none; }
.dot-warn { background: var(--warn); }
.dot-ok { background: var(--ok); }
.chip { font-style: normal; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: var(--purple-soft); color: var(--purple-dark); white-space: nowrap; }
.chip-warn { background: #fdf1de; color: #8a5506; }
.chip-ok { background: #e3f4ea; color: #1f6e43; }
.preview-limit { margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); display: grid; gap: 8px; }
.bar { display: block; height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar span { display: block; width: 62%; height: 100%; background: var(--purple); border-radius: inherit; }

.section { padding: 72px 0; }
.section-alt { background: var(--canvas); }
.section h2 { font-size: clamp(28px, 3.4vw, 36px); letter-spacing: -.01em; margin-bottom: 14px; }
.section-lead { font-size: 18px; color: #46464c; max-width: 760px; }
.audience { margin-top: 24px; display: grid; gap: 10px; padding: 20px 22px; border-radius: 16px; background: var(--purple-soft); }

.features { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.features li, .steps li { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.features h3, .steps h3 { font-size: 18px; margin-bottom: 8px; }
.features p, .steps p { color: #55555c; font-size: 15px; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--purple-soft); color: var(--purple-dark); font-weight: 700; margin-bottom: 14px; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px 24px 24px; }
/* Рамка толще на 1 px — внутренний отступ меньше на 1 px, чтобы текст и кнопка совпадали с соседями. */
.plan-featured { padding: 27px 23px 23px; border: 2px solid var(--purple); box-shadow: 0 20px 50px -30px rgba(105, 66, 188, .45); }
.plan-badge { position: absolute; top: -13px; left: 24px; background: var(--purple); color: #fff; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.plan h3 { font-size: 18px; color: var(--muted); font-weight: 600; }
.plan-price { font-size: 18px; }
.plan-price strong { font-size: 36px; letter-spacing: -.01em; }
.plan-meta { color: var(--muted); font-size: 15px; }
.plan-saving { color: var(--ok); font-weight: 600; font-size: 15px; }
/* Кнопка всегда у нижнего края карточки: у месячного тарифа нет строки «Выгода»,
   но кнопки всех тарифов стоят на одной линии. Отступ над кнопкой — не меньше 16 px. */
.plan .button { margin-top: auto; }
.plan > :nth-last-child(2) { margin-bottom: 16px; }
.plans-note { margin-top: 16px; color: var(--muted); font-size: 15px; }
.addon { margin-top: 24px; display: flex; gap: 18px; align-items: flex-start; padding: 22px 24px; border: 1px dashed #cdbdf0; border-radius: 18px; background: #fff; }
.addon h3 { font-size: 18px; margin-bottom: 6px; }
.addon p + p { margin-top: 6px; }
.addon-badge { flex: none; background: var(--purple-soft); color: var(--purple-dark); font-weight: 600; font-size: 13px; padding: 4px 10px; border-radius: 999px; }

.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.contact-card { border: 1px solid var(--line); border-radius: 20px; padding: 26px; background: var(--canvas); display: grid; gap: 6px; }
.contact-label { color: var(--muted); font-size: 14px; }
.contact-label:not(:first-child) { margin-top: 12px; }
.contact-phone { font-size: 30px; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: .01em; white-space: nowrap; }
.contact-phone:hover { color: var(--purple-dark); }

.site-footer { border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: 14px; }
.footer-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-row a { color: var(--muted); white-space: nowrap; }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; }
.footer-links { display: inline-flex; gap: 20px; flex-wrap: wrap; }

/* Армянское меню из четырёх пунктов вместе с логотипом и кнопками занимает ~1160 px. */
@media (max-width: 1180px) {
  .section-nav { display: none; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 1020px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 780px) {
  .hero { padding: 40px 0 44px; }
  .hero-grid, .contacts { grid-template-columns: 1fr; gap: 32px; }
  .plans { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .header-row { flex-wrap: wrap; gap: 10px; padding: 10px 0; }
  .header-actions { width: 100%; justify-content: space-between; }
  .header-actions .button { padding: 8px 14px; }
  .brand-description { display: none; }
  .features, .steps { grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; }
  .addon { flex-direction: column; }
  .lead, .section-lead { font-size: 17px; }
}

/* Блок «Подойдёт ли вам AmmaTax»: продолжает раздел «Что такое AmmaTax». */
.section-fit { padding-top: 0; }
.fit-yes { margin-top: 28px; padding: 24px; border: 1px solid #cfe9da; border-radius: 18px; background: #f3faf6; }
.fit-yes h3, .fit-no-title { font-size: 20px; }
.fit-no-title { margin-top: 36px; }
.fit-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.fit-list li { position: relative; padding-left: 32px; color: #46464c; font-size: 15px; }
.fit-list li::before { position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 13px; font-weight: 700; line-height: 1; }
.fit-list-yes li::before { content: "✓"; background: #e3f4ea; color: #1f6e43; }
.fit-list-no li::before { content: "✕"; background: #fbe9e6; color: #a63b2c; }
.fit-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.fit-groups > * { min-width: 0; }
.fit-group { border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; background: #fff; }
.fit-group h4 { margin: 0; font-size: 17px; }
.fit-note { margin-top: 24px; color: var(--muted); font-size: 15px; }
@media (max-width: 1020px) {
  .fit-groups { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .fit-yes, .fit-group { padding: 18px; }
}
/* Ссылка на Instagram в футере (SEO, А1): значок контуром, цвет — как у остальных ссылок футера. */
.footer-social { display: inline-flex; align-items: center; gap: 6px; }
.footer-social svg { fill: none; stroke: currentColor; stroke-width: 2; }
.footer-social .footer-social-dot { fill: currentColor; stroke: none; }
.footer-social:hover, .footer-social:focus-visible { color: var(--purple); }
