:root {
  --idassa-white: #faf2e0;
  --warm-wood: #d5ae7c;
  --tool-copper: #a76235;
  --charcoal: #1e1d17;
  --stone: #6f6a5d;
  --soft-stone: #e6dfd0;
  --line: rgba(30, 29, 23, 0.14);
  --white: #fffaf0;
  --shadow: 0 22px 60px rgba(30, 29, 23, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--idassa-white);
  color: var(--charcoal);
  overflow-x: hidden;
  font-family:
    "Segoe UI", Arial, Helvetica, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

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

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

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

#services,
#projects,
#about,
#contact {
  scroll-margin-top: 96px;
}

button {
  border: 0;
  cursor: pointer;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 14px clamp(16px, 4vw, 56px);
  color: var(--idassa-white);
  background: rgba(30, 29, 23, 0.76);
  border-bottom: 1px solid rgba(250, 242, 224, 0.16);
  backdrop-filter: blur(16px);
}

.brand,
.site-nav,
.language-switcher {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.brand:hover,
.brand:focus-visible {
  color: var(--idassa-white);
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(250, 242, 224, 0.34);
  border-radius: 8px;
  background: var(--idassa-white);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: grid;
  line-height: 1.05;
}

.brand-text strong {
  font-size: 1rem;
  letter-spacing: 0;
}

.brand-text span {
  color: rgba(250, 242, 224, 0.72);
  font-size: 0.77rem;
  font-weight: 700;
}

.site-nav {
  justify-content: center;
  gap: clamp(14px, 2.5vw, 32px);
  color: rgba(250, 242, 224, 0.78);
  font-size: 0.92rem;
  font-weight: 800;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--warm-wood);
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--idassa-white);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.language-switcher {
  gap: 8px;
  color: rgba(250, 242, 224, 0.5);
  font-weight: 900;
}

.language-switcher button {
  min-width: 34px;
  min-height: 34px;
  border-radius: 8px;
  background: transparent;
  color: rgba(250, 242, 224, 0.7);
  font-size: 0.86rem;
  font-weight: 900;
}

.language-switcher button.is-active {
  background: var(--idassa-white);
  color: var(--charcoal);
}

.logo-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.logo-modal[hidden] {
  display: none;
}

.logo-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(21, 20, 15, 0.78);
}

.logo-modal__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: min(720px, 92vw);
  max-height: 88vh;
  place-items: center;
  padding: clamp(22px, 5vw, 42px);
  border: 1px solid rgba(250, 242, 224, 0.2);
  border-radius: 18px;
  background: var(--idassa-white);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.logo-modal__dialog img {
  width: min(560px, 76vw);
  max-height: 70vh;
  object-fit: contain;
}

.logo-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  background: rgba(30, 29, 23, 0.08);
  color: var(--charcoal);
  font-size: 1.6rem;
  line-height: 1;
}

.logo-modal__close:hover,
.logo-modal__close:focus-visible {
  background: rgba(30, 29, 23, 0.16);
}

.hero {
  position: relative;
  min-height: 88svh;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: clamp(116px, 16vh, 168px) clamp(18px, 6vw, 84px) clamp(56px, 10vh, 108px);
  color: var(--idassa-white);
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(30, 29, 23, 0.82) 0%, rgba(30, 29, 23, 0.54) 45%, rgba(30, 29, 23, 0.16) 100%),
    linear-gradient(0deg, rgba(30, 29, 23, 0.52), rgba(30, 29, 23, 0.08) 38%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
}

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

.hero .eyebrow,
.contact-section .eyebrow {
  color: var(--warm-wood);
}

h1,
h2,
h3,
p,
dl,
dd {
  margin-top: 0;
}

dd {
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;
}

h1 {
  max-width: 1040px;
  margin-bottom: 22px;
  font-size: clamp(2.85rem, 6vw, 5.35rem);
  line-height: 0.95;
  letter-spacing: 0;
  hyphens: auto;
  overflow-wrap: break-word;
  text-wrap: balance;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
  line-height: 1.25;
}

p {
  color: var(--stone);
  line-height: 1.7;
}

.hero-lead {
  max-width: 690px;
  color: rgba(250, 242, 224, 0.86);
  font-size: clamp(1.02rem, 1.5vw, 1.24rem);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 900;
  line-height: 1.2;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--tool-copper);
  color: var(--idassa-white);
  box-shadow: 0 18px 42px rgba(30, 29, 23, 0.22);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #8e522f;
}

.button-secondary {
  border: 1px solid rgba(250, 242, 224, 0.56);
  color: var(--idassa-white);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(250, 242, 224, 0.12);
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: clamp(34px, 6vw, 54px) 0 0;
  padding: 0;
}

.trust-list div {
  padding-left: 16px;
  border-left: 2px solid var(--warm-wood);
}

.trust-list dt {
  margin-bottom: 4px;
  color: var(--idassa-white);
  font-weight: 900;
}

.trust-list dd {
  color: rgba(250, 242, 224, 0.72);
  font-size: 0.92rem;
  line-height: 1.45;
}

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

.services,
.projects {
  padding: clamp(74px, 10vw, 132px) 0;
}

.section-heading {
  max-width: 760px;
}

.section-heading p {
  font-size: clamp(1rem, 1.3vw, 1.16rem);
}

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

.service-card {
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 42px rgba(30, 29, 23, 0.08);
}

.service-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-card div {
  padding: 20px;
}

.service-card p {
  margin-bottom: 0;
  font-size: 0.98rem;
}

.why-band {
  background:
    linear-gradient(90deg, rgba(213, 174, 124, 0.32), rgba(250, 242, 224, 0.86)),
    var(--soft-stone);
}

.why-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  gap: clamp(34px, 7vw, 88px);
  align-items: start;
  padding: clamp(68px, 9vw, 112px) 0;
}

.why-list {
  display: grid;
  gap: 18px;
}

.why-list article {
  padding: 0 0 20px;
  border-bottom: 1px solid rgba(30, 29, 23, 0.16);
}

.why-list span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--tool-copper);
  font-weight: 900;
}

.why-list p {
  margin-bottom: 0;
}

.projects {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: clamp(30px, 6vw, 82px);
  align-items: center;
}

.project-media {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.project-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.project-copy p {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
}

.project-note {
  padding-left: 14px;
  border-left: 2px solid var(--tool-copper);
  color: var(--charcoal);
  font-weight: 800;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--tool-copper);
  font-weight: 900;
}

.text-link::after {
  content: "";
  width: 24px;
  height: 2px;
  background: currentColor;
}

.about-band {
  background: var(--charcoal);
  color: var(--idassa-white);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(34px, 7vw, 86px);
  align-items: center;
  padding: clamp(78px, 10vw, 134px) 0;
}

.about-copy p {
  color: rgba(250, 242, 224, 0.76);
}

.about-image {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.contact-section {
  position: relative;
  overflow: hidden;
  color: var(--idassa-white);
}

.contact-bg,
.contact-overlay {
  position: absolute;
  inset: 0;
}

.contact-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-overlay {
  background:
    linear-gradient(90deg, rgba(30, 29, 23, 0.88), rgba(30, 29, 23, 0.68) 48%, rgba(30, 29, 23, 0.42)),
    linear-gradient(0deg, rgba(30, 29, 23, 0.42), rgba(30, 29, 23, 0.12));
}

.contact-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
  gap: clamp(30px, 6vw, 76px);
  align-items: start;
  min-height: 720px;
  padding: clamp(78px, 10vw, 130px) 0;
}

.contact-copy p {
  max-width: 620px;
  color: rgba(250, 242, 224, 0.78);
  font-size: clamp(1rem, 1.3vw, 1.16rem);
}

.contact-copy .contact-phone {
  margin-top: 18px;
  color: rgba(250, 242, 224, 0.9);
  font-weight: 800;
}

.contact-copy h2 {
  max-width: 680px;
  font-size: clamp(2.15rem, 4vw, 3.65rem);
  text-wrap: balance;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(250, 242, 224, 0.22);
  border-radius: 8px;
  background: rgba(250, 242, 224, 0.95);
  color: var(--charcoal);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.22);
}

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

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--charcoal);
  font-size: 0.92rem;
  font-weight: 900;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(30, 29, 23, 0.22);
  border-radius: 8px;
  background: #fffdf7;
  color: var(--charcoal);
  padding: 11px 12px;
  outline: none;
}

.form-helper-text,
.form-helper-bubble,
.form-file-list,
.form-file-error {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
}

.form-helper-text {
  color: rgba(30, 29, 23, 0.72);
  font-weight: 700;
}

.form-helper-bubble {
  width: fit-content;
  max-width: 100%;
  border: 1px solid rgba(167, 98, 53, 0.24);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.9);
  color: var(--stone);
  padding: 7px 11px;
  font-weight: 800;
}

.phone-field,
.postal-code-field {
  position: relative;
}

.phone-field .form-helper-bubble,
.postal-code-field .form-helper-bubble {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 4;
  max-width: min(360px, 90vw);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(30, 29, 23, 0.16);
  pointer-events: none;
}

.postal-code-field .form-helper-bubble {
  top: auto;
  right: 0;
  bottom: calc(100% + 8px);
  left: auto;
}

.file-upload-field {
  cursor: pointer;
}

.file-upload-field .visually-hidden-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-upload-control {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.form-upload-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(167, 98, 53, 0.5);
  border-radius: 8px;
  background: var(--tool-copper);
  color: #fffdf7;
  padding: 11px 16px;
  font-weight: 900;
}

.file-upload-field:focus-within .form-upload-button {
  outline: 2px solid var(--tool-copper);
  outline-offset: 3px;
}

.form-file-list {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--stone);
  font-weight: 700;
}

.form-file-error {
  min-height: 18px;
  color: #8f2f22;
  font-weight: 800;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--tool-copper);
  box-shadow: 0 0 0 3px rgba(167, 98, 53, 0.18);
}

.button-form {
  width: 100%;
  background: var(--charcoal);
  color: var(--idassa-white);
}

.button-form:disabled {
  cursor: wait;
  opacity: 0.7;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--stone);
  font-size: 0.9rem;
}

.form-status[data-state="success"] {
  color: #265f33;
  font-weight: 800;
}

.form-status[data-state="error"] {
  color: #8f2f22;
  font-weight: 800;
}

.follow-section {
  padding: clamp(56px, 8vw, 96px) 0;
  background:
    radial-gradient(circle at top left, rgba(213, 174, 124, 0.28), transparent 34%),
    linear-gradient(180deg, var(--idassa-white), #f3e8d4);
}

.follow-card {
  display: grid;
  justify-items: center;
  gap: clamp(18px, 3vw, 28px);
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid rgba(167, 98, 53, 0.18);
  border-radius: 18px;
  background: rgba(255, 250, 240, 0.78);
  box-shadow: var(--shadow);
  text-align: center;
}

.follow-card .eyebrow {
  margin-bottom: 0;
  font-size: clamp(0.95rem, 1.6vw, 1.24rem);
}

.connector-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: clamp(14px, 3vw, 28px);
  width: 100%;
}

.connector-link {
  display: grid;
  width: clamp(96px, 14vw, 156px);
  aspect-ratio: 1;
  place-items: center;
  padding: clamp(14px, 2vw, 22px);
  border: 1px solid rgba(30, 29, 23, 0.1);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 16px 36px rgba(30, 29, 23, 0.1);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.connector-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.connector-link:hover,
.connector-link:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(167, 98, 53, 0.42);
  box-shadow: 0 22px 48px rgba(30, 29, 23, 0.16);
}

.powered-by-link {
  display: grid;
  width: min(280px, 46vw);
  place-items: center;
  padding: clamp(12px, 2vw, 18px) clamp(18px, 4vw, 34px);
  border: 1px solid rgba(30, 29, 23, 0.1);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.88);
  box-shadow: 0 12px 30px rgba(30, 29, 23, 0.08);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.powered-by-link img {
  width: 100%;
  max-height: 58px;
  object-fit: contain;
}

.powered-by-link:hover,
.powered-by-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(167, 98, 53, 0.34);
  box-shadow: 0 16px 38px rgba(30, 29, 23, 0.12);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 6vw, 84px);
  background: #15140f;
  color: var(--idassa-white);
}

.site-footer p {
  margin: 6px 0 0;
  color: rgba(250, 242, 224, 0.64);
}

.site-footer .footer-meta {
  margin-top: 8px;
  font-size: 0.86rem;
  color: rgba(250, 242, 224, 0.58);
}

.site-footer a {
  color: var(--warm-wood);
  font-weight: 900;
}

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

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .language-switcher {
    justify-self: end;
  }

  .hero {
    padding-top: 150px;
  }

  .trust-list,
  .service-grid,
  .why-layout,
  .projects,
  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    min-height: auto;
  }
}

@media (max-width: 700px) {
  #services,
  #projects,
  #about,
  #contact {
    scroll-margin-top: 112px;
  }

  .site-header {
    gap: 12px;
    padding: 12px 14px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .logo-modal {
    padding: 16px;
  }

  .logo-modal__dialog {
    width: 100%;
    padding: 36px 18px 24px;
  }

  .logo-modal__dialog img {
    width: 82vw;
  }

  .site-nav {
    gap: 16px;
    font-size: 0.86rem;
  }

  .hero {
    min-height: 88svh;
    padding: 154px 18px 48px;
  }

  .hero-media img {
    object-position: center;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(30, 29, 23, 0.82), rgba(30, 29, 23, 0.46)),
      linear-gradient(90deg, rgba(30, 29, 23, 0.62), rgba(30, 29, 23, 0.28));
  }

  h1 {
    font-size: clamp(2.45rem, 12vw, 3.35rem);
    line-height: 1;
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero-actions {
    display: grid;
  }

  .trust-list {
    gap: 14px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .section-shell {
    width: min(100% - 28px, 1180px);
  }

  .services,
  .projects,
  .about-layout,
  .why-layout,
  .contact-layout {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .contact-form {
    padding: 16px;
  }

  .contact-form-grid {
    grid-template-columns: 1fr;
  }

  .phone-field .form-helper-bubble {
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-width: none;
  }

  .follow-section {
    padding: 42px 0;
  }

  .follow-card {
    gap: 16px;
    padding: 24px 14px;
    border-radius: 14px;
  }

  .connector-row {
    flex-wrap: wrap;
    gap: 12px;
  }

  .connector-link {
    width: clamp(82px, 27vw, 112px);
    border-radius: 14px;
  }

  .powered-by-link {
    width: min(220px, 64vw);
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.button-outline {
  border: 1px solid rgba(167, 98, 53, 0.46);
  background: rgba(255, 250, 240, 0.56);
  color: var(--tool-copper);
}

.button-outline:hover,
.button-outline:focus-visible {
  border-color: var(--tool-copper);
  background: var(--white);
  color: #8e522f;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.gallery-page {
  min-height: 100svh;
}

.gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(16px, 4vw, 56px);
  color: var(--idassa-white);
  background: var(--charcoal);
}

.gallery-back {
  color: rgba(250, 242, 224, 0.82);
  font-weight: 900;
}

.gallery-back:hover,
.gallery-back:focus-visible {
  color: var(--idassa-white);
}

.gallery-main {
  padding: clamp(54px, 8vw, 94px) 0;
}

.gallery-shell {
  display: grid;
  gap: clamp(28px, 5vw, 46px);
}

.gallery-heading {
  max-width: 760px;
}

.gallery-intro {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.gallery-title {
  max-width: 760px;
  margin: 0;
  color: var(--charcoal);
  font-size: clamp(2.45rem, 5vw, 4.4rem);
  font-weight: 900;
  line-height: 1;
}

.gallery-empty {
  max-width: 720px;
  margin: 0;
  padding: clamp(24px, 5vw, 38px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--stone);
  font-size: clamp(1rem, 1.3vw, 1.14rem);
  font-weight: 800;
  box-shadow: 0 14px 42px rgba(30, 29, 23, 0.08);
}

.gallery-empty[hidden] {
  display: none;
}

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

.gallery-card {
  overflow: hidden;
  min-width: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 42px rgba(30, 29, 23, 0.08);
  aspect-ratio: 4 / 5;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.gallery-card:hover,
.gallery-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 46px rgba(30, 29, 23, 0.14);
}

.gallery-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-lightbox {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(21, 20, 15, 0.82);
}

.gallery-lightbox__dialog {
  position: relative;
  z-index: 1;
  max-width: min(1100px, 94vw);
  max-height: 90vh;
}

.gallery-lightbox__dialog img {
  display: block;
  width: auto;
  max-width: min(94vw, 1100px);
  max-height: 90vh;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.gallery-lightbox__close {
  position: absolute;
  top: -14px;
  right: -14px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 999px;
  background: var(--idassa-white);
  color: var(--charcoal);
  font-size: 1.6rem;
  line-height: 1;
}

.gallery-lightbox__close:hover,
.gallery-lightbox__close:focus-visible {
  background: var(--white);
}

@media (max-width: 980px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .project-actions,
  .gallery-header {
    align-items: stretch;
    flex-direction: column;
  }

  .project-actions .button {
    width: 100%;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-lightbox__close {
    top: 8px;
    right: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-card,
  .button-outline {
    transition: none !important;
  }
}

.service-choice-field,
.pricing-details,
.material-help-field,
.file-upload-field,
.contact-form > label {
  grid-column: 1 / -1;
}

.service-choice-field {
  gap: 10px;
  border: 1px solid rgba(167, 98, 53, 0.28);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 253, 247, 0.98), rgba(244, 230, 204, 0.92));
  padding: 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 253, 247, 0.72);
}

.service-choice-field > span:first-child {
  color: var(--tool-copper);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  letter-spacing: -0.01em;
}

.service-choice-field select {
  min-height: 58px;
  border-color: rgba(167, 98, 53, 0.45);
  border-radius: 12px;
  background: #fffdf7;
  color: var(--charcoal);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 900;
}

.pricing-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
  overflow: hidden;
}

.pricing-details--single-area .pricing-field[data-pricing-field="area_m2"],
.pricing-details--single-subtype .pricing-field[data-pricing-field="pricing_subtype"],
.pricing-details--detail-row .pricing-field[data-pricing-field="pricing_subtype"],
.pricing-details--detail-row .pricing-field[data-pricing-field="quantity"],
.pricing-details--detail-row .pricing-field[data-pricing-field="area_m2"] {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(100%, calc((100% - 14px) / 2));
}

.pricing-field {
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    max-height 220ms ease,
    opacity 180ms ease,
    transform 220ms ease;
}

.pricing-field.is-visible {
  max-height: 180px;
  opacity: 1;
  transform: translateY(0);
}

.material-help-field select {
  max-width: 100%;
}

@media (max-width: 700px) {
  .pricing-details {
    grid-template-columns: 1fr;
  }

  .pricing-details--single-area .pricing-field[data-pricing-field="area_m2"],
  .pricing-details--single-subtype .pricing-field[data-pricing-field="pricing_subtype"],
  .pricing-details--detail-row .pricing-field[data-pricing-field="pricing_subtype"],
  .pricing-details--detail-row .pricing-field[data-pricing-field="quantity"],
  .pricing-details--detail-row .pricing-field[data-pricing-field="area_m2"] {
    grid-column: 1;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pricing-field {
    transition: none !important;
  }
}
