/* ====== NAVBAR (mobile-first) ====== */
:root{
  --nav-h: 64px;
  --bg: #0b1220;
  --bg-2: #0f172a;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --accent: #60a5fa; /* голубой акцент */
  --ring: 0 0 0 3px color-mix(in oklab, var(--accent) 40%, transparent);
}

.navbar{
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 12px;
  padding: max(10px, env(safe-area-inset-top)) clamp(12px, 3vw, 24px);
  height: var(--nav-h);
  background: color-mix(in oklab, var(--bg) 92%, #000 8%);
  color: var(--text);
  border-bottom: 1px solid rgba(148,163,184,.15);
  backdrop-filter: saturate(140%) blur(8px);
}

/* ЛОГО */
.navbar .logo{
  font: 900 clamp(16px, 3.2vw, 20px)/1.1 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  letter-spacing: .06em; color: #fff;
  white-space: nowrap;
}

/* Бургер (label) */
.menu-icon{
  margin-left: auto;
  display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: 10px;
  font-size: 22px; line-height: 1;
  cursor: pointer; user-select: none;
  color: var(--text);
  transition: background .2s ease, transform .2s ease;
}
.menu-icon:hover{ background: rgba(148,163,184,.12); transform: translateY(-1px); }
.menu-icon:focus-visible{ outline: none; box-shadow: var(--ring); }

/* Скрываем чекбокс, но оставляем доступным для навигации */
.menu-toggle{
  position: absolute; inset: 0; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  clip-path: inset(50%); border: 0; padding: 0;
}

/* Ссылки и иконки: мобильное меню (off-canvas) */
.nav-links,
.menu-icons{
  position: fixed; inset-block-start: var(--nav-h); inset-inline: 0;
  translate: 100% 0; /* сдвинуты вправо */
  transition: translate .35s ease;
  background:
    linear-gradient(180deg, color-mix(in oklab, var(--bg) 98%, black 2%) 0%, color-mix(in oklab, var(--bg-2) 94%, black 6%) 100%);
  border-top: 1px solid rgba(148,163,184,.15);
  will-change: translate;
}

/* Пункты меню (моб) */
.nav-links{
  display: grid; gap: 6px; padding: 16px clamp(16px, 6vw, 28px);
}
.nav-links li{ list-style: none; }
.nav-links a{
  display: block;
  padding: 12px 10px;
  border-radius: 10px;
  color: #eef2ff; text-decoration: none;
  font-weight: 600; letter-spacing: .02em;
  transition: background .15s ease, color .15s ease;
}
.nav-links a:hover{ background: rgba(96,165,250,.15); color: #fff; }
.nav-links a:focus-visible{ outline: none; box-shadow: var(--ring); }

/* Иконки соцсетей (моб) */
.menu-icons{
  display: flex; gap: 14px; align-items: center;
  padding: 12px clamp(16px, 6vw, 28px) 18px;
  border-top: 1px solid rgba(148,163,184,.12);
}
.menu-icons li{ list-style: none; }
.menu-icons a{
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 9px;
  background: rgba(148,163,184,.12);
  transition: background .2s ease, transform .2s ease;
}
.menu-icons a:hover{ background: rgba(96,165,250,.22); transform: translateY(-1px); }
.menu-icons img{ width: 22px; height: 22px; object-fit: contain; }

/* Открытие меню по чекбоксу */
.menu-toggle:checked ~ .nav-links{ translate: 0 0; }
.menu-toggle:checked ~ .menu-icons{ translate: 0 0; }

/* ====== ДЕСКТОП / ТАБЛЕТ ====== */
@media (min-width: 768px){
  .navbar{ gap: 18px; }

  /* Прячем бургер; делаем хедер в одну линию */
  .menu-icon{ display: none; }

  /* Линки и иконки в линию */
  .nav-links,
  .menu-icons{
    position: static; translate: 0 0;
    background: transparent; border: 0;
  }

  .navbar{ display: grid; grid-template-columns: auto 1fr auto; align-items: center; }

  .nav-links{
    display: flex; gap: clamp(8px, 2vw, 22px);
    padding: 0; justify-self: center; align-items: center;
  }

  .nav-links a{
    padding: 10px 12px; border-radius: 10px;
    color: var(--text); font-weight: 600;
    position: relative;
  }
  /* Акцентная линия при ховере */
  .nav-links a::after{
    content: ""; position: absolute; left: 10px; right: 10px; bottom: 6px;
    height: 2px; border-radius: 2px;
    background: transparent; transition: background .2s ease, transform .2s ease;
    transform: scaleX(.2);
  }
  .nav-links a:hover::after{ background: var(--accent); transform: scaleX(1); }

  .menu-icons{
    display: flex; gap: 10px; align-items: center; justify-self: end;
  }
  .menu-icons a{ width: 36px; height: 36px; border-radius: 8px; }
  .menu-icons img{ width: 20px; height: 20px; }
}

/* Крупные экраны */
@media (min-width: 1200px){
  .navbar{ padding-inline: clamp(24px, 5vw, 56px); }
  .nav-links a{ padding-inline: 14px; }
  .menu-icons a{ width: 38px; height: 38px; }
}

/* Состояния/доступность */
.nav-links a[aria-current="page"]{
  color: #fff; background: rgba(96,165,250,.16);
}
.nav-links a[aria-current="page"]::after{
  background: var(--accent); transform: scaleX(1);
}

/* Reduced motion: меньше анимаций */
@media (prefers-reduced-motion: reduce){
  .nav-links, .menu-icons{ transition: none; }
  .menu-icon{ transition: none; }
}

/* Тёмная/светлая темы: если сайт светлый — переопредели переменные */
@media (prefers-color-scheme: light){
  :root{
    --bg: #ffffff;
    --bg-2: #f8fafc;
    --text: #0f172a;
    --muted: #475569;
    --accent: #2563eb;
  }
  .navbar{ border-bottom-color: rgba(15,23,42,.08); }
  .nav-links a{ color: #0f172a; }
  .nav-links a:hover{ background: rgba(37,99,235,.08); color:#0b1020; }
}
/* Иконки в шапке */
.menu-icons { display:flex; align-items:center; gap:12px; }
.menu-icons li { list-style:none; }
.menu-icons a {
  display:grid; place-items:center;
  width:36px; height:36px; border-radius:8px;
  color: inherit; text-decoration:none;
  background: rgba(148,163,184,.12);
  transition: background .2s ease, transform .2s ease;
}
.menu-icons a:hover { background: rgba(96,165,250,.22); transform: translateY(-1px); }
.menu-icons i { font-size:22px; line-height:1; }


/* ====== CASES ====== */
.cases { padding: clamp(24px, 5vw, 56px) 0; }
.cases__inner { width: min(1100px, 92vw); margin-inline: auto; }

.cases__header { text-align: center; margin-bottom: clamp(16px, 3vw, 28px); }
.cases__title { margin: 0 0 6px; font: 800 clamp(20px, 3.4vw, 32px)/1.2 system-ui, sans-serif; }
.cases__subtitle { color: #64748b; }

/* Сетка карточек */
.cases__grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(12px, 2.8vw, 22px);
  list-style: none;
  padding: 0; margin: 0;
}

/* Карточка = кликабельная ссылка */
.case__link{
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 16px;
  overflow: hidden;
  background: #0b1220;
  box-shadow: 0 8px 24px rgba(2,6,23,.18);
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
  isolation: isolate;
}
.case__link:hover{ transform: translateY(-4px); box-shadow: 0 14px 36px rgba(2,6,23,.28); }
.case__link:focus-visible{ outline: none; box-shadow: 0 0 0 3px #60a5fa; }

/* Картинка */
.case__figure{ margin: 0; position: relative; aspect-ratio: 16/10; }
.case__image{
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.01);
  transition: transform .35s ease, filter .35s ease;
}
.case__link:hover .case__image{ transform: scale(1.06); }

/* Подписи */
.case__caption{
  position: absolute; inset-inline: 0; inset-block-end: 0;
  padding: 14px 14px 16px;
  background:
    linear-gradient(180deg, rgba(2,6,23,0) 0%, rgba(2,6,23,.45) 30%, rgba(2,6,23,.78) 100%);
  color: #fff;
}
.case__chip{
  display: inline-block;
  font: 700 12px/1 system-ui, sans-serif;
  letter-spacing: .04em;
  padding: 6px 9px; border-radius: 999px;
  background: rgba(96,165,250,.22);
  backdrop-filter: blur(2px);
  margin-bottom: 8px;
}
.case__name{ margin: 0 0 4px; font: 800 clamp(16px, 2.8vw, 20px)/1.15 system-ui, sans-serif; }
.case__meta{ margin: 0; color: #cbd5e1; font-size: 13px; }

/* Светлая тема */
@media (prefers-color-scheme: light){
  .case__link{ background: #fff; box-shadow: 0 8px 24px rgba(2,6,23,.08); }
  .case__link:hover{ box-shadow: 0 14px 36px rgba(2,6,23,.14); }
}

/* Меньше анимаций */
@media (prefers-reduced-motion: reduce){
  .case__link{ transition: none; }
  .case__image{ transition: none; }
}

/* ===== Обо мне (mobile-first) ===== */
/* ===== About (Light B/W, mobile-first) ===== */
.cases-section{
  background:#ffffff;
  color:#0b0b0b;
  padding: clamp(20px,5vw,56px) 0;
  position: relative;
  overflow: clip;
}
.cases-section::before{
  /* едва заметные монохромные пятна */
  content:"";
  position:absolute; inset:-20% -10% auto -10%; height:60%;
  background:
    radial-gradient(32% 32% at 20% 35%, rgba(0,0,0,0.06) 0, transparent 70%),
    radial-gradient(40% 40% at 85% 15%, rgba(0,0,0,0.04) 0, transparent 70%);
  filter: blur(24px); pointer-events:none;
}

.case-content{
  width: min(1100px,92vw);
  margin-inline:auto;
  display:grid;
  grid-template-columns: 1fr;
  gap: clamp(16px,4vw,40px);
  align-items:center;
}

/* === Текстовый блок === */
.case-info{
  background: linear-gradient(180deg,#ffffff,#f8f8f8);
  border: 1px solid #eaeaea;
  border-radius: 20px;
  padding: clamp(16px,4vw,28px);
  box-shadow: 0 8px 28px rgba(0,0,0,.06);
  animation: fade-up .6s ease both;
}
.case-info h1{
  margin:0 0 12px;
  font: 800 clamp(22px,4vw,36px)/1.12 system-ui,-apple-system,Segoe UI,Inter,Roboto,Arial,sans-serif;
  letter-spacing:.01em;
}
.case-info p{
  margin:0 0 18px;
  color:#1f2937; /* тёмно-серый текст */
  font-size: clamp(14px,1.8vw,18px);
  line-height:1.6;
}

/* Кнопка -> ссылка (оставляем вашу разметку) */
.case-info button{ border:0; padding:0; background:transparent; }
.case-info button a{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  min-width:190px; padding:12px 18px;
  text-decoration:none; font-weight:800; letter-spacing:.02em;
  color:#0b0b0b; background:#ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  position:relative; isolation:isolate;
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.case-info button a::after{
  /* блик при ховере */
  content:""; position:absolute; inset:0; border-radius:inherit;
  background: linear-gradient(120deg, transparent 0 45%, rgba(0,0,0,.08) 50%, transparent 55% 100%);
  transform: translateX(-120%); transition: transform .45s ease;
}
.case-info button a:hover::after{ transform: translateX(120%); }
.case-info button a:hover{
  transform: translateY(-1px);
  border-color:#d1d5db;
  box-shadow: 0 12px 26px rgba(0,0,0,.10);
}
.case-info button a:active{ transform: translateY(0); }
.case-info button a:focus-visible{ outline:none; box-shadow: 0 0 0 3px rgba(0,0,0,.12); }

/* === Фото: круг с тонким кольцом === */
.case-image{
  position:relative;
  width: min(320px,60vw);
  margin-inline:auto;
  aspect-ratio: 1 / 1;
  border-radius:50%;
  overflow:hidden;
  animation: fade-up .6s ease both .06s;
}
.case-image::before{
  /* тонкое conic-кольцо вокруг фото */
  content:""; position:absolute; inset:-2px; border-radius:50%;
  background: conic-gradient(#000000, #9e9e9e, #000000);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 6px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 6px));
  opacity:.18;
  animation: ring 10s linear infinite paused;
}
.case-image:hover::before{ animation-play-state: running; opacity:.26; }

.case-image img{
  width:100%; height:100%;
  object-fit: cover; object-position: 50% 40%;
  border-radius:50%;
  filter: grayscale(100%) contrast(1.05);
  transform: scale(1.02);
  transition: transform .45s ease, filter .3s ease, box-shadow .3s ease;
  box-shadow: 0 12px 28px rgba(0,0,0,.10);
}
.case-image:hover img{ transform: scale(1.06); }

/* === Анимации === */
@keyframes fade-up{ from{opacity:0; transform: translateY(10px);} to{opacity:1; transform:none;} }
@keyframes ring{ to{ transform: rotate(360deg);} }

/* === Адаптив === */
@media (min-width: 768px){
  .case-content{
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(20px,4vw,44px);
  }
  .case-image{ justify-self:end; }
}
@media (min-width: 1100px){
  .case-image{ width: 380px; }
}

/* Учитываем предпочтения пользователя */
@media (prefers-reduced-motion: reduce){
  .case-info, .case-image{ animation:none; }
  .case-image::before{ animation:none; }
  .case-info button a{ transition:none; }
}
.results-section {
  padding: 60px 20px;
  background: #f9f9f9;
}

.results-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.results-content h2 {
  font-size: 28px;
  margin-bottom: 30px;
  font-weight: 700;
  color: #222;
}

.results-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr; /* две колонки */
  gap: 20px;
}

.results-list li {
  display: flex;
  align-items: flex-start;
  background: #fff;
  border-radius: 12px;
  padding: 15px 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.results-list li:hover {
  transform: translateY(-4px);
}

.results-list i {
  color: #28a745;
  font-size: 22px;
  margin-right: 12px;
}

.results-list span {
  font-size: 16px;
  color: #333;
  line-height: 1.5;
}

.contact-section {
  padding: 70px 20px;
  background: #f9f9f9;
  text-align: center;
}

.contact-content {
  max-width: 800px;
  margin: 0 auto;
}

.contact-content h2 {
  font-size: 28px;
  margin-bottom: 15px;
  font-weight: 700;
  color: #222;
}

.contact-content p {
  font-size: 16px;
  color: #555;
  margin-bottom: 30px;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 30px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-list i {
  font-size: 26px;
  color: #28a745;
  transition: transform 0.3s ease, color 0.3s ease;
}

.contact-list a {
  text-decoration: none;
  font-size: 16px;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.contact-list li:hover i {
  transform: scale(1.2);
  color: #1e7e34; /* чуть темнее для эффекта */
}

.contact-list li:hover a {
  color: #28a745;
}

.footer {
  background: #111;
  color: #eee;
  text-align: center;
  padding: 25px 15px;
  font-size: 14px;
  line-height: 1.6;
  border-top: 2px solid #28a745; /* акцентная линия */
}

.footer p {
  margin: 5px 0;
}

.footer p:first-child {
  font-weight: 600;
  font-size: 15px;
}
