/* ==========================================================================
   Golos Text — локальные шрифты (Google Fonts, вариативный 400–900)
   ========================================================================== */

@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/golos-text-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/golos-text-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/golos-text-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/golos-text-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;
}

:root {
  --font-main: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --color-bg: #ffffff;
  --color-text: #14161a;
  --color-muted: #6b7280;
  --color-accent: #008CFF;
  --color-border: #e5e7eb;

  --container: 1200px;
  --gutter: 20px;
  --radius: 12px;

  --transition: 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.5em;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 3rem);
}

h2 {
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem);
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent);
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.btn {
  font-size: 16px;
  line-height: 1;
  padding: 15px 20px;
  background-color: var(--color-accent);
  color: white;
  border-radius: 30px;
}

.btn:hover {
  color: white;
}

.container {
  padding: 0 20px;
  max-width: 1800px;
  margin: 0 auto;
}

@media (max-width: 1000px) {
  .container {
  padding: 0 10px;
  max-width: 1800px;
  margin: 0 auto;
}
}

.header__nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99;
  padding: 10px 0;
  border-bottom: 1px solid rgb(231, 231, 231);
  background-color: white;
}

.header__logo-link {
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
}

.header__logo-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

.header__nav-logo {
  display: block;
  width: auto;
  height: 20px;
}

.header__nav-list {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
}

.header__nav-link {
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  color: #14161a;
}

.header__nav-link--active {
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  color: var(--color-accent);
}

.header__menu {
  display: contents;
}

.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 50%;
  transition: background-color var(--transition);
}

.header__burger:hover {
  background-color: #f6f7fc;
}

.header__burger-line {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.header.is-open .header__burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header.is-open .header__burger-line:nth-child(2) {
  opacity: 0;
}

.header.is-open .header__burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  margin-top: 100px;
}

.hero__wrapper {
  padding: 40px;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 50px;
  background-color: #f6f7fc;
  border-radius: 30px;
}

.hero__left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  width: calc(50% - 50px);
}

.hero__right {
  display: block;
  width: 50%;
  height: 70svh;
  overflow: hidden;
  border-radius: 20px;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__heading {
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-size: 72px;
  line-height: 1;
  letter-spacing: -2%;
  font-weight: 500;
}

.hero__heading span {
  font-size: 24px;
  line-height: 1;
  color: var(--color-accent);
  font-weight: 500;
}

.hero__description {
  font-size: 16px;
  line-height: 1.1;
  color: #14161a;
  max-width: 400px;
}

.tag__list {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;
  gap: 5px;
}

.tag__item {
  padding: 10px 15px;
  font-size: 14px;
  line-height: 1;
  border: 1px solid rgb(231, 231, 231);
  border-radius: 30px;
}

@media (max-width: 1080px) {
  .hero__wrapper {
  padding: 15px;
  display: flex;
  flex-direction: column-reverse;
  gap: 30px;
  background-color: #f6f7fc;
  border-radius: 30px;
}

.hero__left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
}

.hero__right {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 20px;
}

.hero__heading {
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -2%;
  font-weight: 500;
}

.hero__heading span {
  font-size: 21px;
  line-height: 1;
  color: var(--color-accent);
  font-weight: 500;
}

.hero__description {
  font-size: 16px;
  line-height: 1.1;
  color: #14161a;
  max-width: 400px;
}

.tag__list {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;
  gap: 5px;
}

.tag__item {
  padding: 5px 10px;
  font-size: 12px;
  line-height: 1;
  border: 1px solid rgb(231, 231, 231);
  border-radius: 30px;
}
}

.filter {
  position: relative;
  z-index: 30;
  margin-top: 40px;
}

.filter__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.select {
  position: relative;
  min-width: 240px;
  font-size: 16px;
}

.select__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 20px;
  font-size: 16px;
  line-height: 1;
  color: var(--color-text);
  background-color: #fff;
  border: 1px solid rgb(231, 231, 231);
  border-radius: 30px;
  transition: border-color var(--transition), background-color var(--transition), box-shadow var(--transition);
}

.select__toggle:hover {
  border-color: var(--color-accent);
  background-color: #f6f7fc;
}

.select__toggle:focus-visible {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 140, 255, 0.15);
}

.select__value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.select__arrow {
  flex: 0 0 auto;
  transition: transform var(--transition);
}

.select.is-open .select__arrow {
  transform: rotate(180deg);
}

.select.is-open .select__toggle {
  border-color: var(--color-accent);
}

.select__list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 40;
  width: 100%;
  max-height: 320px;
  padding: 8px;
  overflow-y: auto;
  background-color: #fff;
  border: 1px solid rgb(231, 231, 231);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(20, 22, 26, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}

.select__list:focus {
  outline: none;
}

.select.is-open .select__list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0s;
}

.select__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  font-size: 15px;
  line-height: 1.2;
  border-radius: 14px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.select__option:hover,
.select__option.is-focused {
  background-color: #f6f7fc;
}

.select__option[aria-selected="true"] {
  color: var(--color-accent);
  font-weight: 600;
  background-color: rgba(0, 140, 255, 0.08);
}

.select__check {
  flex: 0 0 auto;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.select__option[aria-selected="true"] .select__check {
  opacity: 1;
}

.select__list::-webkit-scrollbar {
  width: 6px;
}

.select__list::-webkit-scrollbar-thumb {
  background-color: #d7dbe0;
  border-radius: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.catalog {
  margin-top: 40px;
}

.catalog__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.catalog__card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
  background-color: #f6f7fc;
  border-radius: 20px;
  overflow: hidden;
}

.catalog__card-img--block {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
}

.catalod__card-free {
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 20;
  display: block;
  width: 50px;
  height: 50px;
}

.catalog__badges {
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 20;
  display: flex;
  gap: 5px;
}

.catalog__badges .catalod__card-free {
  position: static;
  top: auto;
  left: auto;
}

.catalog__item {
  display: flex;
  min-width: 0;
}

.catalog__item[hidden] {
  display: none;
}

.catalog__item > .catalog__card {
  width: 100%;
  height: 100%;
}

.catalog__empty {
  margin: 0;
  padding: 48px 24px;
  text-align: center;
  color: var(--color-muted);
  background-color: #f6f7fc;
  border-radius: 20px;
}

.catalog__card-img--block::before {
  z-index: 2;
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: url('../assets/svg/goto.svg') no-repeat center center;
  background-size: 20px 20px;
  background-color: rgba(0, 0, 0, 0.486);
  backdrop-filter: blur(5px);
  border-radius: 20px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.15s ease-in-out;
}

.catalog__card:hover {
  background-color: #daeeff;
}

.catalog__card:hover .catalog__card-img--block::before {
  opacity: 1;
}

.catalog__card-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.catalog__card-block {
  padding: 20px 20px 20px 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  justify-content: space-between;
}

.catalog__card-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
}

.catalog__card-header--logo {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 20px;
  object-fit: cover;
}

.catalog__card-heading {
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -2%;
  font-weight: 600;
}

/* ==========================================================================
   Мобильная шапка
   ========================================================================== */

@media (max-width: 860px) {
  .header__burger {
    display: flex;
  }

  .header__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    padding: 8px 20px 20px;
    background-color: #fff;
    border-bottom: 1px solid rgb(231, 231, 231);
    box-shadow: 0 24px 40px rgba(20, 22, 26, 0.08);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  }

  .header.is-open .header__menu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0s;
  }

  .header__nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .header__nav-item {
    border-bottom: 1px solid #f1f2f4;
  }

  .header__nav-link,
  .header__nav-link--active {
    display: block;
    padding: 14px 0;
    font-size: 18px;
  }

  .header__cta {
    margin-top: 16px;
    text-align: center;
  }

  body.is-menu-open {
    overflow: hidden;
  }
}

@media (max-width: 1360px) {
  .catalog__card {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
  background-color: #f6f7fc;
  border-radius: 20px;
  overflow: hidden;
}

.catalog__card-img--block {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
}

.catalog__card-img--block::before {
  z-index: 2;
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: url('../assets/svg/goto.svg') no-repeat center center;
  background-size: 20px 20px;
  background-color: rgba(0, 0, 0, 0.486);
  backdrop-filter: blur(5px);
  border-radius: 20px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.15s ease-in-out;
}

.catalog__card:hover {
  background-color: #daeeff;
}

.catalog__card:hover .catalog__card-img--block::before {
  opacity: 1;
}

.catalog__card-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.catalog__card-block {
  padding: 20px 20px 20px 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  justify-content: space-between;
}

.catalog__card-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
}

.catalog__card-header--logo {
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 20px;
  object-fit: cover;
}

.catalog__card-heading {
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -2%;
  font-weight: 600;
}
}

@media (max-width: 1180px) {
  .catalog__grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
}

@media (max-width: 600px) {
  .catalog__card {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.catalog__card-img--block {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 20px;
  overflow: hidden;
}

.catalog__card-img--block::before {
  z-index: 2;
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: url('../assets/svg/goto.svg') no-repeat center center;
  background-size: 20px 20px;
  background-color: rgba(0, 0, 0, 0.486);
  backdrop-filter: blur(5px);
  border-radius: 20px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.15s ease-in-out;
}

.catalog__card:hover {
  background-color: #daeeff;
}

.catalog__card:hover .catalog__card-img--block::before {
  opacity: 1;
}

.catalog__card-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.catalog__card-block {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  justify-content: space-between;
}
}

/* ==========================================================================
   Подвал
   ========================================================================== */

.footer {
  margin-top: 60px;
  padding-bottom: 20px;
}

.footer__inner {
  padding: 40px;
  background-color: #f6f7fc;
  border-radius: 30px;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
}

.footer__brand {
  max-width: 360px;
}

.footer__logo-link {
  display: inline-flex;
  border-radius: 6px;
  transition: opacity var(--transition);
}

.footer__logo-link:hover {
  opacity: 0.7;
}

.footer__logo-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

.footer__logo {
  display: block;
  width: auto;
  height: 30px;
}

.footer__description {
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--color-muted);
}

.footer__description--small {
  margin: 12px 0 16px;
}

.footer__title {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.footer__nav-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer__nav-link {
  font-size: 16px;
  line-height: 1.3;
  color: var(--color-text);
}

.footer__nav-link:hover {
  color: var(--color-accent);
}

.footer__cta {
  display: inline-block;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgb(231, 231, 231);
}

.footer__copyright {
  margin: 0;
  font-size: 14px;
  color: var(--color-muted);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer__legal-link {
  font-size: 14px;
  color: var(--color-muted);
}

.footer__legal-link:hover {
  color: var(--color-accent);
}

@media (max-width: 860px) {
  .footer {
    margin-top: 40px;
  }

  .footer__inner {
    padding: 28px 24px;
    border-radius: 24px;
  }

  .footer__top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
  }

  .footer__brand {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (max-width: 600px) {
  .footer__top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer__logo {
    height: 26px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__cta {
    width: 100%;
    text-align: center;
  }
}

/* ==========================================================================
   Плашка о cookie
   ========================================================================== */

.cookie {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 24px;
  width: calc(100% - 40px);
  max-width: 760px;
  padding: 20px 24px;
  background-color: #fff;
  border: 1px solid rgb(231, 231, 231);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(20, 22, 26, 0.14);
  opacity: 0;
  transform: translate(-50%, 16px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cookie[hidden] {
  display: none;
}

.cookie.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.cookie__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--color-text);
}

.cookie__link {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie__link:hover {
  color: var(--color-accent);
  opacity: 0.75;
}

.cookie__button {
  flex: 0 0 auto;
  padding: 12px 24px;
  border: 0;
}

.cookie__button:hover {
  background-color: #0077d9;
}

@media (max-width: 600px) {
  .cookie {
    bottom: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    width: calc(100% - 24px);
    padding: 18px;
    border-radius: 18px;
  }

  .cookie__button {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie {
    transition: none;
  }
}



