/* =========================================================
   EdilKroton — stylesheet
   Red-and-blue palette (the colours of Crotone): navy, red, cool grey, white.
   ========================================================= */
:root {
  --navy: #0d2250;
  --navy-2: #16357a;
  --red: #d7232f;
  --red-dark: #b01a25;
  --red-light: #fde6e7;
  --stone: #f3f5f9;
  --line: #e1e6ef;
  --white: #ffffff;
  --text: #1c2436;
  --text-muted: #586379;
  --green: #2e7d4f;

  --font-heading: "Manrope", "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 6px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(9, 22, 52, .04), 0 8px 24px rgba(9, 22, 52, .06);
  --shadow-strong: 0 20px 50px rgba(9, 22, 52, .16);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
svg { flex: none; }
a { color: var(--red-dark); text-underline-offset: 3px; }
a:hover { color: var(--red); }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.12;
  margin: 0 0 .55em;
  letter-spacing: -.02em;
  font-weight: 800;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
.container { width: min(100% - 3rem, var(--max)); margin-inline: auto; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; }
.logo { display: flex; align-items: center; gap: .65rem; text-decoration: none; flex-shrink: 0; }
.logo img { width: 42px; height: 42px; border-radius: 6px; }
.brand-lock { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; color: var(--navy); }
.brand-head { display: inline-flex; flex-direction: column; }
.brand-name { font-family: var(--font-heading); font-weight: 800; font-size: 1.45rem; letter-spacing: -.01em; white-space: nowrap; }
.brand-name b { color: var(--red); font-weight: 800; }
.brand-legal { display: flex; align-items: center; gap: .45rem; margin-top: .3rem; font-family: var(--font-body); font-size: .55rem; font-weight: 600; letter-spacing: .42em; text-transform: uppercase; color: var(--text-muted); }
.brand-legal span { margin-right: -.42em; }
.brand-legal::before, .brand-legal::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .45; }
.brand-lock small { display: block; white-space: nowrap; margin-top: .35rem; font-family: var(--font-body); font-size: .72rem; color: var(--text-muted); font-weight: 500; letter-spacing: 0; }

.nav { display: flex; align-items: center; gap: .4rem; }
.nav > ul { list-style: none; display: flex; gap: .1rem; margin: 0; padding: 0; }
.nav li { position: relative; }
.nav a.nav-link {
  display: block; padding: .5rem .7rem; text-decoration: none; color: var(--text);
  font-weight: 500; font-size: .95rem; border-radius: 6px; white-space: nowrap;
}
.nav a.nav-link:hover { background: var(--stone); color: var(--navy); }
.nav a.nav-link.active { color: var(--red-dark); font-weight: 600; }
.nav .has-sub > a::after { content: ""; display: inline-block; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-3px); margin-left: .45rem; opacity: .6; }
.submenu {
  list-style: none; margin: 0; padding: .5rem; position: absolute; top: calc(100% + 8px); left: -.5rem;
  background: var(--white); min-width: 300px; box-shadow: var(--shadow-strong); border: 1px solid var(--line);
  border-radius: var(--radius); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
}
.submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav li:hover > .submenu, .nav li:focus-within > .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu a { display: block; padding: .5rem .8rem; color: var(--text); text-decoration: none; border-radius: 6px; font-size: .93rem; }
.submenu a:hover { background: var(--stone); color: var(--red-dark); }
.header-phone { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; color: var(--navy); text-decoration: none; font-size: .95rem; white-space: nowrap; margin-left: .4rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 6px 0; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.4rem; border-radius: 6px; border: 1.5px solid transparent;
  font-weight: 600; font-size: .97rem; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s; font-family: var(--font-body); line-height: 1.2;
  background: transparent; white-space: nowrap;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); color: var(--white); }
.btn-outline { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-2); color: var(--white); }
.btn-ghost { border-color: var(--line); color: var(--navy); background: var(--white); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-sm { padding: .55rem 1rem; font-size: .9rem; }
.btn-block { width: 100%; }

/* ---------- Photo backgrounds ---------- */
.bg-photo { position: relative; background-size: cover; background-position: center; isolation: isolate; }
.bg-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(9,22,52,.55), rgba(9,22,52,.78)); }
.bg-photo.soft::before { background: linear-gradient(90deg, rgba(9,22,52,.85) 0%, rgba(9,22,52,.55) 55%, rgba(9,22,52,.25) 100%); }
@media (min-width: 1025px) and (prefers-reduced-motion: no-preference) { .bg-fixed { background-attachment: fixed; } }

/* ---------- Hero ---------- */
.hero { color: var(--white); min-height: min(88vh, 820px); display: flex; align-items: flex-end; }
.hero .container { padding: 8rem 0 4.5rem; }
.hero h1 { color: var(--white); max-width: 14em; }
.hero p.lead { font-size: 1.2rem; color: rgba(255,255,255,.85); max-width: 36em; }
.hero .cta-row { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 2.5rem; margin-top: 3.5rem; padding-top: 1.8rem; border-top: 1px solid rgba(255,255,255,.2); }
.hero-facts div { font-size: .92rem; color: rgba(255,255,255,.75); }
.hero-facts strong { display: block; font-family: var(--font-heading); font-size: 1.7rem; color: var(--white); font-weight: 800; letter-spacing: -.02em; }
.eyebrow { display: inline-block; font-weight: 600; font-size: .95rem; color: var(--red); margin-bottom: .7rem; }
.hero .eyebrow, .page-hero .eyebrow, .bg-photo .eyebrow { color: #ff9aa0; }

.page-hero { color: var(--white); padding: 7rem 0 3.5rem; }
.page-hero h1 { color: var(--white); font-size: clamp(2.2rem, 4.6vw, 3.6rem); max-width: 18em; }
.page-hero p { color: rgba(255,255,255,.85); max-width: 44em; font-size: 1.12rem; margin: 0; }
.breadcrumb { font-size: .88rem; margin-bottom: 1.2rem; color: rgba(255,255,255,.65); }
.breadcrumb a { color: rgba(255,255,255,.85); text-decoration: none; }
.breadcrumb a:hover { color: var(--white); text-decoration: underline; }

/* ---------- Sections ---------- */
.section { padding: 6rem 0; }
.section-alt { background: var(--stone); }
.section-dark { background: var(--navy); color: rgba(255,255,255,.78); }
.section-dark h2, .section-dark h3, .bg-photo h2, .bg-photo h3 { color: var(--white); }
.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--text-muted); font-size: 1.1rem; }
.section-dark .section-head p, .bg-photo .section-head p { color: rgba(255,255,255,.78); }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 3rem; flex-wrap: wrap; }
.section-head-row .section-head { margin-bottom: 0; }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4.5rem; align-items: center; }

/* ---------- Trust bar ---------- */
.trust { border-bottom: 1px solid var(--line); }
.trust .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding: 2rem 0; }
.trust-item { display: flex; gap: .9rem; align-items: center; }
.trust-item .ico { color: var(--red); }
.trust-item strong { display: block; color: var(--navy); font-size: 1rem; line-height: 1.25; }
.trust-item span { font-size: .87rem; color: var(--text-muted); }

/* ---------- Card ---------- */
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); transition: box-shadow .25s, border-color .25s; }
.card:hover { box-shadow: var(--shadow); border-color: transparent; }
.card-body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--text-muted); font-size: .97rem; }
.card-body .link-more { margin-top: auto; font-weight: 600; text-decoration: none; display: inline-flex; gap: .4rem; align-items: center; }
.card-body .link-more::after { content: "→"; transition: transform .2s; }
.card:hover .link-more::after { transform: translateX(4px); }
.card-media { aspect-ratio: 4/3; overflow: hidden; background: var(--stone); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-ico { color: var(--red); margin-bottom: 1rem; }

/* Service card with full-height photo */
.service-tile { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 360px; display: flex; align-items: flex-end; color: var(--white); text-decoration: none; isolation: isolate; }
.service-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s ease; }
.service-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(9,22,52,.05) 15%, rgba(9,22,52,.55) 50%, rgba(9,22,52,.94) 100%); }
.service-tile:hover img { transform: scale(1.05); }
.service-tile .inner { padding: 1.6rem; }
.service-tile h3 { color: var(--white); margin-bottom: .35rem; }
.service-tile p { color: rgba(255,255,255,.82); font-size: .95rem; margin: 0 0 .8rem; }
.service-tile .more { font-weight: 600; font-size: .92rem; color: var(--white); }
.service-tile .more::after { content: " →"; }
.service-tile:hover { color: var(--white); }

/* ---------- Images ---------- */
.photo { border-radius: var(--radius); overflow: hidden; background: var(--stone); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-tall { aspect-ratio: 4/5; }
.photo-wide { aspect-ratio: 16/9; }
.photo-stack { position: relative; }
.photo-stack .photo-small { position: absolute; right: -1.5rem; bottom: -2rem; width: 45%; aspect-ratio: 1; border: 6px solid var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-strong); }
.photo-stack .photo-small img { width: 100%; height: 100%; object-fit: cover; }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 240px 240px; gap: 1rem; }
.gallery .photo:first-child { grid-row: span 2; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.stat strong { display: block; font-family: var(--font-heading); font-size: clamp(2.4rem, 4vw, 3.4rem); color: var(--white); line-height: 1; font-weight: 800; letter-spacing: -.03em; margin-bottom: .4rem; }
.stat span { color: rgba(255,255,255,.75); font-size: .95rem; }

/* ---------- Checklist ---------- */
.check-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.check-list li { padding: .35rem 0 .35rem 1.8rem; position: relative; }
.check-list li::before {
  content: ""; position: absolute; left: .2rem; top: .78rem; width: .55rem; height: .95rem;
  border-right: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(40deg) translateY(-50%);
}

/* ---------- Before / after ---------- */
.ba { position: relative; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; user-select: none; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .ba-before { clip-path: inset(0 50% 0 0); z-index: 2; filter: grayscale(.35); }
.ba .ba-tag { position: absolute; top: 1rem; padding: .3rem .8rem; font-weight: 600; font-size: .8rem; border-radius: 6px; z-index: 3; background: rgba(9,22,52,.7); color: #fff; backdrop-filter: blur(4px); }
.ba .ba-tag.l { left: 1rem; }
.ba .ba-tag.r { right: 1rem; }
.ba input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 5; margin: 0; }
.ba .ba-line { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; z-index: 4; transform: translateX(-1px); pointer-events: none; }
.ba .ba-line::after {
  content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--navy);
  display: grid; place-items: center; font-weight: 700; font-size: 1rem; box-shadow: var(--shadow-strong);
}

/* ---------- Portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.2rem; }
.filters button {
  border: 1px solid var(--line); background: var(--white); padding: .5rem 1.1rem; border-radius: 6px;
  font-weight: 500; cursor: pointer; font-family: inherit; color: var(--text); font-size: .93rem;
}
.filters button:hover { border-color: var(--navy); }
.filters button.active { border-color: var(--navy); background: var(--navy); color: #fff; }
.project .meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .86rem; color: var(--text-muted); margin-bottom: .6rem; }
.tag { display: inline-block; color: var(--red-dark); font-size: .82rem; font-weight: 600; margin-bottom: .4rem; }
.project.hidden { display: none; }

/* ---------- Reviews ---------- */
.review { background: var(--white); border-radius: var(--radius); padding: 1.8rem; border: 1px solid var(--line); display: flex; flex-direction: column; }
.stars { color: #e3a008; letter-spacing: 2px; font-size: 1rem; }
.review blockquote { margin: .8rem 0 1.4rem; color: var(--text); font-size: 1.02rem; flex: 1; }
.review .who { display: flex; align-items: center; gap: .8rem; font-size: .9rem; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--red-light); color: var(--red-dark); display: grid; place-items: center; font-weight: 700; }
.who small { display: block; color: var(--text-muted); }
.rating-box { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 3rem; flex-wrap: wrap; }
.rating-box strong { font-family: var(--font-heading); font-size: 3.6rem; color: var(--navy); line-height: 1; font-weight: 800; }

/* ---------- Process steps ---------- */
.steps { counter-reset: step; display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 1.2rem; padding: 1.6rem 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--font-heading); font-size: 1.1rem; font-weight: 800; color: var(--red); padding-top: .15rem; }
.step h3 { margin-bottom: .3rem; }
.step p { margin: 0; color: var(--text-muted); }
.steps-h { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.steps-h .step { grid-template-columns: 1fr; border-bottom: 0; padding-top: 1.4rem; gap: .6rem; }
.section-dark .step, .bg-photo .step { border-color: rgba(255,255,255,.15); }
.section-dark .step p, .bg-photo .step p { color: rgba(255,255,255,.72); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-of-type { border-top: 1px solid var(--line); }
.faq-item summary { cursor: pointer; list-style: none; padding: 1.3rem 3rem 1.3rem 0; font-weight: 600; color: var(--navy); position: relative; font-size: 1.05rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 300; color: var(--text-muted); transition: transform .2s; }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item .faq-a { padding: 0 2rem 1.4rem 0; color: var(--text-muted); }
.faq-cat { margin-top: 3rem; }

/* ---------- CTA band ---------- */
.cta-band { color: var(--white); }
.cta-band .container { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: 5.5rem 0; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin: 0 0 .5rem; }
.cta-band p { margin: 0; font-size: 1.12rem; color: rgba(255,255,255,.82); max-width: 36em; }
.cta-band .actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ---------- Form ---------- */
.form { background: var(--white); padding: 2.2rem; border-radius: var(--radius); box-shadow: var(--shadow-strong); border: 1px solid var(--line); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 500; font-size: .88rem; margin-bottom: .35rem; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .95rem; border: 1px solid #cfd6e2; border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem; background: var(--white); color: var(--text); transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(215,35,47,.12); }
.field textarea { min-height: 130px; resize: vertical; }
.field-check { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: var(--text-muted); margin-bottom: 1.3rem; }
.field-check input { margin-top: .35rem; accent-color: var(--red); }
.form-msg { display: none; margin-top: 1rem; padding: 1rem; border-radius: var(--radius-sm); background: #e8f4ec; color: var(--green); font-weight: 500; }
.form-msg.show { display: block; }
.form-msg.form-error { background: var(--red-light); color: var(--red-dark); }
/* Honeypot field against spam: invisible to people */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* File upload (dropzone) */
.upload { position: relative; border: 1.5px dashed #b9c3d6; border-radius: var(--radius-sm); background: var(--stone); transition: border-color .15s, background .15s, box-shadow .15s; }
.upload:hover, .upload.drag { border-color: var(--red); background: var(--red-light); }
.upload:focus-within { border-color: var(--red); box-shadow: 0 0 0 4px rgba(215,35,47,.12); }
.field .upload input { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.upload-empty, .upload-file { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; font-size: .95rem; line-height: 1.4; color: var(--text-muted); }
.upload-empty b, .upload-file b { color: var(--text); font-weight: 600; }
.upload-empty b { color: var(--red); }
.upload small { display: block; font-size: .8rem; color: var(--text-muted); margin-top: .15rem; }
.upload-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--white); color: var(--navy); box-shadow: var(--shadow); flex: none; }
.upload-file { display: none; }
.upload-file > span:nth-child(2) { flex: 1; min-width: 0; }
.upload-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-remove { position: relative; z-index: 2; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--text-muted); cursor: pointer; }
.upload-remove:hover, .upload-remove:focus-visible { background: var(--white); color: var(--red); outline: none; }
.upload.has-file { border-style: solid; border-color: var(--green); background: #eef7f1; }
.upload.has-file .upload-empty { display: none; }
.upload.has-file .upload-file { display: flex; }
.upload.has-file .upload-icon { color: var(--green); }
.upload-error { display: none; margin: .4rem 0 0; font-size: .85rem; color: var(--red-dark); }
.upload-error.show { display: block; }

.contact-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.contact-list li { display: flex; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.contact-list .ico { color: var(--red); padding-top: .15rem; }
.contact-list strong { display: block; color: var(--navy); font-weight: 600; }
.map { aspect-ratio: 16/10; border-radius: var(--radius); overflow: hidden; position: relative; display: grid; place-items: center; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-link { margin-top: .7rem; }
.map-link a { display: inline-flex; gap: .45rem; align-items: center; font-weight: 600; color: var(--navy); }
.map .pin { background: #fff; padding: .8rem 1.2rem; border-radius: 6px; font-weight: 600; box-shadow: var(--shadow-strong); color: var(--navy); font-size: .92rem; }

/* ---------- Article / prose ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.8rem; margin-top: 2.6rem; }
.prose h3 { margin-top: 1.8rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.6rem 0; font-size: .96rem; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: .8rem .6rem; text-align: left; }
.prose th { font-weight: 600; color: var(--navy); border-bottom: 2px solid var(--navy); }
.note { background: var(--stone); padding: 1.1rem 1.3rem; border-radius: var(--radius-sm); font-size: .95rem; margin: 1.6rem 0; color: var(--text-muted); }
.note strong { color: var(--navy); }
.layout-side { display: grid; grid-template-columns: 1fr 340px; gap: 4rem; align-items: start; }
.sidebar { position: sticky; top: 100px; display: grid; gap: 1.2rem; }
.side-box { background: var(--stone); padding: 1.6rem; border-radius: var(--radius); }
.side-box.dark { background: var(--navy); color: rgba(255,255,255,.78); }
.side-box.dark h3 { color: #fff; }
.side-box ul { list-style: none; padding: 0; margin: 0; }
.side-box li a { display: block; padding: .5rem 0; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--line); font-size: .95rem; }
.side-box li:last-child a { border-bottom: 0; }
.side-box li a:hover { color: var(--red-dark); }
.side-box .btn { width: 100%; margin-top: .5rem; }
.post-meta { color: var(--text-muted); font-size: .88rem; margin-bottom: .6rem; display: block; }

.bonus-card { background: var(--white); border-radius: var(--radius); padding: 2rem; border: 1px solid var(--line); }
.bonus-card .perc { font-family: var(--font-heading); font-size: 2.6rem; font-weight: 800; color: var(--red); line-height: 1; letter-spacing: -.03em; }

.value { padding: 0; }
.value .ico { color: var(--red); margin-bottom: 1rem; }
.value p { color: var(--text-muted); }

.team-card .card-media { aspect-ratio: 1; }
.team-card h3 { margin-bottom: .1rem; }
.team-card .role { color: var(--text-muted); font-size: .92rem; }

.certs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.cert { border: 1px solid var(--line); padding: 1.1rem 1.3rem; border-radius: var(--radius-sm); font-weight: 600; color: var(--navy); background: #fff; font-size: .95rem; }
.cert small { display: block; font-weight: 400; color: var(--text-muted); }

.zone-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.zone-list a { background: var(--white); border: 1px solid var(--line); padding: .45rem 1rem; border-radius: 6px; text-decoration: none; color: var(--text); font-weight: 500; font-size: .92rem; }
.zone-list a:hover { border-color: var(--navy); color: var(--navy); }

.job { background: #fff; border-radius: var(--radius); padding: 1.6rem 1.8rem; border: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.job h3 { margin-bottom: .2rem; }
.job .meta { color: var(--text-muted); font-size: .9rem; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(255,255,255,.62); font-size: .93rem; }
.footer .container { padding: 5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 3rem; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1.1rem; letter-spacing: 0; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .5rem; }
.footer a { color: rgba(255,255,255,.62); text-decoration: none; }
.footer a:hover { color: #fff; }
.footer .brand-lock { color: #fff; }
.footer .brand-legal { color: rgba(255,255,255,.65); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 4rem; padding-top: 1.6rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .84rem; }
.footer-bottom a { margin-left: 1.2rem; }
.company-data { font-size: .84rem; line-height: 1.7; margin-top: 1.2rem; color: rgba(255,255,255,.45); }
.demo-note { display: inline-block; margin-top: 1rem; font-size: .8rem; color: rgba(255,255,255,.45); border: 1px solid rgba(255,255,255,.15); padding: .25rem .7rem; border-radius: 6px; }

/* ---------- Floating buttons ---------- */
.fab-bar { display: none; }
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(0,0,0,.2); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); color: #fff; }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; left: 22px; bottom: 22px; z-index: 70; max-width: 400px; background: var(--white); color: var(--text-muted);
  padding: 1.3rem 1.4rem; border-radius: var(--radius); box-shadow: var(--shadow-strong); font-size: .88rem; border: 1px solid var(--line); display: none;
}
.cookie.show { display: block; }
.cookie strong { color: var(--navy); display: block; margin-bottom: .3rem; font-size: .95rem; }
.cookie .btns { display: flex; gap: .5rem; margin-top: 1rem; flex-wrap: wrap; }

/* ---------- "Coming soon" page ---------- */
.soon { min-height: 100vh; display: flex; align-items: center; color: #fff; padding: 3rem 0; }
.soon .container { max-width: 760px; }
.soon .brand-lock { color: #fff; }
.soon-brand { gap: 1rem; }
.soon-brand img { width: 72px; height: 72px; border-radius: 0; filter: drop-shadow(0 4px 10px rgba(0,0,0,.35)); }
.soon-brand .brand-name { font-size: 2.5rem; }
.soon-brand .brand-legal { gap: .75rem; margin-top: .55rem; font-size: .7rem; color: rgba(255,255,255,.7); }
.soon-brand .brand-lock small { margin-top: .6rem; font-size: .92rem; color: rgba(255,255,255,.78); letter-spacing: .01em; }
.soon h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.6rem); margin: 2.5rem 0 1rem; }
.soon p { color: rgba(255,255,255,.82); font-size: 1.15rem; }
.soon-progress { margin: 2.2rem 0; max-width: 460px; }
.soon-progress .bar { height: 6px; background: rgba(255,255,255,.2); border-radius: 6px; overflow: hidden; }
.soon-progress .bar span { display: block; height: 100%; width: 72%; background: var(--red); border-radius: 6px; }
.soon-progress small { display: flex; justify-content: space-between; margin-top: .6rem; color: rgba(255,255,255,.7); font-size: .88rem; }
.soon form { display: flex; gap: .6rem; max-width: 520px; flex-wrap: wrap; }
.soon form input { flex: 1 1 240px; padding: .9rem 1.2rem; border-radius: 6px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.1); color: #fff; font: inherit; }
.soon form input::placeholder { color: rgba(255,255,255,.6); }
.soon form input:focus { outline: none; border-color: #fff; }
.soon .form-msg { flex-basis: 100%; }
.soon-contacts { display: flex; gap: 2rem; flex-wrap: wrap; margin-top: 3rem; padding-top: 1.8rem; border-top: 1px solid rgba(255,255,255,.18); font-size: .95rem; }
.soon-contacts a { color: #fff; text-decoration: none; display: inline-flex; gap: .5rem; align-items: center; }
.soon-contacts a:hover { text-decoration: underline; }

/* ---------- Animations ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .nav-toggle { display: block; }
  .header-phone { display: none; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(380px, 88vw); background: var(--white); flex-direction: column; align-items: stretch;
    padding: 5rem 1.4rem 2rem; box-shadow: var(--shadow-strong); transform: translateX(100%); transition: transform .3s; overflow-y: auto; z-index: 80; height: 100vh;
  }
  .nav.open { transform: none; }
  .nav > ul { flex-direction: column; }
  .nav a.nav-link { font-size: 1.05rem; padding: .7rem .5rem; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 .5rem .8rem; display: none; min-width: 0; }
  .nav li.sub-open > .submenu { display: block; }
  .nav .btn { margin-top: 1.2rem; }
  .nav-close { position: absolute; top: 1.2rem; right: 1.2rem; background: none; border: 0; font-size: 2rem; line-height: 1; cursor: pointer; color: var(--navy); }
  .grid-4, .steps-h { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust .container { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1241px) { .nav-close { display: none; } }
@media (max-width: 900px) {
  body { font-size: 16px; }
  .split, .layout-side { grid-template-columns: 1fr; gap: 3rem; }
  .grid-3, .grid-2, .certs { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 4.5rem 0; }
  .sidebar { position: static; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 160px 160px; }
  .gallery .photo:first-child { grid-column: span 2; grid-row: auto; }
  .photo-stack .photo-small { right: .8rem; bottom: -1.5rem; width: 40%; }
  .hero { min-height: auto; }
  .hero .container { padding: 6rem 0 3.5rem; }
  .hero-facts { gap: 1.5rem 2.5rem; }
}
@media (max-width: 600px) {
  .container { width: min(100% - 2.5rem, var(--max)); }
  .grid-4, .steps-h, .footer-grid, .trust .container, .form-row { grid-template-columns: 1fr; }
  .fab-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--line); padding: .6rem; gap: .6rem; }
  .fab-bar a { padding: .75rem; text-align: center; font-weight: 600; text-decoration: none; border-radius: 6px; }
  .fab-bar a:first-child { background: var(--stone); color: var(--navy); }
  .fab-bar a:last-child { background: var(--red); color: #fff; }
  .wa-float { bottom: 84px; width: 50px; height: 50px; }
  .cookie { left: 10px; right: 10px; bottom: 80px; max-width: none; }
  body { padding-bottom: 68px; }
  .brand-lock small { display: none; }
  .form { padding: 1.5rem; }
}

/* Prevent horizontal overflow */
.split > *, .layout-side > *, .grid > *, .hero .container > * { min-width: 0; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
.prose table { display: block; overflow-x: auto; }
.map .pin { display: inline-flex; gap: .45rem; align-items: center; }
@media (max-width: 1500px) { .header .brand-lock small { display: none; } }
