/* WEB PANEL PROXY public CSS */
/* ============================================================
   ТЕЛЕЖНЫЙ ДВОР — стили
   Палитра: тёмный дуб, старая солома, ржавое железо, пергамент
   ============================================================ */

:root{
  --wood-dark:   #241a10;
  --wood-mid:    #5b3d24;
  --iron:        #33302c;
  --straw:       #d1a53d;
  --straw-dim:   #8a742f;
  --rust:        #8a3b2b;
  --rust-dark:   #6c2c1f;
  --parchment:   #f1e8d6;
  --parchment-2: #e7dabd;
  --line:        #c9b98f;

  --display: Georgia, "Times New Roman", serif;
  --body:    system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono:    ui-monospace, "Consolas", "Courier New", monospace;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--parchment);
  color: var(--iron);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}

img{ max-width:100%; display:block; }
a{ color: inherit; }

.container{
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}

h1,h2,h3{
  font-family: var(--display);
  font-weight: 400;
  color: var(--wood-dark);
  letter-spacing: 0.2px;
  margin: 0 0 0.5em;
}

h1{ font-size: clamp(2.1rem, 4vw, 3.2rem); line-height: 1.15; }
h2{ font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3{ font-size: 1.15rem; }

p{ margin: 0 0 1em; max-width: 62ch; }

.eyebrow{
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
}

/* ---------- Шапка / навигация ---------- */

.site-header{
  background: var(--wood-dark);
  color: var(--parchment);
  border-bottom: 4px solid var(--straw);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 18px 28px;
  max-width: 1080px;
  margin: 0 auto;
  gap: 20px;
  flex-wrap: wrap;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  text-decoration:none;
  color: var(--parchment);
  cursor: pointer;
}

.brand-wheel{ width: 40px; height: 40px; flex-shrink:0; }
.brand-wheel .spoke, .brand-wheel .rim{ stroke: var(--straw); }

.brand-name{
  font-family: var(--display);
  font-size: 1.25rem;
  line-height: 1.1;
}
.brand-name small{
  display:block;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--straw-dim);
  text-transform: uppercase;
  margin-top: 3px;
}

nav.mainnav{
  display:flex;
  gap: 4px;
  flex-wrap: wrap;
}

nav.mainnav a{
  text-decoration:none;
  color: var(--parchment);
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  padding: 8px 14px;
  border-radius: 2px;
  border-bottom: 2px solid transparent;
  transition: border-color .15s ease, color .15s ease;
  cursor: pointer;
}
nav.mainnav a:hover{ border-color: var(--straw); color: var(--straw); }
nav.mainnav a.active{ border-color: var(--rust); color: var(--straw); }

/* ---------- Страницы ---------- */

.page{ display: none; }
.page.active{ display: block; }

/* ---------- Hero ---------- */

.hero{
  position: relative;
  background: var(--wood-dark);
  color: var(--parchment);
  overflow: hidden;
  padding: 70px 0 90px;
}

.hero-inner{
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
  display:grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items:center;
  position:relative;
  z-index:2;
}

@media (max-width: 760px){
  .hero-inner{ grid-template-columns: 1fr; }
}

.hero p.lead{
  color: #d9cba5;
  font-size: 1.08rem;
  max-width: 46ch;
}

.hero-wheel-wrap{
  display:flex;
  justify-content:center;
}

.hero-wheel{
  width: min(260px, 60vw);
  height: min(260px, 60vw);
  animation: slow-spin 60s linear infinite;
}

@media (prefers-reduced-motion: reduce){
  .hero-wheel{ animation: none; }
}

@keyframes slow-spin{
  from{ transform: rotate(0deg); }
  to{ transform: rotate(360deg); }
}

.hero-wheel .rim{ stroke: var(--straw); }
.hero-wheel .spoke{ stroke: var(--straw-dim); }
.hero-wheel .hub{ fill: var(--rust); }

/* ---------- Кнопки ---------- */

.btn{
  display:inline-block;
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-decoration:none;
  padding: 12px 22px;
  border: 1px solid var(--straw);
  color: var(--parchment);
  background: transparent;
  transition: background .15s ease, color .15s ease;
  cursor: pointer;
}
.btn:hover{ background: var(--straw); color: var(--wood-dark); }

.btn-solid{
  background: var(--rust);
  border-color: var(--rust);
  color: var(--parchment);
}
.btn-solid:hover{ background: var(--rust-dark); border-color: var(--rust-dark); color: var(--parchment); }

.hero-ctas{ display:flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

/* ---------- Разделитель-спицы ---------- */

.spoke-divider{
  display:flex;
  align-items:center;
  gap: 14px;
  margin: 56px 0 34px;
  color: var(--wood-mid);
}
.spoke-divider::before, .spoke-divider::after{
  content:"";
  flex:1;
  height: 1px;
  background: var(--line);
}
.spoke-divider .dot{
  width: 7px; height:7px; border-radius: 50%;
  background: var(--rust);
}

/* ---------- Секции ---------- */

section{ padding: 52px 0; }
section.alt{ background: var(--parchment-2); }

.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 760px){ .grid-3{ grid-template-columns: 1fr; } }

.card{
  background: var(--parchment);
  border: 1px solid var(--line);
  padding: 26px 24px;
}
section.alt .card{ background: #fbf6ea; }
.card .eyebrow{ margin-bottom: 10px; display:block; }

/* ---------- Таймлайн ---------- */

.timeline{
  border-left: 3px solid var(--straw);
  margin-left: 6px;
  padding-left: 30px;
}
.timeline-item{ position:relative; margin-bottom: 34px; }
.timeline-item:last-child{ margin-bottom: 0; }
.timeline-item::before{
  content:"";
  position:absolute;
  left: -37px;
  top: 4px;
  width: 12px; height:12px;
  background: var(--rust);
  border: 2px solid var(--parchment);
  border-radius: 50%;
}
.timeline-item .eyebrow{ display:block; margin-bottom: 4px; }

/* ---------- Наряд-заказ ---------- */

.worksheet{
  border: 1px solid var(--wood-mid);
  background: #fbf6ea;
}
.worksheet-row{
  display:grid;
  grid-template-columns: 200px 1fr;
  border-bottom: 1px solid var(--line);
}
.worksheet-row:last-child{ border-bottom:none; }
.worksheet-row .label{
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rust);
  padding: 16px 18px;
  border-right: 1px solid var(--line);
  background: var(--parchment-2);
}
.worksheet-row .value{ padding: 16px 18px; }
@media (max-width: 620px){
  .worksheet-row{ grid-template-columns: 1fr; }
  .worksheet-row .label{ border-right:none; border-bottom: 1px dashed var(--line); }
}

/* ---------- Контакты ---------- */

.contact-block{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
@media (max-width: 760px){ .contact-block{ grid-template-columns: 1fr; } }

.contact-list{ list-style:none; margin:0; padding:0; }
.contact-list li{
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
  display:flex;
  gap: 14px;
}
.contact-list li:last-child{ border-bottom:none; }
.contact-list .k{
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--rust);
  min-width: 100px;
  padding-top: 2px;
}

.map-plate{
  border: 1px solid var(--line);
  background: repeating-linear-gradient(45deg, #e3d6b0 0 2px, #ecdfba 2px 22px);
  min-height: 220px;
  display:flex;
  align-items:center;
  justify-content:center;
  color: var(--wood-mid);
  font-family: var(--mono);
  font-size: 0.85rem;
  text-align:center;
  padding: 20px;
  line-height: 1.8;
}

/* ---------- Футер ---------- */

.site-footer{
  background: var(--wood-dark);
  color: var(--straw-dim);
  padding: 34px 0;
  font-size: 0.85rem;
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap: 14px;
}
.footer-inner a{ color: var(--parchment); text-decoration:none; cursor: pointer; }
.footer-inner a:hover{ color: var(--straw); }

[data-wpp-style="wpp-0"]{color:#d1a53d}
[data-wpp-style="wpp-1"]{color:#f1e8d6}
[data-wpp-style="wpp-2"]{margin-top:28px}
[data-wpp-style="wpp-3"]{margin-top:8px}
[data-wpp-style="wpp-4"]{margin-top:8px}
[data-wpp-style="wpp-5"]{margin-top:8px}
[data-wpp-style="wpp-6"]{margin-top:6px}
[data-wpp-style="wpp-7"]{padding-top:56px}
[data-wpp-style="wpp-8"]{max-width:70ch}
[data-wpp-style="wpp-9"]{padding-top:56px}
[data-wpp-style="wpp-10"]{max-width:70ch}
[data-wpp-style="wpp-11"]{padding-top:56px}
[data-wpp-style="wpp-12"]{max-width:70ch}
[data-wpp-style="wpp-13"]{margin-bottom:24px}
[data-wpp-style="wpp-14"]{margin-bottom:24px}
[data-wpp-style="wpp-15"]{position:relative;overflow:hidden;}
[data-wpp-style="wpp-16"]{color:#eee;font-size:12px;position:absolute;top:0px;}
[data-wpp-style="wpp-17"]{color:#eee;font-size:12px;position:absolute;top:14px;}
[data-wpp-style="wpp-18"]{position:relative;}
[data-wpp-style="wpp-19"]{margin-top:30px}
[data-wpp-style="wpp-20"]{margin-left:10px}