:root {
  --navy: #071f38;
  --navy-2: #0a314e;
  --ink: #071933;
  --muted: #31405a;
  --line: #c9d4e2;
  --panel: #f4f8fc;
  --blue: #0875f5;
  --yellow: #ffd414;
  --shadow: 0 18px 40px rgba(6, 28, 48, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  color: var(--ink);
  background: #eef4f8;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.site-header,
.site-footer {
  background: linear-gradient(120deg, var(--navy), var(--navy-2));
  color: #fff;
}

.site-header {
  display: flex;
  align-items: center;
  min-height: clamp(78px, 6.6vw, 100px);
  padding: 18px clamp(20px, 5vw, 78px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-weight: 800;
}

.brand-logo {
  display: block;
  width: clamp(64px, 5.3vw, 78px);
  height: auto;
  flex: 0 0 auto;
}

.brand-name,
.footer-brand span:last-child {
  font-size: clamp(0.95rem, 1.6vw, 1.45rem);
  white-space: nowrap;
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(340px, 0.7fr) minmax(420px, 1fr);
  min-height: clamp(390px, 28.6vw, 438px);
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 255, 255, 0.97) 31%, rgba(255, 255, 255, 0.5) 47%, rgba(255, 255, 255, 0) 69%),
    #eff4f7;
}

.hero-copy {
  z-index: 2;
  align-self: center;
  max-width: 540px;
  padding: clamp(28px, 4vw, 46px) clamp(24px, 5vw, 78px);
}

.eyebrow {
  max-width: 280px;
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(0.72rem, 1vw, 0.86rem);
  font-weight: 800;
  line-height: 1.75;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.accent-line {
  display: block;
  width: 84px;
  height: 7px;
  margin-bottom: 12px;
  background: var(--yellow);
}

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

.nowrap {
  white-space: nowrap;
}

h1 {
  max-width: 520px;
  margin-bottom: 18px;
  font-size: clamp(3rem, 4.45vw, 4.25rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-text {
  max-width: 560px;
  margin-bottom: 0;
  color: #1e304a;
  font-size: clamp(1.1rem, 1.75vw, 1.55rem);
  line-height: 1.35;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("assets/hero.jpg");
  background-size: cover;
  background-position: 50% center;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05));
}

.handwritten {
  position: absolute;
  top: 36px;
  right: clamp(18px, 3.5vw, 54px);
  z-index: 2;
  color: #fff;
  font-family: "Comic Sans MS", "Bradley Hand", cursive;
  font-size: clamp(1.15rem, 2vw, 1.9rem);
  line-height: 1.08;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
  transform: rotate(-8deg);
}

.handwritten::after {
  content: "";
  display: block;
  width: 62px;
  height: 16px;
  margin: 4px auto 0;
  border-bottom: 3px solid currentColor;
  transform: rotate(-14deg);
}

.action-grid,
.info-panel {
  width: min(100% - 76px, 1460px);
  margin-inline: auto;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-block: 12px;
}

.feature-card {
  position: relative;
  display: flex;
  min-height: clamp(176px, 12.6vw, 194px);
  overflow: hidden;
  align-items: center;
  justify-content: flex-end;
  padding: clamp(22px, 2.4vw, 32px) clamp(22px, 2.8vw, 42px);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(238, 247, 255, 0) 0%, rgba(238, 247, 255, 0.18) 31%, rgba(255, 255, 255, 0.9) 48%, rgba(255, 255, 255, 0.98) 100%),
    url("assets/cat-img.jpg") left center / auto 142% no-repeat,
    #eef7ff;
  box-shadow: var(--shadow);
}

.catalogue-card {
  justify-content: flex-start;
  padding-left: clamp(172px, 14vw, 240px);
}

.order-card {
  justify-content: flex-start;
  background:
    linear-gradient(90deg, rgba(240, 250, 245, 0.98) 0%, rgba(240, 250, 245, 0.94) 38%, rgba(255, 255, 255, 0.16) 62%, rgba(255, 255, 255, 0) 100%),
    url("assets/order-img.png") right center / auto 134% no-repeat,
    #f0faf5;
}

.card-content {
  display: grid;
  gap: 8px;
  position: relative;
  z-index: 1;
  flex: 0 1 auto;
}

.card-content strong {
  max-width: 340px;
  font-size: clamp(1.45rem, 1.9vw, 2rem);
  line-height: 1.04;
}

.card-content span {
  max-width: 360px;
  color: #263b58;
  font-size: clamp(1rem, 1.18vw, 1.18rem);
  line-height: 1.25;
}

.sales-card {
  display: block;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 253, 0.9)),
    #fff;
}

.sales-card.sales {
  padding: clamp(22px, 2.4vw, 32px) clamp(24px, 3vw, 42px);
}

.sales-card .contact-icon {
  width: 28px;
  height: 28px;
}

.info-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.85fr);
  margin-bottom: 8px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.info-panel.sales-only {
  grid-template-columns: 1fr;
}

.sales-only .sales {
  justify-self: end;
  width: min(100%, 450px);
}

.samples,
.sales {
  padding: clamp(20px, 2.4vw, 28px);
}

.samples {
  border-right: 1px solid var(--line);
}

.samples h2,
.sales h2 {
  margin-bottom: 4px;
  font-size: clamp(1.55rem, 2.1vw, 1.85rem);
  line-height: 1;
}

.samples p {
  margin-bottom: 18px;
  color: #39485f;
  font-size: clamp(1rem, 1.25vw, 1.14rem);
}

.sample-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 20px;
  max-width: 860px;
}

.sample-form label span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

select {
  width: 100%;
  min-height: 52px;
  padding: 0 58px 0 20px;
  border: 1px solid #b9c5d5;
  border-radius: 6px;
  color: #111;
  background:
    linear-gradient(45deg, transparent 50%, var(--ink) 50%) calc(100% - 24px) 50% / 8px 8px no-repeat,
    linear-gradient(135deg, var(--ink) 50%, transparent 50%) calc(100% - 17px) 50% / 8px 8px no-repeat,
    #fff;
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  appearance: none;
  cursor: pointer;
}

.sales {
  font-style: normal;
}

.sales h2 {
  margin-bottom: 14px;
}

.sales a,
.sales p {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 9px;
  color: #111927;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.35;
}

.contact-icon {
  flex: 0 0 auto;
  width: 31px;
  height: 31px;
  color: var(--ink);
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.samples-page {
  padding: clamp(28px, 4vw, 48px) 0 0;
}

.samples-intro,
.sample-grid {
  width: min(100% - 76px, 1460px);
  margin-inline: auto;
}

.samples-intro {
  margin-bottom: clamp(28px, 4vw, 44px);
}

.samples-intro h1 {
  margin-bottom: 8px;
  max-width: none;
  font-size: clamp(2rem, 3vw, 2.65rem);
  line-height: 1.1;
}

.samples-intro p {
  margin: 0;
  color: #1d2938;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
}

.samples-info {
  color: #1d2938;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.5;
}

.samples-info > *:last-child {
  margin-bottom: 0;
}

.sample-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 42px) clamp(24px, 3vw, 38px);
  margin-bottom: clamp(38px, 5vw, 64px);
}

.sample-card {
  min-width: 0;
}

.sample-cover-link {
  display: block;
  margin-bottom: 10px;
}

.sample-item {
  display: block;
  color: #0073e6;
}

.sample-image {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 10px;
}

.sample-cover {
  --cover-color: #06aa62;
  --cover-accent: #73c355;
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 0.7;
  width: 100%;
  border-radius: 0;
  color: #fff;
  background:
    radial-gradient(ellipse at 50% 56%, rgba(255, 255, 255, 0.95) 0 22%, transparent 23%),
    radial-gradient(ellipse at 55% 58%, rgba(255, 255, 255, 0.45) 0 34%, transparent 35%),
    linear-gradient(155deg, transparent 0 53%, rgba(255, 255, 255, 0.26) 54% 56%, transparent 57%),
    linear-gradient(180deg, var(--cover-accent) 0 9%, var(--cover-color) 9% 100%);
  box-shadow: 0 10px 24px rgba(7, 25, 51, 0.12);
}

.sample-cover::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 43%;
  height: 24%;
  border: 4px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  transform: rotate(-14deg);
}

.sample-cover::after {
  content: "CEP";
  position: absolute;
  right: 8%;
  bottom: 5%;
  display: grid;
  place-items: center;
  width: 26px;
  height: 30px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-top: 0;
  font-size: 0.66rem;
  font-weight: 800;
}

.sample-cover span {
  position: absolute;
  top: 3%;
  left: 0;
  right: 0;
  font-size: clamp(0.5rem, 0.7vw, 0.66rem);
  font-weight: 800;
  letter-spacing: 0.22em;
  text-align: center;
  text-transform: uppercase;
}

.sample-cover.student span {
  top: 3%;
  left: 9%;
  right: 9%;
  height: 7%;
  border-radius: 3px;
  color: #737f8e;
  background: #fff;
  font-size: 0.48rem;
  letter-spacing: 0;
  text-align: left;
  padding: 3px 8px;
  text-transform: none;
}

.sample-cover strong {
  position: absolute;
  top: 12%;
  left: 10%;
  right: 10%;
  color: #77d6f2;
  font-size: clamp(1.1rem, 2vw, 1.75rem);
  line-height: 0.9;
  text-align: center;
  text-shadow: 0 2px 0 rgba(0, 83, 80, 0.5);
}

.sample-cover em {
  position: absolute;
  top: 24%;
  left: 12%;
  right: 12%;
  font-style: normal;
  font-size: clamp(0.72rem, 1vw, 0.9rem);
  font-weight: 700;
  line-height: 1.1;
  text-align: right;
}

.sample-cover.montage {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0 18%, transparent 18% 21%),
    repeating-linear-gradient(0deg, #f58320 0 14%, #fff 14% 16%, #6fbf57 16% 30%, #fff 30% 32%);
}

.sample-cover.montage strong {
  top: 4%;
  color: #f36c21;
  text-shadow: none;
  text-align: left;
}

.sample-cover.montage em {
  top: 13%;
  color: #39485f;
  text-align: left;
}

.theme-a1 .sample-cover {
  --cover-color: #03a95f;
  --cover-accent: #72c650;
}

.theme-a2 .sample-cover {
  --cover-color: #72bf55;
  --cover-accent: #77c65d;
}

.theme-b1 .sample-cover {
  --cover-color: #f37020;
  --cover-accent: #f9a11b;
}

.theme-b2 .sample-cover {
  --cover-color: #f5a51c;
  --cover-accent: #f37421;
}

.sample-card:nth-child(n + 25) .sample-cover {
  --cover-color: #27246b;
  --cover-accent: #3566b0;
}

.sample-title {
  display: inline;
  color: #0073e6;
  font-size: clamp(0.86rem, 0.95vw, 1rem);
  font-weight: 800;
  line-height: 1.25;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer {
  display: grid;
  grid-template-columns: auto minmax(240px, 1fr) auto;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  padding: 18px clamp(20px, 5vw, 78px) 28px;
}

.site-footer .brand-logo {
  width: 56px;
}

.site-footer p {
  margin: 0;
  max-width: 520px;
  padding-left: 34px;
  border-left: 1px solid rgba(255, 255, 255, 0.65);
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.55;
}

.site-footer nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: rgba(255, 255, 255, 0.96);
}

.site-footer nav a + a {
  padding-left: 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.75);
}

@media (max-width: 1160px) {
  .hero {
    --hero-image-height: 330px;
    --hero-image-x: 54%;
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    max-width: 620px;
    padding-bottom: calc(var(--hero-image-height) + 18px);
  }

  .hero h1 {
    margin-bottom: 16px;
  }

  .handwritten {
    display: none;
  }

  .hero-image {
    inset: auto 0 0 0;
    height: var(--hero-image-height);
    background-size: auto 100%;
    background-position: var(--hero-image-x) center;
    background-repeat: no-repeat;
  }

  .action-grid,
  .info-panel,
  .samples-intro,
  .sample-grid {
    width: min(100% - 32px, 900px);
  }

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

  .action-grid,
  .info-panel,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 210px;
  }

  .catalogue-card {
    padding-left: clamp(300px, 42vw, 400px);
    background:
      linear-gradient(90deg, rgba(238, 247, 255, 0) 0%, rgba(238, 247, 255, 0.06) 34%, rgba(255, 255, 255, 0.94) 49%, rgba(255, 255, 255, 0.99) 100%),
      url("assets/cat-img.jpg") left center / auto 138% no-repeat,
      #eef7ff;
  }

  .samples {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .site-footer p {
    padding-left: 0;
    border-left: 0;
  }

  .site-footer nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 78px;
  }

  .brand,
  .footer-brand {
    gap: 14px;
    letter-spacing: 0.16em;
  }

  .brand-logo {
    width: 54px;
  }

  .brand-name,
  .footer-brand span:last-child {
    font-size: 0.82rem;
  }

  .hero {
    --hero-image-height: 300px;
    --hero-image-x: 58%;
    background: #f6fafc;
  }

  .hero-copy {
    padding: 34px 22px calc(var(--hero-image-height) + 28px);
  }

  .eyebrow {
    max-width: 250px;
    letter-spacing: 0.28em;
  }

  h1 {
    font-size: clamp(2.65rem, 13vw, 4rem);
    margin-bottom: 14px;
  }

  .hero-text {
    font-size: 1.08rem;
  }

  .hero-image {
    height: var(--hero-image-height);
    background-position: var(--hero-image-x) center;
  }

  .action-grid,
  .info-panel,
  .samples-intro,
  .sample-grid {
    width: min(100% - 24px, 560px);
  }

  .sample-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 22px;
  }

  .feature-card,
  .order-card {
    min-height: 0;
    gap: 18px;
    padding: 22px;
    align-items: flex-end;
    justify-content: space-between;
    min-height: 245px;
  }

  .catalogue-card {
    padding-left: 22px;
    background:
      linear-gradient(0deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.94) 38%, rgba(255, 255, 255, 0) 72%),
      url("assets/cat-img.jpg") 20% top / auto 100% no-repeat,
      #eef7ff;
  }

  .order-card {
    background:
      linear-gradient(0deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 39%, rgba(255, 255, 255, 0.1) 74%),
      url("assets/order-img.png") right top / auto 100% no-repeat,
      #f0faf5;
  }

  .card-content strong {
    font-size: 1.65rem;
  }

  .card-content span {
    font-size: 1rem;
  }

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

  .sample-form {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  select {
    min-height: 56px;
  }

  .site-footer {
    gap: 18px;
  }

  .site-footer nav {
    display: grid;
    gap: 10px;
  }

  .site-footer nav a + a {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 420px) {
  .brand-name,
  .footer-brand span:last-child {
    white-space: normal;
  }

  .hero-copy {
    padding-inline: 18px;
  }

  .hero {
    --hero-image-height: 285px;
    --hero-image-x: 63%;
  }

  .feature-card,
  .order-card,
  .samples,
  .sales {
    padding-inline: 18px;
  }
}
