/* Алмаз Латипов — одностраничник-визитка */

:root {
  --ink: #152033;
  --ink-soft: #3a4658;
  --muted: #6b7382;
  --paper: #f2f0eb;
  --paper-2: #e7eaf0;
  --line: rgba(21, 32, 51, 0.12);
  --accent: #1f6f8b;
  --accent-deep: #15556b;
  --warm: #c4a574;
  --hero-ink: #f7f5f1;
  --font-display: "Syne", sans-serif;
  --font-body: "Source Sans 3", sans-serif;
  --space: clamp(1.25rem, 3vw, 2.5rem);
  --wrap: min(1120px, calc(100% - 2.5rem));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(31, 111, 139, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 30%, rgba(196, 165, 116, 0.12), transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, #ebe8e2 48%, var(--paper-2) 100%);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.25s var(--ease);
}

a:hover {
  color: var(--ink);
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

/* ——— Hero ——— */

.hero {
  position: relative;
  min-height: min(100svh, 52rem);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--hero-ink);
  background: #101820;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  background: #101820;
}

.hero__photo {
  position: absolute;
  top: 50%;
  left: 42%;
  width: 68%;
  max-width: none;
  height: 115%;
  object-fit: cover;
  object-position: center 10%;
  transform: translate(0, -50%);
  opacity: 0.78;
  filter: brightness(1.02) contrast(1.01) saturate(0.95);
  /* Мягкий левый край — без жёсткой границы с текстом */
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.15) 12%,
    rgba(0, 0, 0, 0.55) 28%,
    rgba(0, 0, 0, 0.9) 48%,
    #000 68%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.15) 12%,
    rgba(0, 0, 0, 0.55) 28%,
    rgba(0, 0, 0, 0.9) 48%,
    #000 68%
  );
  animation: photo-settle 1.8s var(--ease) both;
}

.hero__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      #101820 0%,
      #101820 28%,
      rgba(16, 24, 32, 0.75) 42%,
      rgba(16, 24, 32, 0.35) 58%,
      rgba(16, 24, 32, 0.12) 74%,
      rgba(16, 24, 32, 0.06) 100%
    ),
    linear-gradient(
      180deg,
      rgba(10, 16, 24, 0.08) 0%,
      rgba(10, 16, 24, 0.06) 50%,
      rgba(10, 16, 24, 0.45) 100%
    );
}

.hero__shell {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 8vh, 5rem) 0 clamp(2rem, 5vh, 3rem);
}

.hero__content {
  max-width: 36rem;
  animation: rise 0.9s var(--ease) 0.12s both;
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 5.4vw, 3.55rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.hero__lead {
  margin: 1.15rem 0 0;
  max-width: 36ch;
  color: rgba(247, 245, 241, 0.86);
  font-size: clamp(1.12rem, 2.1vw, 1.3rem);
  line-height: 1.45;
}

.hero__points {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  color: rgba(247, 245, 241, 0.82);
  font-size: clamp(1.05rem, 1.8vw, 1.18rem);
}

.hero__points li {
  position: relative;
  padding-left: 1rem;
}

.hero__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--warm);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 0.9rem;
  margin-top: 1.45rem;
}

.hero__name {
  margin: 1.1rem 0 0;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warm);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.15rem;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn--primary {
  background: #f7f5f1;
  color: var(--ink);
}

.btn--primary:hover {
  background: #ffffff;
  color: var(--ink);
  transform: translateY(-1px);
}

.btn--ghost {
  border-color: rgba(247, 245, 241, 0.35);
  color: var(--hero-ink);
  background: transparent;
}

.btn--ghost:hover {
  border-color: rgba(247, 245, 241, 0.75);
  color: #fff;
}

/* ——— How strip ——— */

.strip {
  background: #fff;
  color: var(--ink);
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.85rem 1.75rem;
}

.strip__label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.strip__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.5rem;
  flex: 1;
}

.strip__steps li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
  font-size: 0.95rem;
}

.strip__steps strong {
  font-family: var(--font-display);
  font-weight: 700;
}

.strip__steps span {
  color: var(--muted);
}

.strip__steps li + li {
  padding-left: 1.5rem;
  border-left: 1px solid var(--line);
}

/* ——— Sections ——— */

.section {
  padding: calc(var(--space) * 2) 0;
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.section__title {
  margin: 0;
  max-width: 22ch;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.section__text {
  margin: 1rem 0 0;
  max-width: 40rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.focus-list {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.focus-list li {
  display: grid;
  grid-template-columns: minmax(12rem, 0.95fr) 1.25fr;
  gap: 0.75rem 2rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.focus-list h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
}

.focus-list p {
  margin: 0;
  color: var(--ink-soft);
}

.section--proof {
  background: rgba(21, 32, 51, 0.03);
  border-block: 1px solid var(--line);
}

.wrap--proof {
  display: grid;
  grid-template-columns: minmax(14rem, 0.9fr) 1.2fr;
  gap: 1.5rem 2.5rem;
  align-items: start;
}

.proof__text p {
  margin: 0 0 0.9rem;
  color: var(--ink-soft);
  max-width: 40rem;
}

.proof__text p:last-child {
  margin-bottom: 0;
}

.cases {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem;
}

.cases li {
  padding-top: 0.95rem;
  border-top: 2px solid var(--ink);
}

.cases__label {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
}

.cases p:last-child {
  margin: 0;
  color: var(--ink-soft);
}

.section--contact {
  padding-bottom: calc(var(--space) * 2.4);
}

.section--contact .wrap {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 2.25rem;
  align-items: end;
}

.contact__brand {
  margin: 1.5rem 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

.contact__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.contact__list li {
  display: grid;
  gap: 0.15rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.contact__list span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact__list a {
  font-size: 1.12rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: background-size 0.35s var(--ease);
  width: fit-content;
}

.contact__list a:hover {
  background-size: 100% 1px;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 1.15rem 0 1.6rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer p {
  margin: 0;
}

.footer__note {
  letter-spacing: 0.04em;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes photo-settle {
  from {
    opacity: 0;
    transform: translate(0, -50%) scale(1.03);
  }
  to {
    opacity: 0.78;
    transform: translate(0, -50%) scale(1);
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__photo {
    left: 50%;
    width: 85%;
    height: 90%;
    top: 18%;
    transform: translateX(-50%);
    opacity: 0.4;
    object-position: center 8%;
    animation: none;
  }

  .hero__veil {
    background:
      linear-gradient(
        180deg,
        rgba(10, 16, 24, 0.35) 0%,
        rgba(10, 16, 24, 0.55) 40%,
        rgba(10, 16, 24, 0.94) 100%
      );
  }

  .focus-list li,
  .wrap--proof,
  .cases,
  .section--contact .wrap {
    grid-template-columns: 1fr;
  }

  .strip__steps li + li {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 520px) {
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .strip__steps {
    flex-direction: column;
    gap: 0.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__content,
  .hero__photo {
    animation: none;
  }
}
