/* site.css — layout and the three skins of facade-service-pro.com. No framework.
 * A skin is a set of custom properties on <html data-skin="...">; site.js sets it (cookie "skin", default "brand")
 * before the page paints. To add a skin: one block below, one swatch rule, and its name in build.py. */

:root, html[data-skin="brand"] {
  color-scheme: light;
  --bg: #ffffff; --alt: #f4f5fa; --card: #ffffff; --line: #e3e6f0;
  --ink: #1f2a6b; --muted: #4a4e60; --accent: #e89b0c; --accent-text: #a86400;
  --head-bg: #ffffff; --head-ink: #1f2a6b; --head-line: #e3e6f0; --logo: #1f2a6b;
  --btn-bg: #1f2a6b; --btn-ink: #ffffff; --cta-bg: #e89b0c; --cta-ink: #1a1f3d;
  --band: #1f2a6b; --band-ink: #ffffff;
  --font-head: "Manrope", "Inter", system-ui, sans-serif; --head-weight: 800;
  --r: 10px; --btn-r: 6px; --photo-r: 8px; --arch-r: 8px;
}
html[data-skin="night"] {
  color-scheme: dark;
  --bg: #0f1b2d; --alt: #132439; --card: #16293f; --line: #26405c;
  --ink: #f2f4f8; --muted: #a9b6c6; --accent: #e0a458; --accent-text: #e0a458;
  --head-bg: #0b1524; --head-ink: #f2f4f8; --head-line: #26405c; --logo: #ffffff;
  --btn-bg: #e0a458; --btn-ink: #10192a; --cta-bg: #10192a; --cta-ink: #ffffff;
  --band: #e0a458; --band-ink: #10192a;
  --font-head: "Manrope", "Inter", system-ui, sans-serif; --head-weight: 800;
  --r: 4px; --btn-r: 4px; --photo-r: 4px; --arch-r: 4px;
}
html[data-skin="med"] {
  color-scheme: light;
  --bg: #f6efe3; --alt: #eee4d3; --card: #fbf7f0; --line: #e0d3bf;
  --ink: #1f3f4e; --muted: #4c5b62; --accent: #e89b0c; --accent-text: #9a4e24;
  --head-bg: #f6efe3; --head-ink: #1f3f4e; --head-line: #e0d3bf; --logo: #2e5e73;
  --btn-bg: #2e5e73; --btn-ink: #ffffff; --cta-bg: #e89b0c; --cta-ink: #1a1f3d;
  --band: #2e5e73; --band-ink: #ffffff;
  --font-head: "Lora", Georgia, serif; --head-weight: 600;
  --r: 18px; --btn-r: 999px; --photo-r: 18px; --arch-r: 999px 999px 14px 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: var(--head-weight); line-height: 1.08; margin: 0; text-wrap: balance; }
h3 { font-family: inherit; font-weight: 600; line-height: 1.3; }
p { margin: 0; }
.wrap { max-width: 1312px; margin: 0 auto; padding: 0 32px; }
.muted { color: var(--muted); }
.kicker { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); }
.kicker::before { content: ""; width: 28px; height: 3px; background: var(--accent); }
.btn { display: inline-block; text-decoration: none; font-weight: 600; font-size: 16px; padding: 15px 26px; border-radius: var(--btn-r); border: 1px solid transparent; }
.btn-main { background: var(--btn-bg); color: var(--btn-ink); }
.btn-line { border-color: currentColor; }
.btn-cta { background: var(--cta-bg); color: var(--cta-ink); font-weight: 700; }
.btn:hover { filter: brightness(1.08); }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 10; background: var(--head-bg); color: var(--head-ink); border-bottom: 1px solid var(--head-line); }
.site-head .wrap { display: flex; align-items: center; gap: 20px; min-height: 76px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--logo); white-space: nowrap; }
.logo svg { width: 46px; height: 46px; }
.logo b { font-family: "Comfortaa", sans-serif; font-weight: 700; font-size: 24px; }
.logo i { font-family: "Comfortaa", sans-serif; font-weight: 700; font-style: normal; font-size: 15px; color: var(--accent); }
.nav { display: flex; gap: 24px; font-size: 15px; font-weight: 500; margin-left: 12px; white-space: nowrap; }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--accent-text); }
.switches { margin-left: auto; display: flex; align-items: center; gap: 14px; }

/* Language switch (built by site.js): two-letter codes, the current one outlined. */
.lang-switch { display: flex; gap: 2px; }
.lang-switch button { padding: 5px 8px; min-width: 38px; min-height: 32px; border: 1px solid transparent; border-radius: 6px; background: none; color: inherit; font: inherit; font-size: 13px; font-weight: 700; letter-spacing: .06em; cursor: pointer; opacity: .7; }
.lang-switch button:hover { opacity: 1; }
.lang-switch button[aria-checked="true"] { border-color: currentColor; opacity: 1; }

/* Skin switch (built by site.js): one swatch per skin, the current one shows its name. */
.skin-switch { display: flex; align-items: center; gap: 4px; }
.skin-switch button { display: inline-flex; align-items: center; gap: 6px; padding: 4px; min-height: 32px; border: 1px solid transparent; border-radius: 999px; background: none; color: inherit; font: inherit; font-size: 13px; line-height: 1; cursor: pointer; }
.skin-switch button[aria-checked="true"] { border-color: currentColor; padding-right: 10px; }
.skin-switch .skin-name { display: none; }
.skin-switch button[aria-checked="true"] .skin-name { display: inline; }
.skin-switch .swatch { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(128,128,128,.6); }
.skin-switch [data-skin-option="brand"] .swatch { background: linear-gradient(135deg, #ffffff 50%, #1f2a6b 50%); }
.skin-switch [data-skin-option="night"] .swatch { background: linear-gradient(135deg, #0f1b2d 50%, #e0a458 50%); }
.skin-switch [data-skin-option="med"] .swatch   { background: linear-gradient(135deg, #f6efe3 50%, #2e5e73 50%); }

/* ---------- hero: split layout (brand, med) or full photo (night) ---------- */
.hero-full { display: none; position: relative; min-height: 680px; overflow: hidden; }
html[data-skin="night"] .hero-full { display: block; }
html[data-skin="night"] .hero-split { display: none; }
.hero-full > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-full::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,18,32,.94) 0%, rgba(10,18,32,.78) 45%, rgba(10,18,32,.15) 100%); }
.hero-full .wrap { position: relative; z-index: 1; min-height: 680px; display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.hero-full h1 { font-size: clamp(38px, 5vw, 64px); max-width: 760px; color: #fff; }
.hero-full p { max-width: 560px; font-size: 19px; color: #c9d2de; }
.hero-full .btn-line { color: #fff; border-color: rgba(255,255,255,.55); }

.hero-split .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 48px; padding-bottom: 24px; }
.hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero-text h1 { font-size: clamp(36px, 4.4vw, 56px); }
.hero-text p { font-size: 18px; color: var(--muted); max-width: 560px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.hero-photos { flex: 0 1 640px; min-width: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: repeat(2, 240px); gap: 12px; }
.hero-photos img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--photo-r); }
.hero-photos .p1 { grid-column: span 3; grid-row: span 2; border-radius: var(--arch-r); }
.hero-photos .p2, .hero-photos .p3 { grid-column: span 2; }
.hero-photos .p3 { object-position: center 30%; }
html[data-skin="med"] .hero-photos { grid-template-rows: repeat(2, 280px); }

/* ---------- sections ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; border-top: 1px solid var(--line); padding: 28px 0 56px; margin-top: 32px; }
.stats b { display: block; font-family: var(--font-head); font-weight: var(--head-weight); font-size: 40px; line-height: 1; }
.stats span { font-size: 15px; color: var(--muted); }
.section { padding: 88px 0; }
.section.alt { background: var(--alt); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(30px, 3.4vw, 44px); }
.section-head p { max-width: 460px; font-size: 17px; color: var(--muted); }
.section-head a { font-weight: 600; color: var(--accent-text); }
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 16px; }
.service { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.service .n { font-size: 14px; font-weight: 700; color: var(--accent-text); }
.service h3 { font-size: 20px; }
.service p { font-size: 15px; color: var(--muted); }
.projects { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, 300px); gap: 16px; }
.projects figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--r); }
.projects img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.projects figure:hover img { transform: scale(1.04); }
.projects figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; background: linear-gradient(transparent, rgba(0,0,0,.72)); color: #fff; font-size: 14px; font-weight: 600; }
.projects .tall { grid-row: span 2; }
.projects .wide { grid-column: span 2; }
.about { display: flex; flex-wrap: wrap; gap: 64px; }
.about-text { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.about-text h2 { font-size: clamp(30px, 3.4vw, 44px); }
.about-text p { font-size: 17px; line-height: 1.65; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font-size: 14px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); }
.landmarks { flex: 1.4 1 520px; min-width: 0; }
.landmarks h3 { font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 12px; }
.lm { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.lm b { font-size: 17px; font-weight: 600; display: block; }
.lm span { font-size: 14px; color: var(--muted); }
.lm em { flex-shrink: 0; font-style: normal; font-family: var(--font-head); font-weight: var(--head-weight); font-size: 18px; }
.partners .label { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.partners .names { display: flex; flex-wrap: wrap; gap: 14px 40px; font-family: "Manrope", sans-serif; font-weight: 800; font-size: 22px; letter-spacing: .04em; color: var(--muted); }
.contact { background: var(--band); color: var(--band-ink); }
.contact .wrap { padding-top: 80px; padding-bottom: 80px; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: space-between; }
.contact .text { flex: 1 1 480px; display: flex; flex-direction: column; gap: 16px; }
.contact h2 { font-size: clamp(30px, 3.4vw, 44px); }
.contact p { font-size: 18px; opacity: .85; }
.contact .ways { display: flex; flex-direction: column; gap: 10px; min-width: 280px; text-align: center; }
.contact .ways a { text-decoration: none; }
.contact .phone { font-size: 18px; font-weight: 600; padding: 6px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 28px; padding-bottom: 28px; font-size: 14px; color: var(--muted); }

/* ---------- header on medium screens: keep it on one line ---------- */
@media (min-width: 981px) { .site-head .wrap { flex-wrap: nowrap; } }
@media (max-width: 1200px) { .skin-switch button[aria-checked="true"] .skin-name { display: none; } .skin-switch button[aria-checked="true"] { padding-right: 4px; } .nav { gap: 18px; } }

/* ---------- phones and tablets ---------- */
@media (max-width: 980px) {
  .nav { display: none; }
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: 240px; }
  .projects .tall { grid-row: span 2; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .site-head .wrap { min-height: 64px; gap: 10px; padding-top: 14px; }
  .logo svg { width: 44px; height: 44px; }
  .logo b { font-size: 23px; }
  .logo i { font-size: 15px; }
  .switches { gap: 6px; margin-left: 0; width: 100%; justify-content: space-between; padding-bottom: 8px; }
  .skin-switch button[aria-checked="true"] .skin-name { display: none; }
  .skin-switch button[aria-checked="true"] { padding-right: 4px; }
  .hero-photos { grid-template-rows: repeat(2, 160px); }
  html[data-skin="med"] .hero-photos { grid-template-rows: repeat(2, 180px); }
  .hero-full, .hero-full .wrap { min-height: 560px; }
  .section { padding: 56px 0; }
  .projects { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .projects .tall, .projects .wide { grid-row: auto; grid-column: auto; }
  .contact .ways { min-width: 0; width: 100%; }
}
.site-info { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.site-info .pub { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.site-info .gh { display: inline-flex; color: var(--muted); }
.site-info .gh:hover { color: var(--ink); }
.site-info a { color: inherit; }
.site-info .ago { opacity: .8; }
.site-info .visits { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.site-info .stat { padding: 4px 10px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); color: var(--muted); white-space: nowrap; }
.site-info .stat b { color: var(--accent-text); font-weight: 700; font-size: 15px; }
@media (max-width: 760px) { .site-info, .site-info .visits { align-items: flex-start; justify-content: flex-start; } }
