:root{
  --bg: #0b0c10;
  --surface: rgba(255,255,255,0.06);
  --surface-2: rgba(255,255,255,0.10);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.70);
  --gold: #c8a44d;
  --gold-2: #f1d37a;
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
  --ring: 0 0 0 3px rgba(200,164,77,0.35);
  --radius: 18px;
  --max: 1080px;
  --gap: 16px;
}

@media (prefers-color-scheme: light){
  :root{
    --bg: #fcfbf7;
    --surface: rgba(0,0,0,0.05);
    --surface-2: rgba(0,0,0,0.08);
    --text: rgba(0,0,0,0.88);
    --muted: rgba(0,0,0,0.65);
    --shadow: 0 12px 28px rgba(0,0,0,0.10);
    --ring: 0 0 0 3px rgba(200,164,77,0.40);
  }
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
}

body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  background: radial-gradient(1200px 600px at 20% -10%, rgba(200,164,77,0.26), transparent 55%),
              radial-gradient(900px 500px at 80% 10%, rgba(200,164,77,0.18), transparent 60%),
              var(--bg);
  color: var(--text);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

a{ color: inherit; }
a:focus-visible, button:focus-visible{
  outline: none;
  box-shadow: var(--ring);
  border-radius: 10px;
}

.skip-link{
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 10px 12px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--surface-2);
  border-radius: 12px;
  transform: translateY(-200%);
  z-index: 999;
}
.skip-link:focus{ transform: translateY(0); }

.container{
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--surface);
}

.header-table{
  width: 100%;
  border-collapse: collapse;
}
.header-table td{
  padding: 12px 0;
  text-align: center;
  vertical-align: middle;
}

.brand-inner{
  display: table;
  margin: 0 auto; 
  border-collapse: collapse;
}
.brand-inner > span{
  display: table-cell;
  vertical-align: middle;
}

.brand-mark{
  width: 38px;
  height: 28px;
  border-radius: 99px;
  background: black;
  color: var(--gold-2);
  font-weight: 800;
  text-align: center;
  line-height: 28px;
}

.brand-title{
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
  padding: 0 10px;
}

.nav{
  display: inline-block;
}
.nav-link{
  display: inline-block;
  margin: 0 6px 0 0;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--surface);
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
}
.nav-link:hover{
  border-color: rgba(200,164,77,0.35);
}

.site-main{
  padding: 5px 0 5px;
}

.hero{
  background: linear-gradient(180deg, rgba(200,164,77,0.18), transparent 60%);
  border-top: 1px solid rgba(200,164,77,0.12);
  border-bottom: 1px solid rgba(200,164,77,0.10);
}

.hero-table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0;
}
.hero-row{
  display: block;
}
.hero-cell{
  display: block;
  width: 100%;
  vertical-align: top;
}
.hero-cell + .hero-cell{
  margin-top: 18px;
}
.hero-table td{
  padding: 18px 0 26px;
}

.hero-visual{
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(200,164,77,0.18);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), transparent);
  box-shadow: var(--shadow);
}
.hero-img{
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.22;
  filter: grayscale(1) contrast(1.05);
  transform: scale(1.02) scaleX(1.2) scale(0.85);
}
.hero-glow{
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 240px at 50% 30%, rgba(200,164,77,0.35), transparent 60%);
  pointer-events: none;
}

.hero-content > *{ margin: 0; }
.hero-content > * + *{ margin-top: 14px; }

.h1{
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.2px;
}

.lead{
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.cta{
  margin-top: 14px;
}

.btn{
  appearance: none;
  border: 1px solid rgba(200,164,77,0.42);
  background: linear-gradient(180deg, rgba(200,164,77,0.34), rgba(200,164,77,0.18));
  color: var(--text);
  padding: 14px 16px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0.2px;
  box-shadow: var(--shadow);
  transition: transform 120ms ease, border-color 120ms ease, filter 120ms ease;
  width: 100%;
}

.btn:hover{ border-color: rgba(241,211,122,0.55); }
.btn:active{ transform: translateY(1px); }

@media (prefers-reduced-motion: reduce){
  .btn{ transition: none; }
  .btn:active{ transform: none; }
}

.btn-inner{
  display: table;
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}
.btn-text{
  display: table-cell;
  vertical-align: middle;
  text-align: left;
}
.btn-icon{
  display: table-cell;
  vertical-align: middle;
  text-align: right;
  opacity: 0.9;
}

.hint{
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.quote-card{
  margin-top: 6px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--surface);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.quote-text{
  margin: 0;
  font-size: 17px;
  line-height: 1.45;
}

.quote-meta{
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  display: table;
  border-collapse: collapse;
}
.quote-meta > *{
  display: table-cell;
  vertical-align: middle;
  padding-right: 10px;
}

.badge{
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(200,164,77,0.35);
  background: rgba(200,164,77,0.12);
  color: color-mix(in srgb, var(--text) 82%, var(--gold) 18%);
  font-weight: 700;
}

.meta-sep{ opacity: 0.7; }

.site-footer{
  padding: 5px 0 5px;
}

.footer-inner{
  border-top: 1px solid var(--surface);
  padding-top: 14px;
  width: 100%;
  text-align: center;
}

.footer-text{
  margin: 0;
  font-weight: 700;
}

.footer-subtext{
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.muted{ color: var(--muted); }

.back-to-top{
  position: fixed;
  right: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--surface);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.back-to-top.is-visible{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce){
  .back-to-top{ transition: none; }
}

@media (min-width: 860px){
  .hero-table td{
    padding: 26px 0 34px;
  }

  .hero-row{
    display: table-row;
  }
  .hero-cell{
    display: table-cell;
    width: 50%;
    vertical-align: middle;
  }
  .hero-cell + .hero-cell{
    margin-top: 0;
  }

  .hero-cell.hero-visual-cell{ width: 47%; padding-right: 22px; }
  .hero-cell.hero-content-cell{ width: 53%; }

  .h1{ font-size: 36px; }
  .lead{ font-size: 16px; }
  .quote-text{ font-size: 18px; }
}

.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

.site-main{ padding: 0; }
.hero-table td{ padding: 8px 0 10px; }

.hero-visual{
  max-height: 85svh;
}

.hero-img{
  height: 100%;
  width: 100%;
  object-fit: contain;
  transform: scaleX(1.2);
}

/* Мобильные: чуть обрезаем картинку, чтобы страница влезала по высоте */
@media (max-width: 859px){
  .hero-visual{
    height: 44svh;      /* подбирай: 26–40svh */
    max-height: 44svh;
  }

  .hero-img{
    width: 100%;
    height: 100%;
    object-fit: cover;       /* обрезает */
    object-position: 50% 20%;/* смещает видимую область (выше/ниже) */
    transform: scaleX(1.2);  /* твое растяжение по горизонтали */
  }
}