/* YHH Interiors landing page */
:root {
  --bg: #f5f4f0;
  --surface: #ffffff;
  --ink: #1d2124;
  --muted: #646a70;
  --line: #e2dfd7;
  --line-strong: #c9c5bb;
  --accent: #2e5b4f;
  --accent-dark: #234539;
  --accent-soft: #e6efeb;
  --accent-tint: #a9cbbf;
  --sand: #ebe8e0;
  --danger: #a33a2c;
  --danger-soft: #fbeeec;

  --font-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(29, 33, 36, .06);
  --shadow: 0 1px 2px rgba(29, 33, 36, .05), 0 8px 24px rgba(29, 33, 36, .06);
  --shadow-lg: 0 2px 4px rgba(29, 33, 36, .05), 0 24px 48px rgba(29, 33, 36, .12);

  --gutter: 16px;
  --header-h: 68px;
  --section-y: 72px;
}

@media (min-width: 640px) { :root { --gutter: 24px; --section-y: 88px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; --header-h: 80px; --section-y: 112px; } }

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
.nowrap { white-space: nowrap; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container {
  width: 100%;
  max-width: calc(1200px + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 1.5px solid transparent; border-radius: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: .95rem; }
.btn-lg { min-height: 54px; padding: 14px 26px; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 6px 16px rgba(46, 91, 79, .22); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-primary[disabled] { opacity: .7; cursor: progress; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(29, 33, 36, .03); }
.btn-outline { background: var(--surface); color: var(--accent); border-color: var(--accent); }
.btn-light { background: #fff; color: var(--accent); }
.btn-light:hover { background: var(--accent-soft); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-body); font-size: .8rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.eyebrow-light { color: var(--accent-tint); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 244, 240, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px rgba(29, 33, 36, .05); }

.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; min-height: 44px; flex: none; }
.brand img { height: 48px; width: auto; }
@media (min-width: 1024px) { .brand img { height: 56px; } }

.main-nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; gap: 4px; }
.nav-list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-weight: 500; font-size: .97rem; text-decoration: none; color: var(--ink); border-radius: 8px;
}
.nav-list a:hover { color: var(--accent); background: rgba(46, 91, 79, .06); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-login {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px;
  font-size: .88rem; color: var(--muted); text-decoration: none;
}
.nav-login:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.nav-mobile-extra { display: none; }

.header-tools { display: none; margin-left: auto; align-items: center; gap: 6px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  cursor: pointer; text-decoration: none;
}
.call-btn { color: var(--accent); }
.menu-bars { position: relative; width: 20px; height: 14px; }
.menu-bars span {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .2s ease, opacity .2s ease, top .2s ease;
}
.menu-bars span:nth-child(1) { top: 0; }
.menu-bars span:nth-child(2) { top: 6px; }
.menu-bars span:nth-child(3) { top: 12px; }
.menu-open .menu-bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.menu-open .menu-bars span:nth-child(2) { opacity: 0; }
.menu-open .menu-bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

@media (max-width: 959.98px) {
  .header-tools { display: flex; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    display: none; flex-direction: column; align-items: stretch; gap: 8px;
    padding: 12px var(--gutter) 20px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(29, 33, 36, .1);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .menu-open .main-nav { display: flex; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { display: flex; min-height: 52px; padding: 0 4px; font-size: 1.1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-list a:hover { background: transparent; }
  .nav-actions { flex-direction: column-reverse; align-items: stretch; gap: 8px; margin-top: 8px; }
  .nav-actions .btn { min-height: 52px; font-size: 1.05rem; }
  .nav-login { justify-content: center; }
  .nav-mobile-extra { display: block; order: 2; }
  .nav-mobile-extra .btn { min-height: 52px; }
  .nav-list { order: 1; }
  .nav-actions { order: 3; }
}

/* ---------- Hero ---------- */
.hero { padding: 36px 0 56px; position: relative; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
.hero h1 {
  font-size: clamp(2.3rem, 7.4vw, 4.1rem);
  font-weight: 800; letter-spacing: -.025em; line-height: 1.02;
  max-width: 13ch;
}
.lead { margin-top: 20px; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: #3f454a; max-width: 54ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 16px; font-size: .92rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero-note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); flex: none; }

.hero-media { margin: 0; position: relative; isolation: isolate; }
.hero-media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  background: var(--sand);
}
.hero-badge {
  display: none;
  position: absolute; left: 14px; bottom: 14px; right: 14px;
  flex-direction: column; gap: 2px;
  padding: 12px 16px; border-radius: 12px;
  background: rgba(255, 255, 255, .94); box-shadow: var(--shadow);
  max-width: 300px;
}
.hero-badge-title { font-family: var(--font-head); font-weight: 700; font-size: 1rem; }
.hero-badge-sub { font-size: .85rem; color: var(--muted); line-height: 1.4; }

@media (max-width: 479.98px) {
  .hero-ctas .btn { width: 100%; }
}

@media (min-width: 900px) {
  .hero { padding: 64px 0 96px; }
  .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: 64px; }
  .hero-media { justify-self: end; width: 100%; max-width: 440px; }
  .hero-media::before {
    content: ""; position: absolute; inset: 22px -18px -22px 22px; z-index: -1;
    border-radius: var(--radius-lg); background: var(--accent);
  }
  .hero-media img { aspect-ratio: 4 / 5; }
  .hero-badge { display: flex; left: -40px; right: auto; bottom: 36px; padding: 16px 20px; }
}
@media (min-width: 1280px) {
  .hero-media::before { inset: 28px -28px -28px 28px; }
}

/* ---------- Trust strip ---------- */
.trust { border-block: 1px solid var(--line); background: var(--surface); }
.trust-list { display: grid; grid-template-columns: 1fr; }
.trust-list li {
  display: flex; align-items: flex-start; gap: 14px; padding: 18px 0;
  font-size: .9rem; color: var(--muted); line-height: 1.45;
}
.trust-list li + li { border-top: 1px solid var(--line); }
.trust-list strong { display: block; color: var(--ink); font-size: 1rem; font-weight: 600; margin-bottom: 2px; }
.trust-icon {
  width: 40px; height: 40px; padding: 8px; flex: none; border-radius: 10px;
  background: var(--accent-soft); fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
@media (min-width: 640px) {
  .trust-list { grid-template-columns: 1fr 1fr; }
  .trust-list li { padding: 22px 16px 22px 0; }
  .trust-list li + li { border-top: 0; }
  .trust-list li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (min-width: 1024px) {
  .trust-list { grid-template-columns: repeat(4, 1fr); }
  .trust-list li { padding: 28px 24px; }
  .trust-list li:first-child { padding-left: 0; }
  .trust-list li:nth-child(n+3) { border-top: 0; }
  .trust-list li + li { border-left: 1px solid var(--line); }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2, .about h2, .areas h2, .contact h2 {
  font-size: clamp(1.85rem, 4.2vw, 2.75rem); font-weight: 800; letter-spacing: -.02em;
}
.section-intro { margin-top: 16px; font-size: 1.07rem; color: var(--muted); max-width: 62ch; }
.section-head-row { max-width: none; display: grid; gap: 8px; }
@media (min-width: 900px) {
  .section-head-row { grid-template-columns: 1fr 1fr; align-items: end; gap: 48px; }
  .section-head-row .section-intro { margin-top: 0; justify-self: end; max-width: 46ch; }
}

/* ---------- Services ---------- */
.service-grid { display: grid; gap: 18px; }
@media (min-width: 900px) { .service-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.service-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.service-card:hover { border-color: var(--accent-tint); box-shadow: var(--shadow); }
.service-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.service-card h3 { font-size: 1.3rem; font-weight: 700; }
.service-card > p { color: var(--muted); font-size: .97rem; }
.service-icon {
  width: 48px; height: 48px; padding: 10px; flex: none; border-radius: 12px;
  background: var(--accent); fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.service-list { margin-top: 18px; border-top: 1px solid var(--line); }
.service-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.service-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.service-list li::before {
  content: ""; width: 7px; height: 7px; flex: none; border-radius: 2px; background: var(--accent); transform: rotate(45deg);
}

/* ---------- Gallery ---------- */
.work { background: var(--sand); }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gallery-item { position: relative; min-width: 0; }
.gallery-wide { grid-column: span 2; }
.gallery-btn {
  position: relative; display: block; width: 100%; height: 100%; padding: 0; margin: 0;
  border: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in;
  background: #d9d5cb;
}
.gallery-btn img {
  width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  transition: transform .5s ease;
}
.gallery-wide .gallery-btn img { aspect-ratio: 4 / 3; }
.gallery-btn:hover img { transform: scale(1.04); }
.gallery-btn::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(17, 22, 20, .62), rgba(17, 22, 20, 0) 45%);
}
.gallery-cap {
  position: absolute; left: 12px; bottom: 10px; right: 12px; z-index: 1;
  color: #fff; font-size: .85rem; font-weight: 600; text-align: left; line-height: 1.3;
}
.gallery-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.gallery-cta-inner {
  height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  border-radius: var(--radius);
  background: var(--accent); color: #e9f1ee;
  font-size: .92rem; line-height: 1.45;
}
.gallery-cta-title { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; line-height: 1.15; color: #fff; }
.gallery-cta .btn { margin-top: 6px; min-height: 46px; }
.gallery-cta-inner { padding: 16px; }
.gallery-cta-text { display: none; }
.gallery-cta .gallery-cta-title { font-size: 1.15rem; }
.gallery-cta .btn { align-self: stretch; white-space: normal; text-align: center; padding-inline: 10px; }

@media (min-width: 640px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .gallery-wide { grid-column: span 2; }
  .gallery-wide .gallery-btn img { aspect-ratio: auto; height: 100%; }
  .gallery-cta { grid-column: span 2; }
  .gallery-cta-inner { padding: 24px; }
  .gallery-cta-text { display: block; }
  .gallery-cta .gallery-cta-title { font-size: 1.45rem; }
  .gallery-cta .btn { align-self: flex-start; padding-inline: 22px; }
}
@media (min-width: 1024px) {
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .gallery-cta { grid-column: auto; }
}

/* ---------- Process ---------- */
.process { background: var(--accent); color: #fff; position: relative; overflow: hidden; }
.process::before {
  /* faint roofline motif */
  content: ""; position: absolute; right: -80px; top: -40px; width: 520px; height: 260px; pointer-events: none;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 100'%3E%3Cpath d='M4 96 100 8l96 88' fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='8'/%3E%3C/svg%3E");
}
.process .section-intro { color: #cfe0da; }
.steps { display: grid; gap: 14px; counter-reset: step; position: relative; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.step {
  padding: 26px 22px; border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
}
.step-num {
  display: block; margin-bottom: 18px;
  font-family: var(--font-head); font-weight: 800; font-size: 2.2rem; line-height: 1; color: var(--accent-tint);
}
.step h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.step p { color: #d7e5e0; font-size: .97rem; }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 48px; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 72px; align-items: start; } }
.about-copy h2 { margin-bottom: 20px; max-width: 18ch; }
.about-copy > p:not(.eyebrow) { color: #3f454a; font-size: 1.05rem; max-width: 62ch; }
.about-copy > p:not(.eyebrow) + p { margin-top: 14px; }
.about-points { display: grid; gap: 24px; margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .about-points { grid-template-columns: 1fr 1fr; gap: 32px; } }
.about-point h3 {
  font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 10px;
}
.about-point h3::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.about-point p { color: var(--muted); font-size: .97rem; }

.team { display: grid; gap: 16px; }
.team-title { font-size: .8rem; font-family: var(--font-body); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.person {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.avatar {
  width: 56px; height: 56px; flex: none; display: grid; place-items: center;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; letter-spacing: .02em;
}
.person-body { min-width: 0; }
.person h4 { font-size: 1.2rem; font-weight: 700; }
.person-role { font-size: .9rem; font-weight: 600; color: var(--accent); margin: 2px 0 10px; }
.person-body > p:not(.person-role) { color: var(--muted); font-size: .95rem; }
.text-link {
  display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px;
  color: var(--accent); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
  overflow-wrap: anywhere;
}
.text-link:hover { color: var(--accent-dark); text-decoration-thickness: 2px; }

/* ---------- Areas ---------- */
.areas { padding-top: 0; }
.areas-inner {
  display: grid; gap: 28px;
}
.areas-inner > * { min-width: 0; }
.areas-copy p:last-child { margin-top: 14px; color: var(--muted); font-size: 1.05rem; max-width: 52ch; }
.area-list { display: grid; grid-template-columns: 1fr; gap: 10px; }
.area-list li {
  display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 12px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem;
}
.pin { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.9; stroke-linejoin: round; }
@media (min-width: 640px) { .area-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .areas-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 72px; align-items: center;
    padding: 56px; background: var(--sand); border-radius: 24px;
  }
  .area-list li:last-child { grid-column: span 2; }
}
@media (min-width: 640px) and (max-width: 1023.98px) {
  .area-list li:last-child { grid-column: span 2; }
}

/* ---------- Contact ---------- */
.contact { background: var(--surface); border-top: 1px solid var(--line); }
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 72px; align-items: start; } }
.contact-info > p:not(.eyebrow) { margin-top: 16px; color: var(--muted); font-size: 1.05rem; max-width: 46ch; }
.contact-methods { display: grid; gap: 12px; margin-top: 28px; }
.contact-method {
  display: flex; align-items: center; gap: 16px; min-height: 72px; padding: 14px 18px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; transition: border-color .18s ease, background-color .18s ease;
}
a.contact-method:hover { border-color: var(--accent); background: var(--accent-soft); }
.contact-icon {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center;
  border-radius: 50%; background: var(--accent); color: #fff;
}
.contact-label { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-value { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; line-height: 1.25; overflow-wrap: anywhere; }
.contact-value-sm { font-size: 1.05rem; }
@media (max-width: 479.98px) { .contact-value-email { font-size: 1.05rem; } .contact-method { padding: 14px; gap: 14px; } }

.form-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px 18px;
}
@media (min-width: 640px) { .form-card { padding: 36px; } }
.enquiry-form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: .95rem; }
.req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 10px;
  font-size: 1rem; line-height: 1.4;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23646a70' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(46, 91, 79, .16);
}
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.field.has-error input:focus, .field.has-error textarea:focus { box-shadow: 0 0 0 4px rgba(163, 58, 44, .14); }
.field-error { font-size: .88rem; color: var(--danger); font-weight: 500; }
.field-error:empty { display: none; }
.form-hint { font-size: .85rem; color: var(--muted); margin-top: -4px; }

.hp {
  position: absolute !important; left: -10000px !important; top: auto !important;
  width: 1px !important; height: 1px !important; overflow: hidden !important;
}

.form-status {
  padding: 16px 18px; border-radius: 10px; font-size: .97rem; line-height: 1.5;
}
.form-status:focus { outline: none; }
.form-status.is-success { background: var(--accent-soft); color: #1f4037; border: 1px solid var(--accent-tint); }
.form-status.is-error { background: var(--danger-soft); color: #7a2a20; border: 1px solid #e8c4be; }
.form-status strong { display: block; margin-bottom: 4px; }
.form-status a { color: inherit; font-weight: 600; text-underline-offset: 3px; white-space: nowrap; }
.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b9bfc4; padding-top: 56px; font-size: .95rem; }
.footer-grid { display: grid; gap: 28px; padding-bottom: 36px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1.2fr; gap: 48px; align-items: start; } }
.footer-brand img { height: 64px; width: auto; filter: brightness(0) invert(1); opacity: .95; }
.footer-brand p { margin-top: 12px; color: #8f979d; font-size: .9rem; }
.footer-nav, .footer-contact { display: flex; flex-direction: column; align-items: flex-start; }
.footer-nav a, .footer-contact a {
  display: inline-flex; align-items: center; min-height: 44px; color: #e6e9eb; text-decoration: none;
  overflow-wrap: anywhere;
}
.footer-nav a:hover, .footer-contact a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-contact span { padding-top: 10px; }
@media (max-width: 899.98px) { .footer-nav { flex-direction: row; flex-wrap: wrap; column-gap: 24px; } }
.footer-base {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px;
  padding-block: 14px 18px; position: relative;
  font-size: .85rem; color: #8f979d;
}
.footer-base::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: rgba(255, 255, 255, .1); }
.footer-login { display: inline-flex; align-items: center; min-height: 44px; color: #b9bfc4; text-underline-offset: 3px; }
.footer-login:hover { color: #fff; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: transparent; overflow: hidden;
}
.lightbox::backdrop { background: rgba(14, 17, 19, .9); }
.lightbox-inner {
  position: relative; width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 64px 16px 24px;
}
.lightbox-img {
  max-width: min(100%, 720px); max-height: calc(100% - 48px); width: auto; height: auto;
  object-fit: contain; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.lightbox-cap { color: #e6e9eb; font-size: .95rem; text-align: center; max-width: 60ch; }
.lightbox-btn {
  position: absolute; width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .1);
  color: #fff; cursor: pointer;
}
.lightbox-btn:hover { background: rgba(255, 255, 255, .2); }
.lightbox-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lightbox-close { top: 12px; right: 12px; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
@media (max-width: 639.98px) {
  .lightbox-prev, .lightbox-next { top: auto; bottom: 14px; transform: none; }
  .lightbox-inner { padding-bottom: 76px; }
}
body.lb-open { overflow: hidden; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .gallery-btn:hover img { transform: none; }
}
