:root {
  --sky: #92d8ff;
  --sky-soft: #eaf8ff;
  --green: #77c66e;
  --green-soft: #e9f8e7;
  --ink: #27245f;
  --violet: #57509a;
  --pink: #f05f7f;
  --red: #df3f58;
  --paper: #fffaf2;
  --white: #ffffff;
  --shadow: 0 18px 42px rgba(39, 36, 95, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-right: env(safe-area-inset-right);
  padding-left: env(safe-area-inset-left);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--sky-soft);
  letter-spacing: 0;
  overflow-x: hidden;
}

a {
  color: inherit;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px clamp(16px, 4vw, 56px);
  background: rgba(234, 248, 255, 0.92);
  border-bottom: 1px solid rgba(39, 36, 95, 0.12);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 auto;
  color: var(--white);
  font-weight: 800;
  background: var(--ink);
  border-radius: 50%;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  margin-top: 3px;
  font-size: 12px;
  color: rgba(39, 36, 95, 0.72);
}

nav {
  display: flex;
  gap: clamp(10px, 2vw, 24px);
  font-size: 14px;
  font-weight: 700;
}

nav a {
  text-decoration: none;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 68px);
  padding: clamp(28px, 5vw, 78px) clamp(16px, 5vw, 76px) clamp(32px, 5vw, 86px);
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 16%, rgba(255, 215, 95, 0.62) 0 80px, transparent 82px),
    linear-gradient(180deg, var(--sky) 0%, var(--sky-soft) 68%, var(--green-soft) 100%);
}

.hero::after {
  position: absolute;
  right: -8vw;
  bottom: -80px;
  width: 68vw;
  height: 230px;
  content: "";
  background: var(--green);
  border-radius: 100% 0 0 0;
  opacity: 0.92;
}

.hero-copy,
.hero-art {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(46px, 6vw, 82px);
  line-height: 0.98;
  color: var(--ink);
  overflow-wrap: anywhere;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.04;
}

h3 {
  font-size: 20px;
  line-height: 1.18;
}

.lead {
  max-width: 700px;
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.45;
  overflow-wrap: break-word;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  background: var(--white);
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
}

.button.primary {
  color: var(--white);
  background: var(--red);
}

.button.secondary {
  background: var(--paper);
}

.button.small {
  min-height: 42px;
  padding: 10px 14px;
  font-size: 14px;
  box-shadow: 3px 3px 0 var(--ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0;
}

.proof-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 620px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.proof-list li,
.feature-grid span {
  padding: 12px 14px;
  border: 1px solid rgba(39, 36, 95, 0.16);
  border-radius: var(--radius);
  font-weight: 750;
  background: rgba(255, 255, 255, 0.72);
}

.hero-art {
  display: grid;
  grid-template-columns: 0.74fr 1fr;
  align-items: end;
  gap: 16px;
}

.book-cover {
  width: min(100%, 330px);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.main-cover {
  transform: rotate(-4deg);
}

.city-photo {
  align-self: center;
  overflow: hidden;
  border: 8px solid var(--white);
  border-radius: 22px;
  box-shadow: var(--shadow);
  transform: rotate(3deg);
}

.city-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.section {
  padding: clamp(46px, 7vw, 92px) clamp(16px, 5vw, 76px);
}

.section-copy,
.section-heading {
  max-width: 820px;
}

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

.section p {
  font-size: 18px;
  line-height: 1.58;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  background: var(--paper);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
}

.books-section,
.repeat-sale {
  background: var(--white);
}

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

.product-card {
  overflow: hidden;
  border: 1px solid rgba(39, 36, 95, 0.16);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.product-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--sky-soft);
}

.product-body {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.product-body h3 {
  margin-bottom: 0;
}

.product-body h3 a {
  text-decoration: none;
}

.lang,
.status {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  background: var(--green-soft);
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status {
  margin-bottom: 0;
  color: var(--red);
  background: #ffe7ec;
}

.product-note {
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.35;
}

.look-inside {
  background: linear-gradient(180deg, var(--sky-soft), var(--white));
}

.gallery {
  display: grid;
  grid-auto-columns: minmax(260px, 1fr);
  grid-auto-flow: column;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.gallery-item {
  min-width: 260px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.gallery-item img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.pigeon {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 28px;
  align-items: center;
  color: var(--white);
  background: var(--violet);
}

.pigeon .eyebrow {
  color: #ffced8;
}

.pigeon-badge {
  display: grid;
  gap: 10px;
  width: min(100%, 210px);
  justify-self: end;
  margin: 0;
  padding: 14px;
  border: 5px solid var(--white);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
  text-align: center;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.pigeon-badge img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  object-fit: cover;
  image-rendering: auto;
}

.pigeon-badge figcaption {
  line-height: 1.15;
}

.real-city {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
  background: var(--green-soft);
}

.real-city img,
.author-layout > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  overflow: hidden;
  border: 8px solid var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.real-city > img {
  aspect-ratio: 3 / 4.7;
  max-height: 720px;
  object-fit: cover;
}

.authors {
  background: var(--paper);
}

.author-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.author-cards {
  display: grid;
  gap: 14px;
}

.author-cards article {
  padding: 22px;
  border-left: 8px solid var(--pink);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.b2b {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.8fr);
  gap: clamp(24px, 5vw, 56px);
  background: linear-gradient(135deg, var(--ink), var(--violet));
  color: var(--white);
}

.b2b .eyebrow {
  color: #ffced8;
}

.b2b ul {
  padding-left: 20px;
  font-size: 17px;
  line-height: 1.7;
}

.b2b-photo {
  margin: 26px 0 0;
  color: var(--ink);
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.b2b-photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.b2b-photo figcaption {
  padding: 12px 14px 14px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
}

.partner-form {
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(39, 36, 95, 0.26);
  border-radius: var(--radius);
  color: var(--ink);
  font: inherit;
  background: var(--white);
}

textarea {
  resize: vertical;
}

.form-note {
  min-height: 24px;
  margin: 0;
  font-size: 14px;
  font-weight: 750;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(16px, 5vw, 76px);
  background: var(--ink);
  color: var(--white);
}

@media (max-width: 920px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .intro,
  .real-city,
  .author-layout,
  .b2b {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-art {
    grid-template-columns: 0.72fr 1fr;
  }

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

@media (max-width: 620px) {
  .topbar {
    position: relative;
    gap: 10px;
    padding: 10px 14px;
  }

  .brand small {
    display: none;
  }

  nav {
    gap: 8px;
    font-size: 13px;
  }

  nav a {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 11px 10px;
    border: 1px solid rgba(39, 36, 95, 0.14);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.72);
  }

  h1 {
    font-size: 33px;
    line-height: 1.02;
    margin-bottom: 12px;
  }

  h2 {
    font-size: 29px;
  }

  .section {
    padding: 42px 16px;
  }

  .section p {
    font-size: 16px;
  }

  .hero-copy {
    width: 100%;
    max-width: none;
  }

  .hero-copy h1,
  .hero-copy .lead {
    max-width: 100%;
  }

  .hero {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 18px 16px 34px;
  }

  .hero::after {
    height: 150px;
  }

  .lead {
    font-size: 16px;
    line-height: 1.42;
  }

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

  .button {
    min-height: 46px;
  }

  .button.small {
    min-height: 44px;
  }

  .hero-actions {
    gap: 8px;
    margin: 16px 0;
  }

  .feature-grid,
  .pigeon {
    grid-template-columns: 1fr;
  }

  .proof-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .proof-list li {
    min-height: 48px;
    padding: 9px 10px;
    font-size: 13px;
    line-height: 1.2;
  }

  .city-photo {
    border-width: 5px;
    transform: none;
  }

  .main-cover {
    width: min(30vw, 118px);
    margin-inline: auto;
    border-radius: 14px;
    transform: rotate(-3deg);
  }

  .hero-art {
    order: -1;
    grid-template-columns: minmax(96px, 0.42fr) minmax(0, 1fr);
    gap: 14px;
    width: 100%;
    align-items: center;
  }

  .city-photo img {
    aspect-ratio: 16 / 11;
  }

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

  .product-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: stretch;
  }

  .product-card img {
    height: 100%;
    min-height: 176px;
  }

  .product-body {
    align-content: center;
    padding: 13px;
  }

  .product-body h3 {
    font-size: 17px;
  }

  .product-note {
    font-size: 13px;
  }

  .gallery {
    grid-auto-columns: minmax(82vw, 1fr);
  }

  .gallery-item {
    min-width: 82vw;
  }

  .real-city > img,
  .author-layout > img {
    aspect-ratio: 4 / 3;
  }

  .pigeon-badge {
    justify-self: start;
    width: 170px;
  }

  .b2b {
    gap: 20px;
  }

  .b2b ul {
    font-size: 15px;
  }

  .partner-form {
    padding: 16px;
  }

  input,
  select,
  textarea {
    min-height: 48px;
    font-size: 16px;
  }

  .footer {
    flex-direction: column;
  }
}

@media (max-width: 374px) {
  h1 {
    font-size: 31px;
  }

  .hero {
    padding-inline: 14px;
  }

  .product-card {
    grid-template-columns: 98px minmax(0, 1fr);
  }

  .product-card img {
    min-height: 164px;
  }

  .button.small {
    padding-inline: 10px;
  }
}
