/* Главная страница для гостя (0.99.0). Палитра, шрифты и раскладка взяты из
   образца владельца: те же переменные, что в альбоме, и свой набор блоков. */
:root {
  --bg: #f7f6f2;
  --paper: #fffefa;
  --ink: #242923;
  --muted: #7b8179;
  --line: #e8e6df;
  --green: #315c4c;
  --gold: #bb9870;
  --soft: #e8eee8;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 3px solid #b4cbb8; outline-offset: 3px; }
img { max-width: 100%; }

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold);
}
.wrap { max-width: 1280px; margin: auto; padding: 0 36px; }

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 83px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 254, 250, .93);
  backdrop-filter: blur(18px);
}
.topinner { display: flex; align-items: center; gap: 18px; height: 100%; }
.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-right: auto;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -.04em;
  white-space: nowrap;
}
.logo img { width: 34px; height: 34px; }
.primary {
  border: 0;
  border-radius: 12px;
  padding: 14px 23px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 7px 18px rgba(49, 92, 76, .1);
}
.primary:hover { background: #244838; }
.secondary {
  border: 1px solid #d7dfd7;
  border-radius: 12px;
  padding: 12px 18px;
  background: var(--paper);
  color: var(--green);
  font-weight: 700;
}

/* Только снизу: сокращённая запись убивала боковые поля `.wrap`. */
.welcome { padding-bottom: 70px; }
.welcome-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 650px;
  margin-top: 24px;
  border-radius: 25px;
  overflow: hidden;
  background: #233b34;
  color: #fff;
  isolation: isolate;
}
.welcome-hero > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.welcome-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 28, 24, .82), rgba(12, 28, 24, .12) 90%),
    linear-gradient(0deg, rgba(12, 28, 24, .6), transparent 70%);
}
.welcome-copy { max-width: 720px; padding: clamp(30px, 6vw, 85px); padding-top: 170px; }
.welcome-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: #e9d4b1;
}
.welcome-copy h1 {
  margin: 22px 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(42px, 5.7vw, 78px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.035em;
}
.welcome-copy p {
  max-width: 570px;
  color: #f0f0e9;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.8;
}
.welcome-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 30px; }
.welcome-actions a {
  display: inline-block;
  padding: 16px 24px;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 12px;
  background: transparent;
  color: #fff;
  font-weight: 600;
  transition: transform .18s ease;
}
.welcome-actions a:first-child { border-color: #f5eee1; background: #f5eee1; color: #243e32; }
.welcome-actions a:hover { transform: translateY(-2px); }

.welcome-intro { max-width: 830px; margin: auto; padding: 88px 12px 66px; text-align: center; }
.welcome-intro h2, .welcome-section h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(31px, 4vw, 51px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.025em;
}
.welcome-intro p, .welcome-section p { color: var(--muted); font-size: 16px; line-height: 1.85; }

.welcome-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.welcome-feature {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  overflow: hidden;
}
.welcome-feature img { display: block; width: 100%; height: 210px; object-fit: cover; }
.welcome-feature div { padding: 25px; }
.welcome-feature .number { color: #9b8061; font-size: 12px; letter-spacing: .18em; }
.welcome-feature h3 {
  margin: 12px 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 27px;
  font-weight: 500;
}
.welcome-feature p { margin: 0; font-size: 14px; }

.welcome-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(25px, 6vw, 90px);
  margin: 110px 0;
}
.welcome-section img { width: 100%; height: 450px; border-radius: 20px; object-fit: cover; }
.welcome-section .eyebrow { margin-bottom: 18px; }
.welcome-section .primary { display: inline-block; margin-top: 18px; }

.welcome-quote {
  margin: 90px 0 20px;
  padding: 75px 25px;
  border-radius: 24px;
  background: #e9eee7;
  text-align: center;
}
.welcome-quote h2 {
  max-width: 760px;
  margin: 15px auto 28px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 500;
  line-height: 1.2;
}
.welcome-quote p { max-width: 590px; margin: 0 auto 25px; color: #657369; line-height: 1.8; }
.welcome-quote .primary { display: inline-block; }

.footer {
  padding: 35px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.footer a { color: var(--green); font-weight: 600; }

@media (max-width: 900px) {
  .welcome-hero { min-height: 590px; }
  .welcome-grid { grid-template-columns: 1fr; }
  .welcome-feature { display: grid; grid-template-columns: 40% 60%; }
  .welcome-feature img { height: 100%; min-height: 195px; }
  .welcome-section { grid-template-columns: 1fr; margin: 65px 0; }
  .welcome-section img { height: 300px; }
  .welcome-intro { padding: 65px 5px 45px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .top { height: 70px; }
  .logo { font-size: 20px; gap: 8px; }
  .logo img { width: 27px; height: 27px; }
  /* В строку телефона логотип, «Войти» и кнопка не помещались: кнопка
     переносилась на две строки и упиралась в край. Главный призыв и так
     стоит в обложке, поэтому в шапке остаётся только вход. */
  .top .primary { display: none; }
  .top .secondary { padding: 10px 15px; }
  .welcome-hero { min-height: 570px; border-radius: 16px; }
  .welcome-copy { padding: 28px; padding-top: 110px; }
  .welcome-copy h1 { font-size: 43px; }
  .welcome-feature { display: block; }
  .welcome-feature img { height: 185px; }
  .welcome-feature div { padding: 21px; }
  .welcome-quote { padding: 55px 20px; }
  .welcome-actions a { width: 100%; text-align: center; }
}

/* Вход (0.100.0). Прежняя страница входа была вторым рассказом о сервисе —
   с обложкой, разворотами и формой в самом низу. Теперь рассказ живёт на
   главной, а здесь только вход. */
.entry-page {
  display: grid;
  grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(25px, 5vw, 60px);
  padding-block: clamp(30px, 6vw, 70px) 70px;
}
.entry {
  padding: clamp(26px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 16px 55px rgba(39, 55, 43, .07);
}
.entry-title {
  margin: 12px 0 10px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 500;
  line-height: 1.12;
}
.entry-lead { margin: 0 0 26px; color: var(--muted); line-height: 1.7; }
.entry label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 700; }
.entry input {
  width: 100%;
  margin-bottom: 18px;
  padding: 15px;
  border: 1px solid #dce2d9;
  border-radius: 11px;
  background: #fff;
  font: inherit;
}
.entry .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.entry .actions button { flex: 1 1 150px; }
.entry .note { margin: 18px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.entry .note a { color: var(--green); font-weight: 600; }
.entry .error { margin: 16px 0 0; color: #a1372c; font-size: 13px; }
.entry .hidden { display: none; }
.entry-photo { margin: 0; }
.entry-photo img {
  width: 100%;
  height: clamp(320px, 54vh, 540px);
  border-radius: 22px;
  object-fit: cover;
}
@media (max-width: 900px) {
  .entry-page { grid-template-columns: 1fr; }
  .entry-photo { order: -1; }
  .entry-photo img { height: 240px; }
}
