@font-face {
    font-family: 'Roboto';
    src: url(./fonts/RobotoCondensed-Light.woff2) format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* NORMALIZE */

/**
  Нормализация блочной модели
 */
*,
::before,
::after {
  box-sizing: border-box;
}

/**
  Убираем внутренние отступы слева тегам списков,
  у которых есть атрибут class
 */
:where(ul, ol):where([class]) {
  padding-left: 0;
}

/**
  Убираем внешние отступы body и двум другим тегам,
  у которых есть атрибут class
 */
body,
:where(blockquote, figure, fieldset):where([class]) {
  margin: 0;
}

/**
  Убираем внешние отступы вертикали нужным тегам,
  у которых есть атрибут class
 */
:where(
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p,
  ul,
  ol,
  dl
):where([class]) {
  margin-block: 0;
}

:where(dd[class]) {
  margin-left: 0;
}

:where(fieldset[class]) {
  padding: 0;
  border: none;
}

/**
  Убираем стандартный маркер маркированному списку,
  у которого есть атрибут class
 */
:where(ul[class]) {
  list-style: none;
}

:where(address[class]) {
  font-style: normal;
}

/**
  Обнуляем вертикальные внешние отступы параграфа,
  объявляем локальную переменную для внешнего отступа вниз,
  чтобы избежать взаимодействие с более сложным селектором
 */
p {
  --paragraphMarginBottom: 24px;

  margin-block: 0;
}

/**
  Внешний отступ вниз для параграфа без атрибута class,
  который расположен не последним среди своих соседних элементов
 */
p:where(:not([class]):not(:last-child)) {
  margin-bottom: var(--paragraphMarginBottom);
}


/**
  Упрощаем работу с изображениями и видео
 */
img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

/**
  Наследуем свойства шрифт для полей ввода
 */
input,
textarea,
select,
button {
  font: inherit;
}

html {
  /**
    Пригодится в большинстве ситуаций
    (когда, например, нужно будет "прижать" футер к низу сайта)
   */
  height: 100%;
  /**
    Убираем скачок интерфейса по горизонтали
    при появлении / исчезновении скроллбара
   */
  scrollbar-gutter: stable;
}

/**
  Плавный скролл
 */
html {
  scroll-behavior: smooth;
}

body {
  /**
    Пригодится в большинстве ситуаций
    (когда, например, нужно будет "прижать" футер к низу сайта)
   */
  min-height: 100%;
  /**
    Унифицированный интерлиньяж
   */
  line-height: 1.5;
}

/**
  Нормализация высоты элемента ссылки при его инспектировании в DevTools
*/
a:where([class]) {
  display: inline-flex;
}

/**
  Курсор-рука при наведении на элемент
*/
button,
label {
  cursor: pointer;
}

/**
  Приводим к единому цвету svg-элементы
  (за исключением тех, у которых уже указан
  атрибут fill со значением 'none' или начинается с 'url')
*/
:where([fill]:not(
  [fill="none"],
  [fill^="url"]
)) {
  fill: currentColor;
}

/**
  Приводим к единому цвету svg-элементы
  (за исключением тех, у которых уже указан
  атрибут stroke со значением 'none')
*/
:where([stroke]:not(
  [stroke="none"],
  [stroke^="url"]
)) {
  stroke: currentColor;
}

/**
  Чиним баг задержки смены цвета при взаимодействии с svg-элементами
*/
svg * {
  transition-property: fill, stroke;
}

/**
  Приведение рамок таблиц в классический 'collapse' вид
*/
:where(table) {
  border-collapse: collapse;
  border-color: currentColor;
}

/**
  Удаляем все анимации и переходы для людей,
  которые предпочитают их не использовать
*/
@media (prefers-reduced-motion: reduce) {
  *,
  ::before,
  ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}



/* VARIABLES */

:root {
 --color-dark: #000000;
    --color-gray: #74756c;
    --color-light: #ffffff;
    --color-green: #A2F420;
     --color-greenss: #34AA92;
   --color-green-alt: #2C8372;
    --color-accent: #cbed09;

    --border: 2px solid var(--color-light);

    --font-family-base: 'Roboto', sans-serif;

    --container-width: 1200px;
    --container-padding-x: 15px;

    --transition-duration: 0.2s;
}



/* UTILS */

.container {
    max-width: calc(var(--container-width) + var(--container-padding-x) * 2);
    margin-inline: auto;
    padding-inline: var(--container-padding-x);
}

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

.button {
    padding: 24px 90px;
    justify-content: center;
    color: var(--color-light);
    font-size: clamp(24px, 1.77vw, 34px);
    background-color: var(--color-green-alt);
    border: var(--border);
    border-radius: 16px;
}

.button:hover {
	
    color: var(--color-dark);
    background-color: var(--color-greenss);
}


/* GLOBALS */

body {
    display: flex;
    flex-direction: column;
    font-family: var(--font-family-base);
    font-size: clamp(18px, 1.25vw, 24px);
    line-height: 1.3;
    color: var(--color-light);
    background: url("./image/background-image.jpg") center no-repeat;
    object-fit: fill;
}

main {
    flex-grow: 1;
}

a,
button,
label,
input, 
textarea,
select,
svg * {
    transition-duration: var(--transition-duration);
}

a {
    color: inherit;

    &[class] {
        text-decoration: none;
    }
}

:focus-visible {
    outline: rem(2) dashed var(--color-light);
    outline-offset: rem(4);
    transition-duration: 0s !important;
}

h1, .h1,
h2, .h2,
h3, .h3,
h4, .h4,
h5, .h5,
h6, .h6 {
    font-weight: 300;
    color: var(--color-light);
}

h1, .h1 {
    font-size: clamp(30px, 3.65vw, 70px);
}

h2, .h2 {
    font-size: clamp(28px, 3.02vw, 58px);
    line-height: 1.1;
}

h3, .h3 {
    font-size: clamp(24px, 2.08vw, 40px);
    line-height: 1.1;
}

h4, .h4 {
    font-size: clamp(18px, 1.35vw, 26px);
}

h6, .h6 {
    font-size: clamp(16px, 1.04vw, 20px);
}













/* HEADER */

.burger-button {
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 8.5px 4.25px;
    color: var(--color-light);
    background-color: transparent;
    border: none;
    width: 34px;
    height: 34px;
}

.burger-button:hover {
  color: var(--color-accent);
}

.burger-button__line {
  width: 100%;
  height: 2px;
  background-color: currentColor;
  border-radius: 16px;
  transition-duration: var(--transition-duration);
}

.burger-button.is-active .burger-button__line:first-child {
  rotate: 45deg;
  transform-origin: 0;
  translate: 0.25em -0.1em;
}

.burger-button.is-active .burger-button__line:nth-child(2) {
  rotate: -45deg;
}

.burger-button.is-active .burger-button__line:last-child {
  width: 0;
}

.header__body {
    display: flex;
    padding-block: 10px;
    justify-content: space-between;
    align-items: center;
    column-gap: 1rem;
}

.catolog-card__title {
  font-size: clamp(54px, 4.06vw, 88px);
}

.header__logo {
    padding: 14px 1px;
    color: var(--color-green);
}

.header__logo:hover {
  color: var(--color-green);
}

.header__menu-list {
    display: flex;
    align-items: center;
    column-gap: 15px;
}

.header__menu-link {
    padding: 14px 20px;
}

.header__menu-link.is-active {
  text-decoration: underline;
  text-underline-offset: 8px;
}

.header__menu-link:hover {
   
    text-decoration: underline;
    text-underline-offset: 8px;;
}




/* MAIN */

/* Catalog */
.catolog-card {
    display: flex;
    flex-direction: column-reverse;
    padding-block: 30px;
    align-items: center;
    column-gap: 1rem;
}

.catolog-card__body {
    display: grid;
    row-gap: 54px;
}

.catalog-card__description {
    color: var(--color-green);
}

.catalog-card__actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    column-gap: 1rem;
}

.actions-price__price {
    font-size: clamp(26px, 2.5vw, 48px);
}

.catalog-card__buy-link {
    max-width: 450px;
}

.catolog-card__image {
    max-height: 707px;
    width: 100%;
    object-fit: contain;
    border-radius: 15px;
}


/* MEDIA */

@media(width > 1024px) {
    .catolog-card {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(width <= 1024px) {
    .catolog-card {
        row-gap: 15px;
        padding-block: 20px;
    }

    .catolog-card__image {
      display: none;
        max-height: 500px;
    }

    .catolog-card__body {
        row-gap: 30px;
    }
}

@media(width > 767px) {
  .visible-mobile {
    display: none !important;
  }

  .header__overlay {
    display: contents;
  }
}

@media(width <= 767px) {
    .header__overlay {
      position: fixed;
      inset: 0;
      display: flex;
      flex-direction: column;
      justify-content: center;
      row-gap: 3rem;
      padding: 1rem;
      background-color: var(--color-green-alt);
      transition-duration: var(--transition-duration);
    }

    .header__overlay:not(.is-active) {
      opacity: 0;
      visibility: hidden;
      translate: 100%;
    }

    .header__menu-list {
      flex-direction: column;
      row-gap: 10px;
    }

    .catolog-card {
        row-gap: 10px;
        padding-block: 10px;
    }

    .catolog-card__body {
        row-gap: 15px;
    }

    .catolog-card__image {
        max-height: 468px;
    }

    .catalog-card__actions {
        flex-direction: column-reverse;
        row-gap: 10px;
    }

    .button {
        width: 100%;
    }
}


