:root {
  --bg: #faf7f2;
  --text: #1f1f1f;
  --muted: #5a5a5a;
  --rule: rgba(0, 0, 0, 0.12);
  --max: 1200px;
}

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

html {
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.55;
  letter-spacing: 0.01em;
}

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

a {
  color: inherit;
  text-underline-offset: 0.15em;
  text-decoration-thickness: 1px;
}

a:hover,
a:focus-visible {
  text-decoration-thickness: 2px;
}

.container {
  width: min(var(--max), 100% - 3rem);
  margin-inline: auto;
}

.work .container {
  width: min(1320px, 100% - 3rem);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--rule);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.5rem;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 3rem;
}

.site-nav .nav-list,
.footer-nav .nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-list a {
  text-decoration: none;
  padding-block: 0.25rem;
}

.nav-list a:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.site-main {
  padding-bottom: 4rem;
}

.hero {
  padding-block: 4.75rem 3.75rem;
}

.hero-inner {
  display: grid;
  gap: 1.25rem;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.subtitle {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.authority {
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  letter-spacing: 0.02em;
}

.hero-meta {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.meta-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.meta-text {
  margin: 0.4rem 0 0;
  color: var(--text);
}

.section {
  padding-block: 4.5rem;
  border-top: 1px solid var(--rule);
}

.section-header {
  margin-bottom: 1.5rem;
}

h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.gallery-item {
  margin: 0;
  border: 1px solid var(--rule);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  min-height: 14rem;
  object-fit: cover;
  background: #f1eee7;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.service-list li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.15rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--rule);
}

.service-name {
  font-weight: 650;
  letter-spacing: 0.01em;
}

.service-desc {
  color: var(--muted);
}

.simple-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.simple-list.cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.25rem;
}

.simple-list li {
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--rule);
}

.estimate-form {
  max-width: 36rem;
  display: grid;
  gap: 1.35rem;
}

.form-field {
  display: grid;
  gap: 0.4rem;
}

.form-field label {
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.form-field input,
.form-field textarea {
  width: 100%;
  margin: 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--rule);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  line-height: 1.45;
  border-radius: 0;
}

.form-field textarea {
  resize: vertical;
  min-height: 10rem;
}

.form-field input:focus-visible,
.form-field textarea:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.form-actions {
  padding-top: 0.25rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.05rem;
  border: 1px solid var(--text);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: 0.01em;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  font: inherit;
}

.button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.privacy-notice {
  margin: 2rem 0 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: 2.5rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

.footer-name {
  font-weight: 650;
}

.footer-tagline,
.footer-area {
  color: var(--muted);
  margin-top: 0.35rem;
}

@media (min-width: 720px) {
  .hero-meta {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
  }

  .simple-list.cols {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

@media (min-width: 640px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .gallery-item img {
    min-height: 16rem;
  }

  .service-list li {
    grid-template-columns: 1fr 1.35fr;
    gap: 1rem;
    align-items: baseline;
  }
}

@media (min-width: 980px) {
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
  }

  .gallery-item img {
    min-height: 18rem;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(var(--max), 100% - 2rem);
  }

  .work .container {
    width: min(1320px, 100% - 2rem);
  }

  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
  }

  .brand {
    justify-content: center;
    width: 100%;
  }

  .brand-logo {
    max-height: none;
    width: 100%;
    max-width: 100%;
    object-fit: contain;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav .nav-list {
    justify-content: center;
    gap: 1rem;
  }

  .simple-list.cols {
    grid-template-columns: 1fr 1fr;
  }
}
