/*
Theme Name: Счетоконсулт
Theme URI: https://www.schetoconsult.com
Author: Счетоконсулт ООД
Description: Тема на сайта на Счетоконсулт ООД — счетоводни, данъчни и правни услуги, цени и безплатни електронни фактури.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: schetoconsult
*/

:root {
  --ink: #231F20;
  --ink-2: #33302E;
  --muted: #4D4A48;
  --muted-2: #66625F;
  --ground: #F6F4EF;
  --field: #FBFAF7;
  --card: #FFFFFF;
  --line: #E2DED4;
  --line-2: #CFCAC0;
  --orange: #E77817;
  --orange-text: #AD520B;
  --orange-dark: #8A3F06;
  --tint: #FEF1E0;
  --dark-2: #2F2A2B;
  --dark-line: #3A3536;
  --on-dark: #CFCCCA;
  --on-dark-2: #94908D;
  --serif: Lora, Georgia, serif;
  --sans: Onest, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 80px;
  --max: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--ground); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--orange-text); text-decoration: none; }
a:hover { color: var(--orange-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
[hidden] { display: none !important; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 28px; border-radius: 999px; font: inherit; font-weight: 600; font-size: 16px; cursor: pointer; border: 0; white-space: nowrap; transition: background .15s, color .15s; }
.btn-primary { background: var(--orange); color: var(--ink); }
.btn-primary:hover { background: #F08A2E; color: var(--ink); }
.btn-outline { background: transparent; border: 1.5px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { background: var(--ground); color: var(--ink); }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-sm { height: 44px; padding: 0 22px; font-size: 15px; }

.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; letter-spacing: .06em; color: var(--orange-text); text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--orange); }
.eyebrow.plain::before { display: none; }
.eyebrow.center { justify-content: center; }
.eyebrow.center::after { content: ""; width: 28px; height: 2px; background: var(--orange); }
.pill { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .06em; padding: 6px 12px; border-radius: 999px; }
.pill-tint { color: var(--orange-text); background: var(--tint); }
.pill-orange { color: var(--ink); background: var(--orange); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246,244,239,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar { background: var(--ink); color: var(--on-dark); font-size: 13px; }
.topbar .wrap { height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.topbar a { color: var(--on-dark); }
.topbar a:hover { color: #fff; }
.topbar .addr { display: flex; gap: 28px; }
.header-bar { height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 32px; width: auto; display: block; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 24px; }
.main-nav a { color: var(--ink); font-weight: 500; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.main-nav a:hover, .main-nav .current a { color: var(--orange-text); }
.main-nav .current a { font-weight: 600; }
.nav-badge { font-size: 11px; font-weight: 700; color: var(--ink); background: var(--orange); padding: 2px 7px; border-radius: 999px; }
.header-cta { display: flex; align-items: center; gap: 20px; }
.header-cta .phone { font-weight: 600; color: var(--ink); font-size: 15px; white-space: nowrap; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--tint); color: var(--ink); align-items: center; justify-content: center; cursor: pointer; }
.mobile-call { display: none; width: 44px; height: 44px; border-radius: 12px; color: var(--ink); align-items: center; justify-content: center; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 104px; }
.hero .wrap { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: 24px; align-items: center; }
.hero-text { grid-column: span 7; display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-size: 68px; line-height: 1.06; letter-spacing: -.01em; }
.lead { font-size: 20px; line-height: 1.6; color: var(--muted); max-width: 620px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 8px; }
.hero-card { grid-column: 9 / span 4; padding: 36px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 24px 48px -24px rgba(31,26,23,.18); display: flex; flex-direction: column; gap: 22px; }
.hero-card h2 { font-size: 28px; line-height: 1.2; }
.price-big { display: flex; flex-direction: column; gap: 4px; }
.price-big .from { font-size: 15px; color: var(--muted); }
.price-big .amount { display: flex; align-items: baseline; gap: 10px; }
.price-big .amount strong { font-family: var(--serif); font-size: 56px; font-weight: 700; color: var(--orange-text); line-height: 1; }
.price-big .note { font-size: 14px; color: var(--muted-2); }
.divider { height: 1px; background: var(--line); }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; color: var(--ink-2); }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks svg { flex-shrink: 0; margin-top: 2px; }
.link-arrow { font-weight: 600; font-size: 15px; }

/* ---------- Facts ---------- */
.facts { padding: 40px 48px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 24px; }
.fact { display: flex; flex-direction: column; gap: 6px; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line); }
.fact strong { font-family: var(--serif); font-size: 44px; font-weight: 700; line-height: 1.1; }
.fact span { font-size: 15px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 120px 0 112px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: 56px; }
.section-head .titles { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.section h2, .h2 { font-size: 48px; line-height: 1.12; }
.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.card { padding: 36px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; }
.card h3 { font-size: 24px; }
.card p { font-size: 16px; line-height: 1.6; color: var(--muted); }
.card.dark { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.card.dark p { color: var(--on-dark); }
.card.dark .icon { background: var(--dark-2); }
.card .icon { width: 52px; height: 52px; border-radius: 14px; background: var(--tint); display: flex; align-items: center; justify-content: center; }
.card .push { margin-top: auto; }

.band { border-radius: 28px; background: var(--ink); color: var(--ground); padding: 64px; display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: 24px; align-items: center; }
.band .band-text { grid-column: span 6; display: flex; flex-direction: column; gap: 22px; }
.band h2 { font-size: 44px; line-height: 1.14; }
.band p { font-size: 18px; line-height: 1.65; color: var(--on-dark); }
.band .band-aside { grid-column: 8 / span 5; }
.mini-invoice { padding: 32px; border-radius: 16px; background: #fff; color: var(--ink); display: flex; flex-direction: column; gap: 18px; font-size: 14px; }
.mini-invoice .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.mini-invoice .row > :last-child { white-space: nowrap; }

.principles .wrap { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: 24px; }
.principles .intro { grid-column: span 4; display: flex; flex-direction: column; gap: 16px; }
.principles .intro h2 { font-size: 44px; line-height: 1.14; }
.principles .intro p { font-size: 17px; line-height: 1.65; color: var(--muted); }
.principles .list { grid-column: 6 / span 7; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: 40px; row-gap: 44px; }
.principle { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 2px solid var(--ink); }
.principle .no { font-size: 14px; font-weight: 600; color: var(--orange-text); }
.principle h3 { font-size: 22px; }
.principle p { font-size: 15px; line-height: 1.6; color: var(--muted); }

/* ---------- Contact ---------- */
.contact .wrap { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: 24px; row-gap: 32px; }
.contact .offices { grid-column: span 6; display: flex; flex-direction: column; gap: 20px; }
.contact .offices h2 { font-size: 44px; line-height: 1.14; margin-bottom: 8px; }
.office { padding: 28px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.office h3 { font-size: 22px; }
.office .addr { font-size: 15px; color: var(--muted); }
.office .phones { display: flex; gap: 20px; flex-wrap: wrap; font-size: 15px; font-weight: 600; }
.form-card { grid-column: 8 / span 5; padding: 40px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; align-self: start; }
.form-card h3 { font-size: 26px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 500; }
.field input, .field select, .field textarea { height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); font: inherit; font-size: 16px; background: var(--field); color: var(--ink); width: 100%; }
.field textarea { height: auto; padding: 12px 14px; resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(231,120,23,.2); }
.hp { position: absolute; left: -9999px; }
.notice { padding: 14px 16px; border-radius: 10px; font-size: 15px; font-weight: 500; }
.notice.ok { background: #E6F2EA; color: #1E5A35; }
.notice.err { background: #FBE7E4; color: #8A2216; }

/* ---------- Page hero ---------- */
.page-hero { padding: 88px 0 72px; }
.page-hero .wrap { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: 24px; align-items: end; row-gap: 24px; }
.page-hero .titles { grid-column: span 8; display: flex; flex-direction: column; gap: 22px; }
.page-hero h1 { font-size: 60px; line-height: 1.08; }
.page-hero .side { grid-column: 9 / span 4; font-size: 18px; line-height: 1.6; color: var(--muted); }
.page-hero.centered .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.page-hero.centered h1 { max-width: 900px; }
.page-hero.centered .lead { max-width: 720px; }

/* ---------- Services page ---------- */
.chips { display: flex; gap: 10px; flex-wrap: wrap; font-size: 14px; font-weight: 600; }
.chips a { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink); }
.chips a:hover { border-color: var(--ink); }
.service-list { padding: 56px 0 112px; display: flex; flex-direction: column; gap: 24px; }
.service { scroll-margin-top: 140px; padding: 48px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: 24px; row-gap: 28px; }
.service .head { grid-column: span 4; display: flex; flex-direction: column; gap: 14px; }
.service .no { font-size: 14px; font-weight: 600; color: var(--orange-text); }
.service h2 { font-size: 32px; line-height: 1.15; }
.service .head p { font-size: 16px; line-height: 1.6; color: var(--muted); }
.service ul { grid-column: 6 / span 7; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: 32px; row-gap: 14px; font-size: 15px; line-height: 1.5; color: var(--ink-2); align-content: start; }
.service li { display: flex; gap: 10px; }
.service li::before { content: "—"; color: var(--orange-text); font-weight: 700; }

.cta-band { padding: 56px 64px; border-radius: 24px; background: var(--tint); display: flex; align-items: center; justify-content: space-between; gap: 40px; margin-bottom: 112px; }
.cta-band h2 { font-size: 36px; }
.cta-band .btn-row { flex-wrap: nowrap; }
.cta-band p { font-size: 17px; color: var(--muted); margin-top: 10px; }

/* ---------- Prices page ---------- */
.factors { padding: 48px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 28px; }
.factors h2 { font-size: 26px; }
.factors .grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 16px; }
.factor { padding: 20px; border-radius: 14px; background: var(--ground); display: flex; flex-direction: column; gap: 12px; font-size: 15px; font-weight: 600; }
.price-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin: 72px 0 28px; }
.price-head h2 { font-size: 40px; line-height: 1.15; margin-top: 12px; }
.price-head .note { font-size: 14px; color: var(--muted-2); text-align: right; }
.price-tables { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
.price-table { padding: 40px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; }
.price-table.dark { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.price-table .label { font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--muted-2); }
.price-table.dark .label { color: var(--orange); }
.price-table h3 { font-size: 26px; margin: 8px 0 20px; }
.price-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.price-table.dark .price-row { border-color: var(--dark-line); }
.price-row .what { display: flex; flex-direction: column; gap: 2px; }
.price-row .what strong { font-size: 16px; }
.price-row .what small { font-size: 13px; color: var(--muted-2); }
.price-table.dark .price-row .what small { color: #B8B4B1; }
.price-row .val { font-family: var(--serif); font-size: 30px; font-weight: 700; white-space: nowrap; }
.addon { margin-top: 24px; padding: 28px 36px; border-radius: 18px; background: var(--tint); display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.addon .left { display: flex; align-items: center; gap: 20px; }
.addon .ico { width: 52px; height: 52px; border-radius: 14px; background: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.addon h3 { font-size: 22px; }
.addon p { font-size: 15px; color: var(--muted); margin-top: 4px; }
.addon .val { font-family: var(--serif); font-size: 30px; font-weight: 700; white-space: nowrap; }
.offer-cards { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; padding: 48px 0 72px; }
.offer { padding: 40px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 20px; }
.offer .label { font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--muted-2); }
.offer h3 { font-size: 28px; }
.offer .big { font-family: var(--serif); font-size: 34px; font-weight: 700; }
.offer .sub { font-size: 14px; color: var(--muted-2); margin-top: 4px; }
.offer .btn { margin-top: auto; }
.discount { padding: 48px 56px; border-radius: 24px; background: var(--tint); display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.discount .left { display: flex; align-items: center; gap: 32px; }
.discount .pct { font-family: var(--serif); font-size: 64px; font-weight: 700; color: var(--orange-text); line-height: 1; }
.discount h3 { font-size: 28px; }
.discount p { font-size: 16px; line-height: 1.55; color: #5A4A40; max-width: 620px; margin-top: 8px; }
.fineprint { padding: 72px 0 112px; text-align: center; font-size: 15px; color: var(--muted-2); max-width: 720px; margin: 0 auto; }

/* ---------- E-invoice ---------- */
.ef-hero .wrap { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: 24px; row-gap: 32px; align-items: end; }
.ef-hero .titles { grid-column: span 7; display: flex; flex-direction: column; gap: 24px; }
.ef-hero .side { grid-column: 9 / span 4; }
.generator { padding: 40px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: 40px; row-gap: 40px; scroll-margin-top: 140px; }
.gen-form { grid-column: span 5; display: flex; flex-direction: column; gap: 22px; }
.gen-form h2 { font-size: 26px; }
.gen-form .hint { font-size: 14px; color: var(--muted-2); margin-top: 6px; }
.gen-form .two { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.gen-form .box { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 14px; background: var(--ground); }
.gen-form .box-title { font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--muted-2); }
.gen-form .field { font-size: 13px; font-weight: 600; color: var(--muted); gap: 6px; }
.gen-form .field input, .gen-form .field select { height: 44px; font-size: 15px; }
.gen-form .box .field input { background: #fff; }
.vies-row { display: flex; gap: 8px; }
.vies-row input { flex: 1; min-width: 0; }
.vies-row button { height: 44px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--ink); background: #fff; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; white-space: nowrap; }
.vies-row button:disabled { opacity: .6; cursor: wait; }
.vies-msg { font-size: 13px; font-weight: 500; min-height: 18px; }
.vies-msg.ok { color: #1E5A35; } .vies-msg.err { color: #8A2216; }
.lines-head, .line { display: grid; grid-template-columns: minmax(0,1fr) 64px 92px 44px; gap: 8px; align-items: center; }
.lines-head { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--muted-2); }
.line input { min-width: 0; height: 44px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line-2); font: inherit; font-size: 15px; color: var(--ink); background: var(--field); width: 100%; }
.line input.num { text-align: right; }
.line .rm { width: 44px; height: 44px; border: 0; border-radius: 10px; background: var(--ground); color: var(--muted-2); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.lines { display: flex; flex-direction: column; gap: 10px; }
.add-line { align-self: flex-start; height: 44px; padding: 0 16px; border-radius: 10px; border: 1.5px dashed var(--line-2); background: transparent; font: inherit; font-size: 14px; font-weight: 600; color: var(--orange-text); cursor: pointer; }
.gen-preview { grid-column: 6 / span 7; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 120px; align-self: start; }
.invoice { padding: 44px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(31,26,23,.25); display: flex; flex-direction: column; gap: 28px; }
.invoice .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.invoice .title { font-family: var(--serif); font-size: 34px; font-weight: 700; letter-spacing: .04em; }
.invoice .orig { font-size: 13px; font-weight: 600; color: var(--orange-text); letter-spacing: .06em; margin-top: 6px; }
.invoice .meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 14px; color: var(--muted); }
.invoice .meta strong { color: var(--ink); }
.invoice .parties { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; font-size: 14px; line-height: 1.55; }
.invoice .party { display: flex; flex-direction: column; gap: 4px; padding-top: 14px; border-top: 2px solid var(--ink); }
.invoice .party small { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--muted-2); }
.invoice .party strong { font-size: 16px; }
.invoice .party span { color: var(--muted); }
.inv-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.inv-table th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--muted-2); padding: 10px 6px; border-bottom: 1px solid var(--ink); }
.inv-table td { padding: 12px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.inv-table .r { text-align: right; white-space: nowrap; }
.inv-table td.no { color: var(--muted-2); width: 32px; }
.inv-table td.sum { font-weight: 600; }
.invoice .bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.invoice .notes { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); max-width: 300px; }
.totals { width: 300px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.totals .row { display: flex; justify-content: space-between; gap: 12px; }
.totals .row span:first-child { color: var(--muted); }
.totals .grand { padding-top: 12px; margin-top: 4px; border-top: 2px solid var(--ink); align-items: baseline; }
.totals .grand span:first-child { color: var(--ink); font-weight: 600; }
.totals .grand strong { font-family: var(--serif); font-size: 28px; font-weight: 700; color: var(--orange-text); white-space: nowrap; }
.gen-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.gen-actions .btn { height: 52px; padding: 0 24px; }
.features { padding: 112px 0 96px; }
.feature { padding: 32px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.feature .icon { width: 48px; height: 48px; border-radius: 12px; background: var(--tint); display: flex; align-items: center; justify-content: center; }
.feature h3 { font-size: 21px; }
.feature p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.steps { padding: 64px; border-radius: 24px; background: var(--ink); color: var(--ground); display: flex; flex-direction: column; gap: 40px; }
.steps h2 { font-size: 40px; }
.steps .grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 40px; }
.step { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 2px solid var(--orange); }
.step .n { font-family: var(--serif); font-size: 40px; font-weight: 700; color: var(--orange); line-height: 1.2; }
.step h3 { font-size: 22px; }
.step p { font-size: 15px; line-height: 1.6; color: var(--on-dark); }

/* ---------- Generic page ---------- */
.entry { padding: 72px 0 112px; }
.entry .content { max-width: 760px; font-size: 18px; line-height: 1.7; }
.entry .content h2 { font-size: 32px; margin: 1.6em 0 .6em; }
.entry .content p { margin: 0 0 1em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark); padding: 64px 0 40px; }
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: #fff; }
.footer-top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; max-width: 360px; font-size: 15px; line-height: 1.6; }
.footer-brand img { height: 36px; width: auto; align-self: flex-start; }
.footer-cols { display: flex; gap: 72px; font-size: 15px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col .h { color: #fff; font-weight: 600; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--dark-line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--on-dark-2); }

/* ---------- Responsive ---------- */
@media (max-width: 1360px) {
  .header-cta .phone { display: none; }
}
@media (max-width: 1200px) {
  :root { --gutter: 40px; }
  .main-nav ul { gap: 18px; }
  .nav-badge { display: none; }
  .hero h1 { font-size: 56px; }
  .factors .grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 1024px) {
  .topbar .addr span:last-child { display: none; }
  .nav-toggle, .mobile-call { display: inline-flex; }
  .header-cta .btn { display: none; }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--ground); border-bottom: 1px solid var(--line); display: none; padding: 8px var(--gutter) 24px; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav li a { padding: 14px 0; border-bottom: 1px solid var(--line); width: 100%; font-size: 17px; }
  .hero .wrap, .band, .principles .wrap, .contact .wrap, .page-hero .wrap, .ef-hero .wrap, .generator, .service { grid-template-columns: 1fr; }
  .hero-text, .hero-card, .band .band-text, .band .band-aside, .principles .intro, .principles .list, .contact .offices, .form-card, .page-hero .titles, .page-hero .side, .ef-hero .titles, .ef-hero .side, .gen-form, .gen-preview, .service .head, .service ul { grid-column: 1 / -1; }
  .hero-card { max-width: 520px; }
  .hero .wrap, .band, .page-hero .wrap, .ef-hero .wrap { row-gap: 40px; }
  .gen-preview { position: static; }
  .main-nav .nav-badge { display: inline-block; }
  .principles .list { margin-top: 40px; }
  .cards-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .facts { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .price-tables, .offer-cards { grid-template-columns: 1fr; }
  .section-head, .cta-band, .discount, .price-head { flex-direction: column; align-items: flex-start; }
  .price-head .note { text-align: left; }
}
@media (max-width: 720px) {
  :root { --gutter: 20px; }
  .topbar { display: none; }
  .header-bar { height: 68px; }
  .brand img { height: 24px; }
  .hero { padding: 40px 0 48px; }
  .hero h1 { font-size: 38px; line-height: 1.1; }
  .lead { font-size: 17px; }
  .btn-row { flex-direction: column; }
  .btn-row .btn { width: 100%; }
  .hero-card, .card, .office, .form-card, .facts, .factors, .price-table, .offer, .service, .generator, .invoice { padding: 24px; }
  .price-big .amount strong { font-size: 44px; }
  .facts { gap: 20px 16px; }
  .fact + .fact { padding-left: 0; border-left: 0; }
  .fact strong { font-size: 34px; }
  .section { padding: 64px 0 56px; }
  .section h2, .h2, .band h2, .principles .intro h2, .contact .offices h2 { font-size: 30px; line-height: 1.15; }
  .page-hero { padding: 48px 0 40px; }
  .page-hero h1 { font-size: 38px; }
  .cards-3, .principles .list, .service ul, .factors .grid { grid-template-columns: 1fr; }
  .factors .grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .band { padding: 32px 24px; border-radius: 22px; }
  .band .band-aside { display: none; }
  .cta-band .btn-row { flex-wrap: wrap; width: 100%; }
  .principles .list { row-gap: 24px; }
  .service h2 { font-size: 26px; }
  .cta-band, .discount, .steps { padding: 32px 24px; }
  .cta-band h2, .discount h3, .steps h2 { font-size: 26px; }
  .discount .left, .addon, .addon .left { flex-direction: column; align-items: flex-start; }
  .steps .grid { grid-template-columns: 1fr; gap: 28px; }
  .price-row .val, .addon .val { font-size: 24px; }
  .price-head h2 { font-size: 30px; }
  .invoice .parties { grid-template-columns: 1fr; }
  .invoice .bottom { flex-direction: column; align-items: stretch; }
  .totals { width: 100%; }
  .inv-table th:nth-child(4), .inv-table td:nth-child(4) { display: none; }
  .footer-cols { gap: 32px; }
}

/* ---------- Print: only the invoice ---------- */
@media print {
  body * { visibility: hidden; }
  .invoice, .invoice * { visibility: visible; }
  .invoice { position: absolute; left: 0; top: 0; width: 100%; border: 0; box-shadow: none; padding: 0; }
  @page { size: A4; margin: 16mm; }
}

/* ---------- Анимации ---------- */
@keyframes sc-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes sc-in-right { from { opacity: 0; transform: translateX(40px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes sc-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes sc-shine { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.hero-text > *, .page-hero .titles > *, .page-hero .side { animation: sc-up .8s cubic-bezier(.2,.7,.2,1) both; }
.hero-text > *:nth-child(2), .page-hero .titles > *:nth-child(2) { animation-delay: .12s; }
.hero-text > *:nth-child(3), .page-hero .titles > *:nth-child(3) { animation-delay: .24s; }
.hero-text > *:nth-child(4), .page-hero .titles > *:nth-child(4), .page-hero .side { animation-delay: .36s; }
.hero-card { animation: sc-in-right .9s .3s cubic-bezier(.2,.7,.2,1) both, sc-float 6s 1.4s ease-in-out infinite; }
.hero-card .price-big strong { background: linear-gradient(90deg, currentColor 40%, #F5A35A 50%, currentColor 60%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: sc-shine 4s 1.5s ease-in-out infinite; }
.nav-badge { animation: sc-float 2.4s ease-in-out infinite; display: inline-block; }


.card, .service, .price-table, .offer, .feature, .factor, .office, .form-card, .box, .step { transition: transform .3s ease, box-shadow .3s ease, opacity .7s cubic-bezier(.2,.7,.2,1); }
.card:hover, .price-table:hover, .offer:hover, .feature:hover, .factor:hover, .office:hover, .step:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -20px rgba(31,26,23,.25); }
.service:hover { box-shadow: 0 24px 40px -24px rgba(31,26,23,.22); }
.card .icon { transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.card:hover .icon { transform: rotate(-8deg) scale(1.1); }
.principle { transition: border-color .3s; }
.principle:hover { border-top-color: var(--orange-text); }

.btn { transition: background .15s, color .15s, transform .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -10px rgba(31,26,23,.35); }
.btn:active { transform: translateY(0); }
.btn svg, .link-arrow { transition: transform .2s ease; }
.btn:hover svg { transform: translateX(4px); }
.link-arrow { display: inline-block; }
.link-arrow:hover { transform: translateX(4px); }

.main-nav a { position: relative; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--orange-text); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.main-nav a:hover::after, .main-nav .current a::after { transform: scaleX(1); }
.site-header { transition: box-shadow .3s ease; }
.site-header.scrolled { box-shadow: 0 8px 24px -12px rgba(31,26,23,.2); }

html .reveal { opacity: 0; transform: translateY(32px); }
html .reveal.is-in { opacity: 1; transform: none; transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }

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

/* ---------- Карти на офисите ---------- */
.office-map { margin-top: 8px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; background: var(--tint); }
.office-map iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(.25) contrast(1.05); transition: filter .3s ease; }
.office:hover .office-map iframe { filter: none; }
.map-link { font-size: 15px; font-weight: 600; }

/* ---------- Офиси една до друга ---------- */
.contact .offices { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: 24px; row-gap: 20px; align-items: start; }
.contact .offices > .eyebrow, .contact .offices > .h2 { grid-column: 1 / -1; }
.contact .form-card { grid-column: 3 / span 8; }

/* ---------- Е-фактури v2 ---------- */
.doc-types { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.doc-types label { position: relative; cursor: pointer; }
.doc-types input { position: absolute; opacity: 0; pointer-events: none; }
.doc-types span { display: flex; align-items: center; justify-content: center; height: 44px; padding: 0 10px; border-radius: 10px; border: 1.5px solid var(--line-2); background: #fff; font-size: 14px; font-weight: 600; color: var(--muted); text-align: center; transition: border-color .15s, background .15s, color .15s; }
.doc-types label:hover span { border-color: var(--ink); color: var(--ink); }
.doc-types input:checked + span { border-color: var(--orange); background: var(--tint); color: var(--orange-text); }
.doc-types input:focus-visible + span { box-shadow: 0 0 0 3px rgba(231,120,23,.25); }
.gen-form .box-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.box-tools { display: inline-flex; align-items: center; gap: 12px; letter-spacing: 0; }
.remember, .check-field { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.remember input, .check-field input { width: 16px; height: 16px; accent-color: var(--orange); }
.link-btn { border: 0; background: none; padding: 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--orange-text); text-decoration: underline; cursor: pointer; }
.gen-actions .link-btn { font-size: 15px; margin-left: 4px; }
.reason-wrap { display: flex; flex-direction: column; gap: 12px; }
.lines-head, .line { grid-template-columns: minmax(0,1fr) 70px 60px 88px 44px; }
.line input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(231,120,23,.2); }
.gen-send { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.gen-send .field { font-size: 13px; font-weight: 600; color: var(--muted); gap: 6px; }
.gen-send .field input { height: 44px; font-size: 15px; }
.gen-status { font-size: 14px; font-weight: 500; min-height: 20px; color: var(--muted); }
.gen-status.ok { color: #1E5A35; } .gen-status.err { color: #8A2216; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.invoice .meta { text-align: right; }
.invoice .orig:empty { display: none; }
.invoice .ref-line { font-size: 14px; color: var(--muted); padding: 12px 14px; border-radius: 10px; background: var(--ground); }
.invoice .ref-line strong { color: var(--ink); }
.inv-table td.unit { color: var(--muted); white-space: nowrap; }
.totals .bgn { font-size: 13px; }
.invoice .words { font-size: 14px; color: var(--muted); padding-top: 14px; border-top: 1px solid var(--line); }
.invoice .words span { color: var(--ink); font-weight: 600; }
.invoice .signs { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 32px; font-size: 14px; }
.invoice .signs div { display: flex; flex-direction: column; gap: 6px; padding-top: 28px; border-bottom: 1px solid var(--line-2); padding-bottom: 6px; }
.invoice .signs span { color: var(--muted-2); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.invoice .legal-note { font-size: 11px; color: var(--muted-2); line-height: 1.5; }

/* PDF: фиксирана ширина A4, извън екрана */
.pdf-holder { position: fixed; left: -10000px; top: 0; width: 760px; background: #fff; }
.pdf-render { width: 760px; border: 0 !important; box-shadow: none !important; border-radius: 0; padding: 24px !important; animation: none !important; transform: none !important; }
.pdf-render .parties { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
.pdf-render .bottom { flex-direction: row !important; align-items: flex-end !important; }
.pdf-render .totals { width: 300px !important; }
.pdf-render .inv-table th, .pdf-render .inv-table td { display: table-cell !important; }
.pdf-render tr { page-break-inside: avoid; }

@media (max-width: 1024px) {
  .contact .form-card { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .contact .offices { grid-template-columns: 1fr; }
  .gen-send { grid-template-columns: 1fr; }
  .lines-head { display: none; }
  .line { grid-template-columns: repeat(3, minmax(0,1fr)) 44px; }
  .line input[data-k="name"] { grid-column: 1 / -1; }
  .invoice .signs { grid-template-columns: 1fr; gap: 8px; }
  .inv-table th:nth-child(4), .inv-table td:nth-child(4) { display: table-cell; }
  .inv-table th:nth-child(3), .inv-table td:nth-child(3), .inv-table th:nth-child(5), .inv-table td:nth-child(5) { display: none; }
}

/* ---------- Фон с квадратчета ---------- */
html { background: var(--ground); }
body { background: transparent; }
.sc-bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
@media print { .sc-bg { display: none; } }

/* ---------- Езиков превключвател ---------- */
.lang-switch { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 32px; padding: 0 10px; border-radius: 999px; border: 1.5px solid var(--line-2); font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--ink); transition: border-color .2s, color .2s, background .2s; }
.lang-switch:hover { border-color: var(--orange); color: var(--orange-text); background: var(--tint); }

/* ---------- Широка тъмна карта ---------- */
.cards-3 .card.dark.wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 24px; }
.card.dark.wide .txt { display: flex; flex-direction: column; gap: 6px; }
.card.dark.wide .push { margin-top: 0; margin-left: auto; white-space: nowrap; }
@media (max-width: 720px) {
  .cards-3 .card.dark.wide { flex-direction: column; align-items: flex-start; }
  .card.dark.wide .push { margin-left: 0; }
}

/* ---------- Без български локални форми на буквите (запазва досегашния вид) ---------- */
html, body, input, select, textarea, button { font-feature-settings: "locl" 0; }
