:root {
  --green: #002d22;
  --green-2: #064634;
  --gold: #d5ad62;
  --gold-2: #f0d99c;
  --ink: #10241e;
  --muted: #6b716c;
  --paper: #fbf8f1;
  --white: #fffdf8;
  --line: rgba(16, 36, 30, 0.14);
  --shadow: 0 24px 60px rgba(2, 20, 15, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Aptos", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

main p:not(.section-kicker),
footer p,
address {
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
  text-wrap: pretty;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
}

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

.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: 36px;
  padding: 26px clamp(22px, 4vw, 72px);
  color: var(--white);
  transition: background 220ms ease, padding 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled {
  padding-top: 14px;
  padding-bottom: 14px;
  background: rgba(0, 45, 34, 0.94);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  width: 168px;
  background: transparent;
}

.brand img {
  width: 100%;
  height: auto;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(22px, 4vw, 62px);
}

.main-nav a,
.phone-link,
.text-link {
  text-decoration: none;
  font-weight: 500;
}

.main-nav a {
  position: relative;
  color: rgba(255, 253, 248, 0.88);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

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

.phone-link {
  padding: 13px 20px;
  border: 1px solid var(--gold);
  color: var(--gold-2);
  letter-spacing: 0.03em;
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  color: var(--white);
  background: var(--green);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 37, 28, 0.96) 0%, rgba(0, 37, 28, 0.86) 32%, rgba(0, 37, 28, 0.2) 65%, rgba(0, 0, 0, 0.14) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.04) 50%, rgba(0, 45, 34, 0.36));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 690px;
  padding: 220px clamp(22px, 6vw, 98px) 150px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.04;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(3.1rem, 7vw, 6.35rem);
  max-width: 760px;
}

h2 {
  color: var(--green);
  font-size: clamp(2.1rem, 4vw, 4rem);
}

h3 {
  color: var(--green);
  font-size: 1.65rem;
}

.gold-rule {
  width: 76px;
  height: 3px;
  margin: 34px 0 28px;
  background: var(--gold);
}

.hero-copy {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 253, 248, 0.88);
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
}

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

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button-gold {
  color: #17221d;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
}

.button-outline {
  color: var(--gold-2);
  border-color: var(--gold);
  background: rgba(0, 45, 34, 0.42);
}

.info-strip {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 38px;
  align-items: center;
  padding: 20px clamp(22px, 6vw, 98px);
  background: rgba(0, 63, 47, 0.82);
  backdrop-filter: blur(12px);
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.info-strip span {
  position: relative;
}

.info-strip span + span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -23px;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--gold);
}

.section {
  padding: clamp(72px, 9vw, 128px) clamp(22px, 6vw, 98px);
}

.process {
  text-align: center;
  background: var(--white);
}

.process h2 {
  max-width: 820px;
  margin: 0 auto;
}

.process-lead {
  max-width: 880px;
  margin: 24px auto 0;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 46px;
  margin-top: 62px;
  text-align: left;
}

.process-grid article {
  position: relative;
  padding-left: 96px;
}

.process-grid article + article {
  border-left: 1px solid rgba(213, 173, 98, 0.5);
  padding-left: 120px;
}

.step {
  position: absolute;
  left: 0;
  top: -8px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.15rem;
  line-height: 1;
}

.process-grid article + article .step {
  left: 46px;
}

.process-grid p,
.section-heading p,
.offer-detail p,
.offer-subcategories p,
.showroom-copy p,
.trust-grid p,
.contact p,
address {
  color: var(--muted);
}

.offer {
  background: #f6f1e7;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
  gap: 44px;
  align-items: end;
  margin-bottom: 44px;
}

.section-heading .section-kicker {
  grid-column: 1 / -1;
  margin-bottom: -30px;
}

.section-heading p {
  margin: 0;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.offer-item {
  display: grid;
  min-height: 132px;
  gap: 8px;
  align-content: center;
  padding: 26px 24px;
  border: 0;
  border-right: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease;
}

.offer-item[aria-pressed="false"] {
  color: var(--ink) !important;
  background: transparent !important;
}

.offer-item[aria-pressed="false"]:hover,
.offer-item[aria-pressed="false"]:focus-visible {
  background: transparent !important;
}

.offer-item:last-child {
  border-right: 0;
}

.offer-item.active,
.offer-item[aria-pressed="true"] {
  color: var(--white) !important;
  background: var(--green) !important;
}

.offer-item span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
}

.offer-item small {
  color: currentColor;
  opacity: 0.7;
}

.offer-detail {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(360px, 1fr);
  gap: 44px 52px;
  align-items: start;
  margin-top: 56px;
}

.offer-intro p:last-child {
  max-width: 560px;
  font-size: 1.05rem;
}

.offer-subcategories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(16, 36, 30, 0.14);
  border: 1px solid rgba(16, 36, 30, 0.14);
}

.offer-subcategories article {
  min-height: 170px;
  padding: 24px;
  background: #fffaf1;
}

.offer-card-image {
  width: calc(100% + 48px);
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center center;
  background: #fffaf1;
  margin: -24px -24px 18px;
  max-width: none;
  box-shadow: none;
}

.offer-subcategories h4 {
  margin: 0 0 10px;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  line-height: 1.18;
}

.offer-subcategories p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.offer-detail img,
.showroom img {
  grid-column: 1 / -1;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.offer-detail .offer-card-image {
  grid-column: auto;
  width: calc(100% + 48px);
  max-height: none;
  object-fit: contain;
  object-position: center center;
  box-shadow: none;
}

.offer-detail .offer-card-photo {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

.offer-detail .offer-card-product {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center;
  padding: 12px 18px;
}

.showroom {
  display: grid;
  grid-template-columns: minmax(320px, 0.76fr) minmax(420px, 1fr);
  gap: 70px;
  align-items: center;
  padding: clamp(72px, 9vw, 132px) clamp(22px, 6vw, 98px);
  background: var(--green);
  color: var(--white);
}

.showroom > img {
  grid-column: auto;
  align-self: center;
  width: 100%;
  height: min(520px, 44vw);
  max-height: none;
  object-fit: cover;
}

.showroom h2 {
  color: var(--white);
}

.showroom-copy p {
  max-width: 590px;
  color: rgba(255, 253, 248, 0.74);
}

.text-link {
  display: inline-flex;
  align-items: center;
  color: var(--gold-2);
  border-bottom: 1px solid currentColor;
}

.realizacje {
  background: #f6f1e7;
}

.realizacje-carousel {
  position: relative;
}

.realizacje-grid {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.realizacje-grid::-webkit-scrollbar {
  display: none;
}

.realizacje figure {
  flex: 0 0 calc((100% - 54px) / 4);
  margin: 0;
  scroll-snap-align: start;
}

.realizacje img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  box-shadow: 0 20px 46px rgba(2, 20, 15, 0.12);
}

.carousel-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--white);
  background: var(--green);
  font-size: 1.45rem;
  cursor: pointer;
  transform: translateY(-50%);
  transition: color 160ms ease, background 160ms ease, opacity 160ms ease;
}

.carousel-arrow:hover,
.carousel-arrow:focus-visible {
  color: var(--green);
  background: var(--gold-2);
}

.carousel-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.carousel-arrow-prev {
  left: -25px;
}

.carousel-arrow-next {
  right: -25px;
}

.trust {
  text-align: center;
  background: var(--white);
}

.trust h2 {
  margin-bottom: 18px;
}

.trust-lead {
  max-width: 760px;
  margin: 0 auto 48px;
  color: rgba(16, 36, 30, 0.72);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  max-width: 1120px;
  margin: 0 auto;
}

.trust-grid article {
  margin: 0;
  padding: 28px 0 0;
  border-top: 1px solid rgba(213, 173, 98, 0.55);
  text-align: left;
}

.trust-grid h3 {
  margin: 0 0 16px;
}

.trust-grid p {
  margin: 0;
}

.trust-grid p + p {
  margin-top: 16px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(320px, 1fr);
  gap: 70px;
  padding: clamp(72px, 9vw, 128px) clamp(22px, 6vw, 98px);
  background: #f3eadb;
}

address {
  margin-top: 34px;
  font-style: normal;
}

address a {
  color: var(--green);
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 44px);
  background: var(--white);
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 7px;
  color: var(--green);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(16, 36, 30, 0.2);
  background: #fffaf1;
  color: var(--ink);
  font: inherit;
  padding: 13px 14px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(213, 173, 98, 0.45);
  border-color: var(--gold);
}

textarea {
  resize: vertical;
}

.form-note {
  margin: 0;
  font-size: 0.92rem;
}

.form-note.success {
  color: var(--green);
  font-weight: 800;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(22px, 6vw, 98px);
  color: rgba(255, 253, 248, 0.76);
  background: #011f18;
}

@media (max-width: 980px) {
  .realizacje figure {
    flex-basis: calc((100% - 18px) / 2);
  }

  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .brand {
    width: 118px;
  }

  .nav-toggle {
    z-index: 25;
    display: grid;
    width: 46px;
    height: 42px;
    align-content: center;
    gap: 8px;
    border: 1px solid rgba(213, 173, 98, 0.6);
    background: rgba(0, 45, 34, 0.65);
  }

  .nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 0 auto;
    background: var(--gold-2);
    transition: transform 180ms ease;
  }

  .nav-open .nav-toggle span:first-child {
    transform: translateY(5px) rotate(45deg);
  }

  .nav-open .nav-toggle span:last-child {
    transform: translateY(-5px) rotate(-45deg);
  }

  .main-nav {
    position: fixed;
    inset: 0;
    display: none;
    grid-column: 1 / -1;
    place-content: center;
    gap: 26px;
    background: rgba(0, 45, 34, 0.97);
    font-size: 1.45rem;
  }

  .nav-open .main-nav {
    display: grid;
  }

  .phone-link {
    display: none;
  }

  .hero {
    min-height: 720px;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(0, 37, 28, 0.94), rgba(0, 37, 28, 0.7)),
      linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 45, 34, 0.3));
  }

  .hero-content {
    padding-top: 172px;
  }

  .process-grid,
  .section-heading,
  .offer-detail,
  .showroom,
  .realizacje-grid,
  .trust-grid,
  .contact {
    grid-template-columns: 1fr;
  }

  .process-grid article,
  .process-grid article + article {
    min-height: 120px;
    padding-left: 92px;
    border-left: 0;
  }

  .process-grid article + article .step {
    left: 0;
  }

  .offer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .offer-item:nth-child(2) {
    border-right: 0;
  }

  .section-heading .section-kicker {
    margin-bottom: 0;
  }

}

@media (max-width: 620px) {
  .realizacje figure {
    flex-basis: 86%;
  }

  .carousel-arrow {
    width: 44px;
    height: 44px;
  }

  .carousel-arrow-prev {
    left: -10px;
  }

  .carousel-arrow-next {
    right: -10px;
  }

  body {
    font-size: 15px;
  }

  .site-header {
    padding: 16px 18px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-content {
    padding: 152px 20px 150px;
  }

  h1 {
    font-size: clamp(2.65rem, 16vw, 4.2rem);
  }

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

  .info-strip {
    gap: 10px 24px;
    padding: 16px 20px;
    font-size: 0.78rem;
  }

  .info-strip span + span::before {
    left: -15px;
  }

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

  .offer-item {
    min-height: 104px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .offer-detail {
    gap: 28px;
  }

  .offer-subcategories {
    grid-template-columns: 1fr;
  }

  .offer-subcategories article {
    min-height: auto;
  }

  footer {
    display: grid;
  }
}
