/*
Theme Name: Tik Credit
Theme URI: https://tikcredit.bg
Author: Tik Credit
Description: Custom theme for TikCredit.bg — fast consumer credit landing site.
Version: 1.0.0
Requires PHP: 8.0
License: Proprietary
Text Domain: tikcredit
*/

:root {
  --lime: #A8D42A;
  --lime-light: #C3E85A;
  --green: #6DAA27;
  --green-dark: #4E8F26;
  --black: #0B0B0B;
  --ink: #141614;
  --card-dark: #171a17;
  --white: #ffffff;
  --bg-soft: #F4F7EF;
  --bg-light: #F5F6F3;
  --hero-bg: #060C0D;
  --line: #E3E8DC;
  --text: #1B1F1A;
  --muted: #5E665B;
  --muted-on-dark: #B9C2B4;
  --grad: linear-gradient(135deg, var(--lime) 0%, var(--green) 100%);
  --radius: 18px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  --container: 1200px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  font-feature-settings: "locl" 0;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }
.section { padding: clamp(64px, 8vw, 110px) 0; }
.section-dark { background: var(--black); color: var(--white); }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section-dark .section-head p { color: var(--muted-on-dark); }
.accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--green); margin-bottom: 14px;
}
.section-dark .eyebrow { color: var(--lime); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px; font-weight: 800; font-size: 1rem; line-height: 1;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--grad); color: var(--black); box-shadow: 0 10px 30px rgba(168, 212, 42, 0.3); }
.btn-primary:hover { box-shadow: 0 14px 34px rgba(168, 212, 42, 0.45); }
.btn-outline { border-color: var(--lime); color: var(--lime); background: transparent; }
.btn-outline:hover { background: rgba(168, 212, 42, 0.1); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: #222; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 11, 0.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06); color: var(--white);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 96px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 62px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: 1.45rem; font-weight: 800; letter-spacing: 0.01em; }
.brand-text strong span { color: var(--lime); }
.brand-text small { font-size: 0.68rem; color: var(--muted-on-dark); letter-spacing: 0.2em; text-transform: uppercase; margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 44px; }
.nav ul { display: flex; gap: 30px; }
.nav ul a { display: inline-block; padding: 6px 0; font-size: 0.95rem; font-weight: 600; color: rgba(255,255,255,0.88); border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.nav ul a:hover { color: var(--lime); }
.nav ul a.is-active, .nav li.current-menu-item > a { color: var(--white); border-bottom-color: var(--lime); }
.btn-phone { padding: 15px 30px; font-size: 1.1rem; color: var(--white); border: 1.5px solid var(--lime); background: transparent; }
.btn-phone svg { width: 20px; height: 20px; color: var(--lime); }
.btn-phone:hover { background: rgba(168, 212, 42, 0.1); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--white); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }

/* Hero */
.hero {
  position: relative; color: var(--white); overflow: hidden;
  background: var(--hero-bg) url("assets/img/hero-office.jpg?v=5") right center / cover no-repeat;
  padding: clamp(56px, 6vw, 80px) 0 clamp(150px, 13vw, 190px);
}
/* Darkens only the text side so the photo stays visible right next to it. */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(6,12,13,0.88) 0%, rgba(6,12,13,0.7) 30%, rgba(6,12,13,0.25) 52%, rgba(6,12,13,0) 68%);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 45%; pointer-events: none;
  background: radial-gradient(60% 70% at 70% 100%, rgba(109, 170, 39, 0.16), transparent 70%);
}
.hero .container { position: relative; z-index: 1; }
.hero-copy { max-width: 800px; }
/* On desktop the sign is part of the photo; on phones it is this separate image, floated so text wraps around it. */
.hero-sign { display: none; }
.hero-eyebrow { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.34em; text-transform: uppercase; color: #9AA39E; margin-bottom: 28px; }
.hero-eyebrow span { margin: 0 0.7em; opacity: 0.6; }
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.5rem); line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 30px; }
.hero-accent { position: relative; white-space: nowrap; background: linear-gradient(90deg, #C6EC3A, #7FD65A); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-accent::after { content: ""; position: absolute; left: 0; bottom: -0.1em; width: 48%; height: 2px; background: linear-gradient(90deg, var(--lime), transparent); }
.hero-text { color: #C9D0CC; font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.55; max-width: 560px; margin-bottom: 44px; }
.hero-perks { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 22px 44px; margin-bottom: 44px; }
.hero-perks li { display: flex; flex-direction: column; gap: 14px; font-weight: 600; font-size: 1.02rem; line-height: 1.4; }
.hero-perk-icon { width: 58px; height: 58px; border-radius: 50%; border: 1.5px solid var(--lime); display: grid; place-items: center; color: var(--lime); }
.hero-perk-icon svg { width: 26px; height: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 44px; }
.btn-hero {
  padding: 24px 48px; font-size: 1.12rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--black);
  background: linear-gradient(90deg, #C6EC3A, #7FD65A); box-shadow: 0 14px 40px rgba(150, 214, 58, 0.25);
}
.btn-hero svg { width: 22px; height: 22px; }
.btn-hero:hover { box-shadow: 0 18px 44px rgba(150, 214, 58, 0.4); }
.hero-link { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: 1.02rem; padding-bottom: 4px; border-bottom: 1.5px solid rgba(255,255,255,0.7); transition: color .15s, border-color .15s; }
.hero-link svg { width: 18px; height: 18px; }
.hero-link:hover { color: var(--lime); border-color: var(--lime); }

/* Service area */
.area-band { display: flow-root; background: var(--bg-light); }
.area-card {
  position: relative; z-index: 2; margin-top: -110px; overflow: hidden;
  display: grid; grid-template-columns: auto 1fr minmax(260px, 340px); align-items: center; gap: 28px;
  padding: 40px 44px; border-radius: 20px; color: var(--white);
  background: linear-gradient(100deg, #0E2314 0%, #133019 60%, #15381B 100%);
  border: 1px solid rgba(168, 212, 42, 0.22); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}
.area-icon { width: 68px; height: 68px; border-radius: 50%; border: 1.5px solid var(--lime); display: grid; place-items: center; color: var(--lime); align-self: start; }
.area-icon svg { width: 30px; height: 30px; }
.area-eyebrow { display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lime); margin-bottom: 10px; }
.area-copy h2 { font-size: clamp(1.35rem, 2.3vw, 1.85rem); font-weight: 700; line-height: 1.3; margin-bottom: 14px; }
.area-copy p { margin: 0; color: #D5DDD1; }
.area-map { position: relative; align-self: stretch; min-height: 190px; display: grid; place-items: center; margin: -40px -44px -40px 0; }
.area-map-lines { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(168, 212, 42, 0.18); }
.area-accent { color: var(--lime); white-space: nowrap; }
.area-copy h2::after { content: ""; display: block; height: 2px; margin-top: 18px; max-width: 420px; background: linear-gradient(90deg, var(--lime), rgba(168, 212, 42, 0)); }
.area-circle {
  position: relative; width: 236px; height: 236px; border-radius: 50%; overflow: visible;
  border: 2.5px dashed rgba(168, 212, 42, 0.85);
  background: radial-gradient(circle at 55% 45%, rgba(109, 170, 39, 0.5), rgba(46, 96, 30, 0.35) 55%, rgba(14, 35, 20, 0.6) 100%);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.35);
}
.area-terrain { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; color: rgba(168, 212, 42, 0.32); }
.area-place { position: absolute; display: flex; flex-direction: column; align-items: center; transform: translate(-50%, -24px); z-index: 1; }
.area-pin { color: var(--lime); filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5)); }
.area-pin svg { width: 26px; height: 26px; display: block; }
.area-place.is-main { transform: translate(-50%, -34px); }
.area-place.is-main .area-pin svg { width: 36px; height: 36px; }
.area-city {
  margin-top: 3px; padding: 3px 11px; border-radius: 999px; white-space: nowrap; font-size: 0.85rem; font-weight: 700; line-height: 1.2;
  background: rgba(8, 20, 12, 0.88); border: 1px solid rgba(168, 212, 42, 0.45);
}
.area-place.is-main .area-city { font-size: 1.05rem; padding: 4px 14px; border-color: rgba(168, 212, 42, 0.7); }
.area-badge {
  position: absolute; top: 22%; right: 8%; padding: 5px 12px; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
  background: rgba(8, 20, 12, 0.85); border: 1px solid rgba(255, 255, 255, 0.55);
}

/* Process */
.section-light { background: var(--bg-light); }
#process { padding-top: clamp(56px, 6vw, 80px); }
#process .section-head { margin-bottom: 48px; }
.eyebrow-plain { color: var(--text); font-weight: 600; letter-spacing: 0.3em; }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin: 0; padding: 0; list-style: none; }
.flow-step { position: relative; }
.flow-step:not(:last-child)::after {
  content: ""; position: absolute; top: 26px; right: -34px; width: 28px; height: 20px; opacity: 0.45;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 20' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 10h26M19 3l8 7-8 7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.flow-icon { width: 72px; height: 72px; border-radius: 14px; background: #E7F1DC; color: var(--green-dark); display: grid; place-items: center; margin-bottom: 18px; }
.flow-icon svg { width: 36px; height: 36px; }
.flow-num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--grad); color: var(--black); font-weight: 800; font-size: 0.95rem; margin-bottom: 12px; }
.flow-step h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.flow-step p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* Features */
.features { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.features-intro p { color: var(--muted-on-dark); font-size: 1.05rem; }
.feature-list { display: grid; gap: 30px; }
.feature { display: grid; grid-template-columns: 60px 1fr; gap: 20px; }
.feature-icon { width: 60px; height: 60px; border-radius: 16px; background: rgba(168, 212, 42, 0.12); border: 1px solid rgba(168, 212, 42, 0.3); display: grid; place-items: center; color: var(--lime); }
.feature-icon svg { width: 28px; height: 28px; }
.feature h3 { font-size: 1.2rem; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted-on-dark); }

/* Loyalty */
.loyalty { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.loyalty-card {
  background: var(--black); color: var(--white); border-radius: 28px; padding: 40px; position: relative; overflow: hidden;
  box-shadow: var(--shadow);
}
.loyalty-card::after { content: ""; position: absolute; right: -110px; bottom: -130px; width: 260px; height: 260px; border-radius: 50%; border: 22px solid transparent; border-top-color: var(--lime); border-right-color: var(--green); transform: rotate(-20deg); opacity: .5; pointer-events: none; }
.loyalty-card img { height: 120px; width: auto; margin-bottom: 20px; }
.loyalty-perks { display: grid; gap: 14px; margin-top: 22px; }
.loyalty-perks li { display: flex; gap: 12px; align-items: flex-start; }
.loyalty-perks svg { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 3px; }
.loyalty-text p { color: var(--muted); font-size: 1.05rem; }

/* Apply form */
.apply { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.apply-intro p { color: var(--muted-on-dark); font-size: 1.05rem; }
.apply-points { display: grid; gap: 14px; margin-top: 24px; }
.apply-points li { display: flex; gap: 12px; align-items: flex-start; }
.apply-points svg { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 3px; }
.form-card { background: var(--white); color: var(--text); border-radius: 24px; padding: 36px; box-shadow: var(--shadow); }
.form-notice {
  display: flex; gap: 12px; align-items: flex-start; margin-bottom: 24px; padding: 16px 18px;
  border-radius: 14px; background: rgba(168, 212, 42, 0.16); border: 2px solid var(--green);
  color: var(--text); font-size: 0.95rem; line-height: 1.5;
}
.form-notice svg { flex: 0 0 24px; width: 24px; height: 24px; color: var(--green-dark); margin-top: 1px; }
.form-notice strong { display: block; font-size: 1.02rem; color: var(--black); margin-bottom: 2px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.85rem; font-weight: 800; color: var(--muted); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg-soft); outline: none; transition: border-color .15s, box-shadow .15s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(168, 212, 42, 0.2); background: var(--white); }
.office-pick { grid-column: 1 / -1; border: 0; padding: 0; margin: 0; min-width: 0; }
.office-pick legend { padding: 0; font-size: 0.85rem; font-weight: 800; color: var(--muted); }
.office-pick p { margin: 4px 0 10px; font-size: 0.85rem; color: var(--muted); }
.office-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.office-option {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; cursor: pointer;
  border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg-soft); transition: border-color .15s, box-shadow .15s, background .15s;
}
.office-option input { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green); }
.office-option span { display: flex; flex-direction: column; gap: 2px; }
.office-option strong { color: var(--black); }
.office-option small { font-size: 0.85rem; color: var(--muted); }
.office-option:has(input:checked) { border-color: var(--green); background: rgba(168, 212, 42, 0.12); }
.office-option:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(168, 212, 42, 0.2); }
.input-suffix { position: relative; }
.input-suffix input { padding-right: 44px; -moz-appearance: textfield; }
.input-suffix input::-webkit-outer-spin-button, .input-suffix input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.input-suffix span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-weight: 800; color: var(--muted); pointer-events: none; }
.form-consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.88rem; color: var(--muted); margin: 18px 0 22px; }
.form-consent input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--green); flex: 0 0 18px; }
.field-error { color: #B3261E; font-size: 0.85rem; font-weight: 700; }
.field-error[hidden] { display: none; }
.form-field input.is-invalid { border-color: #B3261E; background: #FDECEC; }
.form-field input.is-invalid:focus { box-shadow: 0 0 0 4px rgba(179, 38, 30, 0.15); }
.form-msg { margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-weight: 700; display: none; }
.form-msg.ok { display: block; background: rgba(168, 212, 42, 0.2); color: var(--green-dark); }
.form-msg.err { display: block; background: #FDECEC; color: #B3261E; }
.hp { position: absolute; left: -9999px; }
/* "Кандидатствай" buttons jump straight to the form; keep it clear of the sticky header. */
#apply-form { scroll-margin-top: calc(var(--header-h, 100px) + 16px); }

/* Cookie notice */
.cookie-bar {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(0,0,0,0.7); overflow-y: auto;
}
.cookie-card {
  width: 100%; max-width: 460px; margin: auto;
  background: var(--ink); color: var(--muted-on-dark); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px; padding: 28px; box-shadow: var(--shadow); font-size: 0.95rem; line-height: 1.55;
}
.cookie-bar[hidden] { display: none; }
body.cookie-locked { overflow: hidden; }
.cookie-bar p { margin: 0 0 14px; }
.cookie-bar a { color: var(--lime); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions .btn { flex: 1; padding: 11px 16px; font-size: 0.9rem; }
.btn-cookie-reject { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.25); }
.btn-cookie-reject:hover { border-color: var(--white); }

/* Contacts */
.contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.contact-card .feature-icon { margin-bottom: 18px; background: rgba(109, 170, 39, 0.1); color: var(--green-dark); }
.contact-card h3 { font-size: 1.15rem; }
.contact-card p { margin: 0; color: var(--muted); }
.contact-card p + p { margin-top: 4px; }
.contact-card a { color: var(--green-dark); font-weight: 800; }

/* CTA banner */
.cta-banner { background: var(--grad); color: var(--black); border-radius: 28px; padding: clamp(36px, 5vw, 60px); display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-banner h2 { margin: 0 0 6px; }
.cta-banner p { margin: 0; font-weight: 700; opacity: .8; }

/* Footer */
.site-footer { background: var(--black); color: var(--muted-on-dark); padding: 64px 0 28px; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer-grid h4 { color: var(--white); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--lime); }
.footer-brand img { height: 110px; width: auto; margin-bottom: 16px; }
.footer-brand p { font-size: 0.95rem; max-width: 340px; }
.footer-legal { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; font-size: 0.8rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-legal p { margin: 0; }

/* Generic page */
.page-hero { background: var(--black); color: var(--white); padding: 60px 0; }
.page-content { padding: 60px 0; max-width: 820px; }
.page-content h2, .page-content h3 { margin-top: 1.4em; }
.page-content h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
.page-content h3 { font-size: 1.1rem; }
.page-content a { color: var(--green-dark); text-decoration: underline; }
.page-content ul { list-style: disc; padding-left: 1.4em; margin: 0 0 1em; }
.page-content ol { padding-left: 1.4em; margin: 0 0 1em; }
.page-content li { margin-bottom: 0.4em; }
.page-content li::marker { color: var(--green); }
.page-updated { color: var(--muted); font-size: 0.9rem; }
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; }
.page-content table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.page-content th, .page-content td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.page-content th { background: var(--bg-soft); font-weight: 800; }

/* Articles ("Съвети") */
.page-hero .eyebrow { margin-bottom: 10px; }
.page-hero-lead { color: var(--muted-on-dark); font-size: 1.1rem; max-width: 640px; margin: 0; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08); }
.post-card-img { display: block; aspect-ratio: 16 / 9; background: var(--black); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; background: var(--grad); color: var(--black); }
.post-card-placeholder svg { width: 48px; height: 48px; opacity: .6; }
.post-card-body { display: flex; flex-direction: column; gap: 8px; padding: 22px; flex: 1; }
.post-card h3 { font-size: 1.15rem; margin: 0; line-height: 1.3; }
.post-card h3 a:hover { color: var(--green-dark); }
.post-card p { color: var(--muted); font-size: 0.95rem; margin: 0; flex: 1; }
.post-card-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--green-dark); margin-top: 6px; }
.post-card-more svg { width: 16px; height: 16px; }
.post-meta { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.page-hero .post-meta { color: var(--muted-on-dark); }
.post-grid-more { text-align: center; margin: 36px 0 0; }
.btn-outline-dark { border-color: var(--black); color: var(--black); background: transparent; }
.btn-outline-dark:hover { background: var(--black); color: var(--white); }
.post-pages { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.post-pages a { min-width: 42px; padding: 9px 14px; text-align: center; border: 1px solid var(--line); border-radius: 12px; font-weight: 700; }
.post-pages a.is-current { background: var(--black); color: var(--white); border-color: var(--black); }

.article-narrow { width: min(820px, 100% - 32px); margin-inline: auto; }
.article-hero { padding: 48px 0 56px; }
.article-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 14px; }
.article-back { display: inline-block; margin-bottom: 18px; color: var(--lime); font-weight: 700; font-size: 0.9rem; }
.article-image { margin: 36px 0 0; border-radius: var(--radius); overflow: hidden; }
.article-image img { width: 100%; }
.article-content { max-width: none; padding: 36px 0 20px; font-size: 1.08rem; line-height: 1.75; }
.article-content p { margin-bottom: 1.1em; }
.article-content h2 { margin-top: 1.8em; }
.article-content img { border-radius: 12px; }
.article-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px 30px; flex-wrap: wrap; background: var(--grad); color: var(--black); border-radius: 24px; padding: 30px 34px; margin: 20px 0 70px; }
.article-cta h2 { font-size: 1.4rem; margin: 0 0 6px; }
.article-cta p { margin: 0; font-weight: 600; opacity: .85; }

/* Responsive */
@media (max-width: 1180px) {
  .nav { gap: 28px; }
  .nav ul { gap: 22px; }
  .btn-phone { padding: 13px 22px; font-size: 1rem; }
}
@media (max-width: 1024px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contacts { grid-template-columns: 1fr; }
  .hero-perks { gap: 22px 28px; }
  .area-card { grid-template-columns: auto 1fr 240px; padding: 32px; }
  .area-map { margin: -32px -32px -32px 0; }
  .flow { gap: 28px; }
  .flow-step:not(:last-child)::after { right: -26px; width: 22px; }
}
/* Tablet & phone: same layout as the mockup (newdesign.jpg), just scaled down.
   Header becomes two rows: logo + phone, then the menu links. */
@media (max-width: 900px) {
  .features, .loyalty, .apply { grid-template-columns: 1fr; }
  .nav-toggle { display: none; }
  .site-header .container { flex-wrap: wrap; min-height: 0; padding-top: 12px; row-gap: 4px; }
  .nav { display: contents; }
  .nav .btn-phone { order: 2; }
  .nav ul { order: 3; width: 100%; justify-content: space-between; gap: 8px; border-top: 1px solid rgba(255,255,255,0.06); }
  .nav ul a { padding: 11px 0 9px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .office-options { grid-template-columns: 1fr; }
  .form-card, .loyalty-card { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cookie-card { padding: 22px; font-size: 0.88rem; }
  .cookie-actions { flex-direction: column-reverse; }
  .post-grid { grid-template-columns: 1fr; }
  .article-hero { padding: 32px 0 40px; }
  .article-content { font-size: 1rem; padding-top: 26px; }
  .article-cta { padding: 24px; }

  /* Header */
  .site-header .container { padding-top: 10px; }
  .brand { gap: 8px; }
  .brand img { height: 44px; }
  .brand-text strong { font-size: 1.05rem; }
  .brand-text small { font-size: 0.52rem; letter-spacing: 0.16em; margin-top: 3px; }
  .btn-phone { padding: 9px 14px; font-size: 0.86rem; gap: 7px; border-width: 1.5px; }
  .btn-phone svg { width: 15px; height: 15px; }
  .nav ul a { font-size: 0.8rem; }

  /* Hero: portrait photo with the wall sign top-right, text over the darker left side */
  .hero {
    background-image: url("assets/img/hero-office-m.jpg?v=3"); background-position: right top;
    padding: 34px 0 118px;
  }
  .hero-sign { display: block; float: right; width: 120px; height: auto; margin: -22px -8px 0 10px; }
  .hero::before {
    background:
      linear-gradient(180deg, rgba(6,12,13,0) 45%, rgba(6,12,13,0.55) 100%),
      linear-gradient(90deg, rgba(6,12,13,0.88) 0%, rgba(6,12,13,0.66) 40%, rgba(6,12,13,0.12) 70%, rgba(6,12,13,0) 100%);
  }
  .hero-eyebrow { font-size: 0.64rem; letter-spacing: 0.24em; margin-bottom: 16px; }
  .hero-eyebrow span { margin: 0 0.45em; }
  .hero h1 { font-size: 2.1rem; line-height: 1.1; margin-bottom: 18px; }
  .hero-accent { white-space: normal; }
  .hero-text { font-size: 0.92rem; max-width: 300px; margin-bottom: 26px; }
  .hero-perks { grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 28px; }
  .hero-perks li { gap: 9px; font-size: 0.7rem; line-height: 1.3; }
  .hero-perk-icon { width: 42px; height: 42px; }
  .hero-perk-icon svg { width: 20px; height: 20px; }
  .hero-actions { gap: 14px 18px; flex-wrap: nowrap; }
  .btn-hero { padding: 15px 18px; font-size: 0.76rem; gap: 8px; letter-spacing: 0.02em; }
  .btn-hero svg { width: 16px; height: 16px; }
  .hero-link { font-size: 0.8rem; gap: 7px; white-space: nowrap; }
  .hero-link svg { width: 14px; height: 14px; }

  /* Service area card: icon | text | map, like the mockup */
  .area-card { margin-top: -92px; grid-template-columns: 40px 1fr 116px; gap: 10px; padding: 18px 14px 18px 16px; border-radius: 16px; }
  .area-icon { width: 40px; height: 40px; }
  .area-icon svg { width: 19px; height: 19px; }
  .area-eyebrow { font-size: 0.55rem; letter-spacing: 0.1em; margin-bottom: 6px; }
  .area-copy h2 { font-size: 0.9rem; line-height: 1.3; margin-bottom: 6px; }
  .area-copy h2 br { display: none; }
  .area-copy p { font-size: 0.7rem; line-height: 1.4; }
  .area-map { min-height: 0; margin: -18px -14px -18px 0; }
  .area-circle { width: 112px; height: 112px; border-width: 1.5px; }
  .area-copy h2::after { margin-top: 8px; height: 1.5px; }
  .area-place { transform: translate(-50%, -13px); }
  .area-place.is-main { transform: translate(-50%, -17px); }
  .area-pin svg, .area-place.is-main .area-pin svg { width: 14px; height: 14px; }
  .area-place.is-main .area-pin svg { width: 18px; height: 18px; }
  .area-city, .area-place.is-main .area-city { margin-top: 1px; padding: 1px 5px; font-size: 0.52rem; border-width: 1px; }
  .area-place.is-main .area-city { font-size: 0.6rem; }
  .area-badge { top: 12%; right: 2px; padding: 2px 6px; font-size: 0.56rem; }

  /* Steps: four in a row with arrows */
  #process { padding: 44px 0 56px; }
  #process .section-head { margin-bottom: 26px; }
  #process .section-head h2 { font-size: 1.3rem; }
  .eyebrow-plain { font-size: 0.68rem; margin-bottom: 8px; }
  .flow { gap: 10px; }
  .flow-step:not(:last-child)::after { top: 17px; right: -10px; width: 10px; height: 10px; }
  .flow-icon { width: 46px; height: 46px; border-radius: 10px; margin-bottom: 10px; }
  .flow-icon svg { width: 22px; height: 22px; }
  .flow-num { width: 20px; height: 20px; font-size: 0.68rem; margin-bottom: 7px; }
  .flow-step h3 { font-size: 0.74rem; line-height: 1.25; margin-bottom: 5px; }
  .flow-step p { font-size: 0.66rem; line-height: 1.4; }
}
/* Small phones (360px class) */
@media (max-width: 380px) {
  .brand img { height: 38px; }
  .brand-text strong { font-size: 0.95rem; }
  .brand-text small { font-size: 0.46rem; }
  .btn-phone { padding: 8px 11px; font-size: 0.8rem; gap: 5px; }
  .nav ul a { font-size: 0.74rem; }
  .hero h1 { font-size: 1.95rem; }
  .hero-sign { width: 106px; }
  .hero-perks { gap: 6px; }
  .hero-perks li { font-size: 0.64rem; }
  .hero-actions { gap: 12px; }
  .btn-hero { padding: 14px 14px; font-size: 0.7rem; }
  .hero-link { font-size: 0.74rem; }
}
