/* Локальные вариативные шрифты — без обращения к Google (latin + cyrillic) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/portfolio/assets/fonts/Inter-400-700-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/portfolio/assets/fonts/Inter-400-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/portfolio/assets/fonts/Oswald-400-700-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/portfolio/assets/fonts/Oswald-400-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* АКВАФОРС — тёмный индустриальный стиль: узкий гротеск капсом, лайм, диагонали */

* {
  box-sizing: border-box;
}

:root {
  --black: #0c0d0e;
  --panel: #141618;
  --panel-2: #1c1f22;
  --line: #2a2e33;
  --white: #f2f4f5;
  --grey: #9aa3ab;
  --lime: #c8ff2e;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: Oswald, Impact, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: .98;
  margin: 0;
}

.wrap {
  width: min(1200px, 92%);
  margin: 0 auto;
}

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

/* шапка */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(12, 13, 14, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: Oswald, sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .14em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--lime);
  color: var(--black);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%);
}

.links {
  display: flex;
  gap: 26px;
}

.links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--grey);
  text-decoration: none;
  transition: color .2s;
}

.links a:hover {
  color: var(--lime);
}

/* кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  background: var(--lime);
  color: var(--black);
  font-family: Oswald, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--lime);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: .2s;
}

.btn:hover {
  background: #d9ff63;
  border-color: #d9ff63;
}

.btn.outline {
  background: transparent;
  color: var(--white);
  border-color: var(--line);
}

.btn.outline:hover {
  border-color: var(--lime);
  color: var(--lime);
  background: transparent;
}

.btn.wide {
  width: 100%;
  margin-top: 22px;
}

/* герой */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(.35) contrast(1.05) brightness(.42);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 13, 14, .95) 30%, rgba(12, 13, 14, .35));
}

.hero-in {
  position: relative;
  z-index: 2;
  padding: 108px 0 96px;
  max-width: 720px;
}

.tagline {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--line);
  background: rgba(12, 13, 14, .6);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--grey);
}

.hero h1 {
  margin: 22px 0 0;
  font-size: clamp(48px, 9vw, 108px);
  font-weight: 700;
}

.hero-in p {
  margin-top: 20px;
  max-width: 52ch;
  color: var(--grey);
  font-size: 17px;
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.hero-stats {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  background: rgba(12, 13, 14, .82);
}

.stats-in {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stats-in div {
  padding: 24px 22px;
  border-left: 1px solid var(--line);
}

.stats-in div:first-child {
  border-left: 0;
  padding-left: 0;
}

.stats-in b {
  display: block;
  font-family: Oswald, sans-serif;
  font-size: 38px;
  line-height: 1;
  color: var(--lime);
}

.stats-in span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--grey);
}

/* бегущая строка */
.run {
  overflow: hidden;
  background: var(--lime);
  color: var(--black);
  padding: 10px 0;
}

.run-row {
  display: flex;
  gap: 22px;
  width: max-content;
  animation: run 26s linear infinite;
  font-family: Oswald, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .16em;
}

.run-row i {
  font-style: normal;
  opacity: .45;
}

@keyframes run {
  to {
    transform: translateX(-50%);
  }
}

/* секции */
.sec {
  padding: 88px 0;
}

.sec.dark {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sec-head {
  margin-bottom: 42px;
}

.sec-head h2 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
}

.sec-head p {
  margin-top: 12px;
  color: var(--grey);
  max-width: 56ch;
}

/* тарифы */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 26px 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: border-color .25s, transform .25s;
}

.card:hover {
  border-color: var(--lime);
  transform: translateY(-4px);
}

.card.hot {
  background: var(--panel-2);
  border-color: var(--lime);
}

.ribbon {
  position: absolute;
  top: -1px;
  right: -1px;
  padding: 6px 14px;
  background: var(--lime);
  color: var(--black);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.tag {
  font-family: Oswald, sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.time {
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--grey);
  border: 1px solid var(--line);
  padding: 4px 10px;
}

.cost {
  font-family: Oswald, sans-serif;
  font-size: 54px;
  line-height: 1;
  color: var(--lime);
}

.cost span {
  font-size: 26px;
}

.card ul {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  flex: 1;
}

.card li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  color: var(--grey);
}

.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 2px;
  background: var(--lime);
}

/* таблица доп. услуг */
.tbl {
  width: 100%;
  border-collapse: collapse;
}

.tbl td {
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}

.tbl tr:first-child td {
  border-top: 1px solid var(--line);
}

.tbl .num {
  text-align: right;
  font-family: Oswald, sans-serif;
  font-size: 22px;
  color: var(--lime);
  white-space: nowrap;
}

.tbl tr:hover td {
  background: rgba(200, 255, 46, .05);
}

/* шаги */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.step {
  background: var(--black);
  padding: 26px 22px 30px;
}

.s-num {
  display: block;
  font-family: Oswald, sans-serif;
  font-size: 42px;
  line-height: 1;
  color: var(--line);
  margin-bottom: 14px;
  transition: color .25s;
}

.step:hover .s-num {
  color: var(--lime);
}

.step h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.step p {
  font-size: 14px;
  color: var(--grey);
}

/* фото */
.shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 40px;
}

.shots figure {
  margin: 0;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
}

.shots img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  filter: grayscale(.2);
  transition: transform .6s;
}

.shots figure:hover img {
  transform: scale(1.05);
  filter: none;
}

/* контакты */
.cta {
  background: var(--panel);
  border-top: 1px solid var(--line);
}

.cta-in {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 52px;
  align-items: center;
}

.cta h2 {
  font-size: clamp(32px, 4.6vw, 54px);
  font-weight: 700;
}

.cta p {
  margin-top: 16px;
  color: var(--grey);
  max-width: 46ch;
}

.contacts {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contacts li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.contacts li:first-child {
  border-top: 1px solid var(--line);
}

.contacts span {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--grey);
  padding-top: 3px;
}

.contacts b {
  font-weight: 500;
  text-align: right;
}

.contacts a {
  text-decoration: none;
  border-bottom: 1px solid var(--lime);
}

/* подвал */
.foot {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.foot-in {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.dim {
  color: var(--grey);
}

/* адаптив */
@media (max-width: 1000px) {
  .cards {
    grid-template-columns: 1fr;
  }

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

  .stats-in {
    grid-template-columns: 1fr 1fr;
  }

  .stats-in div:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }

  .cta-in {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .links {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero-in {
    padding: 64px 0 56px;
  }

  .steps,
  .shots {
    grid-template-columns: 1fr;
  }

  .sec {
    padding: 58px 0;
  }

  .nav .btn {
    padding: 10px 14px;
    font-size: 12px;
  }

  .shots img {
    height: 240px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .run-row {
    animation: none;
  }

  * {
    transition-duration: .001ms !important;
  }
}
