@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #f8f5ef;
  --ink-2: #f0e9df;
  --stone: #e8ded2;
  --line: rgba(43, 43, 39, 0.18);
  --line-soft: rgba(43, 43, 39, 0.1);
  --paper: #292a27;
  --paper-dim: #66645d;
  --gold: #bd654b;
  --gold-light: #9f4f39;
  --gold-dim: rgba(189, 101, 75, 0.32);
  --mortar: #a37764;
  --radius: 12px;
  --cream: #fffdf9;
  --terracotta-soft: #f3ddd4;
  --shadow: 0 22px 60px rgba(70, 49, 36, 0.12);
}

html {
  color-scheme: light;
}

html[data-theme='dark'] {
  color-scheme: dark;
  --ink: #171412;
  --ink-2: #211c19;
  --stone: #2c2521;
  --line: rgba(255, 239, 229, 0.2);
  --line-soft: rgba(255, 239, 229, 0.11);
  --paper: #fff7f1;
  --paper-dim: #cfc0b7;
  --gold: #d8795c;
  --gold-light: #efa187;
  --gold-dim: rgba(216, 121, 92, 0.38);
  --mortar: #bd8a75;
  --cream: #25201d;
  --terracotta-soft: #402820;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.3);
}

body {
  background: var(--ink);
  color: var(--paper);
  font-family: 'Manrope', sans-serif;
}

h1,
h2,
h3,
.disp,
.brand-text,
.strip-inner,
.section-num,
.why-visual .quote,
.why-mark {
  font-family: 'Manrope', sans-serif;
  font-style: normal;
}

h1,
h2,
h3 {
  color: var(--paper);
  font-weight: 800;
  letter-spacing: -0.04em;
}

p,
ul,
label {
  color: var(--paper-dim);
}

::selection {
  background: var(--terracotta-soft);
  color: var(--paper);
}

header {
  background: rgba(255, 253, 249, 0.92);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 8px 30px rgba(65, 45, 32, 0.06);
}

.brand-text {
  color: var(--paper);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-text b,
.nav-links a:hover,
.phone-link,
footer a,
.foot-col a:hover,
.phone a {
  color: var(--gold-light) !important;
}

.brand-mark *,
.mark * {
  stroke: var(--gold) !important;
}

.nav-links a {
  color: #4e4d47;
  font-weight: 600;
}

.nav-cta {
  border: 1px solid var(--paper);
  border-radius: 999px;
  color: var(--paper);
  font-weight: 700;
}

.nav-cta:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--cream);
}

.nav-toggle {
  color: var(--paper);
}

.theme-toggle {
  width: 39px;
  height: 39px;
  display: inline-flex;
  flex: 0 0 39px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  color: var(--paper);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--gold);
  background: var(--terracotta-soft);
  color: var(--gold-light);
  transform: translateY(-1px);
}

.theme-toggle:active {
  transform: translateY(0) scale(0.96);
}

.theme-toggle:focus-visible {
  outline: 3px solid var(--gold-dim);
  outline-offset: 3px;
}

.theme-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-icon-moon,
html[data-theme='dark'] .theme-icon-sun {
  display: none;
}

html[data-theme='dark'] .theme-icon-moon {
  display: block;
}

.theme-toggle-standalone {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 110;
  box-shadow: var(--shadow);
}

.hero {
  min-height: 92vh;
  align-items: center;
  padding-top: 104px;
}

.hero-bg {
  background: url('photos/hero-safe.jpg');
  background-position: center center;
  background-size: cover;
  filter: none;
}

.hero-inner {
  max-width: 680px;
  margin: 56px 0;
  padding: clamp(30px, 5vw, 58px);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 22px;
  background: rgba(255, 253, 249, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.eyebrow,
.section-num {
  color: var(--gold-light);
  font-weight: 800;
}

.eyebrow::before {
  height: 3px;
  border-radius: 999px;
  background: var(--gold);
}

.hero h1,
.page-hero h1 {
  color: var(--paper);
  font-weight: 800;
}

.hero h1 em {
  color: var(--gold-light);
  font-style: normal;
}

.hero p,
.page-hero p {
  color: var(--paper-dim);
}

.btn,
.submit-btn {
  border-radius: 999px;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
}

.btn-primary,
.submit-btn,
.card > .btn {
  background: var(--gold);
  color: #fffaf5;
  box-shadow: 0 10px 24px rgba(189, 101, 75, 0.24);
}

.btn-primary:hover,
.submit-btn:hover,
.card > .btn:hover {
  background: #a9533c;
  color: #fffaf5;
  transform: translateY(-2px);
}

.btn-ghost {
  border: 1px solid var(--paper);
  color: var(--paper);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--cream);
}

.strip {
  background: var(--terracotta-soft);
  border-color: rgba(189, 101, 75, 0.15);
}

.strip-inner {
  color: #71493d;
  font-weight: 700;
}

section {
  position: relative;
}

.section-head h2,
.why-point h4,
.devis-info h2,
.cta-box h2 {
  color: var(--paper);
}

.services,
.gallery,
.devis {
  background: var(--ink);
}

.why,
.zones,
footer {
  background: var(--ink-2);
  border-color: var(--line-soft);
}

.service-mosaic,
.services-bottom,
.gallery-grid {
  gap: 16px;
}

.services-bottom {
  margin-top: 16px;
}

.service-card,
.gal-item,
.why-visual {
  border-radius: 16px;
  background: var(--stone);
  box-shadow: 0 12px 36px rgba(70, 49, 36, 0.08);
}

.service-card {
  padding: 0;
}

.service-card .bg,
.gal-item img,
.gal-item .bg,
.why-visual video {
  filter: none !important;
}

.service-card::before,
.gal-item::before,
.why-visual .overlay-grad {
  display: none;
  background: none;
}

.service-card .content {
  width: calc(100% - 28px);
  margin: 14px;
  padding: 15px 17px;
  border-radius: 11px;
  background: rgba(255, 253, 249, 0.94);
  box-shadow: 0 8px 24px rgba(46, 34, 26, 0.12);
  backdrop-filter: blur(8px);
}

.service-card h3 {
  color: var(--paper);
  font-weight: 800;
}

.service-card p {
  color: #66645d;
}

.why-grid {
  gap: clamp(42px, 7vw, 84px);
}

.why-visual {
  border: 8px solid var(--cream);
}

.why-visual .quote {
  left: 20px;
  right: 20px;
  bottom: 20px;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(255, 253, 249, 0.94);
  color: var(--paper);
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(46, 34, 26, 0.14);
}

.why-mark {
  border: 0;
  background: var(--terracotta-soft);
  color: var(--gold-light);
  font-weight: 800;
}

.gal-label {
  bottom: 12px;
  left: 12px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.94);
  color: var(--paper);
  font-weight: 800;
  box-shadow: 0 5px 16px rgba(46, 34, 26, 0.12);
}

.gal-sub {
  display: none;
}

.gal-note {
  color: var(--paper-dim);
  font-style: normal;
}

.zone-chip {
  border: 1px solid rgba(43, 43, 39, 0.2);
  border-radius: 999px;
  background: var(--cream);
  color: #4e4d47;
  font-weight: 600;
}

.zone-chip:hover {
  border-color: var(--gold);
  background: var(--terracotta-soft);
  color: var(--gold-light);
}

.devis-grid {
  align-items: start;
}

.devis form {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: var(--cream);
  box-shadow: var(--shadow);
}

.contact-line {
  border-color: var(--line);
}

.contact-line .k,
.foot-col h5 {
  color: var(--gold-light);
  font-weight: 800;
}

.contact-line .v {
  color: var(--paper);
}

input,
select,
textarea,
.check-item {
  border-color: rgba(43, 43, 39, 0.18);
  border-radius: 10px;
  background-color: var(--ink);
  color: var(--paper);
  font-family: 'Manrope', sans-serif;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}

.check-item:has(input:checked) {
  border-color: var(--gold);
  background: var(--terracotta-soft);
}

.page-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 25%, rgba(189, 101, 75, 0.13), transparent 24%),
    linear-gradient(135deg, #fffdf9 0%, #f4ede4 100%);
  border-color: var(--line-soft);
}

.page-hero::after {
  content: '';
  position: absolute;
  right: -70px;
  bottom: -120px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(189, 101, 75, 0.2);
  border-radius: 50%;
}

.page-hero .wrap {
  position: relative;
  z-index: 1;
}

section + section {
  border-color: var(--line-soft);
}

.cta-box {
  border-color: rgba(189, 101, 75, 0.18);
  border-radius: 18px;
  background: var(--terracotta-soft);
  box-shadow: 0 18px 45px rgba(70, 49, 36, 0.08);
}

footer p,
.foot-col a,
.foot-bottom {
  color: var(--paper-dim);
}

.foot-bottom {
  border-color: var(--line);
}

body > .card {
  max-width: 540px;
  padding: clamp(34px, 7vw, 62px);
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: var(--cream);
  box-shadow: var(--shadow);
}

body > .card h1 {
  color: var(--paper);
  font-weight: 800;
}

body > .card p {
  color: var(--paper-dim);
}

html[data-theme='dark'] header {
  background: rgba(23, 20, 18, 0.92);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

html[data-theme='dark'] .nav-links a {
  color: var(--paper-dim);
}

html[data-theme='dark'] .hero-inner,
html[data-theme='dark'] .service-card .content,
html[data-theme='dark'] .why-visual .quote,
html[data-theme='dark'] .gal-label {
  border-color: rgba(255, 239, 229, 0.14);
  background: rgba(37, 32, 29, 0.94);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

html[data-theme='dark'] .hero-inner {
  border-color: rgba(255, 239, 229, 0.24);
}

html[data-theme='dark'] .service-card p,
html[data-theme='dark'] .strip-inner,
html[data-theme='dark'] .zone-chip {
  color: var(--paper-dim);
}

html[data-theme='dark'] .why-visual {
  border-color: var(--cream);
}

html[data-theme='dark'] .zone-chip {
  border-color: var(--line);
  background: var(--cream);
}

html[data-theme='dark'] .page-hero {
  background:
    radial-gradient(circle at 82% 25%, rgba(216, 121, 92, 0.18), transparent 24%),
    linear-gradient(135deg, #211c19 0%, #171412 100%);
}

html[data-theme='dark'] .cta-box {
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

html[data-theme='dark'] input,
html[data-theme='dark'] select,
html[data-theme='dark'] textarea,
html[data-theme='dark'] .check-item {
  border-color: var(--line);
}

html[data-theme='dark'] input::placeholder,
html[data-theme='dark'] textarea::placeholder {
  color: #a9968a;
}

@media (max-width: 860px) {
  .nav-links {
    display: flex;
    gap: 9px;
    margin-left: auto;
  }

  .nav-links > a:not(.nav-cta) {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding-top: 92px;
  }

  .hero-inner {
    margin: 32px 0;
    padding: 28px;
  }

  .service-mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, 260px);
  }

  .services-bottom {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 240px);
  }
}

@media (max-width: 560px) {
  .nav {
    padding: 14px 20px;
  }

  .nav-cta {
    padding: 9px 13px;
  }

  .hero-bg {
    background-position: 62% center;
  }

  .hero h1 {
    font-size: clamp(34px, 11vw, 48px);
  }

  .hero-inner {
    margin: 24px 0;
    padding: 24px;
    border-radius: 16px;
  }

  .btn-row,
  .btn-row .btn {
    width: 100%;
  }

  .btn-row .btn {
    justify-content: center;
  }

  .gallery-grid {
    gap: 10px;
  }

  body > .card {
    padding: 30px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
