/*
Theme Name: Родные рядом
Theme URI: https://rodnieryadom.ru
Author: Родные рядом
Description: Одностраничная тема семейного документального кино. Заявки отправляются на info@rodnieryadom.ru через почту WordPress.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: rodnye-ryadom
*/

:root {
  --ink: #16130f;
  --ink-soft: #2c261f;
  --paper: #f6f1e8;
  --paper-deep: #ebe3d4;
  --cream: #fbf8f2;
  --muted: #6e655b;
  --line: #d9d0c2;
  --gold: #8a6233;
  --display: "Cormorant Garamond", "Iowan Old Style", Palatino, serif;
  --sans: Manrope, "Segoe UI", sans-serif;
  --radius: 0.5rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
  scroll-padding-bottom: 5.5rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
button, [role="button"] { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: #e4d3b8; color: var(--ink); }

.wrap { width: min(72rem, calc(100% - 2.5rem)); margin-inline: auto; }
.kicker {
  margin: 0;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.display {
  margin: 0.75rem 0 0;
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 3.25rem);
  font-weight: 500;
  line-height: 1.1;
}
.copy {
  margin: 1rem 0 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
}
.lead { color: var(--ink); font-size: 1rem; font-weight: 400; line-height: 1.65; }
.muted { color: var(--muted); line-height: 1.65; }
.small { font-size: 0.875rem; line-height: 1.65; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: 600 0.875rem/1 var(--sans);
  text-decoration: none;
  background: transparent;
}
.btn-grad {
  background: linear-gradient(135deg, #f6f1e8, #e4d3b8);
  color: var(--ink);
}
.btn-dock-call {
  background: linear-gradient(135deg, #16130f, #8a6233);
  color: var(--paper);
}
.call-band {
  background: linear-gradient(135deg, #16130f 0%, #3a2a1c 48%, #8a6233 100%);
  color: var(--paper);
  padding: 4rem 0;
}
.call-band .kicker { color: #e4d3b8; }
.call-band .wrap { display: flex; flex-direction: column; gap: 1.5rem; }
.call-phone {
  display: block;
  margin-top: 0.75rem;
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 3.25rem);
  line-height: 1;
  color: var(--paper);
  text-decoration: none;
}
.call-note { max-width: 28rem; margin: 1rem 0 0; color: rgba(246, 241, 232, 0.85); }
.call-actions { display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 640px) { .call-actions { flex-direction: row; } }
@media (min-width: 768px) {
  .call-band { padding: 5rem 0; }
  .call-band .wrap { flex-direction: row; align-items: end; justify-content: space-between; }
}
.btn-ink:hover { background: var(--ink-soft); }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-ghost { border-color: rgba(246, 241, 232, 0.4); color: var(--paper); }
.btn-line { border-color: rgba(22, 19, 15, 0.2); color: var(--ink); }
.btn-block { width: 100%; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  border-bottom: 1px solid rgba(217, 208, 194, 0.8);
  background: rgba(246, 241, 232, 0.92);
  backdrop-filter: blur(12px);
}
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}
.mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--gold);
  border-radius: 0.25rem;
  color: var(--gold);
  font-family: var(--display);
  font-size: 1.15rem;
  line-height: 1;
}
.brand-name {
  font-family: var(--display);
  font-size: 1.25rem;
  line-height: 1;
}
.nav { display: none; align-items: center; gap: 1.75rem; }
.nav a { color: var(--muted); font-size: 0.875rem; text-decoration: none; }
.nav a:hover { color: var(--ink); }
.bar-actions { display: flex; align-items: center; gap: 0.5rem; }
.phone-link {
  display: none;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}
.phone-link svg { color: var(--gold); }
.order-link { display: none; }
.menu-btn {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  background: transparent;
  color: var(--ink);
}
.mobile-nav {
  display: none;
  position: fixed;
  z-index: 39;
  inset: 4rem 0 0 0;
  background: var(--paper);
  padding: 1.5rem 1.25rem;
}
body.admin-bar .mobile-nav { top: calc(4rem + 32px); }
@media (max-width: 782px) {
  body.admin-bar .mobile-nav { top: calc(4rem + 46px); }
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: block;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.875rem;
  text-decoration: none;
}
.mobile-nav .btn { margin-top: 1.5rem; width: 100%; }
@media (min-width: 640px) {
  .phone-link { display: inline-flex; }
}
@media (min-width: 768px) {
  .order-link { display: inline-flex; }
}
@media (min-width: 1024px) {
  .nav { display: flex; }
  .menu-btn, .mobile-nav { display: none !important; }
}

.hero { position: relative; min-height: 100svh; color: var(--paper); }
.hero-media, .hero-scrim, .hero-fade { position: absolute; inset: 0; }
.hero-media { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim { background: rgba(22, 19, 15, 0.25); }
.hero-fade {
  top: auto;
  height: 80%;
  background: linear-gradient(to top, #16130f, rgba(22, 19, 15, 0.75), transparent);
}
.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  justify-content: flex-end;
  padding: 7rem 0 3.5rem;
}
.hero .kicker { color: rgba(246, 241, 232, 0.8); }
.hero h1 {
  margin: 1rem 0 0;
  max-width: 18ch;
  font-family: var(--display);
  font-size: clamp(3.5rem, 8vw, 4.5rem);
  font-weight: 500;
  line-height: 0.95;
}
.hero-deck {
  max-width: 36rem;
  margin: 1.25rem 0 0;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-style: italic;
  line-height: 1.3;
}
.hero-note {
  max-width: 32rem;
  margin: 1rem 0 0;
  color: var(--paper);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
}
.hero-actions { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 2rem; }
@media (min-width: 640px) {
  .hero-actions { flex-direction: row; }
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 48rem;
  margin: 3rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(246, 241, 232, 0.2);
}
.facts dt {
  font-family: var(--display);
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  line-height: 1;
}
.facts dd { margin: 0.35rem 0 0; color: rgba(246, 241, 232, 0.7); font-size: 0.8rem; }

.section { padding: 5rem 0; }
@media (min-width: 768px) { .section { padding: 7rem 0; } .band.section { padding: 10rem 0; } }
.split, .gallery, .tariff-grid, .team-grid, .faq-grid, .request-grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 768px) {
  .split, .faq-grid, .request-grid { grid-template-columns: repeat(12, 1fr); gap: 3rem; }
  .c5 { grid-column: span 5; }
  .c7 { grid-column: span 7; }
  .c12 { grid-column: span 12; }
  .c4 { grid-column: span 4; }
  .c8 { grid-column: span 8; }
  .end { align-self: end; }
}
.frame { width: 100%; border-radius: var(--radius); object-fit: cover; }
.ratio-3-2 { aspect-ratio: 3 / 2; }
.ratio-video { aspect-ratio: 16 / 9; }
.under-photo { max-width: 42rem; margin-top: 1.5rem; }
.under-photo .copy { margin: 0; }
.under-photo .quote { margin-top: 1rem; }
.quote {
  margin: 0;
  font-family: var(--display);
  font-size: 1.875rem;
  font-style: italic;
  line-height: 1.3;
}

.band { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); }
.band.section { padding: 8rem 0; }
.band::before,
.band::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 84px;
  background: url("images/film.svg?v=2") repeat-x left center / 91px 84px;
  pointer-events: none;
}
.band::before { top: 0; }
.band::after { bottom: 0; }
.band .wrap { position: relative; }
.steps {
  display: grid;
  gap: 1px;
  margin: 3rem 0 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
  border-radius: var(--radius);
  background: rgba(246, 241, 232, 0.15);
}
.steps li { list-style: none; margin: 0; padding: 1.5rem; background: var(--ink-soft); }
.step-n { font-family: var(--display); font-size: 1.875rem; color: var(--gold); }
.steps h3 { margin: 1rem 0 0; font-family: var(--display); font-size: 1.5rem; font-weight: 500; }
.steps p { margin: 0.75rem 0 0; color: var(--paper); font-size: 1rem; font-weight: 400; line-height: 1.65; }
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.work { padding-top: 3.5rem; }
@media (min-width: 768px) { .work.section { padding-top: 4rem; } }
.work .display { margin-top: 0; }
.work-lead { max-width: 42rem; margin-top: 1rem; }
.gallery { margin-top: 2rem; }
@media (min-width: 768px) {
  .gallery { grid-template-columns: 7fr 5fr; }
}
.caption { margin: 1rem 0 0; color: var(--muted); font-size: 0.75rem; }

.tariffs { border-block: 1px solid var(--line); background: var(--paper-deep); }
.tariff-head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 768px) {
  .tariff-head { flex-direction: row; justify-content: space-between; align-items: end; }
  .tariff-head p { max-width: 24rem; }
}
.tariff-grid { margin-top: 3rem; }
@media (min-width: 1024px) { .tariff-grid { grid-template-columns: repeat(3, 1fr); } }
.card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
}
.card-featured { border-color: transparent; background: var(--ink); color: var(--paper); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.card h3 { margin: 0; font-family: var(--display); font-size: 1.875rem; font-weight: 500; }
.badge {
  border-radius: 0.25rem;
  background: var(--gold);
  color: var(--paper);
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
}
.price {
  margin: 1rem 0 0;
  font-family: var(--display);
  font-size: 3rem;
  line-height: 1;
}
.price span { margin-left: 0.25rem; font-family: var(--sans); font-size: 1rem; }
.card .meta { margin: 0.5rem 0 0; font-size: 0.875rem; color: var(--muted); }
.card-featured .meta { color: rgba(246, 241, 232, 0.7); }
.card .blurb { margin: 1.25rem 0 0; font-size: 1rem; font-weight: 400; line-height: 1.65; }
.card-featured .blurb { color: var(--paper); }
.card ul { margin: 1.5rem 0 0; padding: 0; list-style: none; flex: 1; }
.card li { display: flex; gap: 0.5rem; margin-top: 0.5rem; font-size: 1rem; font-weight: 400; }
.card li::before {
  content: "";
  width: 0.25rem;
  height: 0.25rem;
  margin-top: 0.55rem;
  border-radius: 999px;
  background: var(--gold);
  flex: none;
}
.card .btn { margin-top: 2rem; }

.team-grid { margin: 3rem 0 0; padding: 0; }
@media (min-width: 768px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
.team-grid li { list-style: none; margin: 0; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.team-grid h3 { margin: 0; font-family: var(--display); font-size: 1.875rem; font-weight: 500; }
.role { margin: 0.25rem 0 0; color: var(--gold); font-size: 0.875rem; font-weight: 600; }
.team-grid p:last-child { margin: 1rem 0 0; }

.awards { border-top: 1px solid var(--line); background: var(--cream); }
.award-grid { display: grid; gap: 2rem; margin: 2.5rem 0 0; padding: 0; list-style: none; }
.award-grid li { margin: 0; }
.award-grid img { width: 100%; height: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.award-title { margin: 0.85rem 0 0; font-family: var(--display); font-size: 1.5rem; font-weight: 500; line-height: 1.2; }
.award-grid .copy { margin-top: 0.35rem; }
@media (min-width: 768px) { .award-grid { grid-template-columns: repeat(3, 1fr); } }

.faq { border-top: 1px solid var(--line); background: var(--cream); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  flex: none;
}
.faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq details p { margin: 0 0 1.25rem; color: var(--ink); font-size: 1rem; font-weight: 400; line-height: 1.65; }

.field { display: grid; gap: 0.5rem; font-size: 0.875rem; font-weight: 500; }
.fields { display: grid; gap: 1rem; }
@media (min-width: 640px) { .fields-2 { grid-template-columns: 1fr 1fr; } }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--ink);
  font: 400 0.875rem/1.4 var(--sans);
  padding: 0 0.75rem;
}
.field input, .field select { height: 3rem; }
.field textarea { min-height: 7rem; padding: 0.75rem; resize: vertical; }
.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.notice {
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  background: var(--paper-deep);
  font-size: 0.875rem;
}
.notice-ok { background: var(--ink); color: var(--paper); }
.form-note { margin: 0; color: var(--muted); font-size: 0.75rem; line-height: 1.6; }
.stack { display: grid; gap: 1rem; }

.site-footer { border-top: 1px solid var(--line); background: var(--ink); color: var(--paper); }
.footer-bar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 3rem 0;
}
@media (min-width: 768px) {
  .footer-bar { flex-direction: row; justify-content: space-between; align-items: end; }
}
.site-footer .brand-name { font-family: var(--display); font-size: 1.875rem; }
.site-footer p { margin: 0.5rem 0 0; max-width: 28rem; color: rgba(246, 241, 232, 0.7); font-size: 0.875rem; line-height: 1.65; }
.site-footer a { color: var(--paper); text-decoration: none; }
.foot-meta { color: rgba(246, 241, 232, 0.7); font-size: 0.875rem; }
.foot-meta a { display: block; }
.foot-meta a + a { margin-top: 0.25rem; color: rgba(246, 241, 232, 0.7); }

.tg { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.75rem; color: var(--paper); text-decoration: none; }
.tg-ink { color: var(--ink); font-weight: 600; }
.tg-icon { display: grid; width: 2rem; height: 2rem; place-items: center; border-radius: 999px; background: #2AABEE; color: #fff; }
.tg-dock {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: var(--radius);
  background: #2AABEE;
  color: #fff;
}
.foot-meta .tg { display: inline-flex; }
.dock {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr 3rem 1.15fr;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid var(--line);
  background: rgba(246, 241, 232, 0.96);
}
.page { padding-bottom: 5rem; }
@media (min-width: 768px) {
  .dock { display: none; }
  .page { padding-bottom: 0; }
}
