:root {
  --ink: #202522;
  --muted: #65716b;
  --line: #dfe5df;
  --paper: #f7f8f4;
  --white: #ffffff;
  --green: #2f6b52;
  --green-dark: #214f3c;
  --clay: #b65f3d;
  --clay-dark: #833820;
  --stone: #d9d4c8;
  --shadow: 0 18px 50px rgba(24, 32, 28, 0.14);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 54px);
  color: var(--white);
  transition:
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.nav-open {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px rgba(20, 26, 23, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 126px;
}

.site-header .brand {
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.22));
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 3vw, 36px);
  font-size: 0.94rem;
  font-weight: 700;
}

.main-nav a {
  opacity: 0.9;
}

.main-nav a:hover {
  opacity: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.header-cta,
.whatsapp-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
}

.header-cta {
  color: var(--white);
  background: var(--green);
}

.whatsapp-button {
  min-height: 42px;
  padding: 0 16px;
  color: var(--white);
  background: #1f9d58;
}

.site-header:not(.is-scrolled):not(.nav-open) .header-cta {
  background: var(--clay);
}

.button-primary {
  color: var(--white);
  background: var(--green);
}

.button-secondary {
  color: var(--ink);
  background: var(--stone);
}

.button-whatsapp {
  color: var(--white);
  background: #1f9d58;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid currentColor;
  border-radius: 6px;
  color: inherit;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: clamp(560px, 78vh, 760px);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  transform: scale(1.02);
}

.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(18, 23, 20, 0.86), rgba(18, 23, 20, 0.48) 52%, rgba(18, 23, 20, 0.3)),
    rgba(0, 0, 0, 0.16);
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 36px));
  margin-left: clamp(18px, 8vw, 112px);
  padding-top: 72px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--clay-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f0b28f;
}

.contact-section .eyebrow {
  color: #f0b28f;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.65rem, 7vw, 5.9rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.13rem;
}

.hero-content > p:not(.eyebrow) {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2.1vw, 1.32rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.section {
  padding: clamp(56px, 8vw, 104px) clamp(18px, 4vw, 54px);
}

.section-contained {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: min(1180px, calc(100% - 36px));
  margin: -46px auto 0;
  padding: 0;
  position: relative;
  z-index: 3;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: var(--line);
}

.stat {
  padding: 28px;
  background: var(--white);
}

.stat strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.stat span,
.service-card p,
.work-card p,
.about-content p,
.contact-intro,
.contact-list dd {
  color: var(--muted);
}

.section-heading {
  max-width: 850px;
  margin-bottom: 34px;
}

.section-heading.split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  max-width: none;
}

.text-link {
  color: var(--green);
  border: 0;
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.service-grid,
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card,
.work-card,
.admin-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.service-card {
  min-height: 210px;
  padding: 26px;
}

.icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 24px;
  border-radius: 8px;
  color: var(--white);
  background: var(--green);
  font-size: 1.3rem;
  font-weight: 900;
}

.works-section {
  background: #eef1eb;
}

.work-card {
  overflow: hidden;
}

.work-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--stone);
}

.work-body {
  padding: 20px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 900;
}

.meta span {
  padding: 5px 8px;
  border-radius: 5px;
  background: #e4eee8;
}

.about-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.about-image {
  min-height: 470px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(37, 46, 41, 0.04), rgba(37, 46, 41, 0.1)),
    url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=900&q=74")
      center / cover;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.advantage {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  padding: 18px;
  border-top: 2px solid var(--green);
  background: var(--white);
  font-weight: 900;
}

.advantage span {
  color: var(--clay-dark);
}

.contact-section {
  background: var(--ink);
  color: var(--white);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: clamp(28px, 6vw, 72px);
}

.contact-list {
  display: grid;
  gap: 18px;
  margin: 34px 0 0;
}

.contact-list div {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.contact-list dt {
  color: #f0b28f;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-list dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.82);
}

.contact-whatsapp {
  margin-top: 28px;
}

.contact-form,
.project-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-form {
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

label {
  display: grid;
  gap: 8px;
  color: inherit;
  font-size: 0.9rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--white);
}

textarea {
  resize: vertical;
}

.full {
  grid-column: 1 / -1;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  grid-column: 1 / -1;
  min-height: 24px;
  margin: 0;
  color: #f0b28f;
  font-weight: 800;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 4vw, 54px);
  color: rgba(255, 255, 255, 0.78);
  background: #171b18;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.site-footer span {
  font-weight: 900;
}

.cookie-banner {
  position: fixed;
  z-index: 30;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  width: min(680px, calc(100% - 28px));
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: var(--white);
  background: rgba(23, 27, 24, 0.96);
  box-shadow: var(--shadow);
}

.cookie-banner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.92rem;
}

.cookie-banner div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cookie-banner .text-link {
  color: #f0b28f;
  white-space: nowrap;
}

.legal-page {
  min-height: 100vh;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.legal-shell {
  width: min(920px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(44px, 7vw, 78px) 0;
}

.legal-shell h1 {
  max-width: 840px;
  margin-bottom: 12px;
  font-size: clamp(2.35rem, 6vw, 4.6rem);
}

.legal-shell h2 {
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.legal-shell section {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.legal-shell p,
.legal-shell li,
.legal-list dd {
  color: var(--muted);
}

.legal-shell a {
  color: var(--green-dark);
  font-weight: 900;
}

.legal-updated {
  margin: 0 0 34px;
}

.legal-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.legal-list div {
  display: grid;
  grid-template-columns: minmax(160px, 0.32fr) 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.legal-list dt {
  font-weight: 900;
}

.legal-list dd {
  margin: 0;
}

.admin-page {
  min-height: 100vh;
}

.admin-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 22px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.admin-title h1 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.5rem);
  line-height: 1.05;
}

.admin-actions-header {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.login-shell {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 116px);
  padding: 32px 18px;
}

.login-panel {
  width: min(460px, 100%);
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.login-panel h2 {
  margin-bottom: 24px;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-form .form-status {
  color: #a33b25;
}

.admin-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(420px, 1.15fr);
  gap: 20px;
  width: min(1280px, calc(100% - 36px));
  margin: 30px auto 60px;
}

.admin-panel {
  align-self: start;
  padding: clamp(18px, 3vw, 26px);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.panel-heading h2 {
  font-size: 1.35rem;
}

.project-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.image-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 10px;
}

.image-preview img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  object-fit: cover;
}

.admin-project-list {
  display: grid;
  gap: 14px;
}

.admin-item {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.admin-item img {
  width: 112px;
  height: 96px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--stone);
}

.admin-item h3 {
  margin-bottom: 6px;
}

.admin-item p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.small-button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--white);
  font-weight: 800;
  cursor: pointer;
}

.small-button.danger {
  color: #a33b25;
}

.empty-state {
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.not-found-page {
  min-height: 100vh;
}

.not-found-shell {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  min-height: 100vh;
  width: min(680px, calc(100% - 36px));
  margin: 0 auto;
  text-align: center;
}

.not-found-shell .brand {
  width: 160px;
  margin-bottom: 12px;
}

.not-found-shell h1 {
  font-size: clamp(2.4rem, 7vw, 4.8rem);
}

.not-found-shell p:not(.eyebrow) {
  max-width: 420px;
  margin: 0 0 12px;
  color: var(--muted);
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav,
  .header-actions {
    display: none;
  }

  .site-header.nav-open .main-nav,
  .site-header.nav-open .header-actions {
    display: flex;
    grid-column: 1 / -1;
  }

  .site-header.nav-open .main-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .site-header.nav-open .header-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: stretch;
  }

  .site-header.nav-open .header-actions a {
    flex: 1 1 180px;
  }

  .service-grid,
  .work-grid,
  .advantages-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-band,
  .contact-layout,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-actions-header {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .hero {
    min-height: 650px;
  }

  .hero-content {
    margin: 0 auto;
    padding-top: 96px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .stats-band,
  .service-grid,
  .work-grid,
  .advantages-grid,
  .contact-form,
  .project-form,
  .admin-header,
  .admin-item {
    grid-template-columns: 1fr;
  }

  .section-heading.split,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .cookie-banner {
    grid-template-columns: 1fr;
  }

  .cookie-banner div,
  .legal-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .about-image {
    min-height: 320px;
  }

  .admin-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }
}
