:root {
  --cream: #f6f1ea;
  --paper: #fffaf4;
  --sand: #efe6db;
  --gold: #b08a62;
  --gold-deep: #8d6a45;
  --ink: #2b221c;
  --mute: #6f6258;
  --line: rgba(176, 138, 98, 0.35);
  --shadow: 0 16px 40px rgba(43, 34, 28, 0.08);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Manrope, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.45em;
}
h1 { font-size: clamp(1.85rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3.1rem); }
h3 { font-size: 1.35rem; }

.wrap { width: min(1100px, calc(100% - 32px)); margin: 0 auto; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  color: var(--gold-deep);
  margin: 0 0 10px;
}
.lead { color: var(--mute); max-width: 640px; margin: 0 0 28px; }

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  background: rgba(246, 241, 234, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 700;
}
.nav__brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--gold);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.92rem;
}
.nav__links a { text-decoration: none; }
.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  height: 1.5px;
  margin: 7px 0;
  background: var(--ink);
}

.btn, .link-btn {
  cursor: pointer;
  border: 0;
  background: none;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
}
.btn:hover { background: var(--gold-deep); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--small { padding: 8px 14px; font-size: 0.86rem; }
.btn--wide { width: 100%; }
.link-btn {
  color: var(--gold-deep);
  font-weight: 600;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero { background: var(--paper); }
.hero__media {
  background: var(--sand);
  border-bottom: 1px solid var(--line);
}
.hero__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  object-position: center;
  background: #f3ebe1;
}
.hero__content { padding: 28px 0 40px; }
.hero__lead { color: var(--mute); max-width: 640px; }
.hero__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}
.hero__skills li {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.86rem;
  background: var(--cream);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.jump {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 22px;
}
.jump a {
  text-align: center;
  text-decoration: none;
  padding: 12px 10px;
  border-radius: 14px;
  background: var(--cream);
  border: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 600;
}

.section { padding: 64px 0; }
.section--soft { background: var(--sand); }

.frame {
  aspect-ratio: 1;
  overflow: hidden;
  background: #f3ebe1;
}
.frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.card__visual {
  padding: 18px 18px 0;
  background: var(--paper);
}
.card__img {
  width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
  border-radius: 14px;
  object-fit: contain;
}

.cards, .portfolio, .guides, .reviews {
  display: grid;
  gap: 16px;
}
.cards { grid-template-columns: 1fr; }
.card {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.card__body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.card__body p { color: var(--mute); flex: 1; margin-top: 0; }
.card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.card__meta strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
}

.portfolio, .guides { grid-template-columns: 1fr; }
.portfolio figure, .guides figure { margin: 0; }
.portfolio img, .guides img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  background: #f3ebe1;
}
.portfolio figcaption, .guides figcaption {
  margin-top: 10px;
  font-size: 0.92rem;
  font-weight: 600;
}

.reviews { grid-template-columns: 1fr; }
.review {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.review--featured { background: var(--ink); color: var(--paper); }
.review--featured .review__stars,
.review--featured .review__author { color: #e4c9a8; }
.review__stars { margin: 0 0 10px; letter-spacing: 0.12em; color: var(--gold); }
.review blockquote {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.45rem;
  line-height: 1.35;
}
.review__author { margin: 14px 0 0; font-size: 0.88rem; color: var(--mute); }

.text-link {
  display: inline-block;
  margin-top: 22px;
  color: var(--gold-deep);
  font-weight: 600;
  text-decoration: none;
}

.about { display: grid; gap: 28px; }
.script {
  font-family: "Great Vibes", cursive;
  font-size: 2.4rem;
  color: var(--gold);
  margin: 0 0 14px;
}
.checks { padding: 0; list-style: none; margin: 0 0 22px; }
.checks li { position: relative; padding: 8px 0 8px 24px; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
}
.about__panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow);
}
.about__panel img {
  width: 180px;
  height: 180px;
  margin: 0 auto 14px;
  border-radius: 50%;
  object-fit: cover;
}
.about__panel p {
  margin: 0;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.contacts { display: grid; gap: 24px; }
.contact-list { list-style: none; padding: 0; margin: 0 0 22px; }
.contact-list li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list span { color: var(--mute); }
.contact-list a { text-decoration: none; font-weight: 600; }
.map {
  min-height: 280px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.map iframe { width: 100%; height: 280px; border: 0; }

.footer {
  padding: 40px 16px 110px;
  text-align: center;
  color: var(--mute);
  border-top: 1px solid var(--line);
}
.footer a { color: var(--gold-deep); }

.mobile-cta {
  display: none;
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  padding: 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(43, 34, 28, 0.25);
}

.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: end center;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(43, 34, 28, 0.45);
}
.modal__box {
  position: relative;
  width: min(440px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: var(--paper);
  border-radius: 24px 24px 0 0;
  padding: 28px 20px 32px;
  box-shadow: var(--shadow);
}
.modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
  color: var(--ink);
}
.modal__lead { color: var(--mute); margin: 0 0 22px; }
.modal form { display: grid; gap: 16px; }
.modal label { display: grid; gap: 8px; font-size: 0.92rem; font-weight: 600; }
.modal input:not([type="checkbox"]),
.modal select {
  width: 100%;
  min-height: 50px;
  padding: 14px 16px;
  border: 1px solid #d8cbbd;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  outline: none;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}
.modal select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%232b221c' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.modal input:focus,
.modal select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(176, 138, 98, 0.16);
}
.modal input:user-invalid,
.modal input.is-invalid {
  border-color: #b3261e;
  background: #fff;
}
.field-error {
  color: #b3261e;
  font-size: 0.82rem;
  font-weight: 500;
}
.consent {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500 !important;
  cursor: pointer;
}
.consent input {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  margin: 2px 0 0;
  padding: 0;
  flex-shrink: 0;
  border: 2px solid var(--gold-deep);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}
.consent input:checked {
  background: var(--ink);
  border-color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fffaf4' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.2l3 3 6-6.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
}
.consent input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(176, 138, 98, 0.16);
}
.consent a { color: var(--gold-deep); }
.legal h2 { margin-top: 1.4em; font-size: 1.4rem; }
.legal a { color: var(--gold-deep); }
.modal__vk {
  text-align: center;
  color: var(--gold-deep);
  font-weight: 600;
  text-decoration: none;
}
.modal__success h2 { margin-bottom: 10px; }
.modal__success .btn { margin-top: 10px; }

@media (min-width: 720px) {
  .nav { padding: 14px 7vw; }
  .wrap { width: min(1100px, calc(100% - 10vw)); }
  .hero__content { padding: 40px 0 56px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .portfolio { grid-template-columns: repeat(2, 1fr); }
  .guides { grid-template-columns: repeat(3, 1fr); }
  .reviews { grid-template-columns: 1.15fr 0.85fr 0.85fr; }
  .about { grid-template-columns: 1fr; max-width: 720px; }
  .contacts { grid-template-columns: 1.15fr 0.85fr; align-items: center; }
  .section { padding: 80px 0; }
  .map, .map iframe { min-height: 360px; height: 360px; }
  .modal { place-items: center; }
  .modal__box { border-radius: 24px; padding: 32px; }
}

@media (max-width: 719px) {
  .nav__toggle { display: block; }
  .nav__links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
  }
  .nav__links.is-open { display: flex; }
  .mobile-cta { display: block; }
  .hero__content { padding-bottom: 100px; }
  .section { padding-bottom: 88px; }
}

body.modal-open { overflow: hidden; }
body.modal-open .mobile-cta { display: none; }
