/* Портфолио Марии Рожковой.
   Настроение — фирменные материалы «Лаборатории ИИ маркетинга»: белый лист,
   жирный чёрный гротеск, оранжевый только для действий и подписей, тёплые серые плашки. */
:root {
  --ink: #1c1b1a;
  --muted: #6f6a64;
  --line: #e6e2dc;
  --panel: #f2f0ec;
  --accent: #c8672a;       /* только кнопки, ссылки, подписи-«кикеры» */
  --accent-dark: #a95420;
  --radius: 6px;
  --wrap: 1280px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: #fff; color: var(--ink);
  font: 400 17px/1.55 Inter, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 40px; }

/* шапка */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top__row { display: flex; align-items: center; gap: 32px; height: 60px; }
.logo { font-weight: 800; text-decoration: none; letter-spacing: -.01em; }
.nav { display: flex; gap: 24px; margin-left: auto; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }

/* кнопки */
.btn {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 17px; padding: 15px 26px; border-radius: var(--radius);
  transition: background .15s;
}
.btn:hover { background: var(--accent-dark); }
.btn:focus-visible, .tile:focus-visible, summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.btn--sm { font-size: 14px; padding: 9px 16px; }
.btn--lg { font-size: 19px; padding: 18px 34px; }
.link { color: var(--accent); font-weight: 700; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* первый экран */
.hero { padding: 28px 0 56px; }
.kicker { margin: 0 0 10px; color: var(--accent); font-size: 15px; font-weight: 500; }
h1 {
  margin: 0; font-weight: 800; letter-spacing: -.025em; line-height: 1.04;
  font-size: clamp(34px, 5vw, 66px); max-width: 1100px; text-wrap: balance;
}
.hero__cta { display: flex; align-items: center; gap: 22px; margin: 24px 0 26px; }
.hero__cta p { margin: 0; color: var(--muted); max-width: 380px; font-size: 16px; line-height: 1.4; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius);
  height: clamp(300px, calc(100vh - 480px), 560px); background: var(--panel); text-decoration: none;
}
.tile img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .5s ease; }
.tile:hover img { transform: scale(1.03); }
.tile__label {
  position: absolute; left: 12px; bottom: 12px; background: #fff; color: var(--ink);
  font-weight: 800; font-size: 20px; padding: 8px 14px; border-radius: var(--radius);
}
.tile__label i { font-style: normal; color: var(--accent); }

/* секции */
.section { padding: 88px 0; }
.section--panel { background: var(--panel); }
h2 { margin: 0 0 20px; font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; text-wrap: balance; }
.lead { margin: 0 0 40px; color: var(--muted); max-width: 640px; }
.group { margin: 56px 0 18px; font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.group span { font-weight: 400; font-size: 17px; color: var(--muted); margin-left: 10px; letter-spacing: 0; }
.grid { display: grid; gap: 16px; }
.grid--people { grid-template-columns: repeat(6, 1fr); }
.grid--products { grid-template-columns: repeat(5, 1fr); }
figure { margin: 0; }
figure img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: var(--panel); }
figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }

.video { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: center; }
.video video { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--radius); background: #000; }
.video__title { font-weight: 800; font-size: 22px; margin: 0 0 10px; }
.video__text p { max-width: 520px; }

/* цены */
.prices { width: 100%; max-width: 760px; border-collapse: collapse; font-size: 19px; margin-bottom: 28px; }
.prices td { padding: 14px 0; border-bottom: 1px solid #dcd7cf; }
.prices td:last-child { text-align: right; font-weight: 800; white-space: nowrap; padding-left: 24px; }
.note {
  max-width: 760px; background: #fff; padding: 18px 22px; border-radius: var(--radius);
  border-left: 4px solid var(--accent); margin-bottom: 28px;  /* как «важно» в материалах курса */
}
.note p { margin: 0; }

/* шаги */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps li { counter-increment: s; border-top: 2px solid var(--ink); padding-top: 16px; }
.steps li::before { content: "0" counter(s); display: block; color: var(--accent); font-weight: 800; font-size: 15px; margin-bottom: 8px; }

/* обо мне */
.about { display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: start; }
.about__photo { width: 100%; height: auto; border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; }
.about p { max-width: 640px; }
.facts { padding-left: 20px; color: var(--muted); }

/* вопросы */
.faq { max-width: 860px; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 700; font-size: 19px; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 24px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { margin: 0 0 20px; color: var(--muted); max-width: 680px; }

/* финал */
.final { padding: 96px 0; border-top: 1px solid var(--line); text-align: center; }
.final h2 { max-width: 820px; margin: 0 auto 28px; }
.final__nick { color: var(--muted); margin: 14px 0 0; }
.foot { border-top: 1px solid var(--line); padding: 24px 0; font-size: 14px; color: var(--muted); }
.foot__row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* телефон */
@media (max-width: 900px) {
  .nav { display: none; }
  .top__row { justify-content: space-between; }
  .grid--people, .grid--products { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .top__row { height: 54px; }
  .hero { padding: 18px 0 40px; }
  .kicker { font-size: 13px; margin-bottom: 8px; }
  h1 { font-size: 31px; line-height: 1.08; }
  .hero__cta { flex-direction: column; align-items: stretch; gap: 10px; margin: 18px 0 18px; }
  .hero__cta .btn { text-align: center; }
  .hero__cta p { font-size: 14px; }
  .tiles { gap: 8px; }
  .tile { height: 200px; }
  .tile__label { left: 6px; bottom: 6px; font-size: 13px; padding: 5px 8px; }
  .tile__label i { display: none; }
  .section { padding: 60px 0; }
  .group span { display: block; margin: 4px 0 0; font-size: 15px; }
  .grid--people { grid-template-columns: 1fr 1fr; gap: 10px; }
  .grid--products { grid-template-columns: 1fr 1fr; gap: 10px; }
  .grid--products .wide { grid-column: span 2; }
  .video, .about { grid-template-columns: 1fr; gap: 24px; }
  .video video { max-width: 300px; }
  .about__photo { max-width: 240px; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .prices { font-size: 16px; }
  .final { padding: 64px 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* 1.10.2026 — разделы по 3 работы, меню цен */
.tiles { grid-template-columns: repeat(5, 1fr); gap: 12px; }
.tile { height: clamp(260px, calc(100vh - 470px), 460px); }
.tile__label { font-size: 17px; }
.cat .btn { margin-top: 28px; }
.cat__head { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; margin-bottom: 32px; }
.cat__head h2 { margin-bottom: 14px; }
.num { margin: 0 0 6px; color: var(--accent); font-weight: 800; font-size: 15px; }
.cat__lead { margin: 0; font-size: 19px; max-width: 560px; }
.terms { margin: 6px 0 0; display: grid; gap: 0; }
.terms div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid #dcd7cf; }
.terms div:first-child { border-top: 1px solid #dcd7cf; }
.terms dt { color: var(--muted); font-size: 15px; }
.terms dd { margin: 0; font-size: 16px; }
.terms b { font-weight: 800; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid3--video video { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--radius); background: #000; }
.slot {
  display: flex; flex-direction: column; justify-content: center; gap: 12px; aspect-ratio: 9 / 16;
  border: 2px dashed #cfc8bd; border-radius: var(--radius); padding: 28px; text-decoration: none; color: var(--muted);
  background: rgba(255,255,255,.55); transition: border-color .15s;
}
.slot:hover { border-color: var(--accent); }
.slot__title { color: var(--ink); font-weight: 800; font-size: 22px; line-height: 1.2; }
.slot__go { color: var(--accent); font-weight: 700; }
.site { display: block; text-decoration: none; color: var(--ink); }
.site img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: var(--radius); border: 1px solid var(--line); transition: transform .2s; }
.site:hover img { transform: translateY(-3px); }
.site b { display: block; margin: 12px 0 4px; font-size: 19px; }
.site span { color: var(--muted); font-size: 15px; }

.section--dark { background: var(--ink); color: #fff; }
.lead--dark { color: #c9c3bb; }
.menu { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.menu__item { background: #2a2826; border-radius: var(--radius); padding: 22px 20px; display: flex; flex-direction: column; }
.menu__item h3 { margin: 0 0 14px; font-size: 19px; }
.menu__price { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; }
.menu__price small { display: block; font-size: 14px; font-weight: 400; color: #c9c3bb; margin-top: 4px; letter-spacing: 0; }
.menu__alt { margin: 6px 0 14px; font-size: 14px; color: #f0a46e; }
.menu__item ul { margin: 0 0 20px; padding-left: 18px; font-size: 14px; color: #dcd6ce; line-height: 1.5; }
.btn--block { display: block; text-align: center; margin-top: auto; }
.about__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 8px; }
.about h3 { font-size: 17px; margin: 18px 0 6px; }
.about .facts { margin: 0; }
.about .facts li { margin-bottom: 4px; }
section[id] { scroll-margin-top: 64px; }

@media (max-width: 1100px) {
  .menu { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .cat__head { grid-template-columns: 1fr; gap: 24px; }
  .tiles { grid-template-columns: repeat(5, 46%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .tile { scroll-snap-align: start; }
}
@media (max-width: 640px) {
  .tiles { grid-template-columns: repeat(5, 44%); }
  .tile { height: 230px; }
  .tile__label { font-size: 14px; }
  .cat__lead { font-size: 17px; }
  .terms div { grid-template-columns: 1fr; gap: 2px; }
  .grid3 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .grid3 figure:first-child { grid-column: span 2; }
  .grid3--video figure:first-child, .grid3--sites .site:first-child { grid-column: auto; }
  .grid3--video { grid-template-columns: 1fr 1fr; }
  .grid3--video .slot { grid-column: span 2; aspect-ratio: auto; padding: 22px; }
  .grid3--sites { grid-template-columns: 1fr; gap: 26px; }
  .cat .btn { display: block; text-align: center; }
  .menu { grid-template-columns: 1fr; }
  .about__cols { grid-template-columns: 1fr; gap: 0; }
}
.grid3--video { max-width: 940px; }
.grid3 > * { min-width: 0; }
/* меню разделов на телефоне — строка под шапкой */
.tiles { scrollbar-width: none; }
.tiles::-webkit-scrollbar { display: none; }
@media (max-width: 900px) {
  .top__row { flex-wrap: wrap; height: auto; padding-top: 8px; gap: 0 12px; }
  .nav { display: flex; order: 3; width: 100%; margin: 0; gap: 6px; overflow-x: auto; padding: 8px 0 10px; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex: none; font-size: 14px; color: var(--ink); background: var(--panel); padding: 6px 12px; border-radius: 999px; }
  section[id] { scroll-margin-top: 100px; }
}
.logo__role { font-weight: 500; opacity: .6; white-space: nowrap; }
@media (max-width: 420px) { .logo { font-size: 15px; } }

/* 1.10: сайты убраны из портфолио — 4 плитки и 4 карточки цен вместо 5 */
.tiles { grid-template-columns: repeat(4, 1fr); }
.menu { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .menu { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(4, 46%); } }
@media (max-width: 640px) {
  .tiles { grid-template-columns: 1fr 1fr; overflow: visible; }
  .tile { height: 220px; }
  .menu { grid-template-columns: 1fr; }
}
