/* Стили сайта taxexpert.by (дизайн по референсу, 27.11.2026). Токены в :root, блоки с префиксами. */
@font-face { font-family: 'Montserrat'; src: url(/fonts/montserrat-400-700-cyrillic.woff2) format('woff2'); font-weight: 400 700; font-display: block; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Montserrat'; src: url(/fonts/montserrat-400-700-latin.woff2) format('woff2'); font-weight: 400 700; font-display: block; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --accent: #005F27;
  --accent-hover: #004A1E;
  --accent-soft: #E7F1EA;
  --text: #17211B;
  --muted: #5A6660;
  --line: #E0E7E2;
  --soft: #F4F7F5;
  --paper: #F8F5EE;
  --bg: #FFFFFF;
  --r: 8px;
  --r-btn: 6px;
  --pad: max(16px, calc((100vw - 1200px) / 2));
  --sec: 96px;
  --hd-row: 84px;
  --hd-nav: 52px;
  --hd: calc(var(--hd-row) + var(--hd-nav) + 1px);
  --font: 'Montserrat', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hd) + 16px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--font); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
h1 em, h2 em { font-style: normal; color: var(--accent); }
.wrap { padding-left: var(--pad); padding-right: var(--pad); }
.ico { width: 24px; height: 24px; flex: none; }
.ico--s { width: 20px; height: 20px; }
:focus:not(:focus-visible) { outline: none; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 26px; border: 0; border-radius: var(--r-btn); background: var(--accent); color: #fff; font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn { transition: background-color .2s ease; }
.btn:hover { background: var(--accent-hover); }
.btn .ico--s { transition: transform .25s ease; }
.btn:hover .ico--s { transform: translateX(4px); }
/* Блик на главной кнопке (правило курса, инструкция 2): раз в несколько секунд, фоном без выхода за край */
.btn--big { height: 58px; padding: 0 30px; font-size: 16px; background-image: linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, .26) 50%, transparent 60%); background-size: 250% 100%; background-repeat: no-repeat; background-position: 150% 0; animation: btn-glare 5s 2.2s infinite; }
.btn--ghost { height: 44px; padding: 0 18px; background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); font-size: 14px; }
.btn--ghost:hover { background: var(--accent-soft); }

/* Шапка */
.hd { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.hd__row { display: flex; align-items: center; gap: 36px; height: var(--hd-row); }
.logo { display: block; color: var(--text); text-decoration: none; flex: none; }
.logo__svg { display: block; height: 46px; width: auto; }
.hd__desc { display: grid; padding-left: 20px; margin-left: -12px; border-left: 1px solid var(--line); font-size: 12px; line-height: 1.35; color: var(--muted); white-space: nowrap; }
.hd__desc b { font-size: 14px; font-weight: 600; color: var(--text); }
.hd__item { display: flex; gap: 12px; align-items: center; font-size: 13px; line-height: 1.4; color: var(--muted); white-space: nowrap; }
.hd__item--addr { margin-left: auto; }
.hd__item > .ico { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.hd__item span { display: grid; }
.hd__item b { font-size: 14px; font-weight: 600; color: var(--text); }
.hd__item a { text-decoration: none; }
.hd__item a:hover { color: var(--accent); }
.hd__phone { font-size: 17px; font-weight: 700; color: var(--text); }
.hd__call { height: 46px; padding: 0 22px; font-size: 14px; }
.hd__nav { display: flex; justify-content: space-between; align-items: stretch; height: var(--hd-nav); border-top: 1px solid var(--line); font-size: 15px; font-weight: 500; white-space: nowrap; }
.hd__nav a { position: relative; display: flex; align-items: center; text-decoration: none; }
.hd__nav a:hover { color: var(--accent); }
.hd__nav a[aria-current="page"] { color: var(--accent); }
.hd__nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); }
/* Выпадающее меню «Услуги» */
.dd { position: relative; display: flex; align-items: stretch; }
.dd__link { padding-right: 2px; }
.dd__tgl { display: flex; align-items: center; padding: 0 2px; border: 0; background: none; color: inherit; cursor: pointer; }
.dd__tgl .ico { width: 16px; height: 16px; transition: transform .2s ease; }
.dd:hover .dd__tgl, .dd.is-open .dd__tgl { color: var(--accent); }
.dd:hover .dd__tgl .ico, .dd.is-open .dd__tgl .ico { transform: rotate(180deg); }
.dd__panel { position: absolute; top: 100%; left: -24px; z-index: 25; width: 760px; padding: 20px 24px 22px; border: 1px solid var(--line); border-top: 2px solid var(--accent); border-radius: 0 0 var(--r) var(--r); background: var(--bg); white-space: normal; visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity .18s ease, transform .18s ease, visibility 0s .18s; }
.dd:hover .dd__panel, .dd.is-open .dd__panel { visibility: visible; opacity: 1; transform: none; transition: opacity .18s ease, transform .18s ease; }
.dd__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 20px; }
.hd__nav .dd__i { display: flex; gap: 12px; align-items: center; padding: 9px 10px; border-radius: var(--r-btn); font-size: 14px; font-weight: 500; line-height: 1.35; }
.dd__i .ico { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.hd__nav .dd__i:hover, .hd__nav .dd__i[aria-current="page"] { background: var(--soft); }
.hd__nav .dd__i[aria-current="page"]::after { content: none; }
.hd__nav .dd__all { display: inline-flex; gap: 8px; margin: 14px 0 0 10px; font-size: 14px; font-weight: 600; color: var(--accent); }
.hd__icon { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--r-btn); background: transparent; color: var(--text); padding: 0; cursor: pointer; }

/* Первый экран */
.hero { padding: 64px 0 88px; background: linear-gradient(90deg, var(--bg) 0 58%, var(--soft) 58% 100%); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 80px; align-items: center; }
.hero h1 { font-size: 46px; line-height: 1.14; font-weight: 700; letter-spacing: -.01em; max-width: 20ch; }
.ticks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; line-height: 1.45; }
.ticks .ico { color: var(--accent); margin-top: -1px; }
.ticks--s li { font-size: 16px; }
.hero__cta { display: flex; align-items: center; gap: 20px; margin-top: 36px; flex-wrap: wrap; }
.hero__note { font-size: 13px; line-height: 1.4; color: var(--muted); }
.hero__trust { display: flex; gap: 32px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.hero__trust div { display: flex; gap: 12px; align-items: center; font-size: 14px; line-height: 1.35; max-width: 250px; }
.hero__trust .ico { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.hero__ph { position: relative; margin: 0; padding: 0 0 0 0; }
.hero__ph img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: var(--r); }
.hero__frame { position: absolute; inset: 22px -22px -22px 22px; border: 2px solid var(--accent); border-radius: var(--r); }
.badge { position: absolute; left: -36px; bottom: 36px; display: grid; gap: 2px; padding: 14px 18px; background: var(--bg); border-radius: var(--r); box-shadow: 0 0 0 1px var(--line); font-size: 13px; color: var(--muted); }
.badge b { font-size: 15px; color: var(--text); }
.badge i { font-style: normal; color: var(--accent); font-weight: 600; }

/* Секции */
.sec { padding: var(--sec) 0; }
.sec--soft { background: var(--soft); }
.sec--tight { padding-top: 0; }
.sec__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 44px; }
.sec__head h2, .faqs__h, .talk h2, .contact h2 { font-size: 34px; line-height: 1.2; font-weight: 700; max-width: 26ch; }
.sec__label { flex: none; font-size: 13px; color: var(--muted); padding: 7px 14px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line); }

/* Услуги */
.svcs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.svc { position: relative; display: flex; flex-direction: column; gap: 18px; min-height: 172px; padding: 22px; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; background: var(--bg); }
.svc:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
.svc__ico { display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; border-radius: var(--r); background: var(--accent-soft); color: var(--accent); }
.svc__ico .ico { width: 28px; height: 28px; }
.svc__num { position: absolute; top: 22px; right: 22px; font-size: 13px; font-weight: 600; color: var(--accent); }
.svc__t { font-size: 16px; font-weight: 600; line-height: 1.35; }
.svc--cta { background: var(--accent); color: #fff; box-shadow: none; justify-content: space-between; }
.svc--cta:hover { background: var(--accent-hover); box-shadow: none; }
.svc__more { display: flex; gap: 10px; align-items: flex-end; font-size: 14px; line-height: 1.4; opacity: .9; }

/* Причины */
.rsns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rsn { padding: 26px; border-radius: var(--r); background: var(--bg); }
.rsn__ico { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.rsn__t { margin-top: 18px; font-size: 17px; font-weight: 700; line-height: 1.35; }
.rsn__d { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--muted); }

/* Практика */
.tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; border-bottom: 1px solid var(--line); }
.tabs__b { padding: 14px 10px; border: 0; background: transparent; font: 500 14px/1.3 var(--font); color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs__b:hover { color: var(--text); }
.tabs__b[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.cases { margin-top: 28px; }
.case { padding: 40px 44px; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); max-width: 920px; }
.case__k { font-size: 13px; color: var(--muted); }
.case h3 { margin-top: 8px; font-size: 24px; line-height: 1.3; font-weight: 700; max-width: 34ch; }
.case__txt { margin: 18px 0 28px; font-size: 16px; line-height: 1.65; max-width: 70ch; }

/* Обсудим вопрос */
.talk { display: grid; grid-template-columns: minmax(0, 1fr) 280px minmax(0, 400px); gap: 40px; align-items: center; }
.talk__lead { margin-top: 14px; font-size: 17px; color: var(--muted); }
.talk .ticks { margin-top: 22px; }
.talk__tel { margin-top: 26px; display: flex; flex-direction: column; font-size: 14px; color: var(--muted); }
.talk__tel a { font-size: 22px; font-weight: 700; color: var(--text); text-decoration: none; margin-top: 2px; }
.talk__ph { margin: 0; }
.talk__ph img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); }
.talk__ph figcaption, .steps__ph figcaption { margin-top: 10px; font-size: 12px; line-height: 1.4; color: var(--muted); }

/* Форма */
.form { display: grid; gap: 14px; padding: 30px; border-radius: var(--r); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.form__title { font-size: 21px; font-weight: 700; line-height: 1.25; }
.form__sub { margin-top: -6px; font-size: 14px; color: var(--muted); }
.field { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.field input, .field textarea { width: 100%; padding: 13px 14px; border: 0; border-radius: var(--r-btn); background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); font: 400 15px/1.4 var(--font); color: var(--text); resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--accent); background: var(--bg); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; line-height: 1.4; color: var(--muted); cursor: pointer; }
.check input { appearance: none; flex: none; width: 18px; height: 18px; margin: 0; border-radius: 4px; box-shadow: inset 0 0 0 1.5px var(--line); background: var(--bg); cursor: pointer; }
.check input:checked { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l5 5 9-10' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; box-shadow: none; }
.form .btn { justify-self: start; }
.form__trap { position: absolute; left: -9999px; }

/* Отзывы */
.revs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.rev { display: grid; grid-template-columns: minmax(0, 1fr) 150px; grid-template-rows: auto auto 1fr; column-gap: 26px; padding: 30px; border-radius: var(--r); background: var(--paper); }
.rev__q { grid-column: 1; font-size: 19px; font-weight: 700; line-height: 1.35; }
.rev__txt { grid-column: 1; margin-top: 14px; font-size: 15px; line-height: 1.6; }
.rev__who { grid-column: 1; margin-top: 16px; font-size: 13px; color: var(--muted); align-self: end; }
.rev__scan { grid-column: 2; grid-row: 1 / 4; display: grid; gap: 8px; align-content: start; text-decoration: none; font-size: 12px; color: var(--muted); }
.rev__scan img { width: 100%; background: #fff; padding: 6px; box-shadow: 0 0 0 1px var(--line); }

/* Этапы */
.steps { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 80px; align-items: center; }
.steps .sec__head { margin-bottom: 32px; }
.steps__list { list-style: none; margin: 0 0 34px; padding: 0; display: grid; gap: 14px; }
.step { display: flex; gap: 18px; align-items: flex-start; padding: 20px 22px; border-radius: var(--r); background: var(--bg); }
.step__n { flex: none; display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; }
.step__t { font-size: 17px; font-weight: 700; }
.step__d { margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.steps__ph { margin: 0; padding: 14px; background: var(--bg); box-shadow: 0 0 0 1px var(--line); }

/* Вопросы */
.faqs { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 60px; align-items: start; }
.faq { border-bottom: 1px solid var(--line); }
.faq:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 0; font-size: 17px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq__ico { color: var(--accent); }
.faq[open] .faq__ico { transform: rotate(45deg); }
.faq p { padding: 0 48px 24px 0; font-size: 15px; line-height: 1.65; color: var(--muted); }

/* Контакты */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border-radius: var(--r); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); padding: 0; margin: 0 var(--pad); }
.contact__card { padding: 44px; background: var(--accent); color: #fff; }
.contact h2 { color: #fff; }
.contact__name { margin-top: 12px; font-size: 15px; opacity: .85; max-width: 36ch; }
.contact__list { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 16px; font-size: 16px; }
.contact__list li { display: flex; gap: 14px; align-items: center; }
.contact__list a { text-decoration: none; font-weight: 600; }
.contact .form { border-radius: 0; box-shadow: none; padding: 44px; }

/* Подвал */
.ft { margin-top: 96px; padding: 56px 0 28px; background: var(--soft); font-size: 14px; }
.ft__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 40px; }
.ft__desc { margin-top: 14px; color: var(--muted); max-width: 28ch; }
.ft__h { font-weight: 700; margin-bottom: 10px; }
.ft a { text-decoration: none; }
.ft a:hover { color: var(--accent); }
.ft__nav { display: grid; gap: 4px; }
.ft__bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* Ноутбуки и планшеты */
@media (max-width: 1280px) {
  .hero__ph { margin-right: 22px; }
  .hd__row { gap: 28px; }
}
@media (max-width: 1180px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; }
  .hero h1 { font-size: 40px; }
  .svcs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .talk { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); }
  .talk__ph { display: none; }
  .tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rev { grid-template-columns: 1fr; }
  .rev__scan { grid-column: 1; grid-row: auto; margin-top: 18px; grid-template-columns: 90px 1fr; align-items: center; }
}
@media (max-height: 760px) and (min-width: 761px) {
  .hero { padding: 36px 0 56px; }
  .hero h1 { font-size: 40px; }
  .ticks { margin-top: 20px; gap: 8px; }
  .hero__cta { margin-top: 26px; }
  .hero__trust { margin-top: 26px; padding-top: 18px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr) 380px; }
}

/* Телефоны */
@media (max-width: 760px) {
  :root { --sec: 56px; --hd-row: 64px; --hd: var(--hd-row); }
  body { font-size: 15px; }
  .hd__row { gap: 10px; }
  .hd__item, .hd__call { display: none; }
  .hd__icon { display: inline-flex; }
  .hd__icon--tel { margin-left: auto; }
  .logo__svg { height: 38px; }
  .hero { padding: 28px 0 48px; background: var(--bg); }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 27px; line-height: 1.2; }
  .ticks { margin-top: 20px; }
  .ticks li { font-size: 15px; }
  .hero__cta { margin-top: 26px; gap: 12px; }
  .btn--big { height: 54px; padding: 0 22px; font-size: 15px; }
  .hero__trust { gap: 14px; margin-top: 28px; }
  .hero__ph { margin-right: 22px; }
  .badge { left: 12px; bottom: 12px; padding: 10px 14px; }
  .sec__head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 26px; }
  .sec__label { order: -1; }
  .sec__head h2, .faqs__h, .talk h2, .contact h2 { font-size: 25px; }
  .svcs { grid-template-columns: 1fr; gap: 10px; }
  .svc { flex-direction: row; align-items: center; min-height: 0; padding: 14px 16px; gap: 14px; }
  .svc__ico { width: 44px; height: 44px; }
  .svc__num { position: static; order: 3; margin-left: auto; }
  .svc--cta { flex-direction: column; align-items: flex-start; }
  .rsns { grid-template-columns: 1fr; gap: 10px; }
  .rsn { padding: 20px; display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; }
  .rsn__ico { grid-row: 1 / 3; }
  .rsn__t { margin-top: 0; font-size: 16px; }
  .rsn__d { margin-top: 4px; }
  .tabs { display: flex; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); }
  .tabs__b { flex: none; padding: 12px 14px; }
  .case { padding: 24px 20px; }
  .case h3 { font-size: 19px; }
  .talk { grid-template-columns: 1fr; gap: 28px; }
  .form { padding: 22px; }
  .revs { grid-template-columns: 1fr; gap: 12px; }
  .rev { padding: 22px; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps__ph { max-width: 260px; }
  .faqs { grid-template-columns: 1fr; gap: 20px; }
  .faq summary { font-size: 15px; padding: 18px 0; }
  .faq p { padding-right: 0; }
  .contact { grid-template-columns: 1fr; margin: 0 var(--pad); }
  .contact__card, .contact .form { padding: 26px 22px; }
  .ft { margin-top: 56px; }
  .ft__grid { grid-template-columns: 1fr; gap: 26px; }
  .ft__bottom { flex-direction: column; }
}

/* ===== Внутренние страницы ===== */

/* Мобильное меню */
.mm { position: fixed; inset: var(--hd) 0 0 0; z-index: 30; overflow-y: auto; background: var(--bg); padding: 20px var(--pad) 32px; display: flex; flex-direction: column; gap: 26px; border-top: 1px solid var(--line); }
.mm[hidden] { display: none; }
.mm__nav { display: grid; }
.mm__nav > a, .mm__row > a { display: flex; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 20px; font-weight: 600; text-decoration: none; }
.mm__nav span { font-size: 13px; font-weight: 600; color: var(--accent); }
.mm__row { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); }
.mm__row > a { flex: 1; border-bottom: 0; }
.mm__tgl { display: flex; align-items: center; justify-content: center; width: 48px; border: 0; background: none; color: var(--accent); cursor: pointer; }
.mm__tgl .ico { width: 22px; height: 22px; transition: transform .2s ease; }
.mm__tgl[aria-expanded="true"] .ico { transform: rotate(180deg); }
.mm__sub { display: grid; padding: 6px 0 10px 34px; border-bottom: 1px solid var(--line); }
.mm__sub[hidden] { display: none; }
.mm__sub a { padding: 9px 0; font-size: 15px; font-weight: 500; line-height: 1.35; text-decoration: none; }
.mm__contact { display: grid; gap: 6px; padding: 18px; border-radius: var(--r); background: var(--soft); font-size: 14px; color: var(--muted); }
.mm__contact a { color: var(--text); text-decoration: none; }
.mm__tel { font-size: 20px; font-weight: 700; }
.mm__cta { align-self: flex-start; }
.is-menu body { overflow: hidden; }

/* Шапка страницы */
.phero { padding: 36px 0 48px; background: var(--soft); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; margin: -8px 0; font-size: 13px; color: var(--muted); }
.crumbs a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--text); }
.phero__row { display: flex; gap: 22px; align-items: flex-start; margin-top: 22px; }
.phero__ico { flex: none; display: inline-flex; width: 64px; height: 64px; align-items: center; justify-content: center; border-radius: var(--r); background: var(--bg); color: var(--accent); }
.phero__ico .ico { width: 34px; height: 34px; }
.phero h1 { font-size: 40px; line-height: 1.15; font-weight: 700; max-width: 26ch; }
.phero__lead { margin-top: 14px; font-size: 17px; line-height: 1.55; color: var(--muted); max-width: 62ch; }
.sec--first { padding-top: 56px; }
.more { margin-top: 24px; }
.more a { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; color: var(--accent); text-decoration: none; }
.more a:hover { color: var(--accent-hover); }
.svcs--3 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Статья с боковой колонкой */
.article { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: start; }
.prose { font-size: 17px; line-height: 1.7; max-width: 72ch; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 24px; line-height: 1.3; margin-top: 1.6em; }
.prose h3 { font-size: 20px; line-height: 1.35; margin-top: 1.4em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li p { margin: 0; }
.prose u { text-decoration: none; font-weight: 600; }
.prose a:not(.btn) { color: var(--accent); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose td, .prose th { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose .rev__q { font-size: 22px; }
.aside { position: sticky; top: calc(var(--hd) + 24px); display: grid; gap: 16px; }
.aside__card { display: grid; gap: 12px; justify-items: start; padding: 26px; border-radius: var(--r); background: var(--soft); }
.aside__t { font-size: 19px; font-weight: 700; line-height: 1.3; }
.aside__d { font-size: 14px; line-height: 1.55; color: var(--muted); }
.aside__tel { display: inline-flex; gap: 8px; align-items: center; min-height: 40px; font-weight: 700; text-decoration: none; }
.aside__tel .ico { color: var(--accent); width: 20px; height: 20px; }
.aside__doc { padding: 14px; box-shadow: 0 0 0 1px var(--line); border-radius: var(--r); font-size: 12px; line-height: 1.4; color: var(--muted); }
.aside__doc img { width: 100%; margin-bottom: 10px; }
.aside__scan { display: grid; gap: 10px; text-decoration: none; font-size: 13px; color: var(--muted); }
.aside__scan img { width: 100%; padding: 8px; background: #fff; box-shadow: 0 0 0 1px var(--line); }

/* О специалисте */
.about { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 64px; align-items: start; }
.about__ph { margin: 0; }
.about__ph img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: var(--r); }
.about__text .ticks { margin-top: 28px; }
.about__text .btn { margin-top: 30px; }
.docs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.doc { display: grid; gap: 12px; align-content: start; padding: 16px; border-radius: var(--r); background: var(--bg); text-decoration: none; }
.doc:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
.doc__img { display: flex; align-items: center; justify-content: center; height: 300px; background: var(--soft); border-radius: 4px; overflow: hidden; }
.doc__img img { max-height: 280px; width: auto; }
.doc__t { font-size: 14px; font-weight: 600; line-height: 1.4; }

/* Практика */
.caselist { display: grid; gap: 16px; }
.case--list { max-width: none; }
.case--list h2 { margin-top: 8px; font-size: 22px; line-height: 1.3; max-width: 40ch; }
.case--list .case__txt { margin-bottom: 0; }

/* Тарифы */
.tariffs { border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.tariffs__row { display: grid; grid-template-columns: minmax(0, 1fr) 150px 190px; gap: 24px; padding: 18px 26px; border-top: 1px solid var(--line); align-items: baseline; }
.tariffs__row:first-child { border-top: 0; }
.tariffs__row--head { background: var(--soft); font-size: 13px; font-weight: 600; color: var(--muted); }
.tariffs__n { font-size: 16px; line-height: 1.45; }
.tariffs__v { font-size: 15px; color: var(--muted); }
.tariffs__p { font-size: 17px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.tariffs__note { margin-top: 18px; font-size: 14px; line-height: 1.55; color: var(--muted); max-width: 90ch; }

/* Контакты */
.kont { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 40px; align-items: start; }
.kont .contact__card { border-radius: var(--r); }
.kont__info { display: grid; gap: 26px; font-size: 16px; line-height: 1.6; }
.kont__h { font-weight: 700; margin-bottom: 4px; }
.nw { white-space: nowrap; }
.map { position: relative; height: 420px; border-radius: var(--r); background: var(--soft); overflow: hidden; }
.map__ph { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 14px; align-items: center; justify-content: center; font-size: 14px; }
.map__ph a { display: inline-flex; align-items: center; min-height: 40px; color: var(--muted); }

/* Новости */
.newsl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.newsl__i { display: grid; gap: 10px; align-content: start; padding: 26px; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; }
.newsl__i:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
.newsl__t { font-size: 18px; font-weight: 700; line-height: 1.35; }
.newsl__d { font-size: 14px; line-height: 1.55; color: var(--muted); }
.newsl__more { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 600; color: var(--accent); }

@media (max-width: 1180px) {
  .article { grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; }
  .svcs--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about { grid-template-columns: 320px minmax(0, 1fr); gap: 40px; }
  .docs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .hd__item--addr { display: none; }
  .hd__item--tel { margin-left: auto; }
  .hd__nav { font-size: 14px; }
}
@media (max-width: 900px) {
  :root { --hd: var(--hd-row); }
  .hd__nav, .hd__desc { display: none; }
  .hd__icon:not(.hd__icon--tel) { display: inline-flex; }
  .article { grid-template-columns: 1fr; }
  .aside { position: static; }
  .aside__doc { display: none; }
  .kont { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .phero { padding: 22px 0 30px; }
  .phero__row { flex-direction: column; gap: 14px; margin-top: 16px; }
  .phero__ico { width: 48px; height: 48px; }
  .phero__ico .ico { width: 26px; height: 26px; }
  .phero h1 { font-size: 26px; line-height: 1.2; }
  .phero__lead { font-size: 15px; }
  .sec--first { padding-top: 32px; }
  .svcs--3 { grid-template-columns: 1fr; }
  .prose { font-size: 16px; line-height: 1.65; }
  .prose h2 { font-size: 20px; }
  .about { grid-template-columns: 1fr; gap: 28px; }
  .about__ph { max-width: 340px; }
  .docs { grid-template-columns: 1fr 1fr; gap: 10px; }
  .doc { padding: 10px; }
  .doc__img { height: 180px; }
  .doc__img img { max-height: 164px; }
  .doc__t { font-size: 12px; }
  .case--list h2 { font-size: 18px; }
  .tariffs__row { grid-template-columns: 1fr auto; gap: 6px 16px; padding: 16px; }
  .tariffs__row--head { display: none; }
  .tariffs__n { grid-column: 1 / -1; font-size: 15px; }
  .tariffs__p { font-size: 16px; }
  .newsl { grid-template-columns: 1fr; gap: 10px; }
  .newsl__i { padding: 20px; }
  .map { height: 320px; }
}

/* ===== Поп-ап с формой ===== */
.pop { position: fixed; width: min(560px, calc(100% - 32px)); max-height: calc(100% - 32px); margin: auto; padding: 0; border: 0; border-radius: var(--r); background: var(--bg); color: var(--text); overflow: auto; overscroll-behavior: contain; }
.pop::backdrop { background: rgba(12, 22, 16, .55); }
.pop[open] { animation: pop-in .35s cubic-bezier(.2, .7, .2, 1); }
.pop[open]::backdrop { animation: fade-in .3s ease; }
.pop__close { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--soft); color: var(--text); cursor: pointer; transition: background-color .2s ease; }
.pop__close:hover { background: var(--accent-soft); }
.pop__in { display: grid; gap: 18px; padding: 34px; }
.pop__t { padding-right: 52px; font-size: 23px; font-weight: 700; line-height: 1.25; }
.pop .ticks { margin: 0; gap: 8px; }
.pop .form { padding: 0; box-shadow: none; }
.is-pop body { overflow: hidden; }

/* ===== Анимации ===== */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes photo-in { from { clip-path: inset(0 0 100% 0 round var(--r)); } to { clip-path: inset(0 0 0 0 round var(--r)); } }
@keyframes frame-in { from { opacity: 0; transform: translate(-22px, -22px); } to { opacity: 1; transform: none; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes btn-glare { 0% { background-position: 150% 0; } 28%, 100% { background-position: -50% 0; } }

/* Первый экран анимирует только CSS, один раз при загрузке */
.hero h1, .hero .ticks li, .hero__cta, .hero__trust, .badge, .phero__ico, .phero h1, .phero__lead { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero h1 { animation-delay: .05s; }
.hero .ticks li:nth-child(1) { animation-delay: .2s; }
.hero .ticks li:nth-child(2) { animation-delay: .28s; }
.hero .ticks li:nth-child(3) { animation-delay: .36s; }
.hero__cta { animation-delay: .46s; }
.hero__trust { animation-delay: .56s; }
.hero__ph img { animation: photo-in 1s .1s cubic-bezier(.6, 0, .2, 1) both; }
.hero__frame { animation: frame-in .9s .55s cubic-bezier(.2, .7, .2, 1) both; }
.badge { animation-delay: .85s; }
.phero h1 { animation-delay: .05s; }
.phero__lead { animation-delay: .15s; }

/* Блоки ниже первого экрана появляются при прокрутке (класс ставит скрипт) */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .7s ease var(--d, 0s), transform .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }

/* Мелкие движения интерфейса */
.svc, .doc, .newsl__i { transition: box-shadow .2s ease, transform .25s ease; }
.svc:hover, .doc:hover, .newsl__i:hover { transform: translateY(-3px); }
.svc__ico { transition: background-color .25s ease, color .25s ease; }
.svc:hover .svc__ico { background: var(--accent); color: #fff; }
.case[data-pane]:not([hidden]) { animation: rise .45s cubic-bezier(.2, .7, .2, 1) both; }
.tabs__b { transition: color .2s ease, border-color .2s ease; }
.faq__ico { transition: transform .25s ease; }
.faq[open] p { animation: rise .35s ease both; }
.mm:not([hidden]) { animation: fade-in .25s ease; }
.mm:not([hidden]) .mm__nav > * { animation: rise .45s cubic-bezier(.2, .7, .2, 1) both; }
.mm__nav > :nth-child(2) { animation-delay: .04s; }
.mm__nav > :nth-child(3) { animation-delay: .08s; }
.mm__nav > :nth-child(4) { animation-delay: .12s; }
.mm__nav > :nth-child(5) { animation-delay: .16s; }
.mm__nav > :nth-child(6) { animation-delay: .2s; }
.mm__nav > :nth-child(7) { animation-delay: .24s; }

@media (max-width: 760px) {
  .pop { width: 100%; max-width: none; max-height: 92%; margin: auto 0 0; border-radius: 16px 16px 0 0; }
  .pop[open] { animation: sheet-in .35s cubic-bezier(.2, .7, .2, 1); }
  .pop__in { padding: 26px 20px 30px; }
  .pop__t { font-size: 20px; }
}
@keyframes sheet-in { from { transform: translateY(100%); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
}
