/* ================== base ================== */
:root {
  --bg: #f4f1ec;
  --paper: #ffffff;
  --ink: #1f2937;
  --ink-soft: #4b5563;
  --ink-mute: #6b7280;
  --line: #e3ddd2;
  --line-strong: #cfc6b6;
  --accent: #b8341f;
  --accent-dark: #8e2615;
  --accent-soft: #fdecdf;
  --gold: #d4a04a;
  --good: #2f7a44;
  --warn: #c2873a;
  --bad: #b8341f;
  --shadow-sm: 0 1px 2px rgba(31,41,55,.06), 0 1px 3px rgba(31,41,55,.08);
  --shadow-md: 0 4px 16px rgba(31,41,55,.08);
  --radius: 6px;
  --radius-lg: 10px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "PT Serif", Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
  font-family: "PT Serif", Georgia, serif;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 .6em;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.55rem; margin-top: 0; }
h3 { font-size: 1.18rem; }
h4 { font-size: 1.02rem; }

p { margin: 0 0 1em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ================== header ================== */
.page-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}
.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.brand:hover { color: inherit; }
.brand-logo {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-logo svg { width: 100%; height: 100%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-title {
  font-weight: 800;
  font-size: 1.12rem;
  color: var(--ink);
  letter-spacing: .2px;
}
.brand-sub {
  font-size: .82rem;
  color: var(--ink-mute);
  font-family: "Helvetica Neue", Arial, sans-serif;
  margin-top: 2px;
}

/* ================== cta button ================== */
.cta-btn {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: .95rem;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  border: 0;
  padding: 11px 22px;
  border-radius: var(--radius);
  cursor: pointer;
  letter-spacing: .2px;
  transition: background .15s ease, transform .1s ease;
  text-decoration: none;
  display: inline-block;
}
.cta-btn:hover { background: var(--accent-dark); }
.cta-btn:active { transform: translateY(1px); }
.cta-btn--wide { width: 100%; padding: 14px 22px; font-size: 1rem; }

/* ================== intro ================== */
.intro {
  padding: 56px 0 24px;
}
.intro h1 {
  font-size: 2.1rem;
  max-width: 760px;
}
.intro .lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 880px;
}

/* ================== rating ================== */
.rating-section {
  padding: 24px 0 56px;
}
.rating-note {
  color: var(--ink-mute);
  font-size: .95rem;
  margin-bottom: 28px;
  font-family: "Helvetica Neue", Arial, sans-serif;
}
.rating-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.rating-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 110px 1fr;
  overflow: hidden;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.rating-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.rating-card--top {
  border: 2px solid var(--gold);
  background: linear-gradient(180deg, #fff8e9 0%, #ffffff 70%);
}
.rating-card--low {
  border-style: dashed;
}
.rating-place {
  background: #fafaf6;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 14px;
  text-align: center;
}
.rating-card--top .rating-place {
  background: linear-gradient(180deg, #f7e3a8 0%, #efce75 100%);
  border-right-color: var(--gold);
}
.place-num {
  font-family: "PT Serif", Georgia, serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}
.rating-card--top .place-num { color: #5a4310; }
.place-badge {
  margin-top: 10px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: #5a4310;
  background: rgba(255,255,255,.6);
  padding: 4px 8px;
  border-radius: 999px;
}
.rating-body { padding: 22px 26px; }
.rating-body h3 {
  margin: 0 0 6px;
  font-size: 1.35rem;
}
.rating-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: .92rem;
}
.stars {
  position: relative;
  display: inline-block;
  width: 110px;
  height: 18px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' preserveAspectRatio='xMidYMid meet'><polygon fill='%23d8d2c4' points='11,1.5 13.7,8.2 20.8,8.7 15.3,13.2 17.1,20 11,16.4 4.9,20 6.7,13.2 1.2,8.7 8.3,8.2'/></svg>");
  background-size: 22px 100%;
  background-repeat: repeat-x;
}
.stars-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' preserveAspectRatio='xMidYMid meet'><polygon fill='%23d4a04a' points='11,1.5 13.7,8.2 20.8,8.7 15.3,13.2 17.1,20 11,16.4 4.9,20 6.7,13.2 1.2,8.7 8.3,8.2'/></svg>");
  background-size: 22px 100%;
  background-repeat: repeat-x;
  overflow: hidden;
}
.stars--small {
  width: 88px;
  height: 14px;
  background-size: 17.6px 100%;
}
.stars--small .stars-fill {
  background-size: 17.6px 100%;
}
.rating-num {
  font-weight: 700;
  color: var(--ink);
}
.rating-sep { color: var(--ink-mute); font-weight: 400; margin: 0 1px; }
.rating-descr {
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.rating-services {
  margin: 0 0 16px;
  padding-left: 20px;
  color: var(--ink-soft);
  font-size: .96rem;
}
.rating-services li { margin-bottom: 4px; }
.rating-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.rating-tag {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: .8rem;
  background: #f5f0e6;
  color: var(--ink-soft);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.rating-link {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  font-size: .9rem;
  margin-left: auto;
  background: var(--ink);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background .15s ease;
}
.rating-link:hover {
  background: var(--accent-dark);
  color: #fff;
}
.rating-card--top .rating-link {
  background: var(--accent);
}
.rating-card--top .rating-link:hover {
  background: var(--accent-dark);
}

/* ================== content block ================== */
.content-block {
  background: var(--paper);
  padding: 56px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.content-block h2 {
  font-size: 1.7rem;
  margin-bottom: 18px;
}
.content-block h3 {
  font-size: 1.22rem;
  margin-top: 28px;
}
.content-block p { color: var(--ink-soft); }
.content-list {
  margin: 0 0 18px;
  padding-left: 22px;
  color: var(--ink-soft);
}
.content-list li { margin-bottom: 6px; }

/* ================== reviews ================== */
.reviews-section {
  padding: 56px 0;
}
.reviews-note {
  color: var(--ink-mute);
  font-size: .95rem;
  margin-bottom: 28px;
  font-family: "Helvetica Neue", Arial, sans-serif;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}
.review-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
}
.review-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  gap: 10px;
}
.review-name { font-weight: 700; }
.review-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: .82rem;
  color: var(--ink-mute);
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}
.review-meta span:first-child { color: var(--accent-dark); font-weight: 600; }
.review-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .98rem;
}
.reviews-cta {
  margin-top: 36px;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.reviews-cta p {
  font-size: 1.05rem;
  margin-bottom: 16px;
}

/* ================== footer ================== */
.page-footer {
  background: #2a2520;
  color: #d8d2c4;
  margin-top: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
}
.footer-wrap {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  padding-top: 48px;
  padding-bottom: 36px;
}
.footer-col h4 {
  color: #fff;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.footer-col p {
  font-size: .92rem;
  line-height: 1.5;
  margin-bottom: 8px;
  color: #b8b0a0;
}
.footer-col a { color: #f4f1ec; }
.footer-col a:hover { color: #fff; }
.footer-brand {
  font-family: "PT Serif", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}
.footer-bottom {
  border-top: 1px solid #3d3630;
  padding: 16px 0;
  font-size: .82rem;
  color: #8c857a;
}

/* ================== modal ================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31,41,55,.55);
  backdrop-filter: blur(2px);
}
.modal-window {
  position: relative;
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 20px 50px rgba(0,0,0,.3);
  max-height: 92vh;
  overflow-y: auto;
}
.modal-window h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.modal-sub {
  color: var(--ink-mute);
  font-size: .95rem;
  margin-bottom: 22px;
  font-family: "Helvetica Neue", Arial, sans-serif;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: transparent;
  border: 0;
  font-size: 28px;
  line-height: 1;
  color: var(--ink-mute);
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.modal-close:hover { background: var(--bg); color: var(--ink); }
.lead-form { display: flex; flex-direction: column; gap: 14px; font-family: "Helvetica Neue", Arial, sans-serif; }
.form-row { display: flex; flex-direction: column; gap: 5px; }
.form-row span {
  font-size: .85rem;
  color: var(--ink-soft);
  font-weight: 600;
}
.form-row input,
.form-row textarea {
  font: inherit;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184,52,31,.15);
}
.form-row input.is-invalid,
.form-row textarea.is-invalid {
  border-color: var(--bad);
  box-shadow: 0 0 0 3px rgba(184,52,31,.15);
}
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .85rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.form-check input { margin-top: 4px; }
.form-status {
  margin: 0;
  font-size: .9rem;
  min-height: 1.1em;
}
.form-status.is-ok { color: var(--good); }
.form-status.is-error { color: var(--bad); }

body.is-modal-open { overflow: hidden; }

/* ================== responsive ================== */
@media (max-width: 760px) {
  body { font-size: 16px; }
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.35rem; }
  .header-wrap { gap: 8px; }
  .brand-sub { display: none; }
  .brand-title { font-size: 1rem; }
  .cta-btn { padding: 9px 14px; font-size: .88rem; }
  .intro { padding: 36px 0 16px; }
  .intro h1 { font-size: 1.55rem; }
  .intro .lead { font-size: 1rem; }
  .rating-card {
    grid-template-columns: 80px 1fr;
  }
  .rating-place { padding: 14px 6px; }
  .place-num { font-size: 2.2rem; }
  .place-badge { font-size: .65rem; padding: 3px 6px; }
  .rating-body { padding: 16px 18px; }
  .rating-body h3 { font-size: 1.15rem; }
  .rating-meta { flex-wrap: wrap; gap: 8px; }
  .rating-foot { gap: 8px; }
  .rating-link { margin-left: 0; width: 100%; text-align: center; }
  .reviews-grid { grid-template-columns: 1fr; }
  .footer-wrap {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 32px;
  }
  .modal-window { padding: 24px; }
}

@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  .rating-card { grid-template-columns: 1fr; }
  .rating-place {
    flex-direction: row;
    gap: 12px;
    justify-content: flex-start;
    padding: 10px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .place-num { font-size: 1.8rem; }
  .rating-card--top .rating-place { border-bottom-color: var(--gold); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
