html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: none;
    
    
    vertical-align: baseline;
    text-decoration: none;
    color: inherit;

    font: inherit;
    font-size: inherit;
    font-weight: inherit;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}
html {
    height: 100%;
}
body {
    max-width: 100vmax;

    line-height: 1;
}
ol, ul, li {
    list-style: none;
}
a, a:link, a:visited, a:hover {
    text-decoration: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}
address {
  font-style: normal;
}

input, textarea, button, select {
	border: none;
    color: inherit;
    background-color: transparent;

    font-family: inherit;
    font-size: inherit;
}

input::-ms-clear {
	display: none;
}
button, input[type="submit"] {
    display: inline-block;

    background: none;
    background-color: transparent;
    box-shadow: none;
    
    cursor: pointer;
}

input:focus, input:active,
button:focus, button:active {
    outline: none;
}
@font-face {
  font-family: "Red Molot";
  src: url(fonts/e8bd1aede211ea46e390.ttf) format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hauora";
  src: url(fonts/75ce1cd3ffd0985f06df.ttf) format("truetype");
  font-weight: 300;
  font-style: normal;
}
:root {
    --ver-margin: 20px;
    --hor-margin: 40px;
}
.podcast-types, .test-types, .podcasts {
  --main-color: white;
  --secondary-color: black;
}

.promo, .articles, .about, .styleguide, .tests {
  --main-color: black;
  --secondary-color: white;
}
html {
  overflow-x: hidden;
  height: 100%;
}
body {
  font-family: Arial;
  font-size: 14px;
  min-width: 100vw;
  min-height: 100vh;
  overflow-x: hidden;
  height: 100%;

  background-color: var(--main-color);
  color: var(--secondary-color);
  /* padding: var(--ver-margin) var(--hor-margin); */
  box-sizing: border-box;
}
h1 {
    font-family: 'Red Molot';
    font-size: min(20vw,100px);
    /* font-size: 200px; */
    white-space: nowrap;
}
h2 {
    font-family: 'Red Molot';
    font-size: min(15vw, 150px);
    /* font-size: 150px; */
    white-space: nowrap;
}
h3 {
    font-family: 'Red Molot';
    font-size: min(10vw, 100px);
    /* font-size: 100px; */
    white-space: nowrap;
}
h4 {
    font-family: 'Red Molot';
    font-size: min(5vw, 50px);
    /* font-size: 50px; */
}
.p1 {
    font-family: 'Hauora';
    font-size: min(3.6vw, 36px);
    /* font-size: 36px; */
}
.p2 {
    font-family: 'Hauora';
    font-size: min(2.4vw, 24px);
    /* font-size: 24px; */
}
.p3, .tag, .btn {
    font-family: 'Hauora';
    font-size: min(1.8vw, 18px);
    /* font-size: 18px; */
}
.p4 {
    font-family: 'Hauora';
    font-size: min(1vw, 10px);
    /* font-size: 10px; */
}



img {
    display: block;
}
.logo-link {
    transition: 0.3s ease;
}
.logo-link:hover {
    scale: 1.1;
}


.menu-icon {
    width: 100%;
    height: auto;
}
.card__icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%)
}
.tag, .btn, .input {
  padding: 8px 16px;
  border: 1.5px solid var(--main-color);
  border-radius: 100px;
  background: var(--secondary-color);
  color: var(--main-color);
  font-size: 14px;
  white-space: nowrap;
  width:  fit-content;
  height: 34px;
  box-sizing: border-box;

  transition: 0.2s ease;
}

.tag:hover, .btn:hover , .input:hover {
  filter: invert();
  cursor: pointer;
}






/* MENU */
.menu-button {
  position: fixed;


  /* left: var(--hor-margin); */
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;

  width: 40px;
  height: 172px;
  padding: 0 10px;
  border-radius: 0px;
}

.menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 998;
}

.menu-backdrop--open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.menu-panel {
  position: fixed;
  /* left: 24px; */
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-left: 100px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 999;
}

.menu-panel--open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

/* .menu-panel__button {
  border-radius: 0;
} */
.menu-panel__button:hover {
  transform: scale(1.05);
}




.start-screen-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
} 
.start-screen-nav img {
  rotate: 90deg;
}
/* HEADER */
.header, .footer {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;

  padding: 20px 20px;
  box-sizing: border-box;
  border: 1px solid var(--secondary-color);
  border-width: 1px 0;
}


.search {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.input {
  display: flex;
}



/* .input {
  
  height: 100%;
  border: 1.5px solid black;
  border-radius: 20px;
  background: white;
} */

/* .input:focus {
  border-color: black;
} */



/* .filter-tags {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
} */

/* .filter-tag {
  padding: 8px 16px;
  border: 1.5px solid black;
  border-radius: 20px;
  background: white;
  color: black;
  font-family: "Kiwi Maru", Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
} */

/* .filter-tag--clear {
  padding: 8px;
  min-width: 32px;
  cursor: pointer;
  background: white;
  border: 1.5px solid black;
} */




.header__logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: "Red Molot", Arial, Helvetica, sans-serif;
  font-weight: normal;
  font-size: 44px;
  line-height: 1.2;
  color: var(--secondary-color);
  white-space: nowrap;
}

/* CARD */
.card {
  position: relative;
  /* width: 430px;
  height: 580px; */
  height: 580px;
}
.card__front{
  z-index: 1;
  position: relative;
  background-color: var(--main-color);
  color: var(--secondary-color);
  border: 1px solid var(--secondary-color);
}
.card__back{
  z-index: 0;
  position: absolute;
  top: 0;
  width: 100%;
  background-color: var(--secondary-color);
  color: var(--main-color);
  border: 1px solid var(--secondary-color);
  transform: rotateY(-180deg);
}
.card__front, .card__back {
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  padding: 24px 12px;
  box-sizing: border-box;
  height: 100%;
  backface-visibility: hidden;
  transition: transform 0.6s ease;
}

.card:hover .card__back {
  transform: rotateY(0deg);
  z-index: 2;
}
.card:hover .card__front {
  transform: rotateY(180deg);
  z-index: -1;
}

/* ТЕСТЫ */
.test-types-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.test-types-nav a {
  width: 100%;
  text-align: center;
  background-color: var(--main-color);
}
.test-types-nav a:hover {
  /* background-color: black;
  color: white; */
  filter: invert();
}

.main {
    margin: 0 calc(var(--hor-margin)*2);
}
.main-promo, .main-about, .main-styleguide, .main-podcast-types, .main-articles, .main-podcasts, .main-tests {
    border: 1px solid var(--secondary-color);
    border-width: 0 1px;
}

.cards-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}



.start-screen {
    padding: calc(var(--hor-margin)*2);
    box-sizing: border-box;
    background-color: var(--secondary-color);
    color: var(--main-color);
    width: 100vw;
    height: 100vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.start-screen h1 {
    text-decoration: 2px underline;
}
.start-screen>h1>img {
    display: inline-block;
    width: 100px;
    height: 10px;
    background-color: black;
}




