/* ══════════════════════════════════════════════════════════════════════
   Your Place Rent — дизайн-система "Classical" + оливковая тема
   ══════════════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600&family=Lora:wght@400;600&display=swap');

:root {
  /* пыльно-оливковая стена с молочными штрихами (акцент — молочный) */
  --color-bg: #6a6b4d;         /* dusty olive wall */
  --color-surface: #787a59;    /* plate mat / framed-picture olive */
  --color-text: #f1ecdf;       /* молочные чернила поверх стены */
  --color-divider: color-mix(in srgb, #f1ecdf 26%, transparent);
  --color-accent: #f1ecdf;     /* молочный акцент */
  --color-accent-100: #7a7c5b;
  --color-accent-200: #8a8b69;
  --color-accent-300: color-mix(in srgb, #f1ecdf 55%, transparent);
  --color-accent-600: #e6dcc6;
  --color-accent-700: #f6f1e6;

  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-heading-weight: 600;
  --font-body: "Lora", Georgia, serif;

  --space-1: 4.6px;
  --space-2: 9.2px;
  --space-3: 13.8px;
  --space-4: 18.4px;
  --space-6: 27.6px;
  --space-8: 36.8px;

  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 7px;

  --shadow-sm: 0 1px 2px color-mix(in srgb, #2d2b2b 14%, transparent);
  --shadow-md: 0 3px 10px color-mix(in srgb, #2d2b2b 16%, transparent);
  --shadow-lg: 0 12px 32px color-mix(in srgb, #2d2b2b 22%, transparent);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px; line-height: 1.55; font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 var(--space-2);
}
h1 { font-size: 42px; } h2 { font-size: 32px; } h3 { font-size: 25px; }
p { margin: 0 0 var(--space-3); }
img { display: block; max-width: 100%; }
a { color: var(--color-accent-700); text-underline-offset: 3px; }
a:hover { color: var(--color-accent-600); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){ html { scroll-behavior: auto; } }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* — rules — */
.hr { height: 1px; border: 0; margin: var(--space-4) 0; background: var(--color-divider); }

/* — buttons — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 14px; line-height: 1.2; color: var(--color-text);
  background: transparent; border: 1px solid transparent;
  padding: var(--space-2) calc(var(--space-3) * 1.2);
  border-radius: var(--radius-md);
}
.btn svg { display: block; flex: none; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { color: var(--color-accent); border-color: var(--color-accent); }
.btn-primary:hover { background: color-mix(in srgb, var(--color-accent) 12%, transparent); }
.btn-primary:active { background: color-mix(in srgb, var(--color-accent) 22%, transparent); }
.btn-secondary { border-color: var(--color-divider); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.btn-secondary:active { background: color-mix(in srgb, var(--color-text) 14%, transparent); }
.btn-ghost { color: var(--color-accent); padding-inline: var(--space-1); }
.btn-ghost:hover { background: color-mix(in srgb, var(--color-accent) 10%, transparent); }
.btn-block { width: 100%; }

/* — cards — */
.card {
  display: flex; flex-direction: column; gap: var(--space-2);
  padding: var(--space-3); border-radius: var(--radius-md);
  background: transparent; border: 1px solid var(--color-divider);
}
.card-kicker { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-accent); }
.card-title { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 17px; line-height: 1.2; }
.card-body { margin: 0; font-size: 13px; opacity: 0.8; flex: 1; }

/* — navigation — */
.nav {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-divider);
}
.nav-brand {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 18px; margin-right: auto; letter-spacing: -0.01em;
}
.nav a { color: inherit; text-decoration: none; font-size: 14px; }
.nav a:hover { color: var(--color-accent); }
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px; border: 1px solid var(--color-divider); border-radius: var(--radius-md);
}
.lang-switch button {
  appearance: none; border: 0; border-radius: calc(var(--radius-md) - 1px);
  background: transparent; color: color-mix(in srgb, var(--color-text) 70%, transparent);
  cursor: pointer; font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 12px; line-height: 1; min-width: 31px; height: 28px; padding: 0 7px;
}
.lang-switch button:hover { color: var(--color-accent); background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.lang-switch button.active {
  color: var(--color-bg); background: var(--color-accent); box-shadow: var(--shadow-sm);
}

/* ══════════════════════════════════════════════════════════════════════
   Страница
   ══════════════════════════════════════════════════════════════════════ */

/* стена: мягкий свет сверху */
.ypr-wall {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(180deg, color-mix(in srgb,#f1ecdf 8%, transparent) 0%, transparent 34%),
    radial-gradient(120% 80% at 50% -10%, color-mix(in srgb,#f1ecdf 6%, transparent), transparent 60%);
}

/* интерьерный молдинг — двойная рамка «буазери» */
.ypr-page {
  position: relative; z-index: 2; max-width: 1160px;
  margin: clamp(16px,2.4vw,34px) auto;
  padding: clamp(22px,3vw,40px) clamp(26px,4.6vw,58px);
  border: 1px solid color-mix(in srgb,#f1ecdf 44%, transparent); border-radius: 4px;
}
.ypr-page::before {
  content:""; position:absolute; inset:7px; pointer-events:none;
  border: 1px solid color-mix(in srgb,#f1ecdf 20%, transparent); border-radius: 3px;
}
@media (max-width: 640px){ .ypr-page::before { inset:5px; } }

.ypr-kicker {
  display:block; font-family:var(--font-body); font-size:13px; letter-spacing:0.12em;
  text-transform:uppercase; color:var(--color-accent-700); margin-bottom:8px;
}
.ypr-lead {
  font-size:15.5px; line-height:1.6;
  color:color-mix(in srgb, var(--color-text) 72%, transparent);
}
.ypr-h2 { font-weight:400; font-size:clamp(30px,3.4vw,40px); letter-spacing:-0.01em; margin:0 0 8px; }

/* nav */
.ypr-nav-mobile { display:none; }
@media (max-width: 700px){
  .nav { flex-wrap: wrap; gap: var(--space-3); }
  .nav .ypr-nav-link { font-size: 13px; }
  .nav .btn { margin-left: auto; }
  .lang-switch { order: 10; width: 100%; justify-content: center; }
}

.ypr-nav-link { position: relative; }
.ypr-nav-link::after {
  content:""; position:absolute; left:0; right:0; bottom:-4px; height:1px; background:currentColor;
  opacity:.7; transform:scaleX(0); transform-origin:left; transition:transform .3s ease;
}
.ypr-nav-link:hover::after { transform:scaleX(1); }

/* hero */
.ypr-hero {
  position:relative; display:grid; grid-template-columns: 1fr; gap:clamp(24px,4vw,72px);
  align-items:center; padding:clamp(28px,4vw,52px) 0 clamp(36px,5vw,64px);
}
.ypr-hero .ypr-kicker { margin-bottom:18px; }
.ypr-hero h1 {
  font-weight:400; font-size:clamp(46px,6.6vw,88px); line-height:1.04;
  letter-spacing:-0.015em; margin:0;
}
.ypr-hero h1 span { display:block; }
.ypr-hero-text {
  font-size:17px; line-height:1.65; max-width:46ch;
  color:color-mix(in srgb, var(--color-text) 80%, transparent); margin:26px 0 0;
}
.ypr-hero-actions { display:flex; gap:14px; flex-wrap:wrap; margin-top:30px; }

/* карточки форматов */
.ypr-cardgrid { display:grid; gap:18px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px){ .ypr-cardgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px){ .ypr-cardgrid { grid-template-columns: 1fr; } }
.ypr-cardgrid .card { gap:12px; }
.ypr-icon {
  display:inline-flex; width:38px; height:38px; align-items:center; justify-content:center;
  border:1px solid var(--color-accent-300); border-radius:var(--radius-md); color:var(--color-accent-700);
}
.ypr-icon svg { width:19px; height:19px; }

/* легализация */
.ypr-legal {
  display:grid; grid-template-columns: minmax(0,1fr) auto; gap:clamp(18px,3vw,40px);
  align-items:center; padding:clamp(24px,3vw,40px);
}
@media (max-width: 720px){ .ypr-legal { grid-template-columns: 1fr; } }
.ypr-legal h3 { font-weight:400; font-size:clamp(26px,3vw,36px); letter-spacing:-0.01em; margin:0 0 10px; }
.ypr-legal p { font-size:15.5px; line-height:1.65; max-width:58ch;
  color:color-mix(in srgb, var(--color-text) 82%, transparent); margin:0; }

/* о нас */
.ypr-about-text {
  max-width:62ch; font-size:16px; line-height:1.72;
  color:color-mix(in srgb, var(--color-text) 88%, transparent);
}
.ypr-about-text p:last-child { margin-bottom:0; }

/* контакты */
.ypr-contacts { display:grid; grid-template-columns: repeat(3, 1fr); gap:14px; max-width:640px; }
@media (max-width: 620px){ .ypr-contacts { grid-template-columns: 1fr; } }
.ypr-contacts a { min-height:52px; text-decoration:none; }

/* футер */
.ypr-footer {
  padding:24px 0 40px; font-size:13px; line-height:1.6;
  color:color-mix(in srgb, var(--color-text) 65%, transparent);
  display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap;
}

/* — интерактивность — */
.ypr-cardgrid .card, .ypr-legal {
  transition: transform .4s cubic-bezier(.16,1,.3,1), border-color .4s ease, box-shadow .4s ease;
}
.ypr-cardgrid .card:hover, .ypr-legal:hover {
  border-color: color-mix(in srgb,#f1ecdf 62%, transparent); box-shadow: var(--shadow-md);
}
.ypr-cardgrid .card .ypr-icon { transition: background-color .4s ease, transform .4s ease; }
.ypr-cardgrid .card:hover .ypr-icon { background: color-mix(in srgb,#f1ecdf 12%, transparent); }
.ypr-contacts a { transition: transform .3s cubic-bezier(.16,1,.3,1), background-color .3s ease, border-color .3s ease; }

@media (prefers-reduced-motion: no-preference){
  /* постепенное появление — каждый элемент всплывает по очереди */
  .reveal > * {
    opacity:0; transform:translateY(20px);
    transition:opacity 1.4s cubic-bezier(.16,1,.3,1), transform 1.4s cubic-bezier(.16,1,.3,1);
  }
  .reveal.in > * { opacity:1; transform:none; }
  .reveal.in > *:nth-child(1){ transition-delay:0ms }
  .reveal.in > *:nth-child(2){ transition-delay:220ms }
  .reveal.in > *:nth-child(3){ transition-delay:440ms }
  .reveal.in > *:nth-child(4){ transition-delay:660ms }
  .reveal.in > *:nth-child(5){ transition-delay:880ms }
  .reveal.in > *:nth-child(6){ transition-delay:1100ms }
  .ypr-cardgrid .card:hover { transform:translateY(-5px); }
  .ypr-contacts a:hover { transform:translateY(-3px); }
  .ypr-legal:hover { transform:translateY(-3px); }
}
