@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;800&display=swap");

:root {
  --bg: #ebeced;
  --surface: #ffffff;
  --fg: #121212;
  --muted: rgba(18, 18, 18, 0.62);
  --line: rgba(18, 18, 18, 0.12);
  --line-strong: rgba(18, 18, 18, 0.18);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);

  --radius: 6px;
  --radius2: 6px;

  --max: 1080px;
  --pad: 20px;

  /* Единая ширина контента кейса */
  --case-max: 720px;

  --mono: "Roboto", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";

  --sans: "Roboto", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: radial-gradient(900px 520px at 20% -10%, rgba(0,0,0,0.04), transparent 60%),
              radial-gradient(900px 520px at 90% 0%, rgba(0,0,0,0.03), transparent 55%),
              var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }

/* Typography */
h1{ font-size: 50px; font-weight: 500; letter-spacing: -0.04em; margin: 0; }
h2{ font-size: 30px; font-weight: 500; letter-spacing: -0.03em; margin: 0; }
h3{ font-size: 18px; font-weight: 500; letter-spacing: -0.02em; margin: 0; }
h4{ font-size: 16px; font-weight: 500; letter-spacing: -0.02em; margin: 0; }

.container {
  width: min(var(--max), calc(100% - 2 * var(--pad)));
  margin-inline: auto;
}

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

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  padding: 10px 12px;
  background: var(--fg);
  color: var(--surface);
  border-radius: 6px;
  z-index: 9999;
}
.skip:focus { left: 8px; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 246, 246, 0.84);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 12px;
}

.nav {
  display: none;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

.nav a {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.nav a:hover {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.06);
  color: var(--fg);
}

.header__links {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pill {
  font-size: 12px;
  font-family: var(--mono);
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
}

.pill:hover {
  color: var(--fg);
  border-color: var(--line-strong);
  background: rgba(255,255,255,0.85);
}

/* Main */
.main { padding-bottom: 64px; }

.hero {
  padding: 56px 0 28px;
  position: relative;
}

/* Кнопка "Написать в ТГ" */
.hero__tg{
  display: inline-flex;
  height: 28px;
  padding: 0 10px;
  justify-content: center;
  align-items: center;
  gap: 8px;

  position: absolute;
  right: 0;
  top: 132px;

  border-radius: 6px;

  border: 0;
  background:
    linear-gradient(0deg, rgba(255,255,255,0.00) 0%, rgba(255,255,255,0.24) 100%),
    #262626;

  box-shadow:
    0 1px 2px rgba(0,0,0,0.65),
    0 0 0 1px rgba(0,0,0,0.72);

  color: #FFF;
  text-shadow: 1px 1px 2px #000;

  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 110%;

  white-space: nowrap;
  user-select: none;

  overflow: hidden;
  transform: translateZ(0);
}

.hero__tg::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.20);
  pointer-events: none;
}

.hero__tg:hover{ filter: brightness(1.06); }

.hero__tg:active{
  filter: brightness(0.98);
  transform: translateY(0.5px);
}

.hero__tg:focus-visible{
  outline: none;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.65),
    0 0 0 1px rgba(0,0,0,0.72),
    0 0 0 3px rgba(222,92,0,0.25);
}

.hero__title {
  margin: 0;
  font-size: 50px;
  font-weight: 600;
  letter-spacing: -0.04em;
  font-family: var(--sans);
}

.hero__name{
  color: rgba(18, 18, 18, 0.24);
  font-weight: 800;
}

.hero__role{
  color: var(--fg);
  font-weight: 500;
}

.hero__lead {
  margin: 44px 0 0;
  max-width: 70ch;
  font-size: 16px;
  font-weight: 500; 
  color: var(--fg);
  line-height: 1.5;    
}

.hero-link{
  font-weight: 500;
  color: #797d84;
  border-radius: 6px; 
}
.hero-link:hover{ color: #DE5C00; }

/* meta */
.hero__meta {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, 348px);
  gap: 20px;
  align-items: start;
}


.meta-card { padding: 20px 20px 20px 0px; }

.meta-card__label {
  font-family: var(--sans);
  font-size: 14px;
  color: #797d84; 
  font-weight: 500;
}

.meta-card__value {
  margin-top: 6px;
  font-size: 14px;
}

.meta-card--status .meta-card__value { display: flex; align-items: center; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0px 0px;
  font-family: var(--sans);
  font-size: 14px;
}

.status__dot {
display: flex;
width: 10px;
height: 10px;
align-items: center;
gap: 10px;
border-radius: 100px;
border: 0.5px solid #199A19;
background: linear-gradient(180deg, #C2FF32 0%, #6AE61C 22.6%, #03C903 49.04%, #05B205 100%);
}

/* Sections */
.section { padding: 34px 0; }

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 5px;
}

.section h3 {
  margin: 0;
  font-size: 14px;
  font-family: var(--mono);
  letter-spacing: -0.02em;
}

/* PRODUCTS */
.product-cards{
  display: inline-flex;
  align-items: center;
  gap: 20px;
}

@media (max-width: 980px) {
  .product-cards{
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }
  .product-cards::-webkit-scrollbar { height: 8px; }
  .product-cards::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.12);
    border-radius: 999px;
  }
}

.product-card{ width: 348px; }
.product-card__link{ display: block; }

.product-card__media{
  height: 247.467px;
  align-self: stretch;
  aspect-ratio: 45/32;
  background-color: lightgray;
  background-position: 50% 50%;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 6px 6px 0 0;
  border: 1px solid #FFF;
  box-shadow: 0 0 2px 0 #CFCFCF;
}

.product-card__body{
  display: flex;
  width: 348px;
  padding: 16px;
  align-items: flex-start;
  gap: 10px;
  flex-direction: column;

  border-radius: 0 0 6px 6px;
  border: 1px solid #FFF;
  background: #F5F5F5;
  box-shadow: 0 0 2px 0 #CFCFCF;
}

.product-card__title{
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.product-card__desc{
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.4;
}

.product-card__content{ width: 100%; }

/* tags */
.tags {
  margin-top: 12px;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.tag{
  display: flex;
  padding: 4px 10px;
  justify-content: center;
  align-items: center;
  gap: 10px;

  border-radius: 100px;
  border: 1px solid #DBDDDF;
  background: #FFF;

  font-family: var(--sans);
  font-size: 12px;
  color: var(--fg);
}


/* Footer */
.footer {
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  margin-top: 28px;
  font-family: var(--sans);
  font-size: 12px;
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity 500ms ease, transform 500ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Tooltip следит за курсором */
.cursor-tooltip{
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  pointer-events: none;

  opacity: 0;
  transform: translate3d(-999px, -999px, 0);
  transition: opacity 180ms ease;

  font-family: var(--sans);
  font-size: 12px;
  line-height: 1;

  color: rgba(18,18,18,0.92);

  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(18,18,18,0.10);
  backdrop-filter: blur(12px);

  box-shadow:
    0 10px 22px rgba(0,0,0,0.10),
    0 0 0 1px rgba(255,255,255,0.22) inset;
}
.cursor-tooltip.is-visible{ opacity: 1; }

/* ===================== */
/* CLIENTS (NEW) */
/* ===================== */ 

/* вариант для картинок (верни image-режим тултипа) */
.cursor-tooltip.is-image{
  padding: 0;
  border-radius: 6px;
  background: rgba(255,255,255,0.35);
  border: 1px solid rgba(255,255,255,0.70);
  box-shadow:
    0 18px 42px rgba(0,0,0,0.18),
    0 0 0 1px rgba(0,0,0,0.08);
  backdrop-filter: blur(10px);
}

/* важно: перебиваем глобальный img { width:100% } */
.cursor-tooltip__img{
  display: block;
  width: 260px;
  max-width: 260px;
  height: auto;
  border-radius: 6px;
  border: 4px solid rgba(235,236,237,0.95);
}

.cursor-tooltip.is-image img{
  width: 260px;
  max-width: 260px;
  height: auto;
}


.clients-strip{
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  padding: 18px 0px;
}

.clients-strip img{
  height: 44px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  opacity: 0.95;
  filter: saturate(0.95);
}

/* ===================== */
/* WRITING CARDS (NEW) */
/* ===================== */

.posts-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.post-card{
  border-radius: 6px;
  overflow: hidden;
  background: #F5F5F5;
  border: 1px solid #FFF;
  box-shadow: 0 0 2px 0 #CFCFCF;
}

.post-card__link{
  display: block;
  height: 100%;
}

.post-card__media{
  height: 247px;
  display: grid;
  place-items: center;
  background: #F5F5F5;
  border-bottom: 1px solid rgba(18,18,18,0.06);
}

.post-card__media img{
  width: 78px;
  height: auto;
}

.post-card__body{
  padding: 16px;
}

.post-card__meta{
  font-family: var(--sans);
  font-size: 12px;
  margin-bottom: 4px;
}

.post-card__title{
  margin: 10px 0 0;
  font-size: 14px;
  letter-spacing: -0.02em;
}

.post-card__desc{
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.45;
}

.post-card:hover{
  filter: saturate(1.02) contrast(1.01);
}

/* ===================== */
/* CASE PAGES */
/* ===================== */

.case {
  padding: 18px 0 60px;
}

.case__topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 10px;
  margin-bottom: 18px;
}

.case__back{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 14px;
  font-weight: 500;
  color: rgba(18,18,18,0.92);
  line-height: 1;
}

.case__back-icon{
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.case__back:focus-visible{
  outline: none;
  border-radius: 6px;
  box-shadow: 0 0 0 3px rgba(222,92,0,0.25);
}


.case__grid {
  width: min(var(--case-max), 100%);
  margin-inline: auto;
}

.case__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 12px;
  color: rgba(18,18,18,0.52);
  border: 1px solid rgba(18,18,18,0.10);
  background: rgba(255,255,255,0.55);
  padding: 6px 10px;
  border-radius: 999px;
}

.case__logo {
  display: block;
  margin-top: 60px;
  margin-inline: auto;
  height: 12px;
  width: auto;
  opacity: 0.95;
}

.case__title {
  margin: 60px 0 0;
  font-size: 30px;
  letter-spacing: -0.03em;
  text-align: center;
  font-weight: 500;
}

.case__meta {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;

  padding: 12px 14px;
  border-radius: 6px;
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(18,18,18,0.10);
  box-shadow: 0 0 2px #CFCFCF;
}

.case__meta-item { min-width: 0; }

.case__meta-label {
  font-family: var(--sans);
  font-size: 12px;
  color: rgba(18,18,18,0.52);
}

.case__meta-value {
  margin-top: 6px;
  font-size: 13px;
  color: rgba(18,18,18,0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.case__text {
  margin-top: 60px;
  margin-bottom: 60px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(18,18,18,0.74);
}

.case h3 {
  margin: 60px 0 30px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-align: center;
}

.case__sub {
  text-align: center;
  margin: 0 0 0px;
  font-size: 12px;
  font-family: var(--mono);
  color: rgba(18,18,18,0.48);
}

.case-figure { margin: 18px 0 0; }

.case-media {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255,255,255,0.85);
  box-shadow: 0 0 4px #CFCFCF;
}

.case-media::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 6px;
  box-shadow: inset 0 0 0 6px #fff;
  pointer-events: none;
}

.case-media img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  padding: 6px;
}

.case-table {
  margin-top: 18px;
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;

  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(18,18,18,0.10);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 0 2px #CFCFCF;
}

.case-table thead th {
  text-align: left;
  font-family: var(--sans);
  font-size: 12px;
  color: rgba(18,18,18,0.78);
  background: rgba(245,245,245,0.95);
  border-bottom: 1px solid rgba(18,18,18,0.10);
  padding: 12px 12px;
}

.case-table tbody td {
  font-size: 13px;
  color: rgba(18,18,18,0.82);
  padding: 12px 12px;
  border-bottom: 1px solid rgba(18,18,18,0.08);
  vertical-align: top;
}

.case-table tbody tr:last-child td { border-bottom: 0; }

.case-table td:nth-child(2),
.case-table td:nth-child(3) {
  text-align: left;
  white-space: nowrap;
}

/* ===================== */
/* PAIN / SOLUTIONS (NEW) */
/* ===================== */

.ps-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin: 60px 0 0;
}

.ps-col{
  border-radius: 6px;
}

.ps-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 0px;
}

.ps-title{
  margin: 0 0 10px;
  font-size: 14px;
  font-family: var(--mono);
  letter-spacing: -0.02em;
}

.ps-head__icon{
  width: 13px;
  height: 13px;
  opacity: 0.9;
}

.ps-card{
  display: flex;
  gap: 12px;
  align-items: flex-start;

  padding: 14px 14px;
  border-radius: 6px;
  border: 1px solid rgba(18,18,18,0.10);
  background: rgba(255,255,255,0.72);
  box-shadow: 0 0 2px #CFCFCF;

  margin-bottom: 14px;
}

.ps-card__icon{
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}

.ps-card__icon img{
  width: 14px;
  height: 14px;
}

.ps-card__text{
  font-size: 14px;
  line-height: 1.45;
  color: rgba(18,18,18,0.78);
}

.ps-col--pain .ps-card{
  background: rgba(255, 240, 240, 0.65);
  border-color: rgba(200, 60, 60, 0.28);
}

.ps-col--sol .ps-card{
  background: rgba(236, 255, 243, 0.65);
  border-color: rgba(35, 160, 90, 0.28);
}

/* Responsive */
@media (min-width: 760px) {
  .nav { display: inline-flex; }
  .hero__meta {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, 348px);
  gap: 20px;
  align-items: start;
}
}

@media (max-width: 980px){
  .posts-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px){
  .ps-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px){
  .hero__tg{
    position: static;
    margin-top: 18px;
  }

  .case__meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px){
  .hero__meta{ grid-template-columns: 1fr; }
}

.post__title{ margin-top: 26px; font-size: 30px; font-weight: 600; text-align: left; }
.post__meta{ margin-top: 10px; font-size: 12px; }
