/* stylelint-disable keyframes-name-pattern */
/* stylelint-disable CssSyntaxError */
/* stylelint-disable selector-class-pattern */

/* ========================== */

/*        CSS Variables       */

/* ========================== */
:root {
  /* Colors */
  --clr-primary: #18b75c;
  --clr-text-main: #151515;
  --clr-text-accent: #000;
  --clr-text-muted: rgb(21 21 21 / 50%); /* для "принимаю условия" */
  --clr-bg: #fff;
  --clr-bg-light: #f5f5f5;
  --clr-border: rgb(21 21 21 / 30%);
  --clr-border-alt: #d9d9d9;
  --clr-white: #fff;

  /* Typography */
  --font-family-base: "Manrope", sans-serif;
  --font-family-alt: "Tektur", sans-serif;
  --font-family-logo: "Inter", sans-serif;
  --fs-h1: clamp(30px, 5vw, 48px);
  --fs-h2: clamp(24px, 3vw, 32px);
  --fs-h4: clamp(14px, 16px, 16px);
  --fs-body: clamp(14px, 1.5vw, 16px);
  --fs-body-small: clamp(
    12px,
    1.5vw,
    14px
  ); /* мелкий текст в карточках, списках */

  --fs-accent-big: clamp(12px, 1.5vw, 24px); /* "Monolithex предоставляет..." */

  /* Font sizes fixed (for buttons and key controls) */
  --fs-btn: 16px;
  --fs-btn-small: 14px;
  --fs-menu: 14px;
  --fs-submenu: 12px;

  /* Line heights */
  --lh-100: 100%;
  --lh-120: 120%;
  --lh-150: 150%;

  /* Container */
  --container-width: 1200px;
  --container-padding: 20px;
  --section-padding-y: 20px /* Border radius */;
  --radius-main: 16px;
  --radius-btn: 8px;

  /* Box shadow */
  --shadow-default: 2px 2px 4px rgb(21 21 21 / 15%);

  /* Buttons */
  --btn-height: 48px;
  --btn-padding: 12px 24px;
  --btn-color: var(--clr-primary);
  --btn-color-white: #fff;

  /* Icons */
  --icon-social-width: 24px;
  --icon-social-height: 20px;

  /* Общие настройки анимации */
  --anim-duration: 0.6s;
  --anim-easing: ease-in-out;
  --fade-translate: translateX(-30px);
}

html {
  scroll-behavior: smooth;
}

/* ========================== */

/*         Layout             */

/* ========================== */
.wrapper {
  width: 100%;
  overflow-x: hidden;
}

section {
  padding: var(--section-padding-y) 0;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding-right: var(--container-padding);
  padding-left: var(--container-padding);
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-from-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s ease;
}

.animate-from-left.visible {
  animation: fadeInLeft 0.6s ease forwards;
}

h1,
h2 {
  opacity: 0;
  animation: fadeInLeft var(--anim-duration) var(--anim-easing) forwards;
}

h1 {
  color: var(--clr-text-main);
  font-family: var(--font-family-alt);
  font-size: var(--fs-h1);
  font-weight: 600;
  line-height: var(--lh-120);
  text-transform: uppercase;
}

h2 {
  /* margin-bottom: 24px; */
  font-family: var(--font-family-alt);
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: var(--lh-120);
  text-transform: uppercase;
}

h3 {
  color: var(--clr-text-main);
  font-family: var(--font-family-alt);
  font-size: var(--fs-h3);
  line-height: var(--lh-120);
  text-align: left;
}

p {
  color: var(--clr-text-main);
  font-family: var(--font-family-base);
  font-size: var(--fs-body-small);
  line-height: var(--lh-150);
  text-align: left;
}

body {
  background-color: var(--clr-bg);
  color: var(--clr-text-main);
  font-family: var(--font-family-base);
  font-size: var(--fs-body);
  line-height: var(--lh-150);
}

/* Общие стили для кнопок */
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: var(--btn-height);
  padding: var(--btn-padding);
  transition: background-color 0.2s ease;
  border: none;
  border-radius: var(--radius-btn);
  color: var(--clr-white);
  font-family: var(--font-family-base);
  font-size: var(--fs-btn);
  font-weight: 700;
  letter-spacing: 0;
  line-height: var(--lh-100);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
}

.button__text {
  transition: color 0.2s ease;
}

/* Зеленая кнопка */
.button-primary {
  box-shadow: var(--shadow-default);
  background-color: var(--btn-color);
}

.button-primary .button__text {
  color: var(--btn-color-white); /* Normal — белый */
}

.button-primary:hover .button__text {
  color: var(--btn-color-white); /* Hover — без изменений */
}

.button-primary:active .button__text {
  color: rgb(21 21 21 / 50%); /* Press */
}

/* Белая кнопка */
.button-secondary {
  box-shadow: var(--shadow-default);
  border: 1px solid var(--clr-border);
  border-radius: 8px;
  background-color: var(--btn-color-white);
  color: var(--clr-text-main);
}

.button-secondary:active .button__text {
  color: rgb(21 21 21 / 50%); /* Press */
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

select,
input {
  border: 1px solid var(--clr-border-alt);
  border-radius: var(--radius-btn);
}

/* ХОВЕР ЭФФФЕКТ ДЛЯ КАРТОЧЕК ГРИДА */
.card-hover {
  transform: translateY(0);
  transition: all 0.2s ease;
  box-shadow: var(--shadow-default);
  border: 1px solid var(--clr-border-alt);
  background-color: var(--clr-bg);
}

.card-hover:hover {
  transform: translateY(2px) scale(0.99);
  box-shadow: none;
  background-color: var(--clr-bg-light);
}
