/* Сайт depanini.ru — те же цвета и шрифт, что в приложении (depanini-app/src/theme.js) */
@font-face { font-family: 'Montserrat'; font-weight: 400; font-display: swap; src: url('fonts/Montserrat_400Regular.ttf') format('truetype'); }
@font-face { font-family: 'Montserrat'; font-weight: 600; font-display: swap; src: url('fonts/Montserrat_600SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'Montserrat'; font-weight: 800; font-display: swap; src: url('fonts/Montserrat_800ExtraBold.ttf') format('truetype'); }

:root {
  --yellow: #FDC71C;
  --on-yellow: #15171A;
  --ink: #15171A;
  --text: #15171A;
  --soft: #4A4F57;
  --muted: #646A73;
  --bg: #F3F5F4;
  --card: #FFFFFF;
  --line: #E3E6E8;
  --night: #121417;
  --radius: 22px;
}
@media (prefers-color-scheme: dark) {
  :root { --text: #FFFFFF; --soft: #C3C7CD; --muted: #8E939A; --bg: #121417; --card: #1B1E22; --line: #2A2E33; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--text); background: var(--bg); line-height: 1.5; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Шапка */
.top { position: absolute; top: 0; left: 0; right: 0; z-index: 2; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 800; font-size: 20px; }
.logo img { width: 36px; height: 36px; border-radius: 10px; }
.nav { display: flex; gap: 18px; }
.nav a { color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; opacity: .9; }
.nav a:hover { opacity: 1; text-decoration: underline; }

/* Первый экран */
.hero { position: relative; color: #fff; background: var(--night) url('img/hero.jpg') center 30% / cover no-repeat; min-height: 640px; display: flex; align-items: flex-end; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,12,14,.55) 0%, rgba(10,12,14,.2) 40%, rgba(10,12,14,.92) 100%); }
.hero .wrap { position: relative; padding-top: 120px; padding-bottom: 56px; }
/* Фото вертикальное: на широком экране — справа целиком (эвакуатор виден), текст слева на тёмном */
@media (min-width: 821px) {
  .hero:not(.driver) { background-image: none; min-height: 680px; }
  /* Фото справа целиком, левый край плавно уходит в фон */
  .hero:not(.driver)::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: min(54%, 720px);
    background: url('img/hero.jpg') right bottom / cover no-repeat;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 35%); mask-image: linear-gradient(90deg, transparent 0%, #000 35%); }
  .hero:not(.driver)::before { z-index: 1; background: linear-gradient(180deg, rgba(18,20,23,.55) 0%, rgba(18,20,23,0) 22%, rgba(18,20,23,0) 75%, rgba(18,20,23,.9) 100%); }
  .hero:not(.driver) .wrap { z-index: 2; padding-bottom: 96px; }
}
.hero h1 { font-size: clamp(34px, 7vw, 60px); line-height: 1.05; margin: 0 0 16px; font-weight: 800; letter-spacing: -.5px; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero p.lead { font-size: clamp(17px, 2.4vw, 20px); color: #E6E8EA; margin: 0 0 28px; max-width: 560px; }
.hero.driver { background-image: none; background: linear-gradient(160deg, #1d2126 0%, #0f1113 100%); align-items: center; }
.hero.driver::before { display: none; }
.hero.driver .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: center; padding-bottom: 64px; }
.hero.driver .art img { width: 100%; filter: drop-shadow(0 30px 40px rgba(0,0,0,.45)); }

.invite { display: inline-block; margin: 0 0 22px; padding: 14px 18px; border-radius: 16px; background: rgba(253,199,28,.14); border: 1px solid rgba(253,199,28,.55); color: #fff; font-size: 16px; }
.invite b { display: inline-block; margin-left: 6px; padding: 2px 10px; border-radius: 9px; background: var(--yellow); color: var(--on-yellow); letter-spacing: 2px; font-size: 18px; }
.invite[hidden] { display: none; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 26px; border-radius: 18px; font-weight: 800; font-size: 17px; text-decoration: none; border: 0; cursor: pointer; }
.btn.primary { background: var(--yellow); color: var(--on-yellow); }
.btn.primary:hover { filter: brightness(1.05); }
.btn.ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.3); }
.btn.ghost:hover { background: rgba(255,255,255,.2); }
.note { font-size: 14px; color: #C3C7CD; margin-top: 14px; }

/* Секции */
section { padding: 64px 0; }
section h2 { font-size: clamp(26px, 4.4vw, 38px); line-height: 1.15; margin: 0 0 10px; font-weight: 800; }
section .sub { color: var(--soft); margin: 0 0 32px; font-size: 17px; max-width: 640px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 0 0 8px; font-size: 19px; font-weight: 800; }
.card p { margin: 0; color: var(--soft); }
.num { width: 40px; height: 40px; border-radius: 12px; background: var(--yellow); color: var(--on-yellow); font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }

.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 300px)); justify-content: center; gap: 24px; }
.shots figure { margin: 0; }
.shots img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 26px; border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(0,0,0,.12); }
.shots figcaption { text-align: center; margin-top: 10px; font-weight: 600; color: var(--soft); font-size: 15px; }

.list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.list li { display: flex; gap: 12px; align-items: flex-start; }
.list li::before { content: ''; flex: 0 0 22px; height: 22px; margin-top: 2px; border-radius: 7px; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315171A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat; }

.cta { background: var(--yellow); color: var(--on-yellow); border-radius: 28px; padding: 40px 28px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.cta h2 { margin: 0 0 6px; }
.cta p { margin: 0; font-size: 17px; }
.cta .btn.primary { background: var(--ink); color: #fff; }

details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
details + details { margin-top: 10px; }
summary { font-weight: 800; cursor: pointer; font-size: 17px; }
details p { color: var(--soft); margin: 10px 0 0; }

footer { padding: 36px 0 48px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
footer a { color: var(--soft); }

@media (max-width: 820px) {
  .grid, .grid.two { grid-template-columns: 1fr; }
  .hero.driver .wrap { grid-template-columns: 1fr; padding-top: 104px; }
  .hero.driver .art { order: -1; max-width: 420px; }
  .shots { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .shots img { border-radius: 16px; }
  .shots figcaption { font-size: 13px; }
  .nav a.hide-sm { display: none; }
  .hero { min-height: 600px; }
  section { padding: 48px 0; }
  .btn { width: 100%; }
}
