/* ============================================================
   AQUA IRON HOMES - shared stylesheet
   Used by every page. Page-specific tweaks live in <style> blocks
   inside the relevant page when truly one-off.
   ============================================================ */

:root {
  --white: #ffffff;
  --off-white: #f7f8fa;
  --navy: #0B2545;
  --navy-soft: #13315c;
  --silver: #C9CED6;
  --silver-light: #E6E9EE;
  --silver-dark: #66707E;      /* tuned to ~4.6:1 on white for muted labels */
  --text: #0B2545;
  --text-muted: #4a5568;
  /* warm ember accent pulled from the architectural photography (wood + dusk light) */
  --ember: #BE6A34;
  --ember-soft: rgba(190,106,52,0.12);
  --placeholder: #7a3fbf;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ----- Focus & accent details ----- */
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 3px; }
.btn:focus-visible { outline-offset: 3px; }
.article-body a:not(.btn) { color: var(--navy); text-decoration: underline; text-decoration-color: var(--ember); text-underline-offset: 2px; text-decoration-thickness: 1.5px; }
.article-body a:not(.btn):hover { color: var(--ember); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ----- Photo placeholder ----- */
.photo-placeholder {
  background: var(--off-white);
  border: 2px dashed var(--placeholder);
  color: var(--placeholder);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 24px;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
  border-radius: 6px;
  min-height: 280px;
  letter-spacing: 0.2px;
}
.photo-placeholder.tall { min-height: 420px; }
.photo-placeholder.hero { min-height: 560px; border-radius: 0; border-left: none; border-right: none; background: #1a2740; }
.photo-placeholder.round { border-radius: 50% 50% 50% 12px; min-height: 360px; }
.photo-placeholder.banner { min-height: 420px; border-radius: 0; background: #1a2740; }
.photo-placeholder.subhero { min-height: 340px; border-radius: 0; border-left: none; border-right: none; background: #1a2740; }

/* Real photo drop-in: keeps every layout class, swaps the dashed box for the image */
.photo-placeholder.has-photo {
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: none !important;
  color: transparent;
  font-size: 0;
  letter-spacing: 0;
  padding: 0;
  overflow: hidden;
}

/* ----- Line icons (inline SVG, replace emoji) ----- */
.ic-svg { width: 30px; height: 30px; display: block; color: var(--navy); vertical-align: middle; }
.feature .icon,
.highlight .icon { display: inline-flex; line-height: 0; margin-bottom: 14px; color: var(--navy); }
.feature .icon { justify-content: center; }
.feature .icon .ic-svg { width: 30px; height: 30px; transition: color 0.25s, transform 0.25s; }
.feature:hover .icon .ic-svg { color: var(--ember); transform: translateY(-2px); }
.highlight .icon .ic-svg { width: 28px; height: 28px; }
.highlight .icon { color: var(--ember); }
.contact-detail .ic { display: inline-flex; line-height: 0; color: var(--ember); }
.contact-detail .ic .ic-svg { width: 22px; height: 22px; }

/* ----- Top utility bar ----- */
.topbar {
  background: var(--silver-light);
  border-bottom: 1px solid var(--silver);
  padding: 7px 24px;
  font-size: 12px;
  color: var(--silver-dark);
  text-align: right;
}
.topbar a:hover { color: var(--navy); }

/* ----- Header / nav ----- */
header.nav {
  background: var(--navy);
  color: var(--white);
  padding: 16px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  gap: 20px;
}
.logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 1.8px;
  color: var(--white);
  white-space: nowrap;
  flex-shrink: 0;
}
.logo span { color: var(--silver); }

nav.main-nav { display: flex; align-items: center; gap: 8px; }
nav.main-nav ul { list-style: none; display: flex; align-items: center; gap: 4px; }
nav.main-nav a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 12.5px;
  color: var(--white);
  font-weight: 500;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
nav.main-nav a:hover { background: rgba(255,255,255,0.08); color: var(--silver); }
nav.main-nav a.active { color: var(--silver); background: rgba(255,255,255,0.06); }
nav.main-nav .cta-link {
  margin-left: 12px;
  padding: 10px 18px;
  border: 1.5px solid var(--white);
  border-radius: 4px;
  font-weight: 600;
}
nav.main-nav .cta-link:hover { background: var(--white); color: var(--navy); }
nav.main-nav .cta-link.active { background: var(--white); color: var(--navy); }

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  justify-content: center;
  align-items: center;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 0.25s, opacity 0.25s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  cursor: pointer;
  border: 1.5px solid var(--navy);
  background: transparent;
  color: var(--navy);
  transition: all 0.25s;
  text-align: center;
  line-height: 1.2;
}
.btn:hover { background: var(--navy); color: var(--white); }
.btn.dark { background: var(--navy); color: var(--white); }
.btn.dark:hover { background: var(--navy-soft); border-color: var(--navy-soft); }
.btn.light { border-color: var(--white); color: var(--white); background: transparent; }
.btn.light:hover { background: var(--white); color: var(--navy); }

/* ----- Sub-page hero (interior pages) ----- */
.page-hero {
  position: relative;
  color: var(--white);
  text-align: center;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(11,37,69,0.35) 0%, rgba(11,37,69,0.65) 100%);
}
.page-hero .eyebrow-light {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 14px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.page-hero h1 {
  font-size: clamp(30px, 4.6vw, 50px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
  text-shadow: 0 2px 14px rgba(0,0,0,0.4);
  line-height: 1.12;
  max-width: 900px;
  margin-bottom: 16px;
}
.page-hero p {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--white);
  font-weight: 400;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  max-width: 720px;
}

/* ----- Breadcrumbs ----- */
.breadcrumbs {
  background: var(--off-white);
  border-bottom: 1px solid var(--silver-light);
  font-size: 12.5px;
  color: var(--silver-dark);
  padding: 12px clamp(20px, 4vw, 32px);
  letter-spacing: 0.4px;
}
.breadcrumbs .container { max-width: 1140px; margin: 0 auto; }
.breadcrumbs a:hover { color: var(--navy); }
.breadcrumbs span { color: var(--silver-dark); }
.breadcrumbs .here { color: var(--navy); font-weight: 600; }

/* ----- Home hero ----- */
.hero { position: relative; color: var(--white); text-align: center; overflow: hidden; }
.hero .photo-placeholder.hero { position: absolute; inset: 0; height: 100%; min-height: 0; }
.hero-overlay {
  position: relative;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 70px 24px;
  background: linear-gradient(180deg, rgba(11,37,69,0.25) 0%, rgba(11,37,69,0.55) 100%);
}
.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  margin-bottom: 18px;
  color: var(--white);
  letter-spacing: -0.5px;
  text-shadow: 0 2px 14px rgba(0,0,0,0.4);
  line-height: 1.1;
  max-width: 900px;
}
.hero p {
  font-size: clamp(15px, 2vw, 18px);
  margin-bottom: 28px;
  color: var(--white);
  font-weight: 400;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  max-width: 700px;
}
.hero .btn { background: var(--white); color: var(--navy); border-color: var(--white); }
.hero .btn:hover { background: var(--navy); color: var(--white); border-color: var(--white); }
.hero-actions { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.hero .btn.light { background: var(--navy); color: var(--white); border-color: var(--white); }
.hero .btn.light:hover { background: var(--navy-soft); color: var(--white); border-color: var(--white); }

/* ----- Sections ----- */
section { padding: clamp(50px, 8vw, 90px) clamp(20px, 4vw, 32px); }
.container { max-width: 1140px; margin: 0 auto; }

h2 { font-family: 'Montserrat', sans-serif; color: var(--navy); font-weight: 700; letter-spacing: -0.3px; }
h3 { font-family: 'Montserrat', sans-serif; color: var(--navy); font-weight: 700; }
p { color: var(--text-muted); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
.two-col h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 22px; line-height: 1.2; }
.two-col p { margin-bottom: 16px; font-size: 15px; }

/* ----- Section heading helper ----- */
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(40px, 6vw, 56px); }
.section-head .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 16px; }
.section-head p { font-size: 15px; }

/* ----- Models ----- */
.houses-section { background: var(--off-white); padding-top: 0; }
.houses-wrap {
  background: var(--white);
  border-radius: 10px;
  padding: clamp(40px, 6vw, 70px) clamp(22px, 4vw, 50px);
  margin-top: 30px;
  box-shadow: 0 4px 24px rgba(11,37,69,0.06);
}
.houses-wrap > h2 { text-align: center; font-size: clamp(26px, 3.2vw, 34px); margin-bottom: clamp(40px, 6vw, 60px); }
.house-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 50px);
  margin-bottom: clamp(40px, 6vw, 60px);
  align-items: center;
}
.house-row.reverse .text { order: 2; }
.house-row.reverse .img { order: 1; }
.house-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--silver-dark);
  margin-bottom: 8px;
}
.house-row h3 {
  font-size: clamp(22px, 2.8vw, 28px);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.house-row p { font-size: 14.5px; margin-bottom: 24px; }

.start-cta { text-align: center; padding: 60px 0 0; border-top: 1px solid var(--silver-light); margin-top: 20px; }
.start-cta h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 26px; }

/* ----- Model cards grid (overview page + home) ----- */
.model-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 3vw, 34px);
}
.model-card {
  background: var(--white);
  border: 1px solid var(--silver-light);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.model-card:hover { transform: translateY(-5px); box-shadow: 0 14px 36px rgba(11,37,69,0.12); border-color: var(--silver); }
.model-card .photo-placeholder { border-radius: 0; min-height: 240px; border: none; border-bottom: 2px dashed var(--placeholder); }
.model-card .card-body { padding: 28px clamp(22px, 3vw, 32px) 30px; display: flex; flex-direction: column; flex: 1; }
.model-card .house-eyebrow { margin-bottom: 6px; }
.model-card h3 { font-size: clamp(20px, 2.4vw, 26px); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px; }
.model-card p { font-size: 14px; margin-bottom: 22px; flex: 1; }
.model-card .card-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.model-card .spec-pill { font-size: 12px; font-weight: 600; color: var(--silver-dark); letter-spacing: 0.4px; }

/* ----- Spec table (model pages) ----- */
.specs { background: var(--off-white); }
.spec-table {
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(11,37,69,0.06);
}
.spec-table .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 16px clamp(20px, 3vw, 32px);
  border-bottom: 1px solid var(--silver-light);
  font-size: 14.5px;
}
.spec-table .row:last-child { border-bottom: none; }
.spec-table .row .label { color: var(--silver-dark); font-weight: 600; letter-spacing: 0.3px; }
.spec-table .row .value { color: var(--navy); font-weight: 600; }

/* ----- Feature list (model highlights) ----- */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.highlight {
  background: var(--white);
  border: 1px solid var(--silver-light);
  border-radius: 8px;
  padding: 26px 22px;
}
.highlight .icon { font-size: 28px; margin-bottom: 12px; }
.highlight h4 { font-size: 15px; color: var(--navy); margin-bottom: 8px; letter-spacing: 0.2px; }
.highlight p { font-size: 13.5px; }

/* ----- Material specs (Технология) ----- */
.matspecs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.matspec {
  background: var(--white);
  border: 1px solid var(--silver-light);
  border-top: 3px solid var(--ember);
  border-radius: 10px;
  padding: 26px 22px;
}
.matspec .val { font-size: 32px; font-weight: 800; color: var(--navy); letter-spacing: -0.5px; line-height: 1.05; }
.matspec .val small { font-size: 15px; font-weight: 700; color: var(--silver-dark); letter-spacing: 0; }
.matspec .lbl { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--ember); margin: 12px 0 8px; }
.matspec p { font-size: 13px; margin: 0; }
.matnote {
  display: flex; gap: 16px; align-items: flex-start;
  max-width: 820px; margin: 26px auto 0;
  background: var(--ember-soft); border: 1px solid rgba(190,106,52,0.25);
  border-radius: 8px; padding: 20px 24px;
}
.matnote .icon { color: var(--ember); flex-shrink: 0; }
.matnote p { font-size: 14px; margin: 0; }
.matnote strong { color: var(--navy); }
@media (max-width: 700px) { .matspecs { grid-template-columns: 1fr; } }

/* ----- Q&A grid (какво да питате: материали) ----- */
.qa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 900px; margin: 0 auto; }
.qa { background: var(--white); border: 1px solid var(--silver-light); border-radius: 10px; padding: 24px 24px; }
.qa .icon { color: var(--ember); margin-bottom: 12px; display: inline-flex; line-height: 0; }
.qa .icon .ic-svg { width: 26px; height: 26px; color: var(--ember); }
.qa h4 { font-size: 15px; color: var(--navy); margin-bottom: 8px; letter-spacing: 0.2px; }
.qa p { font-size: 13.5px; margin: 0; }
@media (max-width: 700px) { .qa-grid { grid-template-columns: 1fr; } }

/* ----- Pillar band (начало: Технология · Ниска цена · Прецизност) ----- */
.pillar-band { background: var(--navy); }
.pillar-band .container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding-top: 36px; padding-bottom: 36px; }
.pillar-band .pillar { text-align: center; padding: 4px 26px; }
.pillar-band .pillar + .pillar { border-left: 1px solid rgba(255,255,255,0.14); }
.pillar-band .pillar .k { display: block; font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ember); margin-bottom: 10px; }
.pillar-band .pillar h3 { font-size: 20px; color: #fff; margin-bottom: 8px; letter-spacing: 0.3px; }
.pillar-band .pillar p { font-size: 13px; color: var(--silver); margin: 0; }
@media (max-width: 700px) {
  .pillar-band .container { grid-template-columns: 1fr; }
  .pillar-band .pillar { padding: 20px 16px; }
  .pillar-band .pillar + .pillar { border-left: none; border-top: 1px solid rgba(255,255,255,0.14); }
}

/* ============================================================
   Motion & interaction polish (slight, brand-restrained)
   ============================================================ */
/* softer, navy-tinted header depth */
header.nav { box-shadow: 0 2px 10px rgba(11,37,69,0.14); }

/* tactile buttons: gentle lift on hover, press on active */
.btn { transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.2s cubic-bezier(0.22,1,0.36,1), box-shadow 0.25s; }
.btn.dark:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(11,37,69,0.18); }
.btn:active { transform: translateY(1px); }

/* slow image zoom inside model cards on hover */
.model-card { overflow: hidden; }
.model-card .photo-placeholder { transition: transform 0.6s cubic-bezier(0.22,1,0.36,1); }
.model-card:hover .photo-placeholder { transform: scale(1.05); }

/* spec + Q&A cards lift to match the rest of the card system */
.matspec, .qa { transition: transform 0.28s cubic-bezier(0.22,1,0.36,1), box-shadow 0.28s, border-color 0.28s; }
.matspec:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(11,37,69,0.10); }
.qa:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(11,37,69,0.10); border-color: var(--silver); }
.qa .icon .ic-svg { transition: transform 0.28s cubic-bezier(0.22,1,0.36,1); }
.qa:hover .icon .ic-svg { transform: translateY(-3px); }

@media (prefers-reduced-motion: reduce) {
  .btn, .model-card .photo-placeholder, .matspec, .qa, .qa .icon .ic-svg { transition: none; }
  .btn.dark:hover, .btn:active, .model-card:hover .photo-placeholder,
  .matspec:hover, .qa:hover, .qa:hover .icon .ic-svg { transform: none; box-shadow: none; }
}

/* ----- Gallery (model pages) ----- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-grid .photo-placeholder { min-height: 220px; }
.gallery-grid .photo-placeholder.wide { grid-column: span 2; }

/* ----- Why ----- */
.why { background: var(--silver-light); text-align: center; }
.why h2 { font-size: clamp(26px, 3.2vw, 34px); margin-bottom: 22px; }
.why .lead { max-width: 780px; margin: 0 auto 50px; font-size: 15px; }
.feature-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.feature {
  background: var(--white);
  padding: 28px 16px;
  border-radius: 6px;
  text-align: center;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid transparent;
  transition: all 0.25s;
}
.feature:hover { transform: translateY(-4px); border-color: var(--silver); box-shadow: 0 6px 18px rgba(11,37,69,0.08); }
.feature .icon { font-size: 32px; margin-bottom: 12px; color: var(--navy); }
.feature span { font-size: 12.5px; font-weight: 600; color: var(--navy); letter-spacing: 0.4px; text-transform: uppercase; line-height: 1.3; }

/* ----- Process steps (why page) ----- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step {
  background: var(--white);
  border: 1px solid var(--silver-light);
  border-radius: 8px;
  padding: 30px 24px;
  text-align: left;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--silver);
  margin-bottom: 14px;
  letter-spacing: 1px;
}
.step h4 { font-size: 16px; color: var(--navy); margin-bottom: 10px; }
.step p { font-size: 13.5px; }

/* ----- People ----- */
.people { background: var(--white); }
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--silver-dark);
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
}

/* ----- Team grid ----- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.team-member { text-align: center; }
.team-member .photo-placeholder { border-radius: 8px; min-height: 280px; margin-bottom: 16px; }
.team-member h4 { font-size: 17px; color: var(--navy); margin-bottom: 4px; }
.team-member .role { font-size: 13px; color: var(--silver-dark); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }

/* ----- Custom Projects Slider ----- */
.projects-section {
  background: var(--navy);
  padding: clamp(60px, 8vw, 100px) clamp(20px, 4vw, 32px);
  color: var(--white);
}
.projects-section .container { text-align: center; }
.projects-section .eyebrow { color: var(--silver); margin-bottom: 14px; justify-content: center; }
.projects-section h2 { color: var(--white); font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 16px; }
.projects-section .lead { color: rgba(255,255,255,0.78); font-size: 15px; max-width: 720px; margin: 0 auto 50px; }

.slider {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  background: #1a2740;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.slides {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 320px;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  display: flex;
  align-items: flex-end;
}
.slide.active { opacity: 1; z-index: 2; }
.slide .photo-placeholder {
  position: absolute;
  inset: 0;
  border-radius: 0;
  border: 2px dashed var(--placeholder);
  background: #1a2740;
  min-height: 0;
}
.slide-caption {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 30px clamp(24px, 4vw, 50px);
  background: linear-gradient(180deg, rgba(11,37,69,0) 0%, rgba(11,37,69,0.85) 100%);
  text-align: left;
}
.slide-caption .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--silver);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.slide-caption h3 {
  color: var(--white);
  font-size: clamp(20px, 2.6vw, 28px);
  margin-bottom: 8px;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.slide-caption p {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  margin: 0;
  max-width: 700px;
}

.slider-dots { display: flex; justify-content: center; gap: 10px; margin-top: 28px; }
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  padding: 0;
}
.dot.active { background: var(--white); transform: scale(1.3); }
.dot:hover { background: var(--silver); }

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  color: var(--navy);
  font-size: 18px;
  font-weight: 700;
  transition: background 0.2s;
}
.slider-arrow:hover { background: var(--white); }
.slider-arrow.prev { left: 14px; }
.slider-arrow.next { right: 14px; }

.projects-cta { margin-top: 40px; }

/* ----- Projects grid (projects page) ----- */
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(22px, 3vw, 32px); }
.project-card {
  background: var(--white);
  border: 1px solid var(--silver-light);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.project-card:hover { transform: translateY(-5px); box-shadow: 0 14px 36px rgba(11,37,69,0.12); }
.project-card .photo-placeholder { border-radius: 0; min-height: 260px; border: none; border-bottom: 2px dashed var(--placeholder); text-align: left; }
.project-card .card-body { padding: 26px clamp(22px, 3vw, 30px) 28px; }
.project-card .tag { display: inline-block; font-size: 11px; font-weight: 700; color: var(--silver-dark); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px; }
.project-card h3 { font-size: 21px; color: var(--navy); margin-bottom: 10px; }
.project-card p { font-size: 14px; }

/* ----- Contact ----- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 64px); align-items: start; }
.contact-info .eyebrow { margin-bottom: 14px; }
.contact-info h2 { font-size: clamp(26px, 3.2vw, 34px); margin-bottom: 20px; line-height: 1.2; }
.contact-info p { font-size: 15px; margin-bottom: 24px; }
.contact-detail { display: flex; gap: 14px; margin-bottom: 18px; align-items: flex-start; }
.contact-detail .ic { font-size: 20px; line-height: 1.4; }
.contact-detail .label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--silver-dark); font-weight: 700; margin-bottom: 2px; }
.contact-detail .val { font-size: 15px; color: var(--navy); font-weight: 500; }

.contact-form {
  background: var(--off-white);
  border: 1px solid var(--silver-light);
  border-radius: 10px;
  padding: clamp(28px, 4vw, 40px);
}
.contact-form .field { margin-bottom: 18px; }
.contact-form label { display: block; font-size: 12.5px; font-weight: 600; color: var(--navy); margin-bottom: 7px; letter-spacing: 0.3px; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--silver);
  border-radius: 5px;
  font-family: inherit;
  font-size: 14px;
  color: var(--navy);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(11,37,69,0.08);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form .btn { width: 100%; margin-top: 6px; }
.contact-form .form-note { font-size: 12px; color: var(--silver-dark); margin-top: 14px; text-align: center; }

/* ----- Map placeholder ----- */
.map-wrap { margin-top: clamp(40px, 6vw, 60px); }
.map-wrap .photo-placeholder { min-height: 320px; }

/* Responsive Google Maps embed */
.map-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 320px;
  border: 1px solid var(--silver-light);
  border-radius: 8px;
  overflow: hidden;
  background: var(--off-white);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 700px) { .map-embed { aspect-ratio: 4 / 3; min-height: 260px; } }

/* ----- Partners ----- */
.partners {
  background: var(--white);
  padding: clamp(40px, 6vw, 60px) clamp(20px, 4vw, 32px);
  border-top: 1px solid var(--silver-light);
  border-bottom: 1px solid var(--silver-light);
}
.partners-row { display: flex; align-items: center; justify-content: center; gap: clamp(24px, 5vw, 70px); flex-wrap: wrap; }
.partners-row > span:first-child {
  font-size: 14px;
  color: var(--silver-dark);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  width: 100%;
  text-align: center;
  margin-bottom: 8px;
}
.partner-logo { font-weight: 800; font-size: clamp(16px, 2vw, 22px); color: var(--navy); letter-spacing: 1.5px; opacity: 0.75; }

/* ----- Footer CTA ----- */
.footer-cta { background: var(--navy); padding: clamp(50px, 8vw, 90px) clamp(20px, 4vw, 32px) 60px; }
.footer-cta-card {
  background: var(--white);
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 56px) clamp(24px, 4vw, 44px);
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
}
.footer-cta-card h2 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 18px; }
.footer-cta-card p { font-size: 15px; margin-bottom: 32px; }
.footer-cta-card .buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ----- Footer ----- */
footer { background: var(--navy); color: var(--white); padding: 50px clamp(20px, 4vw, 32px) 36px; border-top: 1px solid rgba(255,255,255,0.08); }
.footer-grid {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: clamp(30px, 4vw, 48px);
}
.footer-grid h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  margin-bottom: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--silver);
}
.footer-grid ul { list-style: none; }
.footer-grid li { font-size: 13.5px; margin-bottom: 10px; color: rgba(255,255,255,0.78); }
.footer-grid li a:hover { color: var(--silver); }
.footer-grid .logo { font-size: 26px; color: var(--white); margin-bottom: 18px; }
.footer-addr { font-size: 13.5px; color: rgba(255,255,255,0.78); line-height: 1.7; }
.footer-bottom {
  max-width: 1140px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  text-align: center;
  letter-spacing: 0.5px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  nav.main-nav a { padding: 8px 9px; font-size: 11.5px; letter-spacing: 0.4px; }
  nav.main-nav .cta-link { margin-left: 6px; padding: 9px 13px; }
  .feature-row { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1000px) {
  header.nav { padding: 14px 22px; }
  .hamburger { display: flex; }
  nav.main-nav {
    position: fixed;
    top: 64px;
    right: 0;
    left: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 22px 24px;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  nav.main-nav.open { transform: translateY(0); }
  nav.main-nav ul { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  nav.main-nav li { width: 100%; }
  nav.main-nav a {
    display: block;
    padding: 14px 12px;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    border-radius: 0;
  }
  nav.main-nav .cta-link {
    margin: 16px 0 0;
    padding: 14px;
    text-align: center;
    border: 1.5px solid var(--white);
    border-radius: 4px;
  }
  .slider-arrow { width: 36px; height: 36px; font-size: 16px; }
  .highlight-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .two-col, .house-row, .footer-grid, .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .house-row.reverse .text { order: 1; }
  .house-row.reverse .img { order: 2; }
  .feature-row { grid-template-columns: 1fr 1fr; }
  .model-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .highlight-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid .photo-placeholder.wide { grid-column: span 1; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .topbar { font-size: 11px; text-align: center; padding: 6px 16px; }
  .hero-overlay { min-height: 480px; padding: 48px 22px; }
  .hero-actions { flex-direction: column; width: 100%; max-width: 340px; gap: 20px; }
  .hero-actions .btn { width: 100%; }
  .footer-cta-card .buttons { flex-direction: column; }
  .footer-cta-card .buttons .btn { width: 100%; }
  .slides { aspect-ratio: 4 / 3; }
  .slider-arrow.prev { left: 8px; }
  .slider-arrow.next { right: 8px; }
  .spec-table .row { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 420px) {
  .feature-row { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .logo { font-size: 16px; letter-spacing: 1.4px; }
  .hero-overlay { min-height: 440px; padding: 40px 18px; }
  .photo-placeholder { padding: 24px 18px; font-size: 13px; min-height: 240px; }
  .photo-placeholder.tall { min-height: 320px; }
}

/* ============================================================
   TECHNOLOGY - comparison table
   ============================================================ */
.compare { overflow-x: auto; }
.compare-table {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(11,37,69,0.06);
  font-size: 14px;
  min-width: 560px;
}
.compare-table th,
.compare-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--silver-light); }
.compare-table thead th { background: var(--navy); color: var(--white); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.6px; font-weight: 700; }
.compare-table thead th.feature-col { background: var(--navy-soft); }
.compare-table tbody th { color: var(--navy); font-weight: 600; font-size: 13.5px; }
.compare-table .yes { color: #1a7f4b; font-weight: 700; }
.compare-table .no { color: var(--silver-dark); }
.compare-table tbody tr:nth-child(even) { background: var(--off-white); }
.compare-table tbody tr:last-child td,
.compare-table tbody tr:last-child th { border-bottom: none; }

/* build-up layers */
.layers { max-width: 760px; margin: 0 auto; }
.layer {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--silver-light);
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 14px;
}
.layer .num { font-size: 22px; font-weight: 800; color: var(--silver); flex-shrink: 0; width: 34px; }
.layer h4 { font-size: 15px; color: var(--navy); margin-bottom: 6px; }
.layer p { font-size: 13.5px; margin: 0; }
.layer.core { border-color: var(--ember); }
.layer.core .num { color: var(--ember); }
.core-tag { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--ember); margin-left: 8px; vertical-align: middle; }

/* ----- Технология: акцентни ценности ----- */
.tech-values { background: var(--navy); }
.tech-values .container { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); padding-top: clamp(46px, 6vw, 64px); padding-bottom: clamp(46px, 6vw, 64px); }
.tech-value { text-align: center; }
.tech-value .icon { display: inline-flex; line-height: 0; margin-bottom: 16px; color: var(--ember); }
.tech-value .icon .ic-svg { width: 40px; height: 40px; color: var(--ember); }
.tech-value h3 { color: #fff; font-size: clamp(21px, 2.6vw, 27px); letter-spacing: 0.3px; margin-bottom: 10px; }
.tech-value p { color: var(--silver); font-size: 14.5px; line-height: 1.6; max-width: 42ch; margin: 0 auto; }
.tech-value + .tech-value { border-left: 1px solid rgba(255,255,255,0.14); }
@media (max-width: 700px) {
  .tech-values .container { grid-template-columns: 1fr; gap: 34px; }
  .tech-value + .tech-value { border-left: none; border-top: 1px solid rgba(255,255,255,0.14); padding-top: 34px; }
}

/* ============================================================
   BLOG - listing + single article
   ============================================================ */
.featured-post {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  align-items: stretch;
  background: var(--white);
  border: 1px solid var(--silver-light);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: clamp(36px, 5vw, 52px);
  transition: transform 0.25s, box-shadow 0.25s;
}
.featured-post:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(11,37,69,0.12); }
.featured-post .photo-placeholder { border-radius: 0; min-height: 300px; border: none; border-right: 2px dashed var(--placeholder); text-align: left; }
.featured-post .fp-body { padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; justify-content: center; }
.post-cat { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--silver-dark); margin-bottom: 12px; }
.featured-post h2 { font-size: clamp(22px, 2.8vw, 30px); margin-bottom: 14px; line-height: 1.2; }
.featured-post p { font-size: 14.5px; margin-bottom: 22px; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 3vw, 30px); }
.post-card {
  background: var(--white);
  border: 1px solid var(--silver-light);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}
.post-card:hover { transform: translateY(-5px); box-shadow: 0 14px 36px rgba(11,37,69,0.12); }
.post-card .photo-placeholder { border-radius: 0; min-height: 180px; border: none; border-bottom: 2px dashed var(--placeholder); text-align: left; }
.post-card .card-body { padding: 24px clamp(20px, 3vw, 26px) 26px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 18px; color: var(--navy); margin-bottom: 10px; line-height: 1.3; }
.post-card p { font-size: 13.5px; margin-bottom: 18px; flex: 1; }
.post-meta { font-size: 12px; color: var(--silver-dark); letter-spacing: 0.3px; }

/* ----- Text-only blog cards (no images) ----- */
.featured-post.text { display: block; border-top: 3px solid var(--ember); }
.featured-post.text .fp-body { padding: clamp(28px, 4vw, 44px); }
.post-card.text { border-top: 3px solid var(--ember); }
.post-card.text .post-cat, .featured-post.text .post-cat { color: var(--ember); }
.post-more { display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--ember); }
.post-card.soon { opacity: 0.68; }
.post-card.soon .post-cat { color: var(--silver-dark); }
.post-card.soon .post-meta { color: var(--ember); font-weight: 700; }
.page-hero.plain { background: var(--navy); }
.page-hero.plain .page-hero-overlay { position: static; min-height: clamp(300px, 38vw, 380px); }

/* single article */
.article { max-width: 760px; margin: 0 auto; }
.article .post-cat { display: block; text-align: center; font-size: 12px; letter-spacing: 2px; margin-bottom: 14px; }
.article h1 { font-size: clamp(26px, 3.6vw, 40px); color: var(--navy); text-align: center; line-height: 1.15; margin-bottom: 18px; letter-spacing: -0.5px; }
.article .article-meta { text-align: center; font-size: 13px; color: var(--silver-dark); margin-bottom: 36px; }
.article-lead { font-size: 17px; color: var(--text); font-weight: 500; line-height: 1.6; margin-bottom: 30px; }
.article-body h2 { font-size: clamp(20px, 2.4vw, 26px); margin: 38px 0 14px; }
.article-body h3 { font-size: 18px; margin: 28px 0 10px; }
.article-body p { font-size: 15.5px; margin-bottom: 18px; line-height: 1.7; }
.article-body ul, .article-body ol { margin: 0 0 18px 22px; }
.article-body li { font-size: 15.5px; color: var(--text-muted); margin-bottom: 8px; line-height: 1.6; }
.article-body blockquote {
  position: relative;
  background: var(--off-white);
  border: 1px solid var(--silver-light);
  border-radius: 12px;
  padding: 30px 30px 26px 34px;
  margin: 28px 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--navy);
  font-style: italic;
}
.article-body blockquote::before {
  content: "\201C";
  position: absolute;
  top: 10px;
  left: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-style: normal;
  font-size: 46px;
  line-height: 1;
  color: var(--ember);
  opacity: 0.55;
}
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body strong { color: var(--navy); }
.article-figure { margin: 26px 0; }
.article-figure .photo-placeholder { min-height: 280px; }
.article-figure figcaption { font-size: 12.5px; color: var(--silver-dark); text-align: center; margin-top: 10px; }

@media (max-width: 1000px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .post-grid { grid-template-columns: 1fr; }
  .featured-post { grid-template-columns: 1fr; }
  .featured-post .photo-placeholder { border-right: none; border-bottom: 2px dashed var(--placeholder); min-height: 220px; }
}
