/* =========================================================
   LOVE STORY — брачное агентство
   ========================================================= */
:root {
  --wine: #6e1f38;
  --wine-dark: #4d1427;
  --wine-light: #8d3a55;
--gold: #c9a86a;
  --gold-light: #e0c896;
  --gold-dark: #9a7424;
  --cream: #faf6ef;
  --cream-dark: #f1e9dc;
  --ink: #2a2030;
  --ink-soft: #4a4352;
  --white: #ffffff;
  --font-title: "Playfair Display", Georgia, serif;
  --font-body: "Montserrat", "Segoe UI", Arial, sans-serif;
  --shadow: 0 12px 32px rgba(42, 32, 48, .14);
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

.section { padding: 88px 0; }
.section--alt { background: var(--cream-dark); }

/* ---------- типографика ---------- */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.2;
  color: var(--wine);
  margin-bottom: 22px;
}

.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head--center { margin-inline: auto; text-align: center; }

.section-sub { color: var(--ink-soft); }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.btn--light { background: var(--white); color: var(--wine); }
.btn--dark { background: var(--wine); color: var(--white); }
.btn--dark:hover { background: var(--wine-dark); }

.btn--outline {
  border-color: rgba(255, 255, 255, .7);
  color: var(--white);
  padding: 10px 24px;
}
.btn--outline:hover { background: var(--white); color: var(--wine); }

.btn--full { width: 100%; }

.btn--ghost {
  border-color: rgba(255, 255, 255, .75);
  color: var(--white);
  background: rgba(30, 10, 20, .35);
  backdrop-filter: blur(3px);
}
.btn--ghost:hover { background: var(--white); color: var(--wine); }

.hero__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================================================
   ШАПКА
   ========================================================= */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: transparent;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
  padding: 18px 0;
  color: var(--white);
}
.header--scrolled {
  background: var(--wine-dark);
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

body.page .header {
  background: var(--wine-dark);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
body.page .page-hero { margin-top: 0; }

.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.header__logo { line-height: 1.25; }
.header__logo-mark {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 700;
  display: block;
  letter-spacing: .02em;
}
.header__logo-sub { font-size: .72rem; color: rgba(255,255,255,.75); letter-spacing: .14em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; gap: 26px; }
.nav__link {
  font-size: .95rem;
  color: rgba(255,255,255,.92);
  padding: 6px 2px;
  position: relative;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav__link:hover::after { transform: scaleX(1); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
}
.burger span {
  width: 26px; height: 2.5px;
  background: var(--white);
  border-radius: 3px;
  transition: transform .3s ease, opacity .3s ease;
}
.burger--open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger--open span:nth-child(2) { opacity: 0; }
.burger--open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--white);
  text-align: center;
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,10,20,.62), rgba(74,22,40,.68));
}
.hero__inner {
  position: relative;
  z-index: 2;
  padding: 120px 0 90px;
}
.hero__eyebrow {
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: .85rem;
  color: var(--gold-light);
  margin-bottom: 18px;
}
.hero__title {
  font-family: var(--font-title);
  font-size: clamp(2.3rem, 6vw, 4.2rem);
  line-height: 1.12;
  margin-bottom: 24px;
}
.hero__title em { font-style: italic; color: var(--gold-light); }
.hero__text {
  max-width: 640px;
  margin: 0 auto 36px;
  font-size: 1.05rem;
  color: rgba(255,255,255,.92);
}

/* =========================================================
   О КОМПАНИИ
   ========================================================= */
.about__inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.about__photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__content p { margin-bottom: 16px; color: var(--ink-soft); }
.about__content strong { color: var(--wine); }

.about__list { margin-top: 10px; }
.about__list li {
  padding: 10px 0 10px 34px;
  position: relative;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px dashed rgba(201,168,106,.45);
}
.about__list li::before {
  content: "✓";
  position: absolute; left: 4px; top: 9px;
  color: var(--gold);
  font-weight: 700;
}

/* =========================================================
   УСЛУГИ
   ========================================================= */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(42,32,48,.08);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card__img { height: 220px; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__img img { transform: scale(1.05); }
.card__icon {
  width: 64px; height: 64px;
  margin: 26px auto 0;
  display: grid; place-items: center;
  color: var(--wine);
  background: var(--cream);
  border-radius: 50%;
}
.card__icon svg { width: 32px; height: 32px; }
.card__body { padding: 24px 26px 30px; }
.card__title {
  font-family: var(--font-title);
  font-size: 1.25rem;
  color: var(--wine);
  margin-bottom: 10px;
}
.card__text { color: var(--ink-soft); font-size: .95rem; }

/* =========================================================
   ПРАВИЛА
   ========================================================= */
.rules__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.rules__photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); order: 2; }
.rules__photo img { width: 100%; height: 100%; object-fit: cover; }
.rules__content { order: 1; }

.rules__list li {
  padding: 9px 0 9px 34px;
  position: relative;
  border-bottom: 1px dashed rgba(201,168,106,.45);
  color: var(--ink);
}
.rules__list li::before {
  content: "✕";
  position: absolute; left: 2px; top: 8px;
  color: var(--wine-light);
  font-weight: 700;
}
.rules__note {
  margin-top: 22px;
  padding: 16px 20px;
  background: var(--cream-dark);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: .95rem;
}

/* =========================================================
   ШАГИ / ПАКЕТ
   ========================================================= */
.steps__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}
.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: 0 4px 18px rgba(42,32,48,.07);
  position: relative;
}
.step__num {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--wine);
  color: var(--white);
  font-family: var(--font-title);
  font-size: 1.15rem;
  margin-bottom: 14px;
}
.step p { color: var(--ink-soft); font-size: .95rem; }

.package {
  background: var(--white);
  border-radius: var(--radius);
  padding: 46px 50px;
  box-shadow: var(--shadow);
  max-width: 860px;
  margin-inline: auto;
}
.package__title {
  font-family: var(--font-title);
  font-size: 1.6rem;
  color: var(--wine);
  text-align: center;
  margin-bottom: 28px;
}
.package__list {
  columns: 2;
  column-gap: 46px;
}
.package__list li {
  break-inside: avoid;
  padding: 8px 0 8px 30px;
  position: relative;
  color: var(--ink);
}
.package__list li::before {
  content: "✓";
  position: absolute; left: 0; top: 7px;
  color: var(--gold);
  font-weight: 700;
}

/* =========================================================
   ТАРИФЫ
   ========================================================= */
.tariffs {
  position: relative;
  color: var(--white);
}
.tariffs__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tariffs__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(45,16,30,.92), rgba(74,22,40,.92));
}
.tariffs .container { position: relative; z-index: 2; }
.tariffs .section-title { color: var(--white); }
.tariffs .eyebrow { color: var(--gold-light); }

.tariffs__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 380px));
  gap: 32px;
  justify-content: center;
}
.tariff-card {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 38px 34px;
  text-align: center;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.tariff-card--accent { background: var(--gold-light); border: 2px solid rgba(255,255,255,.35); }
.tariff-card__name {
  font-family: var(--font-title);
  font-size: 1.45rem;
  color: var(--wine);
  margin-bottom: 18px;
  line-height: 1.25;
}
.tariff-card__price {
  font-family: var(--font-title);
  font-size: 2.6rem;
  color: var(--wine-dark);
}
.tariff-card__period {
  color: var(--ink-soft);
  font-size: .92rem;
  margin-bottom: 24px;
}
.tariff-card__list { margin-bottom: 28px; text-align: left; }
.tariff-card__list li {
  padding: 7px 0 7px 26px;
  position: relative;
  font-size: .93rem;
  color: var(--ink);
  border-bottom: 1px dashed rgba(201,168,106,.5);
}
.tariff-card__list li::before {
  content: "✓";
  position: absolute; left: 0; top: 5px;
  color: var(--gold);
  font-weight: 700;
}
.tariff-card__btn { margin-top: auto; background: var(--wine); color: var(--white); border: none; }
.tariff-card__btn:hover { background: var(--wine-dark); }

.tariffs__note {
  text-align: center;
  max-width: 640px;
  margin: 36px auto 0;
  color: rgba(255,255,255,.82);
  font-size: .92rem;
}

/* =========================================================
   КОНТАКТЫ
   ========================================================= */
.contacts__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-item {
  display: flex;
  gap: 18px;
  margin-bottom: 26px;
}
.contact-item__icon {
  flex: none;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: var(--cream-dark);
  color: var(--wine);
  border-radius: 12px;
}
.contact-item__icon svg { width: 24px; height: 24px; }
.contact-item h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-dark); margin-bottom: 4px; }
.contact-item p { color: var(--ink); }
.contacts__link { color: var(--wine); font-weight: 600; border-bottom: 1px solid var(--gold); }
.contacts__link:hover { color: var(--wine-dark); }

.form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 38px;
  box-shadow: var(--shadow);
}
.form__title { font-family: var(--font-title); font-size: 1.6rem; color: var(--wine); margin-bottom: 6px; }
.form__sub { color: var(--ink-soft); font-size: .95rem; margin-bottom: 26px; }
.form__field { display: block; margin-bottom: 18px; }
.form__field span {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.form__field input,
.form__field select,
.form__field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--cream-dark);
  border-radius: 10px;
  font-family: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: var(--cream);
  transition: border-color .2s ease;
}
.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
}
.form__field textarea { resize: vertical; }
.form__note { margin-top: 14px; font-size: .78rem; color: var(--ink-soft); text-align: center; }
.form__status { text-align: center; font-weight: 600; }
.form__status--ok { color: #1e7d3c; }
.form__status--err { color: var(--wine-light); }

/* =========================================================
   ПОДВАЛ
   ========================================================= */
.footer {
  background: var(--wine-dark);
  color: rgba(255,255,255,.72);
  padding: 30px 0;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .88rem;
}
.footer__nav a { color: var(--gold-light); }
.footer__nav a:hover { text-decoration: underline; }

/* =========================================================
   АДАПТИВ
   ========================================================= */
@media (max-width: 960px) {
  .about__inner, .rules__inner, .contacts__inner { grid-template-columns: 1fr; gap: 40px; }
  .rules__photo { order: 1; }
  .rules__content { order: 2; }
  .steps__grid { grid-template-columns: repeat(2, 1fr); }

  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 84vw);
    height: 100vh;
    background: var(--wine-dark);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 100px 34px 40px;
    gap: 0;
    transform: translateX(100%);
    transition: transform .35s ease;
    box-shadow: -10px 0 40px rgba(0,0,0,.35);
  }
  .nav--open { transform: translateX(0); }
  .nav__list { flex-direction: column; gap: 8px; width: 100%; }
  .nav__link { display: block; padding: 12px 0; font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,.12); }
  .nav__cta { margin-top: 28px; }
  .burger { display: flex; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .cards { grid-template-columns: 1fr; }
  .steps__grid { grid-template-columns: 1fr; }
  .tariffs__grid { grid-template-columns: 1fr; }
  .package { padding: 34px 26px; }
  .package__list { columns: 1; }
  .form { padding: 32px 24px; }
  .hero__inner { padding: 120px 0 70px; }
}
/* =========================================================
   ���������
   ========================================================= */
.link { color: var(--wine); font-weight: 600; border-bottom: 1px solid var(--gold); }
.link:hover { color: var(--wine-dark); }

.portfolio__filters { display: flex; gap: 10px; margin-bottom: 36px; flex-wrap: wrap; }
.chip {
  padding: 9px 22px;
  border-radius: 999px;
  border: 2px solid var(--gold);
  background: transparent;
  color: var(--wine);
  font-weight: 600;
  font-size: .9rem;
  transition: background .2s ease, color .2s ease;
}
.chip--active { background: var(--wine); border-color: var(--wine); color: var(--white); }
.chip:hover { background: var(--wine); border-color: var(--wine); color: var(--white); }

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 26px;
}
.portfolio__empty { text-align: center; color: var(--ink-soft); padding: 30px 0; }

.p-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(42,32,48,.08);
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}
.p-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.p-card__photo { height: 260px; overflow: hidden; background: var(--cream-dark); }
.p-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.p-card:hover .p-card__photo img { transform: scale(1.06); }
.p-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.p-card__name { font-family: var(--font-title); font-size: 1.15rem; color: var(--wine); }
.p-card__meta { font-size: .85rem; color: var(--ink-soft); }
.p-card__about {
  font-size: .88rem;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.p-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  color: var(--ink-soft);
}
.p-card__comments { display: inline-flex; align-items: center; gap: 5px; }
.p-card__comments svg { width: 15px; height: 15px; }
.p-card__demobadge {
  align-self: flex-start;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--wine-light);
  background: var(--cream);
  padding: 3px 8px;
  border-radius: 999px;
}

/* =========================================================
   �������
   ========================================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(26,12,20,.72);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 20px;
  overflow-y: auto;
}
.modal--open { display: grid; }
.modal[hidden] { display: none; }

.modal__dialog {
  background: var(--white);
  border-radius: var(--radius);
  width: min(480px, 100%);
  padding: 38px 34px;
  position: relative;
  box-shadow: var(--shadow);
  max-height: 92vh;
  overflow-y: auto;
}
.modal__dialog--wide { width: min(900px, 100%); padding: 30px; }
.modal__close {
  position: absolute;
  top: 14px; right: 16px;
  width: 38px; height: 38px;
  border: none;
  border-radius: 50%;
  background: var(--cream-dark);
  color: var(--wine);
  font-size: 1.4rem;
  line-height: 1;
  transition: background .2s ease;
  z-index: 2;
}
.modal__close:hover { background: var(--wine); color: var(--white); }
.form--modal { box-shadow: none; padding: 0; }
.form__error { color: var(--wine-light); font-weight: 600; margin-top: 12px; text-align: center; }
.modal__alt { text-align: center; margin-top: 18px; color: var(--ink-soft); font-size: .9rem; }

/* ============ ������ � ������� ============ */
.pmodal { display: grid; grid-template-columns: 1fr 1.15fr; gap: 28px; }
.pmodal__gallery { min-width: 0; }
.pmodal__main {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  background: var(--cream-dark);
}
.pmodal__thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.pmodal__thumb {
  width: 62px; height: 78px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: .8;
  transition: border-color .15s ease, opacity .15s ease;
}
.pmodal__thumb:hover { opacity: 1; }
.pmodal__thumb--active { border-color: var(--gold); opacity: 1; }
.pmodal__name { font-family: var(--font-title); font-size: 1.7rem; color: var(--wine); }
.pmodal__meta { color: var(--ink-soft); font-size: .95rem; margin: 4px 0 16px; }
.pmodal__about { color: var(--ink); white-space: pre-line; margin-bottom: 18px; }
.pmodal__own { font-size: .85rem; color: var(--wine-light); margin-bottom: 16px; }
.pmodal__cta { margin-bottom: 8px; }

.comments { margin-top: 22px; border-top: 1px dashed var(--cream-dark); padding-top: 18px; }
.comments__title { font-family: var(--font-title); color: var(--wine); font-size: 1.1rem; margin-bottom: 12px; }
.comment { padding: 10px 0; border-bottom: 1px solid var(--cream-dark); }
.comment__head { font-size: .82rem; color: var(--gold-dark); font-weight: 700; margin-bottom: 2px; }
.comment__head span { color: var(--ink-soft); font-weight: 400; }
.comment__text { font-size: .9rem; color: var(--ink); }
.comments__empty { color: var(--ink-soft); font-size: .88rem; margin-bottom: 10px; }
.comment-form { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.comment-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--cream-dark);
  border-radius: 10px;
  font-family: inherit;
  font-size: .92rem;
  color: var(--ink);
  background: var(--cream);
  resize: vertical;
}
.comment-form textarea:focus { outline: none; border-color: var(--gold); }
.comment-form--locked { color: var(--ink-soft); font-size: .9rem; }

/* =========================================================
   ����
   ========================================================= */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 300;
  background: var(--ink);
  color: var(--white);
  padding: 13px 26px;
  border-radius: 999px;
  font-size: .92rem;
  box-shadow: var(--shadow);
  animation: toast-in .25s ease;
  max-width: 90vw;
  text-align: center;
}
.toast[hidden] { display: none; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* =========================================================
   ����������� � ����� / �������� �����������
   ========================================================= */
.nav__auth { display: flex; align-items: center; gap: 10px; }
.nav__auth-btn { padding: 10px 20px; font-size: .88rem; }
.nav__auth-btn.btn--outline {
  background: rgba(30, 10, 20, .45);
  border-color: rgba(255, 255, 255, .9);
  backdrop-filter: blur(4px);
}
.nav__auth-btn.btn--outline:hover { background: var(--white); color: var(--wine); }
.nav__auth-user { color: var(--gold-light); font-size: .9rem; cursor: pointer; border-bottom: 1px dashed rgba(201,168,106,.5); }
.nav__auth-logout {
  background: none;
  border: 1px solid rgba(255,255,255,.4);
  color: var(--white);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: .82rem;
  transition: background .2s ease;
}
.nav__auth-logout:hover { background: rgba(255,255,255,.15); }

.register-hero,
.page-hero {
  background: linear-gradient(180deg, var(--wine-dark), var(--wine));
  color: var(--white);
  padding: 46px 0 52px;
}
.register-hero { text-align: center; }
.page-hero {
  margin-top: 64px;
  padding: 66px 0 52px;
  position: relative;
}
.page-hero h1 {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 8px;
}
.page-hero p { color: rgba(255,255,255,.85); max-width: 720px; }
.register-hero__back { color: rgba(255,255,255,.8); font-size: .9rem; margin-bottom: 12px; display: inline-block; }
.page-hero__back { color: rgba(255,255,255,.8); font-size: .9rem; display: inline-block; margin-bottom: 18px; }
.register-hero__back:hover,
.page-hero__back:hover { color: var(--gold-light); }
.register-hero h1 { font-family: var(--font-title); font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 8px; }
.register-hero p { color: rgba(255,255,255,.82); }

.register-wrap { padding: 40px 0 70px; }
.register-form {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 44px 46px;
  max-width: 760px;
  margin-inline: auto;
}
@media (max-width: 640px) { .register-form { padding: 30px 22px; } }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.form-grid .form__field--full { grid-column: 1 / -1; }

.form__section-title {
  font-family: var(--font-title);
  color: var(--wine);
  font-size: 1.2rem;
  margin: 26px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--cream-dark);
}
.form__section-title:first-child { margin-top: 0; }

/* ============ ��������� ���� ============ */
.uploader {
  border: 2px dashed var(--gold);
  border-radius: 12px;
  padding: 34px 20px;
  text-align: center;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
  background: var(--cream);
}
.uploader:hover, .uploader--over { background: var(--cream-dark); border-color: var(--wine); }
.uploader__icon { width: 40px; height: 40px; margin: 0 auto 10px; color: var(--gold); }
.uploader__icon svg { width: 100%; height: 100%; }
.uploader p { font-size: .9rem; }
.uploader small { display: block; margin-top: 6px; color: var(--ink-soft); opacity: .8; }

.photo-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.photo-preview__item { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 3 / 4; }
.photo-preview__item img { width: 100%; height: 100%; object-fit: cover; }
.photo-preview__remove {
  position: absolute;
  top: 6px; right: 6px;
  width: 26px; height: 26px;
  border: none;
  border-radius: 50%;
  background: rgba(26,12,20,.72);
  color: var(--white);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}
.photo-preview__remove:hover { background: var(--wine); }
.photo-preview__badge {
  position: absolute;
  left: 6px; bottom: 6px;
  background: var(--gold);
  color: var(--ink);
  font-size: .66rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

.required-star { color: var(--wine-light); }

@media (max-width: 960px) {
  .nav__auth { flex-direction: column; align-items: flex-start; width: 100%; margin-top: 20px; }
  .nav__auth-btn { width: 100%; justify-content: center; }
  .pmodal { grid-template-columns: 1fr; }
}

/* =========================================================
   ��������-������ (�������)
   ========================================================= */
.quick { padding: 70px 0; }
.quick__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.q-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: 0 4px 18px rgba(42,32,48,.08);
  border-left: 4px solid var(--gold);
  transition: transform .22s ease, box-shadow .22s ease;
  min-height: 150px;
}
.q-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.q-card__title {
  font-family: var(--font-title);
  font-size: 1.2rem;
  color: var(--wine);
}
.q-card p { color: var(--ink-soft); font-size: .9rem; flex: 1; }
.q-card__go { color: var(--gold-dark); font-weight: 700; font-size: .88rem; }

@media (max-width: 900px) {
  .quick__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .quick__grid { grid-template-columns: 1fr; }
}
