:root {
  --ink-900: #1d1d1b;
  --ink-800: #2e2d2a;
  --ink-700: #4a4843;
  --soil-700: #5d4633;
  --soil-500: #8a6a4d;
  --sand-200: #ece4d6;
  --sand-100: #f5f1e8;
  --stone-100: #faf8f4;
  --brand-accent: #a57945;
  --line: #d5cab8;
  --white: #ffffff;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-soft: 0 10px 30px rgba(40, 31, 20, 0.08);
  --shadow-strong: 0 18px 45px rgba(31, 24, 15, 0.18);
  --header-h: 84px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--ink-900);
  background: var(--stone-100);
  line-height: 1.6;
}

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

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -46px;
  z-index: 999;
  background: var(--ink-900);
  color: var(--white);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 244, 0.95);
  border-bottom: 1px solid rgba(93, 70, 51, 0.2);
  backdrop-filter: blur(8px);
}

.top-banner {
  background: linear-gradient(90deg, #5d4633, #6a523d);
  border-bottom: 1px solid rgba(29, 29, 27, 0.25);
  color: #f7f1e6;
}

.top-banner .container {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.top-banner p {
  margin: 0;
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.nav-wrap {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 94px;
  height: 60px;
  object-fit: contain;
}

.brand-name {
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--ink-800);
  max-width: 16ch;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 600;
  color: var(--ink-700);
}

.site-nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: var(--soil-500);
}

.nav-phone {
  margin-left: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  min-height: 40px;
  line-height: 1.1;
  padding-left: 0;
}

.nav-phone:hover,
.nav-phone:focus-visible {
  color: var(--ink-900);
}

.nav-divider {
  width: 1px;
  height: 38px;
  margin: 0 8px 0 12px;
  background: rgba(93, 70, 51, 0.32);
}

.site-nav:hover .nav-divider,
.site-nav:focus-within .nav-divider {
  background: rgba(93, 70, 51, 0.55);
}

.nav-phone-label {
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--soil-700);
  font-weight: 700;
}

.nav-phone-number {
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
  font-size: 1.05rem;
  color: var(--ink-900);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(93, 70, 51, 0.32);
  border-radius: var(--radius-sm);
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink-900);
  border-radius: 5px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 68px 0 62px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(0deg, rgba(245, 241, 232, 0.95), rgba(245, 241, 232, 0.95)),
    radial-gradient(circle at 10% 10%, rgba(138, 106, 77, 0.2), transparent 50%);
}

.hero-texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.25;
  background-image:
    linear-gradient(0deg, transparent 93%, rgba(74, 72, 67, 0.2) 100%),
    repeating-linear-gradient(
      -35deg,
      rgba(93, 70, 51, 0.08),
      rgba(93, 70, 51, 0.08) 2px,
      transparent 2px,
      transparent 16px
    );
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 34px;
  align-items: start;
}

.kicker {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--soil-700);
}

h1,
h2,
h3,
.brand-name {
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
  line-height: 1.2;
  margin: 0 0 14px;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.35rem);
  color: var(--ink-800);
  max-width: 18ch;
}

.lead {
  margin: 0;
  max-width: 60ch;
  color: #353430;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin: 24px 0 20px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 700;
  padding: 12px 20px;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.btn-primary {
  color: var(--white);
  background: var(--ink-900);
  border-color: var(--ink-900);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  color: var(--ink-900);
  background: transparent;
}

.btn-secondary {
  color: var(--ink-900);
  border-color: rgba(30, 29, 27, 0.4);
  background: rgba(255, 255, 255, 0.65);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--ink-900);
  background: rgba(255, 255, 255, 0.95);
}

.btn-dark {
  color: var(--white);
  background: var(--soil-700);
  border-color: var(--soil-700);
}

.btn-dark:hover,
.btn-dark:focus-visible {
  color: var(--soil-700);
  background: transparent;
}

.hero-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.hero-points li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-800);
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--soil-500), var(--soil-700));
  box-shadow: 0 0 0 2px rgba(245, 241, 232, 1);
}

.hero-panel {
  background: var(--white);
  border: 1px solid rgba(93, 70, 51, 0.26);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.hero-logo {
  width: min(280px, 100%);
  margin: 0 auto 18px;
}

.hero-panel dl {
  margin: 0;
  display: grid;
  gap: 14px;
}

.hero-panel dt {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.75rem;
  color: var(--soil-700);
}

.hero-panel dd {
  margin: 0;
  color: var(--ink-800);
}

.section {
  padding: 78px 0;
}

.section-head {
  max-width: 75ch;
  margin-bottom: 34px;
}

.section-head p {
  margin: 0;
  color: #3f3d39;
}

.section h2 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  color: var(--ink-800);
}

.services {
  background: var(--sand-100);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.service-card {
  border: 1px solid rgba(93, 70, 51, 0.18);
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.service-card h3 {
  margin-bottom: 8px;
  color: var(--ink-800);
}

.service-card p {
  margin: 0;
  color: #3d3b36;
}

.service-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 12px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #f2e7d6, #e5d0b3);
  border: 1px solid rgba(138, 106, 77, 0.35);
}

.service-icon svg {
  width: 23px;
  height: 23px;
  fill: var(--soil-700);
}

.material-card {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--ink-800);
  color: var(--sand-100);
  border-radius: var(--radius-lg);
  border: 1px solid #5a5147;
  padding: 24px;
}

.material-card h3 {
  color: var(--white);
  margin-bottom: 8px;
}

.material-card p {
  margin: 0;
  max-width: 68ch;
  color: #eee7d9;
}

.about {
  background: var(--stone-100);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  align-items: start;
}

.about-grid p {
  color: #373631;
}

.about-points {
  margin: 0;
  padding: 22px;
  list-style: none;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid rgba(93, 70, 51, 0.22);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 12px;
}

.about-points li {
  position: relative;
  padding-left: 24px;
  font-weight: 600;
  color: var(--ink-800);
}

.about-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 11px;
  height: 11px;
  border-radius: 2px;
  background: var(--brand-accent);
}

.gallery {
  background: linear-gradient(180deg, #ebe3d6 0%, #f5f1e8 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.gallery-card {
  margin: 0;
  padding: 0;
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  border: 1px solid rgba(93, 70, 51, 0.24);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.gallery-card:hover,
.gallery-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
  border-color: rgba(93, 70, 51, 0.45);
}

.gallery-card:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}

.gallery-card__media {
  position: relative;
}

.gallery-card__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background:
    linear-gradient(160deg, rgba(74, 72, 67, 0.3), rgba(93, 70, 51, 0.4)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12) 16px, transparent 16px, transparent 32px),
    #8a6a4d;
}

.gallery-card__count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(29, 29, 27, 0.72);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.gallery-card__body {
  min-height: 92px;
  padding: 14px 16px 15px;
  border-top: 1px solid rgba(93, 70, 51, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.gallery-card__title {
  display: block;
  margin: 0;
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--ink-800);
  font-size: 1.28rem;
}

.gallery-card__label {
  display: block;
  margin: 0;
  color: #4e4a44;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
}

body.no-scroll {
  overflow: hidden;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.gallery-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 17, 12, 0.82);
  backdrop-filter: blur(3px);
}

.gallery-modal__panel {
  position: relative;
  width: min(1040px, 100%);
  max-height: min(92vh, 900px);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(150, 121, 86, 0.45);
  background: #1f1d1a;
  color: #f6f0e5;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.45);
}

.gallery-modal__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(189, 161, 127, 0.24);
  background: #2a2723;
}

.gallery-modal__eyebrow {
  margin: 0;
  font-size: 0.73rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cfb08a;
  font-weight: 700;
}

.gallery-modal__title {
  margin: 2px 0 0;
  color: #fbf8f2;
  font-size: 1.2rem;
}

.gallery-modal__close {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(189, 161, 127, 0.35);
  background: rgba(255, 255, 255, 0.03);
  color: #fff9ef;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.gallery-modal__close:hover,
.gallery-modal__close:focus-visible {
  background: rgba(255, 255, 255, 0.09);
}

.gallery-modal__viewer {
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr 54px;
  align-items: center;
  gap: 8px;
  padding: 12px;
}

.gallery-modal__arrow {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(189, 161, 127, 0.45);
  background: rgba(255, 255, 255, 0.06);
  color: #f5e6d3;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.gallery-modal__arrow:hover,
.gallery-modal__arrow:focus-visible {
  background: rgba(255, 255, 255, 0.14);
}

.gallery-modal__figure {
  margin: 0;
}

.gallery-modal__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(189, 161, 127, 0.24);
  background:
    linear-gradient(160deg, rgba(74, 72, 67, 0.3), rgba(93, 70, 51, 0.4)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12) 16px, transparent 16px, transparent 32px),
    #8a6a4d;
}

.gallery-modal__meta {
  margin-top: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gallery-modal__count {
  font-weight: 700;
  color: #cfb08a;
}

.gallery-modal__caption {
  color: #f7f2ea;
  text-align: right;
}

.contact {
  background: var(--stone-100);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 22px;
  align-items: start;
}

.contact-list {
  list-style: none;
  margin: 18px 0 24px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.contact-list a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-form {
  background: var(--white);
  border: 1px solid rgba(93, 70, 51, 0.24);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 22px;
}

.contact-form h3 {
  margin-bottom: 6px;
}

.contact-form p {
  margin-top: 0;
  color: #494742;
}

.contact-form label {
  display: block;
  margin: 11px 0 6px;
  font-weight: 700;
  color: var(--ink-800);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #b8a98f;
  border-radius: 9px;
  padding: 11px 12px;
  font: inherit;
  background: #fffcf7;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid #b98a58;
  outline-offset: 1px;
}

.contact-form button {
  margin-top: 14px;
  width: 100%;
}

.contact-form button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-status {
  margin: 10px 0 0;
  min-height: 26px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-loading {
  background: #ede3d2;
  color: #4b3d2c;
  border: 1px solid #d2b995;
}

.form-status.is-success {
  background: #e2f3e8;
  color: #1f5a33;
  border: 1px solid #9fcead;
}

.form-status.is-error {
  background: #f7e2e1;
  color: #7a2520;
  border: 1px solid #dea8a4;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #efe5d6;
}

.footer-wrap {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.95rem;
}

.footer-wrap a {
  font-weight: 700;
}

@media (max-width: 980px) {
  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .hero {
    padding-top: 52px;
  }

  .hero-panel {
    max-width: 680px;
  }

  .gallery-modal {
    padding: 14px;
  }

  .gallery-modal__viewer {
    grid-template-columns: 44px 1fr 44px;
    gap: 6px;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 74px;
  }

  .brand img {
    width: 83px;
  }

  .top-banner .container {
    min-height: 44px;
    padding: 6px 0;
  }

  .top-banner p {
    font-size: 0.84rem;
    line-height: 1.25;
  }

  .brand-name {
    font-size: 0.94rem;
    max-width: 14ch;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 4vw;
    left: 4vw;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    background: #f7f1e6;
    border: 1px solid rgba(93, 70, 51, 0.28);
    border-radius: var(--radius-md);
    padding: 14px;
    box-shadow: var(--shadow-strong);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    border-bottom: 0;
    padding: 7px 0;
  }

  .nav-phone {
    margin-left: 0;
    margin-top: 4px;
    padding-left: 0;
    width: 100%;
    align-items: flex-start;
  }

  .nav-divider {
    display: none;
  }

  .material-card {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .gallery-modal {
    align-items: center;
    justify-content: center;
    padding:
      calc(env(safe-area-inset-top, 0px) + 8px)
      8px
      calc(env(safe-area-inset-bottom, 0px) + 8px);
    overflow: hidden;
  }

  .gallery-modal__backdrop {
    position: fixed;
    inset: 0;
  }

  .gallery-modal__panel {
    width: min(96vw, 760px);
    height: auto;
    max-height: calc(88svh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .gallery-modal__topbar {
    position: sticky;
    top: 0;
    flex: 0 0 auto;
    z-index: 3;
    padding: 10px 12px;
  }

  .gallery-modal__close {
    width: 38px;
    height: 38px;
    font-size: 1.5rem;
    background: rgba(31, 29, 26, 0.95);
    border-color: rgba(255, 236, 207, 0.8);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  }

  .gallery-modal__viewer {
    flex: 0 1 auto;
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 8px;
    overflow: visible;
  }

  .gallery-modal__arrow {
    position: absolute;
    top: 52%;
    z-index: 2;
    background: rgba(31, 29, 26, 0.9);
    border-color: rgba(255, 236, 207, 0.75);
    color: #fff6e7;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  }

  .gallery-modal__arrow--prev {
    left: 12px;
  }

  .gallery-modal__arrow--next {
    right: 12px;
  }

  .gallery-modal__image {
    aspect-ratio: auto;
    max-height: calc(62svh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    object-fit: contain;
  }

  .gallery-modal__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .gallery-modal__caption {
    text-align: left;
  }

  .section {
    padding: 62px 0;
  }

  .footer-wrap {
    min-height: auto;
    padding: 16px 0;
    flex-direction: column;
    align-items: flex-start;
  }
}
