:root {
  --bg: #f8f8f8;
  --bg-alt: #f1f1f1;
  --surface: #ffffff;
  --text: #0b0b0b;
  --muted: #555555;
  --line: #e5e5e5;
  --gold: #c59d5f;
  --gold-soft: #e9d8bc;
  --dark: #111111;
  --max: 1140px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  --radius: 4px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

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

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

button,
.button {
  font: inherit;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 15px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(248, 248, 248, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-bar {
  min-height: 88px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand-logo {
  display: block;
}

.brand img {
  width: 210px;
  height: auto;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: var(--radius);
  background: var(--dark);
  color: #fff;
}

.main-nav {
  justify-self: center;
}

.main-nav ul,
.mini-list,
.story-list,
.pill-list,
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.main-nav a,
.header-contacts a,
.header-copy-button,
.language-switch a {
  font-size: 15px;
  color: #444;
}

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

.main-nav a.active,
.main-nav a:hover,
.header-contacts a:hover,
.header-copy-button:hover,
.language-switch a.active,
.language-switch a:hover {
  color: var(--text);
}

.header-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.header-contacts {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-areas:
    "mobile email"
    "landline email";
  align-items: center;
  column-gap: 16px;
  row-gap: 2px;
}

.header-contacts a:first-child {
  grid-area: mobile;
}

.header-contacts a:nth-child(2) {
  grid-area: landline;
}

.header-copy-button {
  grid-area: email;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-shell {
  padding: 0 0 80px;
}

.hero {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-media {
  position: relative;
  min-height: 680px;
  overflow: hidden;
}

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

.hero-copy {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.hero-copy-inner {
  width: min(100%, 640px);
  margin-left: 7%;
  padding: 34px 36px;
  background: rgba(248, 248, 248, 0.9);
  border-left: 4px solid var(--gold);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.eyebrow {
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

h1,
h2,
h3 {
  margin: 0 0 16px;
  font-weight: 500;
  line-height: 1.12;
  color: var(--text);
}

h1 {
  font-size: clamp(1.95rem, 3.8vw, 3rem);
}

h2 {
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 16px;
}

.lead {
  max-width: 48ch;
  color: #434343;
  font-size: 0.98rem;
}

.hero-microcopy,
.muted,
.panel p,
.card p,
.step p,
.contact-card p,
.notice p,
.machine-tab span,
.machine-gallery figcaption,
.section-head p,
.story-list li,
.contact-list li,
.stat-card span,
td,
th {
  color: var(--muted);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--radius);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.button-primary {
  background: var(--dark);
  color: #fff;
}

.button-primary:hover {
  background: #222;
}

.button-secondary,
.button-outline {
  background: transparent;
  border: 1px solid #cfcfcf;
  color: var(--text);
}

.button-secondary:hover,
.button-outline:hover {
  border-color: var(--gold);
  color: var(--text);
}

.mini-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.mini-list li {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 14px;
}

section {
  margin-top: 36px;
}

.panel,
.stat-card,
.card,
.step,
.contact-card,
.notice,
.machine-tab,
.machine-gallery figure,
.price-table-wrap,
.about-photo {
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel {
  padding: 42px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.stat-card {
  padding: 28px 24px;
  border-top: 3px solid var(--gold);
}

.stat-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 2rem;
  font-weight: 500;
}

.feature-band,
.media-feature,
.split,
.machine-showcase,
.photo-strip,
.contact-band,
.footer-card {
  display: grid;
  gap: 24px;
}

.feature-band,
.media-feature {
  grid-template-columns: 1.02fr 0.98fr;
}

.split {
  grid-template-columns: 1.15fr 0.85fr;
}

.photo-strip {
  grid-template-columns: 1.2fr 0.8fr;
}

.feature-visual,
.media-box,
.hero-badge,
.machine-stage {
  position: relative;
  overflow: hidden;
}

.feature-visual,
.media-box,
.machine-stage,
.about-photo,
.photo-tall,
.photo-stack img {
  min-height: 100%;
}

.feature-visual img,
.media-box img,
.machine-stage img,
.about-photo img,
.photo-tall,
.photo-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-copy {
  align-self: stretch;
}

.media-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.7));
}

.media-overlay p,
.hero-badge p {
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 0;
}

.hero-badge {
  position: absolute;
  left: auto;
  right: 5%;
  bottom: 8%;
  max-width: 360px;
  padding: 18px 22px;
  background: rgba(11, 11, 11, 0.8);
  color: #fff;
  border-left: 4px solid var(--gold);
}

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

.detail-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}

.detail-item strong,
.number {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  background: #f1ebe3;
  color: var(--gold);
  font-weight: 700;
}

.card,
.step,
.contact-card,
.notice {
  padding: 28px;
}

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

.service-card-compact {
  background: var(--surface);
  box-shadow: var(--shadow);
}

.service-card-compact img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.service-card-body {
  padding: 24px;
}

.story-list {
  display: grid;
  gap: 14px;
}

.story-list li {
  padding-left: 18px;
  border-left: 2px solid var(--gold);
}

.pill-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill-list li {
  padding: 8px 12px;
  background: var(--bg-alt);
  border: 1px solid #ddd;
  font-size: 14px;
}

.download-card {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--bg-alt);
}

.download-card h4 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: var(--text);
}

.download-card p:last-child {
  margin-bottom: 0;
}

.download-card .button {
  width: auto;
  min-width: 220px;
  margin-top: 8px;
}

.instruction-guide {
  margin-top: 24px;
}

.instruction-guide img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
}

.instruction-guide figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.machine-showcase {
  grid-template-columns: 320px 1fr;
}

.machine-tabs {
  display: grid;
  gap: 14px;
}

.machine-tab {
  display: block;
  width: 100%;
  text-align: left;
  padding: 18px;
  border-left: 3px solid var(--gold);
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.machine-tab:hover,
.machine-tab.is-active {
  background: #f6f1e9;
}

.machine-tab.is-active {
  border-left-color: #9c743e;
  transform: translateX(3px);
}

.machine-tab strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.machine-stage img {
  min-height: 510px;
}

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

.machine-gallery figure {
  margin: 0;
}

.machine-gallery figcaption {
  padding: 16px 18px 20px;
}

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

.logo-pill {
  padding: 10px 14px;
  border: 1px solid #d8d8d8;
  background: var(--surface);
  font-size: 14px;
}

.price-table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

th,
td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price-note {
  margin-top: 18px;
}

.photo-tall {
  min-height: 520px;
}

.photo-stack {
  display: grid;
  gap: 24px;
}

.photo-stack img {
  min-height: 248px;
}

.cta-ribbon {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 34px 38px;
  background: var(--dark);
  color: #fff;
}

.cta-ribbon h2,
.cta-ribbon p {
  color: #fff;
}

.cta-ribbon .button-secondary,
.cta-ribbon .button-outline {
  border: 1px solid rgba(255, 255, 255, 0.72);
  color: #fff;
  background: transparent;
}

.cta-ribbon .button-primary {
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.cta-ribbon .button-secondary:hover,
.cta-ribbon .button-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.cta-ribbon .button-primary:hover {
  border-color: #fff;
}

.contact-list {
  display: grid;
  gap: 16px;
}

.contact-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

.email-copy-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.email-image {
  display: block;
  width: auto;
  height: 40px;
  max-width: 100%;
}

.button-copy-email {
  min-height: 40px;
  padding: 9px 14px;
}

.site-footer {
  padding: 0 0 40px;
}

.footer-card {
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 28px 32px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.page-hero {
  position: relative;
  min-height: 420px;
  padding: 0;
  border-left: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.page-hero h1 {
  max-width: none;
}

.page-hero.page-hero-media {
  display: flex;
  align-items: center;
}

.page-hero-visual {
  position: absolute;
  inset: 0;
  min-height: 100%;
  box-shadow: none;
}

.page-hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
}

.page-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-copy {
  position: relative;
  z-index: 1;
  width: min(100% - 96px, 640px);
  margin-left: 46px;
  padding: 30px 34px;
  background: rgba(255, 255, 255, 0.82);
  border-left: 4px solid var(--gold);
  box-shadow: var(--shadow);
  backdrop-filter: blur(4px);
}

.page-hero .lead {
  max-width: none;
  margin-bottom: 0;
}

.service-banner {
  min-height: 420px;
}

@media (max-width: 991px) {
  .header-bar {
    grid-template-columns: auto auto;
    gap: 18px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-self: stretch;
    display: none;
    background: var(--bg);
    padding: 16px 0 10px;
  }

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

  .main-nav ul {
    display: block;
  }

  .main-nav li {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }

  .header-meta {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px 18px;
    padding-bottom: 16px;
  }

  .header-contacts {
    gap: 10px 14px;
  }

  .header-contacts a,
  .header-copy-button,
  .language-switch a {
    font-size: 14px;
  }

  .hero-copy-inner {
    margin: 24px;
    width: min(100%, 560px);
  }

  .hero-media {
    min-height: 560px;
  }

  .stats-grid,
  .grid-2,
  .grid-3,
  .feature-band,
  .media-feature,
  .split,
  .machine-showcase,
  .machine-gallery,
  .service-grid-compact,
  .photo-strip,
  .cta-ribbon,
  .footer-card {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .page-hero {
    min-height: 380px;
  }

  .page-hero-copy {
    width: min(100% - 48px, 560px);
    margin-left: 24px;
    padding: 24px 24px;
  }
}

@media (max-width: 767px) {
  body {
    font-size: 15px;
  }

  .site-header {
    position: static;
  }

  .brand img {
    width: 180px;
  }

  .header-contacts,
  .language-switch,
  .hero-actions,
  .section-actions {
    width: 100%;
  }

  .header-contacts {
    grid-template-columns: 1fr;
    grid-template-areas:
      "mobile"
      "landline"
      "email";
    gap: 8px;
  }

  .header-copy-button {
    justify-self: start;
  }

  .header-meta {
    gap: 12px;
  }

  .header-contacts a {
    line-height: 1.35;
  }

  .hero-media {
    min-height: 480px;
  }

  .hero-copy {
    align-items: end;
  }

  .hero-copy-inner {
    margin: 16px;
    padding: 22px 20px;
  }

  .hero-badge {
    position: static;
    max-width: none;
    margin: 0 16px 16px;
  }

  .page-hero {
    min-height: 340px;
  }

  .page-hero-copy {
    width: calc(100% - 32px);
    margin: 16px;
    padding: 22px 20px;
  }

  .panel,
  .page-hero,
  .card,
  .step,
  .contact-card,
  .notice,
  .service-card-body,
  .cta-ribbon,
  .footer-card {
    padding: 22px 18px;
  }

  .machine-stage img,
  .service-banner,
  .photo-tall,
  .photo-stack img {
    min-height: 260px;
  }

  .button {
    width: 100%;
  }
}
