:root {
  --warm-white: #f7f3eb;
  --paper: #fffaf2;
  --green: #163f34;
  --green-soft: #dfe8df;
  --graphite: #202321;
  --muted: #6f746f;
  --gold: #b98b3f;
  --clay: #9f5f45;
  --line: #ded6c8;
  --shadow: 0 18px 45px rgba(32, 35, 33, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--graphite);
  background: var(--warm-white);
  line-height: 1.6;
}

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

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(185, 139, 63, 0.75);
  outline-offset: 4px;
  border-radius: 6px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--paper);
  background: rgba(22, 63, 52, 0.94);
  border-bottom: 1px solid rgba(255, 250, 242, 0.16);
  backdrop-filter: blur(14px);
}

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

.brand-logo {
  display: block;
  width: clamp(180px, 17vw, 226px);
  height: auto;
  max-height: 48px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2.4vw, 28px);
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 250, 242, 0.82);
  -webkit-overflow-scrolling: touch;
}

.main-nav a {
  flex: 0 0 auto;
  white-space: nowrap;
}

.main-nav a,
.header-action {
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.main-nav a:hover {
  color: var(--paper);
}

.header-action {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--paper);
  border: 1px solid rgba(255, 250, 242, 0.45);
  border-radius: 8px;
}

.header-action:hover {
  background: rgba(255, 250, 242, 0.12);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 82vh;
  display: flex;
  align-items: center;
  padding: 120px clamp(18px, 5vw, 72px) 86px;
  color: var(--paper);
  background: var(--green);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(14, 28, 24, 0.82), rgba(14, 28, 24, 0.42));
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media span {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.04);
  animation: heroFade 21s infinite;
}

.hero-media span:nth-child(1) {
  background-image: url("assets/hero/irek-hero-1.jpg");
}

.hero-media span:nth-child(2) {
  background-image: url("assets/hero/irek-hero-2.jpg");
  animation-delay: 7s;
}

.hero-media span:nth-child(3) {
  background-image: url("assets/hero/irek-hero-3.jpg");
  animation-delay: 14s;
}

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

@keyframes heroFade {
  0% {
    opacity: 0;
    transform: scale(1.04);
  }

  8% {
    opacity: 1;
  }

  33% {
    opacity: 1;
  }

  45% {
    opacity: 0;
    transform: scale(1.12);
  }

  100% {
    opacity: 0;
    transform: scale(1.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media span {
    animation: none;
  }

  .hero-media span:first-child {
    opacity: 1;
  }
}

.eyebrow,
.section-label {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.contact-section h2 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 820px;
  font-size: clamp(44px, 7vw, 88px);
}

.hero-text {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 250, 242, 0.88);
  font-size: clamp(18px, 2vw, 24px);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 8px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--paper);
  background: var(--green);
  box-shadow: 0 12px 26px rgba(22, 63, 52, 0.24);
}

.hero .button-primary {
  color: var(--graphite);
  background: var(--gold);
}

.button-secondary {
  color: var(--paper);
  border: 1px solid rgba(255, 250, 242, 0.52);
}

.section .button-secondary,
.contact-section .button-secondary {
  color: var(--green);
  border-color: rgba(22, 63, 52, 0.28);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 1180px;
  margin: -42px auto 0;
  padding: 0 clamp(18px, 4vw, 32px);
  position: relative;
  z-index: 2;
}

.trust-strip div {
  min-height: 118px;
  padding: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  color: var(--green);
  font-size: 22px;
}

.trust-strip span {
  margin-top: 8px;
  color: var(--muted);
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 96px clamp(18px, 4vw, 32px);
}

.split-section,
.certificate-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}

.section-copy h2,
.section-heading h2,
.certificate-copy h2,
.contact-section h2 {
  max-width: 720px;
  font-size: clamp(30px, 4vw, 52px);
}

.section-copy p:not(.section-label),
.certificate-copy p,
.contact-section p {
  max-width: 690px;
  color: var(--muted);
  font-size: 18px;
}

.image-panel {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.image-panel img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.image-panel figcaption {
  padding: 16px 18px;
  color: var(--muted);
  font-size: 14px;
}

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

.section-heading p:not(.section-label) {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
}

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

.benefits-section {
  max-width: none;
  background: var(--paper);
}

.benefits-section .section-heading,
.benefits-section .benefit-grid,
.benefits-section .tradition-panel,
.benefits-section .care-note {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

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

.benefit-card {
  min-height: 224px;
  padding: 24px;
  background: var(--warm-white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.benefit-card h3 {
  margin: 0 0 12px;
  color: var(--green);
  line-height: 1.2;
  font-size: 21px;
}

.benefit-card p {
  margin: 0;
  color: var(--muted);
}

.tradition-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.75fr);
  gap: 16px;
  margin-top: 16px;
}

.tradition-panel > div {
  padding: 28px;
  background: var(--warm-white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tradition-panel h3 {
  margin: 0 0 14px;
  color: var(--green);
  line-height: 1.16;
  font-size: clamp(24px, 3vw, 34px);
}

.tradition-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.tradition-panel p + p {
  margin-top: 14px;
}

.outcome-panel ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.outcome-panel li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
}

.outcome-panel li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

.care-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  margin-top: 18px;
  padding: 22px 24px;
  color: var(--graphite);
  background: rgba(22, 63, 52, 0.06);
  border: 1px solid rgba(22, 63, 52, 0.12);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
}

.care-note strong {
  color: var(--green);
}

.care-note p {
  margin: 0;
  color: var(--muted);
}

.feature-card,
.service-card {
  min-height: 260px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feature-card span {
  color: var(--gold);
  font-weight: 900;
}

.feature-card h3,
.service-card h3,
.process-list h3 {
  margin: 16px 0 10px;
  line-height: 1.2;
  font-size: 21px;
}

.feature-card p,
.service-card p,
.process-list p,
.faq-list p {
  margin: 0;
  color: var(--muted);
}

.services-section {
  max-width: none;
  background: var(--green-soft);
}

.services-section .section-heading,
.services-section .service-list,
.services-section .pricing-extras {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.service-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card-featured {
  color: var(--paper);
  background: var(--green);
  border-color: rgba(255, 250, 242, 0.18);
}

.service-card-featured p,
.service-card-featured .price-row span {
  color: rgba(255, 250, 242, 0.78);
}

.service-card-featured .price-row {
  border-color: rgba(255, 250, 242, 0.22);
}

.service-card-featured .price-row strong {
  color: var(--gold);
}

.service-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.service-card-featured .service-kicker {
  color: var(--gold);
}

.price-list {
  margin-top: 32px;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 46px;
  padding-top: 18px;
  padding-bottom: 2px;
  border-top: 1px solid var(--line);
}

.price-list .price-row + .price-row {
  margin-top: 8px;
}

.service-card > .price-row {
  margin-top: 32px;
}

.price-row span {
  color: var(--muted);
}

.price-row small {
  display: block;
  margin-top: 2px;
  color: rgba(111, 116, 111, 0.72);
  font-size: 13px;
}

.price-row strong {
  flex-shrink: 0;
  color: var(--green);
  font-size: 20px;
}

.price-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.pricing-extras {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.pricing-panel {
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.pricing-panel-heading h3 {
  margin: 0;
  color: var(--green);
  line-height: 1.2;
  font-size: clamp(24px, 3vw, 34px);
}

.process-section {
  padding-top: 86px;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  border-top: 1px solid var(--line);
}

.process-list div {
  padding-top: 24px;
}

.process-list strong {
  color: var(--clay);
}

.certificate-section {
  max-width: none;
  padding-left: clamp(18px, 6vw, 90px);
  padding-right: clamp(18px, 6vw, 90px);
  background: var(--green);
  color: var(--paper);
}

.certificate-copy p {
  color: rgba(255, 250, 242, 0.75);
}

.certificate-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 28px 0 0;
}

.certificate-facts div {
  padding: 18px;
  background: rgba(255, 250, 242, 0.08);
  border: 1px solid rgba(255, 250, 242, 0.12);
  border-radius: 8px;
}

.certificate-facts dt,
.certificate-facts dd {
  margin: 0;
}

.certificate-facts dt {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.certificate-facts dd {
  margin-top: 7px;
  color: var(--paper);
  font-weight: 800;
}

.certificate-gallery {
  display: grid;
  gap: 14px;
}

.certificate-gallery figure {
  margin: 0;
  color: var(--graphite);
  background: var(--paper);
  border: 1px solid rgba(185, 139, 63, 0.42);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.certificate-gallery img {
  width: 100%;
  display: block;
  height: auto;
}

.certificate-gallery figcaption {
  padding: 12px 16px;
  color: var(--muted);
  font-size: 14px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 22px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.faq-list summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
}

.faq-list p {
  margin-top: 12px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto 72px;
  padding: 44px clamp(18px, 4vw, 40px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-section .contact-actions {
  margin-top: 0;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 28px clamp(18px, 4vw, 56px);
  color: rgba(255, 250, 242, 0.7);
  background: var(--graphite);
}

.site-footer a {
  color: var(--gold);
}

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

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

  .trust-strip,
  .benefit-grid,
  .tradition-panel,
  .feature-grid,
  .service-list,
  .pricing-extras,
  .process-list,
  .split-section,
  .certificate-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    margin-top: 0;
    padding-top: 18px;
  }

  .feature-card,
  .benefit-card,
  .service-card {
    min-height: auto;
  }

  .contact-section .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 124px;
  }

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

  .brand {
    max-width: 168px;
  }

  .brand-logo {
    width: 166px;
    max-height: 40px;
  }

  .header-action {
    padding: 9px 12px;
  }

  .hero {
    min-height: 76vh;
    padding: 92px 18px 64px;
  }

  .hero h1 {
    font-size: clamp(38px, 13vw, 56px);
  }

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

  .button {
    width: 100%;
  }

  .section {
    padding-top: 68px;
    padding-bottom: 68px;
  }

  .trust-strip div,
  .benefit-card,
  .tradition-panel > div,
  .feature-card,
  .service-card,
  .pricing-panel,
  .faq-list details,
  .contact-section {
    padding: 20px;
  }

  .care-note {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .certificate-facts {
    grid-template-columns: 1fr;
  }
}
