/* Red Castle Electric Inc. — brand tokens */
:root {
  --red: #b5121b;
  --red-dark: #8f0d15;
  --black: #17191d;
  --off: #f7f7f5;
  --white: #ffffff;
  --gray: #e9eaec;

  /* Theme colors (light). The dark values are in the [data-theme="dark"] block below. */
  color-scheme: light;
  --bg: #ffffff;
  --bg-alt: #f7f7f5;
  --surface: #ffffff;
  --text: #17191d;
  --muted: #5d6169;
  --line: #e9eaec;
  --accent: #b5121b;          /* red used for text and icons */
  --ink: #17191d;             /* strong fill for selected chips */
  --on-ink: #ffffff;
  --nav-bg: rgba(255, 255, 255, .94);
  --panel: #17191d;           /* contact section and dark call-to-action band */
  --footer: #101215;
  --field-bg: #f7f7f5;
  --field-focus: #ffffff;
  --field-border: #cfd2d6;
  --ring: rgba(23, 25, 29, .12);
  --invalid-bg: #fdf3f3;
  --ok: #14693a;
  --ok-bg: #eaf6ee;
  --bad: #8f0d15;
  --font: Manrope, 'Segoe UI', system-ui, sans-serif;
  --shadow: 0 1px 2px rgba(23, 25, 29, .04), 0 12px 32px rgba(23, 25, 29, .08);
  --radius: 14px;
  /* EDIT: hero photo (stock, atmosphere only). Swap the URL for your own image, e.g. url(images/hero.jpg) */
  --hero-photo: url('https://images.unsplash.com/photo-1656345129661-53a0177189ce?auto=format&fit=crop&w=2000&q=75');
}

/* Dark theme: charcoal backgrounds, white text, the same castle red */
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #17191d;
  --bg-alt: #1c1f24;
  --surface: #23272d;
  --text: #f5f5f3;
  --muted: #a7acb4;
  --line: #31363d;
  --accent: #f0545c;
  --ink: #ffffff;
  --on-ink: #17191d;
  --nav-bg: rgba(23, 25, 29, .92);
  --panel: #0f1113;
  --footer: #0b0c0e;
  --field-bg: #1a1d22;
  --field-focus: #14161a;
  --field-border: #3b4149;
  --ring: rgba(255, 255, 255, .16);
  --invalid-bg: #3a1a1d;
  --ok: #86dfaa;
  --ok-bg: #16301f;
  --bad: #ffa1a7;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 36px rgba(0, 0, 0, .45);
}
[data-theme="dark"] .nav.scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .4); }
[data-theme="dark"] .band.dark, [data-theme="dark"] .contact { border-block: 1px solid var(--line); }
[data-theme="dark"] .band.dark { border: 1px solid var(--line); }
/* Short cross-fade while the theme changes */
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after { transition: background-color .35s ease, color .35s ease, border-color .35s ease, box-shadow .35s ease !important; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--black); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.contact :focus-visible, .hero :focus-visible, .footer :focus-visible { outline-color: #fff; }

h1, h2, h3, h4 { margin: 0; line-height: 1.08; letter-spacing: -.03em; font-weight: 800; }
h1, h2 { overflow-wrap: break-word; }
h1 { font-size: clamp(2.3rem, 7.2vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
h3 { font-size: 1.2rem; letter-spacing: -.015em; line-height: 1.25; font-weight: 700; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--text); }
.kicker { display: flex; align-items: center; gap: 12px; font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin: 0 0 18px; }
.kicker::before { content: ''; width: 32px; height: 2px; background: currentColor; }
.kicker.light { color: #fff; }
.kicker.light::before { background: var(--red); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 22px; border-radius: 999px; font: inherit; font-weight: 700; font-size: .95rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, transform .2s, border-color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 16px 30px; font-size: 1rem; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--black); border-color: #fff; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 50; background: var(--nav-bg); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.nav.scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(23, 25, 29, .06); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; letter-spacing: -.02em; font-size: 1.05rem; line-height: 1.1; }
.brand img { width: 56px; height: 56px; border-radius: 50%; }
.brand b { color: var(--accent); font-weight: 800; }
.menu { display: flex; align-items: center; gap: 30px; }
.menu a:not(.btn) { text-decoration: none; font-weight: 600; font-size: .95rem; position: relative; padding: 6px 0; }
.menu a:not(.btn)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.menu a:not(.btn):hover::after { transform: scaleX(1); }
.brand, .menu a { white-space: nowrap; }
.brand { flex: none; }
.menu { margin-left: auto; order: 1; gap: 22px; }
@media (min-width: 1241px) {
  .menu { gap: 16px; }
  .menu a:not(.btn) { font-size: .88rem; }
  .menu .btn { padding: 10px 16px; font-size: .88rem; }
  .brand { font-size: .95rem; }
}
.nav-toggle { order: 4; }
.lang { order: 2; display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); flex: none; }
.lang a { display: flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-decoration: none; color: var(--muted); transition: background .2s, color .2s; }
.lang a:hover { color: var(--text); }
.lang a[aria-current] { background: var(--ink); color: var(--on-ink); }
.lang svg { width: 19px; height: 13px; border-radius: 2px; flex: none; }
.theme { order: 3; position: relative; width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; padding: 0; overflow: hidden; }
.theme:hover { border-color: var(--ink); }
.theme svg { position: absolute; inset: 0; margin: auto; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s ease, opacity .3s ease; }
.theme .moon { opacity: 0; transform: rotate(-90deg) scale(.4); }
[data-theme="dark"] .theme .sun { opacity: 0; transform: rotate(90deg) scale(.4); }
[data-theme="dark"] .theme .moon { opacity: 1; transform: none; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; padding: 0; flex: none; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); margin: 4px auto; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero { position: relative; color: #fff; background: var(--black); display: flex; flex-direction: column; justify-content: flex-end; min-height: min(92vh, 900px); isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background: var(--hero-photo) center / cover no-repeat; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(23, 25, 29, .93) 0%, rgba(23, 25, 29, .72) 48%, rgba(23, 25, 29, .38) 100%); }
.hero > .wrap, .hero-strip { position: relative; z-index: 1; }

/* Lamp glow: positioned on the lamps in the hero photo, which is scaled like background-size: cover */
.hero-lamps { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; container-type: size; }
.lamp-stage { position: absolute; left: 50%; top: 50%; width: max(100cqw, 133.333cqh); height: max(100cqh, 75cqw); transform: translate(-50%, -50%); }
/* Each light starts exactly at the bottom rim of a lampshade and spreads softly downward.
   Positions and widths are measured from the photo (percent of the image). */
.lamp { position: absolute; transform: translateX(-50%); mix-blend-mode: screen; opacity: 0; transition: opacity .5s ease;
  background:
    radial-gradient(ellipse 42% 7% at 50% 0%, rgba(255, 236, 200, .42), rgba(255, 222, 170, 0) 100%),
    radial-gradient(ellipse 46% 92% at 50% 0%, rgba(255, 214, 152, .2), rgba(255, 200, 128, .07) 50%, rgba(255, 190, 115, 0) 100%); }
.lamp.l1 { left: 46.95%; top: 24.6%; width: 19.5%; aspect-ratio: 1.1; }
.lamp.l2 { left: 81%; top: 42.1%; width: 15%; aspect-ratio: 1.1; }
/* Turning on: a slow, smooth fade after the switch to dark */
[data-theme="dark"] .lamp { opacity: 1; transition: opacity 2.4s cubic-bezier(.4, 0, .2, 1) .4s; }
[data-theme="dark"] .lamp.l2 { transition-delay: .7s; }
@media (prefers-reduced-motion: reduce) { .lamp, [data-theme="dark"] .lamp { transition: none; } }
.hero-inner { padding-top: 110px; padding-bottom: 72px; width: 100%; }
.hero h1 span { color: #fff; box-shadow: inset 0 -.16em 0 var(--red); }
.hero-sub { font-size: clamp(1.1rem, 1.6vw, 1.35rem); max-width: 34em; margin: 28px 0 36px; color: rgba(255, 255, 255, .86); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-strip { border-top: 1px solid rgba(255, 255, 255, .16); background: rgba(23, 25, 29, .55); backdrop-filter: blur(6px); }
.strip-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-row > * { padding: 22px 24px 22px 0; text-decoration: none; display: flex; flex-direction: column; }
.strip-row > * + * { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, .16); }
.strip-row b { font-size: 1.1rem; font-weight: 800; letter-spacing: -.01em; }
.strip-row span { font-size: .85rem; color: rgba(255, 255, 255, .7); }
.strip-row a:hover b { color: #ffb3b8; }
.strip-phones a { text-decoration: none; }
.strip-phones a:hover { color: #ffb3b8; }
.strip-phones span a { color: inherit; }

/* Sections */
.section { padding: clamp(72px, 10vw, 136px) 0; }
.tint { background: var(--bg-alt); }
.head { max-width: 720px; margin-bottom: 52px; }
.head p:last-child { color: var(--muted); margin: 18px 0 0; font-size: 1.1rem; }
.head a { color: var(--accent); font-weight: 700; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.about > div:last-child > p:not(.kicker):not(.lead) { color: var(--muted); }
.about h2 { margin-bottom: 24px; }
.about-media { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 460px; }
.about-media img, .about-media .m4 { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.about-media .m1, .about-media .m3 { transform: translateY(28px); }
.about-media .m1 { box-shadow: var(--shadow); }
.about-media .m4 { background: var(--red); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; }
.about-media .m4 b { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.about-media .m4 span { font-size: .85rem; font-weight: 600; line-height: 1.3; margin-top: 8px; }
.pillars { list-style: none; margin: 36px 0 0; padding: 0; border-top: 1px solid var(--line); }
.pillars li { display: flex; gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.pillars span { font-weight: 800; color: var(--accent); font-size: .9rem; letter-spacing: .08em; padding-top: 3px; }
.pillars p { margin: 4px 0 0; color: var(--muted); font-size: 1rem; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px 30px; display: flex; flex-direction: column; overflow: hidden; transition: transform .3s, box-shadow .3s, border-color .3s; }
.card::before { content: ''; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card svg { width: 44px; height: 44px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 26px; }
.card p { color: var(--muted); font-size: 1rem; margin: 10px 0 24px; }
.card a { margin-top: auto; font-weight: 700; font-size: .92rem; text-decoration: none; color: var(--text); }
.card a::after { content: ' →'; color: var(--accent); display: inline-block; transition: transform .2s; }
.card a:hover::after { transform: translateX(4px); }

/* CTA band */
.band { margin-top: 52px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 30px 36px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.band p { margin: 0; font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; max-width: 34em; }
.band.dark { background: var(--panel); color: #fff; border-color: var(--panel); }

/* Projects */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button { font: inherit; font-weight: 600; font-size: .9rem; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.filters button:hover { border-color: var(--ink); }
.filters button.on { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.shot { position: relative; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--black); aspect-ratio: 1; font: inherit; text-align: left; color: #fff; }
.shot[hidden] { display: none; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, opacity .3s; }
.shot span { position: absolute; inset: auto 0 0 0; padding: 40px 16px 14px; font-size: .78rem; letter-spacing: .04em; background: linear-gradient(transparent, rgba(23, 25, 29, .9)); transform: translateY(8px); opacity: 0; transition: opacity .3s, transform .3s; }
.shot b { display: block; font-size: 1rem; letter-spacing: -.01em; }
.shot:hover img, .shot:focus-visible img { transform: scale(1.07); opacity: .85; }
.shot:hover span, .shot:focus-visible span { opacity: 1; transform: none; }
@media (hover: none) { .shot span { opacity: 1; transform: none; } }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100dvh; width: 100vw; height: 100dvh; color: #fff; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; gap: 12px; }
.lightbox::backdrop { background: rgba(23, 25, 29, .92); }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { width: min(78vw, 70vh, 620px); aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: var(--black); }
.lightbox figcaption { margin-top: 14px; font-weight: 700; }
.lightbox button { font: inherit; font-size: 2rem; line-height: 1; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: transparent; color: #fff; cursor: pointer; flex: none; }
.lightbox button:hover { background: var(--red); border-color: var(--red); }
.lb-close { position: absolute; top: 18px; right: 18px; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq-grid .head { margin: 0; position: sticky; top: 110px; }
.faq { border-top: 1px solid var(--line); }
.q { border-bottom: 1px solid var(--line); }
.q button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; text-align: left; font: inherit; font-weight: 700; font-size: 1.12rem; letter-spacing: -.015em; background: none; border: 0; padding: 24px 0; cursor: pointer; color: var(--text); }
.q button::after { content: ''; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: linear-gradient(var(--text), var(--text)) center / 12px 2px no-repeat, linear-gradient(var(--text), var(--text)) center / 2px 12px no-repeat; transition: transform .3s, background-color .3s, border-color .3s; }
.q button[aria-expanded="true"]::after { transform: rotate(45deg); background-color: var(--red); border-color: var(--red); background-image: linear-gradient(#fff, #fff), linear-gradient(#fff, #fff); }
.q button:hover { color: var(--accent); }
.a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.a > div { overflow: hidden; }
.a p { color: var(--muted); margin: 0; padding: 0 60px 26px 0; }
.q.open .a { grid-template-rows: 1fr; }

/* Contact */
.contact { background: var(--panel); color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.contact h2 { margin-bottom: 20px; }
.contact .lead { color: rgba(255, 255, 255, .8); }
.details { margin: 40px 0 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.details div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.details dt { font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .55); padding-top: 5px; }
.details dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.details a { text-decoration: none; }
.details a:hover { color: #ffb3b8; }

.form { background: var(--surface); color: var(--text); border-radius: 20px; padding: clamp(24px, 4vw, 40px); display: grid; gap: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 7px; font-size: .88rem; font-weight: 700; }
.form input:not([type=radio]), .form select, .form textarea { font: inherit; font-weight: 500; width: 100%; padding: 13px 14px; border: 1px solid var(--field-border); border-radius: 10px; background: var(--field-bg); color: var(--text); transition: border-color .2s, background .2s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--ink); background: var(--field-focus); box-shadow: 0 0 0 3px var(--ring); }
.form .invalid { border-color: var(--red) !important; background: var(--invalid-bg) !important; }
.form .err { color: var(--accent); font-weight: 600; font-size: .82rem; }
.form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.form legend { font-size: .88rem; font-weight: 700; margin-bottom: 9px; padding: 0; }
.form .pick { display: inline-flex; align-items: center; gap: 8px; grid-template-columns: none; padding: 10px 18px; border: 1px solid var(--field-border); border-radius: 999px; font-weight: 600; cursor: pointer; }
.form .pick:has(input:checked) { border-color: var(--ink); background: var(--ink); color: var(--on-ink); }
.form .pick input { accent-color: var(--red); margin: 0; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }
.form .btn[disabled] { opacity: .6; cursor: progress; }
.status { margin: 0; font-weight: 600; font-size: .95rem; }
.status:empty { display: none; }
.status.ok { color: var(--ok); background: var(--ok-bg); padding: 12px 16px; border-radius: 10px; }
.status.bad { color: var(--bad); background: var(--invalid-bg); padding: 12px 16px; border-radius: 10px; }
.fine { margin: 0; font-size: .82rem; color: var(--muted); }
.fine a { color: var(--text); }

/* Footer */
.footer { background: var(--footer); color: rgba(255, 255, 255, .72); font-size: .95rem; padding-top: 72px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 56px; }
.footer img { width: 96px; height: 96px; border-radius: 50%; margin-bottom: 20px; }
.footer p { max-width: 30em; margin: 0; }
.footer h4 { color: #fff; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; }
.foot-grid a, .foot-grid span { display: block; text-decoration: none; padding: 5px 0; overflow-wrap: anywhere; }
.foot-grid a:hover, .foot-bottom a:hover { color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-top: 22px; padding-bottom: 26px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; }

.callbar { display: none; }

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .cards .reveal:nth-child(3n+2) { transition-delay: .08s; }
.js .cards .reveal:nth-child(3n) { transition-delay: .16s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}

/* Simple text pages (privacy) */
.page { max-width: 760px; margin: 0 auto; padding: 64px 20px 96px; }
.page h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 24px; }
.page h2 { font-size: 1.3rem; margin: 36px 0 10px; letter-spacing: -.015em; }
.page a { color: var(--accent); font-weight: 600; }

@media (max-width: 1240px) {
  .nav-toggle { display: block; }
  .nav-row { gap: 12px; }
  .lang { margin-left: auto; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); max-height: calc(100dvh - 76px); overflow-y: auto; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 22px; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgba(23, 25, 29, .1); }
  .menu.open { display: flex; }
  .menu a:not(.btn) { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .menu a:not(.btn)::after { display: none; }
  .menu .btn { margin-top: 18px; padding: 15px 22px; }
}
@media (max-width: 960px) {
  .about, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .faq-grid .head { position: static; }
  .cards { grid-template-columns: 1fr 1fr; }
  .strip-row { grid-template-columns: 1fr 1fr; }
  .strip-row > *:nth-child(3) { padding-left: 0; border-left: 0; }
  .strip-row > *:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .16); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { padding-bottom: 62px; }
  .hero { min-height: 0; }
  .hero-inner { padding-top: 72px; padding-bottom: 48px; }
  .cta-row .btn { width: 100%; }
  .cards, .form .row { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .band { padding: 26px 22px; }
  .a p { padding-right: 0; }
  .details div { grid-template-columns: 1fr; gap: 2px; }
  .foot-grid { grid-template-columns: 1fr; gap: 30px; }
  .brand span { display: none; }
  .nav-toggle { flex: none; }
  .lang a { padding: 9px 9px; gap: 5px; }
  :root { --hero-photo: url('https://images.unsplash.com/photo-1656345129661-53a0177189ce?auto=format&fit=crop&w=900&q=70'); }
  .lightbox .lb-prev, .lightbox .lb-next { position: absolute; bottom: 24px; }
  .lightbox .lb-prev { left: calc(50% - 62px); }
  .lightbox .lb-next { right: calc(50% - 62px); }
  .callbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--black); }
  .callbar { padding-bottom: env(safe-area-inset-bottom); }
  .callbar a { padding: 18px 10px; text-align: center; color: #fff; font-weight: 800; text-decoration: none; }
  .callbar .red { background: var(--red); }
}

/* Touch screens: comfortable tap targets */
@media (pointer: coarse) {
  .filters button, .form .pick { min-height: 44px; }
  .theme, .nav-toggle { width: 44px; height: 44px; }
  .foot-grid a { padding: 9px 0; }
}
/* Small phones */
@media (max-width: 380px) {
  .wrap { padding: 0 16px; }
  .nav-row { gap: 8px; }
  .brand img { width: 46px; height: 46px; }
  .lang a { padding: 9px 7px; }
  .strip-row > * { padding-right: 12px; }
  .strip-row > * + * { padding-left: 12px; }
  .strip-row > *:nth-child(3) { padding-left: 0; }
}

/* WhatsApp chat button: floating, bottom right */
.wa { position: fixed; right: 20px; bottom: 20px; z-index: 45; display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px 12px 14px; border-radius: 999px; background: #25D366; color: #073B2C; font-weight: 700; font-size: 1rem; text-decoration: none; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); transition: background-color .2s, transform .2s; }
.wa:hover { background: #3BE07A; transform: translateY(-2px); }
.wa:focus-visible { outline: 3px solid #073B2C; outline-offset: 3px; }
.wa svg { width: 28px; height: 28px; flex: none; }
@media (max-width: 640px) {
  .wa { right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); width: 58px; height: 58px; padding: 0; justify-content: center; }
  .wa span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .wa svg { width: 32px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) { .wa:hover { transform: none; } }