/* ============================================================
   Адвокат Петър Тапов — tapov-law.bg
   Модерен минималистичен дизайн
   ============================================================ */

:root {
    --navy: #1a2a40;
    --navy-deep: #12202f;
    --gold: #c9a24b;
    --gold-soft: #d9b86a;
    --ink: #1b1f24;
    --slate: #5a6573;
    --line: #e6e8ec;
    --bg: #ffffff;
    --bg-soft: #f6f7f9;
    --bg-tint: #f0f2f5;
    --radius: 14px;
    --radius-sm: 9px;
    --maxw: 1140px;
    --shadow: 0 18px 50px -22px rgba(18, 32, 47, .35);
    --serif: "Cormorant Garamond", Georgia, serif;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Typography ---------- */
.section-title {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(2rem, 4vw, 2.9rem);
    line-height: 1.12;
    color: var(--navy);
    letter-spacing: -.01em;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .22em;
    font-size: .72rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 14px;
}

.section { padding: clamp(70px, 9vw, 120px) 0; }

.section-head { max-width: 620px; margin-bottom: 56px; }
.section-sub { color: var(--slate); font-size: 1.05rem; margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 100px;
    font-weight: 500;
    font-size: .95rem;
    letter-spacing: .01em;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all .25s ease;
    font-family: var(--sans);
}
.btn-primary {
    background: var(--gold);
    color: var(--navy-deep);
    font-weight: 600;
}
.btn-primary:hover { background: var(--gold-soft); transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(201,162,75,.6); }
.btn-ghost {
    background: transparent;
    border-color: rgba(255,255,255,.35);
    color: #fff;
}
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-block { width: 100%; }
.btn-nav {
    padding: 10px 22px;
    background: var(--navy);
    color: #fff;
}
.btn-nav:hover { background: var(--gold); color: var(--navy-deep); }

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    transition: all .3s ease;
    padding: 18px 0;
}
.site-header.scrolled {
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--line);
    padding: 12px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
    width: 44px; height: 44px;
    display: grid; place-items: center;
    background: var(--navy);
    color: var(--gold);
    border-radius: 11px;
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.15rem;
    flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text strong { font-size: 1.06rem; color: #fff; font-weight: 600; letter-spacing: .01em; }
.logo-text em { font-style: normal; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }

.scrolled .logo-text strong { color: var(--navy); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav-link { font-size: .94rem; font-weight: 500; color: rgba(255,255,255,.85); transition: color .2s; position: relative; }
.nav-link:hover { color: #fff; }
.scrolled .nav-link { color: var(--slate); }
.scrolled .nav-link:hover { color: var(--navy); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2px; background: #fff; transition: .3s; }
.scrolled .nav-toggle span { background: var(--navy); }

/* ---------- Subpages (solid header) ---------- */
.subpage .site-header { background: rgba(255,255,255,.95); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); padding: 12px 0; }
.subpage .site-header .logo-text strong { color: var(--navy); }
.subpage .site-header .nav-link { color: var(--slate); }
.subpage .site-header .nav-link:hover { color: var(--navy); }
.subpage .nav-toggle span { background: var(--navy); }
.subpage .nav.open .nav-link { color: rgba(255,255,255,.9); }
.page-head { padding: 130px 0 50px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.page-head .eyebrow { margin-bottom: 12px; }
.page-head h1 { font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--navy); font-weight: 600; line-height: 1.1; }
.page-head p { color: var(--slate); font-size: 1.05rem; margin-top: 14px; max-width: 600px; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
    padding: 140px 0 80px;
}
.hero-bg {
    position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(1100px 600px at 78% 8%, rgba(201,162,75,.16), transparent 60%),
        linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 60%, #0c1722 100%);
}
.hero-bg::after {
    content: "";
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M0 59h60M59 0v60' stroke='%23ffffff' stroke-opacity='0.03' stroke-width='1'/%3E%3C/svg%3E");
}
.hero-content { max-width: 760px; }
.hero-eyebrow {
    text-transform: uppercase; letter-spacing: .26em; font-size: .76rem;
    font-weight: 600; color: var(--gold); margin-bottom: 22px;
}
.hero-title {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(2.6rem, 6vw, 4.4rem);
    line-height: 1.08;
    letter-spacing: -.015em;
    margin-bottom: 26px;
}
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: rgba(255,255,255,.78); max-width: 560px; margin-bottom: 38px; font-weight: 300; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 64px; }

.hero-meta { display: flex; gap: 48px; flex-wrap: wrap; padding-top: 34px; border-top: 1px solid rgba(255,255,255,.12); }
.hero-meta-item { display: flex; flex-direction: column; }
.hero-meta-item strong { font-family: var(--serif); font-size: 1.8rem; color: var(--gold); font-weight: 600; line-height: 1; }
.hero-meta-item span { font-size: .86rem; color: rgba(255,255,255,.6); margin-top: 6px; }

/* ---------- About ---------- */
.about { background: var(--bg); }
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 70px; align-items: center; }
.about-visual { position: relative; }
.about-portrait {
    aspect-ratio: 4/5;
    border-radius: var(--radius);
    background: linear-gradient(155deg, var(--navy), var(--navy-deep));
    display: grid; place-items: center;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.about-portrait::before {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(500px 400px at 70% 20%, rgba(201,162,75,.18), transparent 60%);
}
.about-portrait span {
    font-family: var(--serif);
    font-size: 6rem;
    font-weight: 700;
    color: var(--gold);
    opacity: .9;
}
.about-badge {
    position: absolute;
    bottom: -22px; right: -16px;
    background: #fff;
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    display: flex; flex-direction: column;
    border: 1px solid var(--line);
}
.about-badge strong { color: var(--gold); font-size: .76rem; text-transform: uppercase; letter-spacing: .18em; }
.about-badge span { font-family: var(--serif); font-size: 1.3rem; color: var(--navy); font-weight: 600; }

.about-text p { color: var(--slate); margin-bottom: 18px; font-size: 1.04rem; }
.about-points { margin: 28px 0 30px; display: grid; gap: 14px; }
.about-points li { position: relative; padding-left: 30px; color: var(--ink); font-size: .98rem; }
.about-points li::before {
    content: "✓";
    position: absolute; left: 0; top: 1px;
    color: var(--gold);
    font-weight: 700;
}
.link-arrow { color: var(--navy); font-weight: 600; border-bottom: 2px solid var(--gold); padding-bottom: 3px; transition: .2s; }
.link-arrow:hover { color: var(--gold); }

/* About — elegant quote + signature */
.about-quote {
    position: relative;
    padding: 30px 34px 34px;
    background: linear-gradient(160deg, #fbfbf9, #f3f1ea);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    border-left: 3px solid var(--gold);
}
.about-quote .quote-mark {
    font-family: var(--serif);
    font-size: 5.5rem;
    line-height: .6;
    color: var(--gold);
    opacity: .35;
    display: block;
    height: 38px;
}
.about-quote blockquote {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.5rem, 2.6vw, 2.05rem);
    line-height: 1.3;
    color: var(--navy);
    margin: 0 0 30px;
}
.signature { border-top: 1px solid var(--line); padding-top: 20px; display: flex; flex-direction: column; }
.sig-name { font-family: "Great Vibes", cursive; font-size: 2.6rem; color: var(--navy); line-height: 1; }
.sig-role { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-top: 6px; }

/* ---------- Services ---------- */
.services { background: var(--bg-soft); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 38px 32px;
    transition: all .3s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-icon {
    width: 54px; height: 54px;
    display: grid; place-items: center;
    background: var(--bg-tint);
    color: var(--navy);
    border-radius: 12px;
    font-size: 1.5rem;
    margin-bottom: 22px;
    transition: .3s;
}
.service-card:hover .service-icon { background: var(--navy); color: var(--gold); }
.service-card h3 { font-family: var(--serif); font-size: 1.5rem; color: var(--navy); font-weight: 600; margin-bottom: 12px; line-height: 1.2; }
.service-card p { color: var(--slate); font-size: .97rem; }

.service-card--cta {
    background: linear-gradient(155deg, var(--navy), var(--navy-deep));
    display: flex; flex-direction: column; justify-content: center;
    border: none;
}
.service-card--cta h3 { color: #fff; }
.service-card--cta p { color: rgba(255,255,255,.72); margin-bottom: 22px; }
.service-card--cta:hover { transform: translateY(-6px); }

/* ---------- Articles ---------- */
.articles { background: var(--bg); }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.article-card {
    display: flex; flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 28px;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.article-tag {
    align-self: flex-start;
    font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 600;
    color: var(--gold);
    background: var(--bg-tint);
    padding: 6px 12px; border-radius: 100px;
    margin-bottom: 18px;
}
.article-card h3 { font-family: var(--serif); font-size: 1.4rem; line-height: 1.22; color: var(--navy); font-weight: 600; margin-bottom: 12px; }
.article-card p { color: var(--slate); font-size: .96rem; flex-grow: 1; margin-bottom: 18px; }
.article-more { color: var(--navy); font-weight: 600; font-size: .92rem; transition: color .2s, transform .2s; }
.article-card:hover .article-more { color: var(--gold); }
.articles-all { text-align: center; margin-top: 44px; }

/* ---------- Single article page ---------- */
.article-page { padding-top: 130px; padding-bottom: 90px; background: var(--bg); }
.article-wrap { max-width: 760px; margin: 0 auto; }
.article-back { display: inline-flex; align-items: center; gap: 6px; color: var(--slate); font-size: .9rem; margin-bottom: 28px; transition: color .2s; }
.article-back:hover { color: var(--gold); }
.article-head { margin-bottom: 36px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.article-head .article-tag { margin-bottom: 20px; }
.article-title { font-family: var(--serif); font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.12; color: var(--navy); font-weight: 600; margin-bottom: 16px; }
.article-meta { color: var(--slate); font-size: .9rem; }
.article-body { font-size: 1.08rem; color: #2c333c; line-height: 1.8; }
.article-body h2 { font-family: var(--serif); font-size: 1.7rem; color: var(--navy); font-weight: 600; margin: 38px 0 14px; }
.article-body h3 { font-size: 1.2rem; color: var(--navy); font-weight: 600; margin: 28px 0 10px; }
.article-body p { margin-bottom: 20px; }
.article-body ul { margin: 0 0 20px; padding-left: 4px; display: grid; gap: 10px; }
.article-body ul li { position: relative; padding-left: 28px; }
.article-body ul li::before { content: "—"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.article-body blockquote { border-left: 3px solid var(--gold); padding: 6px 0 6px 22px; margin: 26px 0; font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--navy); }
.article-cta {
    margin-top: 46px; padding: 32px;
    background: linear-gradient(155deg, var(--navy), var(--navy-deep));
    border-radius: var(--radius); color: #fff; text-align: center;
}
.article-cta h3 { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 10px; color: #fff; }
.article-cta p { color: rgba(255,255,255,.75); margin-bottom: 20px; }

/* ---------- Contact ---------- */
.contact { background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; }
.contact-lead { color: var(--slate); font-size: 1.05rem; margin: 18px 0 34px; }
.contact-list { display: grid; gap: 22px; }
.contact-list li { display: flex; flex-direction: column; gap: 3px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: none; }
.contact-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .18em; color: var(--gold); font-weight: 600; }
.contact-list a, .contact-list span:not(.contact-label) { font-size: 1.12rem; color: var(--navy); font-weight: 500; }
.contact-list a:hover { color: var(--gold); }

.contact-form-wrap {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 40px;
}
.form-row { margin-bottom: 20px; display: flex; flex-direction: column; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { font-size: .86rem; font-weight: 500; color: var(--ink); margin-bottom: 8px; }
.contact-form input,
.contact-form select,
.contact-form textarea {
    font-family: var(--sans);
    font-size: .96rem;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--ink);
    transition: border-color .2s, box-shadow .2s;
    width: 100%;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,162,75,.15);
}
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form input.invalid, .contact-form textarea.invalid { border-color: #d14343; box-shadow: 0 0 0 3px rgba(209,67,67,.12); }

.form-consent .checkbox { flex-direction: row; align-items: flex-start; gap: 10px; font-size: .85rem; color: var(--slate); font-weight: 400; cursor: pointer; }
.form-consent input { width: auto; margin-top: 3px; accent-color: var(--gold); }

.form-status { margin-top: 14px; font-size: .92rem; text-align: center; min-height: 20px; }
.form-status.ok { color: #2e7d4f; }
.form-status.err { color: #d14343; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.7); padding: 54px 0 34px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand strong { display: block; color: #fff; font-size: 1rem; }
.footer-brand span { font-size: .85rem; color: var(--gold); }
.footer-nav { display: flex; gap: 26px; }
.footer-nav a { font-size: .92rem; transition: color .2s; }
.footer-nav a:hover { color: var(--gold); }
.footer-copy { width: 100%; padding-top: 26px; margin-top: 8px; border-top: 1px solid rgba(255,255,255,.1); font-size: .84rem; text-align: center; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .about-visual { max-width: 340px; }
    .services-grid, .articles-grid { grid-template-columns: repeat(2, 1fr); }
    .nav {
        position: fixed; inset: 0 0 0 auto;
        width: min(80vw, 320px);
        background: var(--navy-deep);
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 26px;
        padding: 40px;
        transform: translateX(100%);
        transition: transform .35s ease;
    }
    .nav.open { transform: none; }
    .nav-link { color: rgba(255,255,255,.9) !important; font-size: 1.15rem; }
    .nav-toggle { display: flex; z-index: 110; }
    .nav-toggle.active span { background: #fff; }
    .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ============================================================
   LIVELY / DYNAMIC ENHANCEMENTS
   ============================================================ */

/* --- Animated gradient text --- */
.grad {
    background: linear-gradient(100deg, var(--gold) 0%, #f0d89a 40%, var(--gold-soft) 70%, var(--gold) 100%);
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: shine 5s linear infinite;
}
@keyframes shine { to { background-position: 220% center; } }

/* --- Living gradient hero background --- */
.hero-bg {
    background:
        radial-gradient(1100px 600px at 78% 8%, rgba(201,162,75,.18), transparent 60%),
        linear-gradient(160deg, #1c2e47 0%, var(--navy-deep) 55%, #0b1622 100%);
    background-size: 100% 100%, 200% 200%;
    animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift {
    0%   { background-position: 78% 8%, 0% 0%; }
    100% { background-position: 60% 20%, 100% 100%; }
}

/* --- Floating glow orbs --- */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .5;
    pointer-events: none;
}
.orb-1 { width: 340px; height: 340px; background: rgba(201,162,75,.35); top: 8%; right: 10%; animation: float1 14s ease-in-out infinite; }
.orb-2 { width: 260px; height: 260px; background: rgba(70,120,180,.30); bottom: 12%; right: 28%; animation: float2 17s ease-in-out infinite; }
.orb-3 { width: 200px; height: 200px; background: rgba(201,162,75,.22); top: 40%; left: -40px; animation: float1 20s ease-in-out infinite reverse; }
@keyframes float1 { 50% { transform: translate(-30px, 36px) scale(1.12); } }
@keyframes float2 { 50% { transform: translate(40px, -28px) scale(1.08); } }

/* --- Hero entrance (staggered) --- */
.hero-eyebrow, .hero-title, .hero-lead, .hero-actions, .hero-meta {
    opacity: 0;
    transform: translateY(26px);
    animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero-eyebrow { animation-delay: .15s; }
.hero-title   { animation-delay: .30s; }
.hero-lead    { animation-delay: .48s; }
.hero-actions { animation-delay: .64s; }
.hero-meta    { animation-delay: .80s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* --- Scroll cue --- */
.scroll-cue {
    position: absolute;
    left: 50%; bottom: 26px;
    width: 26px; height: 44px;
    margin-left: -13px;
    border: 2px solid rgba(255,255,255,.45);
    border-radius: 16px;
    display: flex; justify-content: center;
    padding-top: 8px;
    animation: rise 1s 1.1s both;
}
.scroll-cue-dot { width: 4px; height: 8px; border-radius: 4px; background: var(--gold); animation: cue 1.6s ease-in-out infinite; }
@keyframes cue { 0%,100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(12px); opacity: .2; } }

/* --- Buttons: subtle sheen --- */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
    content: ""; position: absolute; top: 0; left: -120%;
    width: 60%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent);
    transform: skewX(-20deg);
    transition: left .6s ease;
}
.btn-primary:hover::after { left: 140%; }

/* --- Service cards: gradient glow border on hover --- */
.service-card { position: relative; }
.service-card::before {
    content: ""; position: absolute; inset: 0;
    border-radius: var(--radius);
    padding: 1px;
    background: linear-gradient(135deg, var(--gold), transparent 55%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0; transition: opacity .35s ease;
}
.service-card:hover::before { opacity: 1; }
.service-card:not(.service-card--cta):hover { background: #fff; }
.service-card:hover .service-icon { transform: rotate(-6deg) scale(1.06); }

/* --- Animated underline under section titles --- */
.section-title { position: relative; }
.section-head .section-title::after,
.about-text .section-title::after {
    content: ""; display: block;
    width: 54px; height: 3px; margin-top: 18px;
    background: linear-gradient(90deg, var(--gold), transparent);
    border-radius: 3px;
}

/* --- Stat number pop --- */
.hero-meta-item strong { transition: transform .3s ease; }

/* --- Map --- */
.map-band { position: relative; }
.map-band iframe {
    display: block; width: 100%; height: 420px; border: 0;
    filter: grayscale(.25) contrast(1.05);
    transition: filter .4s ease;
}
.map-band:hover iframe { filter: grayscale(0) contrast(1); }
.map-pin {
    position: absolute; top: 24px; left: 50%; transform: translateX(-50%);
    background: rgba(18,32,47,.92);
    color: #fff; backdrop-filter: blur(6px);
    padding: 12px 22px; border-radius: 100px;
    font-size: .92rem; font-weight: 500;
    box-shadow: var(--shadow);
    display: flex; align-items: center; gap: 9px;
    border: 1px solid rgba(201,162,75,.4);
}
.map-pin span { color: var(--gold); }

/* ---------- Floating contact buttons ---------- */
.float-contacts {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.fab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 20px;
    border-radius: 100px;
    color: #fff;
    font-weight: 600;
    font-size: .95rem;
    box-shadow: 0 10px 26px -8px rgba(0,0,0,.4);
    transition: transform .2s ease, box-shadow .2s ease;
}
.fab svg { width: 22px; height: 22px; flex-shrink: 0; }
.fab:hover { transform: translateY(-3px); }
.fab-viber { background: #7360f2; animation: viberPulse 2.6s infinite; }
.fab-call { background: var(--navy); }
@keyframes viberPulse {
    0%, 100% { box-shadow: 0 10px 26px -8px rgba(115,96,242,.5), 0 0 0 0 rgba(115,96,242,.45); }
    50%      { box-shadow: 0 10px 26px -8px rgba(115,96,242,.5), 0 0 0 14px rgba(115,96,242,0); }
}
@media (max-width: 560px) {
    .float-contacts { right: 16px; bottom: 16px; }
    .fab span { display: none; }
    .fab { padding: 15px; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; }
    .hero-eyebrow, .hero-title, .hero-lead, .hero-actions, .hero-meta { opacity: 1; transform: none; }
}

@media (max-width: 560px) {
    .services-grid, .articles-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .map-band iframe { height: 320px; }
    .hero-meta { gap: 28px; }
    .contact-form-wrap { padding: 28px 22px; }
    .about-badge { right: 0; }
}

/* ============================================================
   Допълнения за страниците с услуги и статии
   ============================================================ */

.article-body ol {
    margin: 0 0 20px;
    padding-left: 22px;
    display: grid;
    gap: 10px;
    list-style: decimal;
}
.article-body ol li { padding-left: 6px; }
.article-body ol li::marker { color: var(--gold); font-weight: 700; }

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 26px 0;
    font-size: .97rem;
}
.article-body th,
.article-body td {
    text-align: left;
    padding: 13px 15px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}
.article-body th {
    background: var(--bg-tint);
    color: var(--navy);
    font-family: var(--sans);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.article-body tr:last-child td { border-bottom: none; }

.callout {
    border-left: 3px solid var(--gold);
    background: var(--bg-soft);
    padding: 20px 24px;
    margin: 28px 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.callout p { margin-bottom: 0; font-size: 1.02rem; }

.callout-alert {
    border-left-color: #b03a2e;
    background: #fdf3f2;
}

.article-note {
    color: var(--slate);
    font-size: .93rem;
    font-style: italic;
    margin-top: 34px;
}

.article-related-title {
    font-family: var(--serif);
    font-size: 1.5rem;
    color: var(--navy);
    font-weight: 600;
    margin: 46px 0 16px;
}
.article-related { display: grid; gap: 12px; }
.article-related li { position: relative; padding-left: 28px; }
.article-related li::before {
    content: "\2014";
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
}
.article-related a { color: var(--navy); font-weight: 500; transition: color .2s; }
.article-related a:hover { color: var(--gold); }

.article-cta .btn + .btn { margin-left: 10px; }
.article-cta .btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }

@media (max-width: 620px) {
    .article-body table { font-size: .9rem; }
    .article-body th, .article-body td { padding: 10px 11px; }
    .article-cta .btn { width: 100%; }
    .article-cta .btn + .btn { margin: 10px 0 0; }
}
