:root {
  --text: #111827;
  --muted: #5f6b7a;
  --line: #dbe2ea;
  --surface: #ffffff;
  --soft: #f4f7fa;
  --brand: #0a3a86;
  --brand-dark: #062553;
  --accent: #1395d3;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background: #fff;
}

body.menu-open {
  overflow: hidden;
}

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

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

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  flex: 0 0 auto;
}

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

.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  padding: 11px 15px;
  border-radius: 6px;
  color: #253246;
  font-weight: 700;
  line-height: 1;
  transition: background-color 160ms ease, color 160ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: var(--soft);
  color: var(--brand);
}

.phone-button,
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid transparent;
  padding: 0 18px;
  font-weight: 800;
}

.phone-button,
.button.primary {
  background: var(--brand);
  color: #fff;
}

.button.secondary {
  color: var(--brand-dark);
  border-color: var(--line);
  background: #fff;
}

.button.secondary.light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--brand-dark);
}

.hero-banner {
  position: relative;
  min-height: 610px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #061d3a;
}

.hero-banner-bg {
  position: absolute;
  inset: 0;
  background-image: url("./assets/baner.png");
  background-position: center 58%;
  background-size: cover;
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 15, 34, 0.86) 0%, rgba(3, 22, 50, 0.62) 34%, rgba(3, 22, 50, 0.08) 64%, rgba(3, 22, 50, 0) 100%),
    linear-gradient(180deg, rgba(2, 12, 28, 0.1) 0%, rgba(2, 12, 28, 0.42) 100%);
}

.hero-banner-content {
  position: relative;
  z-index: 1;
  padding: 86px 0 92px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Archivo", "Arial Narrow", sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 980px;
  margin-bottom: 22px;
  font-size: 3.65rem;
  line-height: 1.03;
}

h1 span {
  display: block;
  white-space: nowrap;
}

h2 {
  margin-bottom: 14px;
  font-size: 2.6rem;
  line-height: 1.04;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.hero-banner-content p:not(.eyebrow),
.section-head p:not(.eyebrow),
.foil-card-body > span {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.75;
}

.hero-banner-content .eyebrow {
  color: #8cd3ff;
}

.hero-banner-content p:not(.eyebrow) {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.84);
  white-space: nowrap;
}

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

.section {
  padding: 92px 0;
}

.foil-section {
  position: relative;
  overflow: hidden;
  background:
    url("./assets/foil-section-bg.png") center / cover no-repeat;
}

.foil-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.28);
  pointer-events: none;
}

.foil-section::after {
  content: none;
}

.foil-section .container {
  position: relative;
  z-index: 1;
}

.section-muted {
  background: var(--soft);
}

.packaging-section {
  position: relative;
  overflow: hidden;
  background:
    url("./assets/packaging-section-bg.png") center / cover no-repeat;
}

.packaging-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.34);
  pointer-events: none;
}

.packaging-section .container {
  position: relative;
  z-index: 1;
}

.packaging-section .section-head h2,
.packaging-section .section-head p:not(.eyebrow) {
  color: var(--brand-dark);
}

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

.foil-section .section-head h2,
.foil-section .section-head p:not(.eyebrow) {
  color: var(--brand-dark);
}

.foil-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.foil-card {
  min-height: 515px;
  display: block;
  padding: 0;
  border: 1px solid rgba(19, 149, 211, 0.42);
  border-radius: 8px;
  background: var(--surface);
  box-shadow:
    0 0 0 1px rgba(19, 149, 211, 0.12),
    0 12px 34px rgba(10, 58, 134, 0.08),
    0 0 26px rgba(19, 149, 211, 0.16);
  cursor: pointer;
  perspective: 1200px;
  appearance: none;
  font: inherit;
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.foil-card-inner,
.flip-card-inner {
  position: relative;
  display: block;
  min-height: 515px;
  transform-style: preserve-3d;
  transition: transform 560ms ease;
}

.foil-card.is-flipped .foil-card-inner,
.flip-card.is-flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.foil-card-face,
.flip-card-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px;
  backface-visibility: hidden;
  background: #fff;
}

.foil-card-back,
.flip-card-back {
  justify-content: space-between;
  padding: 28px;
  color: var(--brand-dark);
  transform: rotateY(180deg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 255, 0.96)),
    var(--surface);
}

.foil-card-front img,
.flip-card-front img {
  width: 100%;
  aspect-ratio: 760 / 510;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.foil-card-machine .foil-card-front img {
  object-fit: contain;
  object-position: center;
}

.foil-card:hover,
.foil-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(19, 149, 211, 0.78);
  box-shadow:
    0 0 0 1px rgba(19, 149, 211, 0.28),
    0 18px 36px rgba(10, 58, 134, 0.14),
    0 0 36px rgba(19, 149, 211, 0.28);
}

.foil-card-body,
.flip-card-body {
  display: grid;
  gap: 12px;
  padding: 24px 28px 28px;
}

.foil-card strong,
.foil-card-body strong,
.flip-card strong,
.flip-card-body strong {
  font-family: "Archivo", "Arial Narrow", sans-serif;
  font-size: 1.35rem;
  line-height: 1.18;
  color: var(--brand-dark);
}

.foil-card-body > span,
.flip-card-body > span {
  color: var(--brand-dark);
}

.foil-card em,
.flip-card em {
  display: inline-flex;
  width: fit-content;
  margin-top: 4px;
  color: var(--accent);
  font-size: 0.88rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.variant-list {
  display: grid;
  gap: 9px;
  margin: 22px 0;
}

.variant-list span {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(10, 58, 134, 0.12);
  color: var(--brand-dark);
  font-size: 0.96rem;
  line-height: 1.35;
}

.variant-list span:last-child {
  border-bottom: 0;
}

.variant-list b {
  color: var(--brand);
}

.foil-card-back small {
  display: block;
  margin-top: auto;
  padding: 12px 14px;
  border: 1px solid rgba(10, 58, 134, 0.12);
  border-radius: 6px;
  background: rgba(10, 58, 134, 0.05);
  color: var(--brand-dark);
  font-size: 0.92rem;
  line-height: 1.45;
}

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

.packaging-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid rgba(19, 149, 211, 0.42);
  border-radius: 8px;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(19, 149, 211, 0.12),
    0 12px 34px rgba(10, 58, 134, 0.08),
    0 0 26px rgba(19, 149, 211, 0.16);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.packaging-card:hover {
  transform: translateY(-3px);
  border-color: rgba(19, 149, 211, 0.78);
  box-shadow:
    0 0 0 1px rgba(19, 149, 211, 0.28),
    0 18px 36px rgba(10, 58, 134, 0.14),
    0 0 36px rgba(19, 149, 211, 0.28);
}

.packaging-card h3 {
  color: var(--brand-dark);
}

.packaging-card p {
  margin-bottom: 18px;
  color: var(--brand-dark);
  line-height: 1.65;
}

.packaging-card ul {
  display: grid;
  gap: 10px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.packaging-card li {
  padding: 10px 0;
  border-top: 1px solid rgba(10, 58, 134, 0.11);
  color: var(--brand-dark);
  font-size: 0.95rem;
  line-height: 1.35;
}

.packaging-card.flip-card {
  min-height: 420px;
  display: block;
  padding: 0;
  cursor: pointer;
  perspective: 1200px;
  appearance: none;
  font: inherit;
  text-align: left;
}

.packaging-card .flip-card-inner {
  min-height: 420px;
}

.packaging-card .flip-card-body {
  padding: 20px 24px 24px;
}

.packaging-card .flip-card-front img {
  aspect-ratio: 760 / 430;
}

.packaging-card.flip-card:hover,
.packaging-card.flip-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(19, 149, 211, 0.78);
  box-shadow:
    0 0 0 1px rgba(19, 149, 211, 0.28),
    0 18px 36px rgba(10, 58, 134, 0.14),
    0 0 36px rgba(19, 149, 211, 0.28);
}

.contact-section {
  position: relative;
  overflow: hidden;
  background:
    url("./assets/foil-section-bg.png") center / cover no-repeat;
}

.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.24);
  pointer-events: none;
}

.contact-section .container {
  position: relative;
  z-index: 1;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: stretch;
}

.contact-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
  border: 1px solid rgba(19, 149, 211, 0.22);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(241, 247, 253, 0.92)),
    #fff;
  box-shadow: 0 16px 40px rgba(10, 58, 134, 0.08);
}

.contact-copy h2,
.contact-copy p {
  color: var(--brand-dark);
}

.contact-copy > p:not(.eyebrow) {
  max-width: 540px;
  margin-bottom: 28px;
  font-size: 1.06rem;
  line-height: 1.75;
}

.offer-form {
  display: grid;
  gap: 12px;
  padding: 34px;
  border: 1px solid rgba(19, 149, 211, 0.42);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 0 0 1px rgba(19, 149, 211, 0.12),
    0 18px 42px rgba(10, 58, 134, 0.1),
    0 0 34px rgba(19, 149, 211, 0.16);
}

.offer-form label {
  color: var(--brand-dark);
  font-size: 0.92rem;
  font-weight: 800;
}

.offer-form input,
.offer-form textarea {
  width: 100%;
  border: 1px solid rgba(10, 58, 134, 0.18);
  border-radius: 7px;
  padding: 14px 15px;
  color: var(--brand-dark);
  background: #f9fbfe;
  font: inherit;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.offer-form textarea {
  resize: vertical;
  min-height: 168px;
}

.offer-form input:focus,
.offer-form textarea:focus {
  border-color: rgba(19, 149, 211, 0.86);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(19, 149, 211, 0.14);
}

.offer-form .button {
  width: fit-content;
  margin-top: 10px;
  cursor: pointer;
}

.offer-form .button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.hidden-field {
  display: none;
}

.about-section {
  background:
    linear-gradient(135deg, rgba(6, 37, 83, 0.04), rgba(19, 149, 211, 0.08)),
    var(--soft);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: start;
}

.about-copy {
  max-width: 650px;
}

.about-copy h2,
.about-copy p {
  color: var(--brand-dark);
}

.about-copy p:not(.eyebrow) {
  font-size: 1.06rem;
  line-height: 1.75;
}

.company-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 28px;
  border: 1px solid rgba(19, 149, 211, 0.35);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 0 0 1px rgba(19, 149, 211, 0.1),
    0 18px 42px rgba(10, 58, 134, 0.1);
}

.company-card div {
  min-height: 94px;
  padding: 16px;
  border: 1px solid rgba(10, 58, 134, 0.1);
  border-radius: 8px;
  background: #fff;
}

.company-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.company-card strong {
  display: block;
  color: var(--brand-dark);
  font-size: 1rem;
  line-height: 1.35;
}

.placeholder-row {
  min-height: 220px;
  display: grid;
  align-content: center;
}

.success-page {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(2, 15, 34, 0.84), rgba(3, 22, 50, 0.44)),
    url("./assets/baner.png") center / cover no-repeat;
}

.success-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 34px;
}

.success-card {
  width: min(620px, 100%);
  padding: 42px;
  border: 1px solid rgba(19, 149, 211, 0.36);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.success-card img {
  width: 180px;
  margin-bottom: 28px;
}

.success-card h1 {
  margin-bottom: 16px;
  color: var(--brand-dark);
  font-size: 2.65rem;
  white-space: normal;
}

.success-card p:not(.eyebrow) {
  margin-bottom: 28px;
  color: var(--brand-dark);
  font-size: 1.08rem;
  line-height: 1.7;
}

@media (max-width: 980px) {
  .container {
    width: min(var(--max), calc(100% - 28px));
  }

  .nav-toggle {
    display: block;
  }

  .phone-button {
    display: none;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 14px;
    right: 14px;
    display: none;
    margin-left: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 20px 40px rgba(20, 32, 48, 0.12);
  }

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

  .main-nav a {
    padding: 14px;
  }

  .hero-banner {
    min-height: 540px;
  }

  .hero-banner-bg {
    background-position: 58% 58%;
  }

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

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

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

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

  .hero-banner-content {
    padding: 70px 0;
  }

  h1 {
    font-size: 2.85rem;
  }
}

@media (max-width: 760px) {
  .packaging-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .brand img {
    height: 48px;
  }

  .nav-wrap {
    min-height: 70px;
  }

  h1 {
    font-size: 2.22rem;
  }

  h1 span {
    white-space: normal;
  }

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

  .hero-banner-bg {
    background-position: 67% 62%;
  }

  .hero-banner::after {
    background:
      linear-gradient(90deg, rgba(2, 15, 34, 0.94) 0%, rgba(3, 22, 50, 0.84) 56%, rgba(3, 22, 50, 0.58) 100%),
      linear-gradient(180deg, rgba(2, 12, 28, 0.08) 0%, rgba(2, 12, 28, 0.5) 100%);
  }

  .hero-banner-content p:not(.eyebrow) {
    white-space: normal;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .contact-copy,
  .offer-form {
    padding: 24px;
  }

  .offer-form .button {
    width: 100%;
  }

  .company-card {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .section {
    padding: 68px 0;
  }
}

@media (max-width: 430px) {
  .hero-banner {
    min-height: 590px;
  }

  .hero-banner-bg {
    background-position: 70% 64%;
  }

  .hero-banner-content {
    padding: 58px 0 72px;
  }
}
