/* Palusa: стили сайта по брендбуку (brand101/dist/brandbook). Только светлая тема. */

:root {
  --teal: #1F6F78;   /* основной: знак, заголовки, кнопки */
  --rust: #B5522B;   /* акцент, мелкий текст на белом, не на мху */
  --navy: #13294B;   /* текст и тёмный фон */
  --moss: #E9E2CF;   /* светлый фон, плашки */
  --white: #FFFFFF;
  --ink: #13294B;
  --line: rgba(19, 41, 75, 0.18);
  --radius: 10px;
  --font: "Noto Sans", "Segoe UI", Arial, sans-serif;
  --font-zh: "Noto Sans", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.palusa, .palusa * { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); }
.palusa { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font);
  font-size: 17px; line-height: 1.6; }
.palusa.l-zh { font-family: var(--font-zh); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
h1, h2, h3 { color: var(--navy); line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(28px, 5vw, 44px); }
h2 { font-size: clamp(22px, 3.2vw, 30px); color: var(--teal); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
a { color: var(--teal); }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 2px; }
section { padding: 48px 0; }
.band { background: var(--moss); }

/* шапка */
.top { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 6px; flex-wrap: wrap; }
.brand { display: inline-flex; line-height: 0; }
.logo { height: 40px; width: auto; display: block; }
.langs { display: flex; gap: 4px; flex-wrap: wrap; font-size: 14px; }
.langs a { text-decoration: none; padding: 4px 8px; border-radius: 6px; color: var(--navy); }
.langs a[aria-current] { background: var(--teal); color: var(--white); }
.pages { border-top: 1px solid var(--line); }
/* девять пунктов меню переносятся на новую строку, а не прокручиваются */
.pages .wrap { display: flex; flex-wrap: wrap; gap: 0 4px; white-space: nowrap; }
.pages a { text-decoration: none; color: var(--navy); padding: 10px 10px; font-size: 15px; border-bottom: 3px solid transparent; }
.pages a[aria-current="page"] { border-bottom-color: var(--teal); color: var(--teal); font-weight: 700; }
.pages a:hover { color: var(--teal); }

/* первый экран */
.hero { background: var(--navy); color: var(--white); padding: 56px 0 64px; }
.hero h1 { color: var(--white); max-width: 18em; }
.hero .lead { color: var(--moss); font-size: 20px; max-width: 32em; }
.hero-logo { margin-bottom: 28px; }
.logo-hero { height: 72px; width: auto; display: block; }
.button { display: inline-block; background: var(--teal); color: var(--white); text-decoration: none;
  font-weight: 700; padding: 12px 22px; border-radius: 8px; border: 2px solid var(--teal); font: inherit; font-weight: 700; cursor: pointer; }
.button:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.hero .button { background: var(--moss); color: var(--navy); border-color: var(--moss); }
.hero .button:hover { background: var(--white); border-color: var(--white); color: var(--navy); }
.button.ghost { background: transparent; color: var(--teal); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }
.hero .button.alt { background: transparent; color: var(--moss); border-color: var(--moss); }
.hero .button.alt:hover { background: var(--moss); color: var(--navy); }
.hero .lead.own { color: var(--white); font-size: 18px; margin-top: 18px; }
.button.ghost:hover { background: var(--teal); color: var(--white); }

/* заголовок страницы */
.pagehead { background: var(--moss); padding: 40px 0 32px; }
.pagehead .lead { font-size: 19px; max-width: 40em; margin: 0; }

/* карточки */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cards.two { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.band .card { border-color: transparent; }
.card.plain { border-left: 4px solid var(--teal); }
.card p:last-child { margin-bottom: 0; }
.card > a { display: block; color: inherit; text-decoration: none; }
.card > a:hover h3 { color: var(--teal); }
.more { color: var(--teal); font-weight: 700; font-size: 15px; }
.fig { margin: 0 0 12px; }
.art, .fig img { width: 100%; height: auto; display: block; border-radius: 8px; }
.figrow { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 28px 0; max-width: 720px; }
.split { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
.split .fig { max-width: 420px; }

/* списки */
.ticks, .dashes, .steps { padding-left: 0; list-style: none; margin: 0 0 1em; }
.ticks li, .dashes li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 10px; height: 6px;
  border-left: 3px solid var(--teal); border-bottom: 3px solid var(--teal); transform: rotate(-45deg); }
.dashes li::before { content: ""; position: absolute; left: 4px; top: .8em; width: 12px; border-top: 3px solid var(--rust); }
.steps { counter-reset: s; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { counter-increment: s; background: var(--white); border-radius: var(--radius); padding: 16px 16px 16px 60px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--teal); color: var(--white); font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* таблица требований */
.scope { font-weight: 700; }
.tablewrap { overflow-x: auto; margin: 16px 0; }
table { border-collapse: collapse; width: 100%; min-width: 520px; background: var(--white); }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--navy); color: var(--white); }
tbody td:nth-child(2) { font-weight: 700; color: var(--rust); white-space: nowrap; }
.note { font-size: 15px; color: var(--navy); opacity: .85; }
.callout { background: var(--moss); border-left: 4px solid var(--rust); padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; max-width: 46em; }
.prose { max-width: 46em; font-size: 18px; }

/* маршруты: у Турции и Китая одинаковые поля */
.route { margin: 0; }
.route dt { font-weight: 700; color: var(--teal); margin-top: 12px; }
.route dd { margin: 4px 0 0; }
.route .ticks { margin: 6px 0 0; font-size: 15px; }

/* вопросы */
.faq { max-width: 50em; }
.qa { border-bottom: 1px solid var(--line); padding: 4px 0; }
.qa summary { cursor: pointer; font-weight: 700; padding: 12px 0; color: var(--navy); list-style-position: outside; }
.qa summary:hover { color: var(--teal); }
.qa p { margin: 0 0 14px; }

/* контакты и форма */
.contacts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 24px; }
.contacts dt { font-weight: 700; }
.contacts dd { margin: 0; overflow-wrap: anywhere; }
.rq { max-width: 36em; }
.field { margin: 0 0 14px; }
.field label { display: block; font-weight: 700; margin-bottom: 4px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--white); color: var(--ink); }

/* подвал */
.foot { background: var(--navy); color: var(--moss); padding: 32px 0; font-size: 15px; }
.foot h2 { color: var(--white); font-size: 18px; }
.foot p { margin: 0 0 6px; overflow-wrap: anywhere; }
.foot strong { color: var(--white); }
.copy { margin-top: 16px !important; opacity: .8; }

@media (max-width: 600px) {
  .palusa { font-size: 16px; }
  section { padding: 36px 0; }
  .logo { height: 32px; }
  .logo-hero { height: 52px; }
  .hero { padding: 40px 0 48px; }
  .pages a { padding: 8px 6px; font-size: 14px; }
}
@media print {
  .top, .foot .copy, .button, .hero-logo { display: none; }
  .hero, .band, .pagehead, .foot { background: none; color: #111111; }
  .hero h1, .hero .lead, .hero .lead.own, .foot h2, .foot strong { color: #111111; }
  thead th { background: none; color: #111111; border-bottom: 2px solid #111111; }
  table { min-width: 0; }
}
