/* Тема сип-номер.рф — «карточка меню услуг».
   Сайт — каталог сценариев «номер под задачу», поэтому дизайн — лист меню
   из приличной кофейни: тёплая крафт-бумага с едва заметными вертикальными
   волокнами, заголовки — гравированная антиква Cochin (шрифт печатных меню;
   у соседей его нет — соседи сидят на Georgia/IOwan/Hoefler/Тahoma/гротесках),
   у каждого заголовка секции — точечный лидер до края, как у «позиции» меню,
   карточки — пункты с четырёхлучевой звёздочкой, таблица фактов — «цены»
   с пунктирными линиями, FAQ — строки меню со знаком в круглой «сургучной»
   печати, финальный блок — тёмно-зелёная кожаная обложка с тиснёной рамкой.
   Палитра — патина зелёной обложки #346e5d (ни у кого нет) на крафт-бумаге;
   чернила — тёплая сепия.
   Никаких мотивов соседей: ни контурных карт и топо-линеек, ни весов
   с гирей, ни табло с лепестками, ни софтфон-плиток, ни прайс-колонок —
   только язык меню: лидеры, звёздочки, двойные линейки, сургуч. */

:root {
  --font-head: "Cochin", "Cochin Bold", Georgia, serif;
  --bg: #f1e9d6;             /* крафт-бумага меню */
  --bg-alt: #e7dcc3;         /* второй слой картона */
  --card: #faf4e2;           /* светлый лист меню */
  --line: #d8c9a6;           /* типографская линейка */
  --ink: #32281a;            /* сепийные чернила */
  --muted-ink: #7d6e52;
  --radius: 6px;
  --tint: #dfe7dc;           /* зеленоватая промывка */
  --deep: #22312a;           /* кожаная обложка */
  --shadow: 0 1px 0 rgba(50, 40, 26, 0.05), 0 10px 22px -18px rgba(50, 40, 26, 0.35);
}

/* Заголовки: гравированная антиква печатного меню */
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; letter-spacing: 0.01em; }
h1 { line-height: 1.18; letter-spacing: 0.015em; }
h2 { line-height: 1.25; }
h3 { font-size: 18px; }

::selection { background: color-mix(in srgb, var(--accent) 24%, var(--bg)); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Бумага с волокнами */
body {
  background-image: repeating-linear-gradient(90deg,
    rgba(50, 40, 26, 0.014) 0 2px,
    transparent 2px 5px);
}

/* Шапка: крафт-картон, толстая кожаная кромка и тонкая патинная нить */
.topbar {
  background: var(--card);
  border-bottom: 3px solid var(--deep);
  box-shadow: none;
}
.topbar::after {
  content: "";
  display: block;
  height: 1px;
  background: var(--accent);
}
.topbar .wrap { height: 58px; }
.brand { font-family: var(--font-head); font-size: 19px; letter-spacing: 0.02em; }
.brand::before {
  content: "✦ ";
  color: var(--accent);
  font-size: 13px;
  vertical-align: 0.12em;
}
.nav a { font-family: var(--font-head); font-size: 14.5px; }
.nav a:hover { text-decoration: underline; text-underline-offset: 3px; color: var(--accent-dark); }

/* Кнопки: тиснение на обложке — тонкая светлая внутренняя рамка */
.btn {
  border-radius: 3px;
  font-family: var(--font-head);
  letter-spacing: 0.03em;
  box-shadow: inset 0 0 0 1px rgba(250, 244, 226, 0.38), var(--shadow);
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { transform: translate(0, -1px); }
.btn::after {
  content: " \00a0→";
  font-family: -apple-system, "Segoe UI", Arial, sans-serif;
}
.btn-sm { border-radius: 3px; }
.btn-sm::after { content: ""; }

/* Hero: обложка меню — по центру, крафт с волокнами, двойная линейка под лидом */
.hero {
  padding: 56px 0 52px;
  text-align: center;
  background-image: repeating-linear-gradient(90deg,
    rgba(50, 40, 26, 0.018) 0 2px,
    transparent 2px 5px);
}
.hero .wrap { border-left: 0; padding-left: 22px; }
.hero h1 { max-width: 23em; margin-left: auto; margin-right: auto; }
.hero .lead {
  max-width: 37em;
  margin-left: auto;
  margin-right: auto;
  font-size: 17.5px;
  color: var(--muted-ink);
}
.hero .btn { margin-top: 10px; }

/* Двойная линея меню под лидом: толстая и тонкая, между ними звёздочка */
.hero .lead::after {
  content: "✦";
  display: block;
  margin-top: 20px;
  color: var(--accent);
  font-size: 12px;
  border-top: 3px double var(--line);
  padding-top: 8px;
  width: 220px;
  margin-left: auto;
  margin-right: auto;
}

/* Примечание героя: строка из меню в маленькой рамке */
.hero-note {
  display: inline-block;
  margin-top: 20px;
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: color-mix(in srgb, var(--card) 76%, transparent);
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--muted-ink);
}
.hero-note::before { content: "✦ "; color: var(--accent); font-size: 11px; }

/* Секции: заголовок — «позиция меню» со звёздочкой и точечным лидером до края */
section.sec { padding: 48px 0 44px; }
section.sec h2 {
  display: flex;
  align-items: baseline;
}
section.sec h2::before {
  content: "✦";
  margin-right: 13px;
  color: var(--accent);
  font-size: 0.55em;
  transform: translateY(-0.18em);
}
section.sec h2::after {
  content: "";
  flex: 1;
  margin-left: 18px;
  border-bottom: 1px dotted var(--line);
  transform: translateY(-0.32em);
}

/* Карточки: пункты меню на светлом листе */
.cards { gap: 15px; margin: 22px 0 8px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow: 0 2px 0 rgba(50, 40, 26, 0.05), 0 14px 26px -18px rgba(50, 40, 26, 0.4);
}
.card h3::before { content: "✦ "; color: var(--accent); font-size: 12px; vertical-align: 0.2em; }
.card p { font-size: 15.5px; color: color-mix(in srgb, var(--ink) 88%, var(--bg)); }

/* Отзывы: «впечатления гостя» — антиква с курсивом и звёздочкой в шапке */
.card.quote {
  border-top: 3px double var(--accent);
  background: var(--card);
}
.card.quote::before { content: none; }
.card.quote h3::before { content: none; }
.card.quote p:first-child {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 16.5px;
  color: var(--ink);
}
.card.quote p:first-child::before { content: "✦ "; color: var(--accent); font-style: normal; font-size: 12px; }
.card.quote .muted {
  padding-top: 7px;
  border-top: 1px dotted var(--line);
  font-size: 12.5px;
}

/* Чек-лист: звёздочки вместо галочек */
.checks { margin-top: 18px; }
.checks li { padding: 6px 0 6px 26px; }
.checks li::before {
  content: "✦";
  left: 2px;
  top: 6px;
  color: var(--accent);
  font-size: 12px;
}

/* Факты: «цены меню» — курсив слева, пунктирная линия цены справа */
.facts { margin: 20px 0; }
.facts th, .facts td { padding: 12px 6px; border-bottom: 1px dotted var(--line); }
.facts th {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--ink);
  width: 34%;
}
.facts td { color: color-mix(in srgb, var(--ink) 88%, var(--bg)); font-size: 15.5px; }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }

/* FAQ: строки меню, знак — «+» в круглой сургучной печати */
#faq details {
  background: transparent;
  border: 0;
  border-bottom: 1px dotted var(--line);
  border-radius: 0;
  margin: 0;
  padding: 0 18px;
}
#faq details summary {
  padding: 15px 40px 15px 2px;
  font-family: var(--font-head);
  font-size: 17px;
}
#faq details summary::after {
  content: "+";
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-size: 15px;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}
#faq details[open] summary::after {
  content: "−";
  background: var(--accent);
  color: var(--card);
  transform: translateY(-50%);
}
#faq details p { margin: 0 2px 16px; color: var(--muted-ink); }

/* Финальный CTA: тёмно-зелёная кожаная обложка с тиснёной рамкой */
section.sec-cta {
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(250, 244, 226, 0.06) 0 40%, transparent 75%),
    var(--deep);
  border-top: 3px solid rgba(250, 244, 226, 0.2);
  padding: 54px 0;
}
section.sec-cta h2 {
  color: #efe6cd;
  text-align: center;
  justify-content: center;
}
section.sec-cta h2::before {
  content: "✦ ✦ ✦";
  margin-right: 0;
  margin-bottom: 12px;
  width: 100%;
  text-align: center;
  color: color-mix(in srgb, var(--accent) 55%, #efe6cd);
  font-size: 13px;
  letter-spacing: 0.5em;
}
section.sec-cta h2::after { content: none; }
section.sec-cta p { color: rgba(239, 230, 205, 0.78); max-width: 36em; margin-left: auto; margin-right: auto; text-align: center; }
section.sec-cta .wrap { text-align: center; }
section.sec-cta .btn {
  background: var(--card);
  color: var(--deep);
  border: 1px solid rgba(250, 244, 226, 0.5);
  box-shadow: inset 0 0 0 1px rgba(34, 49, 42, 0.12), 0 10px 24px -12px rgba(0, 0, 0, 0.5);
}
section.sec-cta .btn:hover { background: #fffdf5; color: var(--accent-dark); }
section.sec-cta .muted { color: rgba(239, 230, 205, 0.6); }

/* Футер: нижний край обложки */
.footer { background: var(--bg-alt); border-top: 1px solid var(--line); }
.footer-brand { font-family: var(--font-head); font-size: 16.5px; }
.footer-brand::before { content: "✦ "; color: var(--accent); font-size: 11px; }

/* Статьи: хлебные крошки, лист со звёздочкой */
.crumbs { font-family: var(--font-head); font-size: 13.5px; }
.crumbs a { color: var(--muted-ink); }
.crumbs a:hover { color: var(--accent-dark); }
.crumbs a::after { content: " ✦"; color: var(--accent); font-size: 10px; margin-left: 6px; }
.ctabox {
  border: 1px solid var(--line);
  border-top: 3px double var(--accent);
  background: var(--card);
  padding: 26px 28px;
}
.ctabox .btn { box-shadow: inset 0 0 0 1px rgba(250, 244, 226, 0.38); }
.article h1 { letter-spacing: 0.01em; }
.article table th { background: var(--bg-alt); font-family: var(--font-head); font-style: italic; }
.article table th, .article table td { border-color: var(--line); }
.article blockquote {
  margin: 18px 0;
  padding: 4px 0 4px 18px;
  border-left: 2px solid var(--accent);
  color: var(--muted-ink);
  font-style: italic;
}
.related { list-style: none; }
.related li { padding-left: 22px; position: relative; }
.related li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-size: 11px;
}

/* Плитки статей: заголовок-позиция */
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Мобильная адаптация: волокна и лидеры ужимаются */
@media (max-width: 640px) {
  .hero { padding: 42px 0 40px; }
  section.sec { padding: 38px 0 34px; }
  .card { padding: 15px 16px; }
  .hero .lead::after { width: 150px; margin-top: 16px; }
  section.sec h2::after { margin-left: 12px; }
  #faq details summary { font-size: 16px; }
}
