:root {
  --bg: #d7e9f2;
  --bg-top: #b9d9eb;
  --panel: #f7f7f7;
  --text: #482612;
  --title: #482612;
  --border: #85949f;
  --accent: #2797cd;
  --accent-soft: #c8dde9;
  --btn: #ddc9be;
  --btn-border: #b79d90;
  --danger: #ae3d3d;
  --shadow: 0 14px 28px rgba(43, 62, 75, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 300px);
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 14px 42px;
}

.banner {
  margin-bottom: 16px;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #f9fbfc;
  box-shadow: var(--shadow);
}

.banner-success { color: #195e39; border-color: #6aa57e; background: #e8f4eb; }
.banner-error { color: #8f2a2a; border-color: #bf6e6e; background: #f9e7e7; }

.hero {
  display: grid;
  grid-template-columns: 1.5fr 0.98fr;
  gap: 18px;
  align-items: stretch;
}

.card {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255,255,255,0.6);
  overflow: hidden;
}

.card-pad {
  padding: 35px 30px;
}

.badge {
  display: inline-block;
  border-radius: 999px;
  border: 1px solid var(--btn-border);
  background: var(--btn);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  padding: 7px 14px 7px 35px;
  position: relative;
}
  .badge:before{
    content: '';
    border-radius: 50%;
    width: 10px;
    height: 10px;
    left: 15px;
    top: calc(50% - 5px);
    outline: 5px solid rgba(255,255,255,0.5);
    position: absolute;
    background-color: #482612;
  }

h1 {
  margin: 14px 0 8px;
  color: var(--title);
  line-height: 1.08;
  letter-spacing: -0.01em;
  font-size: clamp(28px, 4.2vw, 45px);
}

.headline {
  margin: 0 0 12px;
  font-size: clamp(19px, 2.1vw, 25px);
  font-weight: 700;
  line-height: 1.2;
}

.subtitle {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
}

.feature-wrap {
  margin: 14px 0px;
  border-bottom: 1px solid #b8c2c9;
  padding-top: 14px;
  padding-bottom: 30px;
}

.pill {
  display: inline-block;
  border: 1px solid #76afc9;
  border-radius: 999px;
  padding: 11px 12px;
  background: #d7eaf4;
  color: #2b759e;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
}

.price {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.price strong {
  color: var(--accent);
  font-size: clamp(30px, 5.1vw, 35px);
  font-weight: 800;
  line-height: 0.95;
}

.price-small {
  margin-top: 2px;
  font-size: 14px;
}

.price-small s {
  margin-right: 6px;
}

a{
  text-decoration: none;
  color: #2797CD;
}

.hint {
  
  font-size: 14px;
  line-height: 1.35;
}

.cover {
  background: linear-gradient(180deg, #d9ccc8 0%, #b78f82 100%);
  position: relative;
  min-height: 314px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 24% 82%, rgba(84, 43, 24, 0.28), transparent 42%),
    radial-gradient(circle at 76% 20%, rgba(255, 255, 255, 0.34), transparent 42%);
}

.cover img {
  position: relative;
  width: 100%;
}

.author-block {
  margin-top: 16px;
}

.author-title {
  margin: 0 0 12px;
  font-size: clamp(19px, 2.4vw, 19px);
  text-align: center;
}

.book-meta {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.book-meta b {
  font-size: 15px;
}

.book-footer {
  text-align: right;
  margin-top: 25px;
  font-size: 13px;
}

.book-footer b {
  color: #2c95c8;
}

.form {
  margin-top: 18px;
}

.form h2 {
  margin: 0;
  font-size: clamp(30px, 3vw, 30px);
  line-height: 1.1;
}

.form-intro {
  margin: 6px 0 2px;
  font-size: 14px;
  line-height: 1.4;
}

.grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

label {
  display: block;
  margin: 9px 0 6px;
  font-size: 14px;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #68add2;
  background: var(--accent-soft);
  font-size: 15px;
  min-height: 44px;
  padding: 9px 12px;
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #50a2cf;
  background: #d1e4ef;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #2b95c9;
  box-shadow: 0 0 0 3px rgba(43, 149, 201, 0.15);
  background: #d5e9f4;
}

.relay-box {
  margin-top: 10px;
  padding: 11px;
  border-radius: 12px;
  border: 1px solid #9cb8c8;
  background: #edf5fa;
}

.actions {
  margin-top: 25px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  appearance: none;
  border: 1px solid var(--btn-border);
  border-radius: 17px;
  background: linear-gradient(180deg, #e5d2c7 0%, #d8c0b3 100%);
  color: #443831;
  font-size: clamp(19px, 2.1vw, 19px);
  font-weight: 800;
  line-height: 1;
  padding: 13px 28px;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(92, 70, 59, 0.18);
  filter: saturate(1.02);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.72;
  cursor: progress;
  transform: none;
  box-shadow: none;
}

.error {
  margin-top: 10px;
  color: var(--danger);
  font-weight: 700;
  font-size: 14px;
}

.secure-text {
  margin-top: 8px;
  font-size: 13px;
  color: #4f555c;
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  h1 { font-size: 40px; }
  .headline { font-size: 22px; }
  .price { flex-direction: column; align-items: flex-start; }
  .price strong { font-size: 25px; }
  .btn { width: 100%; }
}

@media (max-width: 640px) {
  .container { padding: 14px 10px 28px; }
  .badge { font-size: 16px; }
  h1 { font-size: 33px; }
  .headline { font-size: 20px; }
  .subtitle { font-size: 14px; }
  .pill { font-size: 16px; }
  .price strong { font-size: 30px; }
  .form h2 { font-size: 22px; }
  .author-title { font-size: 24px; }
  .cover { min-height: 260px; }
}

