/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --logo-clr: #495057;
  --logo-clr: #495057;
  --hero-banner-clr: #f6f6f8;
  --primary-blue: #0178d4;
  --bs-gray: #ced4da;
  --blue-bg: #d0f0f3;
  --bs-light: #f8f9fa;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 10px;
}

/* Remove default margin */
body,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
  font-family: Segoe UI, Arial, sans-serif;
}

h1 {
  font-family: Lato, Arial, sans-serif;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role="list"],
ol[role="list"] {
  list-style: none;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@font-face {
  font-family: "Segoe UI";
  src: url("fonts/SegoeUI-Semibold.eot");
  src: url("fonts/SegoeUI-Semibold.eot?#iefix") format("embedded-opentype"),
    url("fonts/SegoeUI-Semibold.woff2") format("woff2"),
    url("fonts/SegoeUI-Semibold.woff") format("woff"),
    url("fonts/SegoeUI-Semibold.ttf") format("truetype"),
    url("fonts/SegoeUI-Semibold.svg#SegoeUI-Semibold") format("svg");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Segoe UI";
  src: url("fonts/SegoeUI.eot");
  src: url("fonts/SegoeUI.eot?#iefix") format("embedded-opentype"),
    url("fonts/SegoeUI.woff2") format("woff2"),
    url("fonts/SegoeUI.woff") format("woff"),
    url("fonts/SegoeUI.ttf") format("truetype"),
    url("fonts/SegoeUI.svg#SegoeUI") format("svg");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Segoe UI";
  src: url("fonts/SegoeUI-Bold.eot");
  src: url("fonts/SegoeUI-Bold.eot?#iefix") format("embedded-opentype"),
    url("fonts/SegoeUI-Bold.woff2") format("woff2"),
    url("fonts/SegoeUI-Bold.woff") format("woff"),
    url("fonts/SegoeUI-Bold.ttf") format("truetype"),
    url("fonts/SegoeUI-Bold.svg#SegoeUI-Bold") format("svg");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

body {
  background-color: #83c8f4;
}

main {
  width: min(100%, 1000px);
  width: min(100%, 1000px);
  background-color: white;
  margin-inline: auto;
  counter-reset: footnotes;
}

header {
  width: min(100%, 1000px);
  width: min(100%, 1000px);
  background-color: white;
  margin-inline: auto;
}

footer {
  width: 1000px;
  background-color: white;
  margin-inline: auto;
}

.container {
  width: min(1000px, 80%);
  width: min(1000px, 80%);
  height: 100%;
  margin-inline: auto;
}

.header__logos {
  display: flex;
  padding-block: 0.5rem;
  justify-content: space-between;
}

.header__logo {
  max-height: 45px;
}

.header__logo:first-of-type {
  filter: drop-shadow(0px 100px 0 var(--logo-clr));
  transform: translateY(-100px);
}

.hero-banner {
  height: min(30rem, 400px);
  height: min(30rem, 400px);
  background-image: url("img/landing_page_hero_large.jpg");
  background-size: contain;
  background-color: var(--hero-banner-clr);
  background-position: right;
  background-repeat: no-repeat;
  background-origin: content-box;
  background-clip: content-box, padding-box;
}

.hero-banner__text {
  display: flex;
  height: 100%;
  width: fit-content;
  flex-direction: column;
  justify-content: center;
  gap: 30px;
}

.hero-banner__text h1 {
  width: 60%;
  margin-block: 0;
  font-size: 40px;
  line-height: 1.1;
  font-weight: 300;
}

.new-phase-wrapper {
  text-align: center;
}

.new-phase_upper-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.new-phase__title {
  font-size: 2rem;
  font-weight: 400;
}

.new-phase__text {
  font-size: 17.6px;
}

.new-phase_cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-block: 32px;
  column-gap: 1.2rem;
}
.new-phase__card {
  display: flex;
  padding: 10px 20px;
  flex-direction: column;
  border: solid 1px #cccccc;
  text-align: center;
}

.new-phase__card_upper-text {
  margin-bottom: 20px;
  font-size: 2rem;
  font-weight: 600;
}

.new-phase__card_lower-text {
  font-size: 0.9rem;
}

.new-phase_lower-wrapper {
  display: flex;
  padding-block: 32px;
  flex-direction: column;
  gap: 20px;
}

.products-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.products_item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.products_item__image {
  margin-bottom: auto;
}

.products_item__specs {
  margin-block: 0;
  padding-left: 1rem;
  font-size: 14px;
}

.book-wrapper {
  margin-block: 48px;
}

.book-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.book_text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.book__img {
  width: 285px;
  margin-left: auto;
  aspect-ratio: 1/1;
}

.book_text__title {
  font-size: 20px;
  font-weight: 600;
}

.book_text__description {
  font-size: 14px;
}

.tabs__wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
  text-align: center;
}

.tabs__title {
  font-size: 2rem;
  font-weight: 400;
}

.tabs_buttons {
  display: flex;
  font-size: 14px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.tabs__button {
  flex: 1;
  padding-block: 14px;
  background-color: transparent;
  border: none;
  border-bottom: 4px solid transparent;
}

.tabs__button:hover {
  border-bottom: 4px solid var(--primary-blue);
}

.tabs__card {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  direction: rtl;
  gap: 1rem;
  gap: 1rem;
}

.tabs__card:nth-of-type(even) {
  direction: ltr;
}

.tabs__card_text_title {
  font-size: 20px;
  font-weight: 600;
}

.tabs__card_text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tabs__card_text_description {
  border: none;
}

.br-left {
  padding-left: 20px;
  border-left: 3px solid #45adc1;
}

.tabs__card_img {
  align-self: center;
  width: max(378px, 100%);
  align-self: center;
  width: max(378px, 100%);
}

.standart {
  padding-block: 2rem;
  text-align: center;
}

.standart_text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.standart_text__title {
  font-size: 32px;
}

.standart_text__description {
  margin-inline: 10%;
}

.next-step {
  padding: 32px;
  text-align: center;
  background-color: var(--blue-bg);
}

.next-step-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.next-step__title {
  font-size: 24px;
}

@media (max-width: 850px) {
  .hero-banner {
    all: unset;
  }
  .hero-banner__text {
    text-align: center;
    gap: 2rem;
  }
  .hero-banner__text h1 {
    width: 100%;
    font-size: 2rem;
  }
  .header__logos {
    all: unset;
    margin-inline: 0.5rem;
  }
  .header__logo:first-of-type {
    margin: 0 auto 0.5rem auto;
  }
	
  .products-wrapper {
   display: grid;
   grid-template-columns: 1fr;
  }	
	
  .new-phase_cards {
    grid-template-columns: 1fr;
  }

  .tabs__card {
    grid-template-columns: 1fr;
  }
  .book__img {
    align-self: center;
  }
  .tabs_buttons {
    display: none;
  }
}

@media (max-width: 850px) {
  .hero-banner {
    height: 100%;
  }
  .hero-banner__text {
    padding: 1rem;
    gap: 0.5rem;
  }

  .hero-banner__text h1 {
    width: 100%;
    font-size: 2rem;
  }
  .header__logos {
    flex-direction: column;
  }
  .new-phase_cards {
    grid-template-columns: 1fr;
  }

  .tabs__card {
    grid-template-columns: 1fr;
  }
  .book__img {
    align-self: center;
  }
  .tabs_buttons {
    display: none;
  }
}

.divider {
  width: min(800px, 100%);
  width: min(800px, 100%);
  height: 1px;
  margin: 2rem auto;
  background-color: var(--bs-gray);
}

.footnotes {
  font-size: 12px;
  padding-block: 2rem;
  background-color: var(--bs-light);
}

[aria-describedby="footnote-label"] {
  counter-increment: footnotes;
  text-decoration: none;
  color: inherit;
  cursor: default;
  outline: none;
}

[aria-describedby="footnote-label"]::after {
  content: "" counter(footnotes) "";
  vertical-align: super;
  font-size: 0.5em;
  margin-left: 2px;
  text-decoration: none;
  cursor: pointer;
}

[aria-describedby="footnote-label"]:focus::after {
  outline: thin dotted;
  outline-offset: 2px;
}

[aria-label="Back to content"] {
  font-size: 9.6px;
}

.footnotes {
  width: min(100%, 1000px);
}

.footnotes {
  width: min(100%, 1000px);
}

.footnotes :target {
  color: blue;
  background: var(--blue-color);
}

.visually-hidden {
  position: absolute;
  clip: rect(0 0 0 0);
  visibility: hidden;
  opacity: 0;
}

.crossed {
  text-decoration: line-through;
}

.button {
  padding: 0.5rem;
  border: none;
  font-size: 0.7rem;
  font-size: 0.7rem;
  font-weight: 300;
  color: white;
  background-color: var(--primary-blue);
}

.button:hover {
  cursor: pointer;
}

.fz-300 {
  font-size: 0.5rem;
}
.fz-400 {
  font-size: 1rem;
}
.fz-600 {
  font-size: 1.5rem;
}
.fz-700 {
  font-size: 2rem;
}
.fz-900 {
  font-size: 3rem;
}

.fw-300 {
  font-weight: 300;
}
.fw-400 {
  font-weight: 400;
}
.fw-600 {
  font-weight: 600;
}
.fw-700 {
  font-weight: 700;
}
.fw-900 {
  font-weight: 900;
}

.p-32 {
  padding-block: 32px;
}

.mb-60 {
  margin-bottom: 60px;
}

.mb-50 {
  margin-bottom: 50px;
}

.mb-40 {
  margin-bottom: 40px;
}

.mb-30 {
  margin-bottom: 30px;
}

.mb-16 {
  margin-bottom: 16px;
}
