﻿/* ========== Header ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: 100%;
  background: var(--color-white);
  transition: transform 0.3s ease;
}

.header--hidden {
  transform: translateY(-100%);
}

.header__topbar {
  height: 40px;
  padding: 8px 0;
  background: var(--color-black);
}

.header__topbar .wrapper {
  height: 100%;
}

.header__top-link {
  display: flex;
  padding: 4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0;
  color: var(--color-white);
  transition: opacity 0.2s ease;
}

.header__top-link:hover {
  opacity: 0.75;
}

.header__main {
  border-bottom: 1px solid #ececf0;
}

.header__main-inner {
  position: relative;
  min-height: 76px;
}

.header__logo {
  display: block;
  width: 86px;
  height: 40px;
}

.header__logo-image {
  display: block;
  width: 100%;
  height: 100%;
}

.header__menu-title,
.header__burger {
  display: none;
}

.header__nav {
  display: none;
}

/* ========== Compact header ========== */
@media (max-width: 1279px) {
  .header {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
  }

  .header__main-inner {
    min-height: 58px;
  }

  .header__logo {
    width: 69px;
    height: 32px;
  }

  .header__menu-title {
    position: absolute;
    left: 52px;
    display: block;

    color: var(--color-black);
    font-size: 18px;
    font-weight: 700;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
  }

  .header__burger {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 8;
    display: flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
  }

  .header__burger-line {
    position: absolute;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #191a1f;
    transition: transform 0.35s ease, opacity 0.2s ease;
  }

  .header__burger-line:nth-of-type(1) {
    transform: translateY(-6px);
  }

  .header__burger-line:nth-of-type(3) {
    transform: translateY(6px);
  }

  .header__burger.active .header__burger-line:nth-of-type(1) {
    transform: rotate(45deg);
  }

  .header__burger.active .header__burger-line:nth-of-type(2) {
    opacity: 0;
  }

  .header__burger.active .header__burger-line:nth-of-type(3) {
    transform: rotate(-45deg);
  }

  .header__nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    z-index: 7;
    display: flex;
    width: 100%;
    height: calc(100dvh - var(--header-height));
    background: var(--color-white);
    border-top: 1px solid #e9eaee;

    transform: translateX(-100%);
    transition: transform 0.35s ease;
  }

  .header__nav.active {
    transform: translateX(0);
  }

  .header__menu {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px var(--padding-x);
  }

  .header__menu-item {
    width: 100%;
  }

  .header__menu-link {
    display: block;
    width: 100%;
    font-size: 16px;
    line-height: 1.4;
    color: var(--color-black);
    padding: 12px 0;
    border-bottom: 1px solid #ececf0;
  }

  .header--menu-open .header__menu-title {
    opacity: 1;
    visibility: visible;
  }

  body.hidden {
    overflow: hidden;
  }
}

@media (max-width: 767px) {
  .header__topbar {
    display: none;
  }

  .header__main {
    border-bottom: 0;
  }

  .header__main-inner {
    min-height: 42px;
  }

  .header__logo {
    width: 62px;
    height: 28px;
  }

  .footer__about {
    display: none;
  }
}

/* ========== Footer ========== */
.footer {
  min-height: 711px;
  display: flex;
  flex-direction: column;
  background: #f4f4f4;
}

.footer--home {
  margin-top: var(--padding-y);
}

.footer__brand-band {
  background: #f4f4f4;
}

.footer__brand-logo {
  padding: 138px 0 139px;
  text-align: center;
}

.footer__brand-logo img {
  display: block;
  width: min(100%, 706px);
  height: 55px;
  margin: 0 auto;
}

.footer__body {
  flex: 1;
  border-radius: 0 150px 0 0;
  overflow: hidden;
  background: #181818;
}

.footer__body .wrapper {
  width: calc(100% - 80px);
  max-width: none;
  min-height: 100%;
  padding-top: 64px;
  padding-bottom: 64px;
  max-width: 1440px;
}

.footer__nav {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

.footer__about {
  width: 329px;
  flex: 0 0 329px;
}

.footer__nav > :nth-child(2) {
  width: 156px;
  flex: 0 0 156px;
}

.footer__legal {
  flex: 0 0 auto;
}

.footer__menu-heading {
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: 0;
  text-transform: none;
  color: #939394;
}

.footer__menu-list {
  display: grid;
  gap: 0;
}

.footer__menu-list li,
.footer__menu-list a {
  font-size: 14px;
  font-weight: 500;
  line-height: 16px;
  color: #ffffff;
}

.footer__menu-list a:hover {
  color: #939394;
}

.footer__about .footer__menu-list li {
  font-weight: 400;
  line-height: 18px;
}

.footer__legal-links {
  gap: 16px;
  margin-left: 16px;
}

.footer__legal-links a {
  display: inline-flex;
  align-items: center;
  padding: 8px 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 12px;
  letter-spacing: 0.12px;
  text-transform: uppercase;
}

.footer__line {
  width: 100%;
  height: 1px;
  margin: 80px 0 44px;
  background: #ffffff;
}

.footer__info,
.footer__info a,
.footer__copyright {
  width: 724px;
  color: #939394;
  font-size: 10px;
  font-weight: 500;
  line-height: 12px;
}

.footer__info a {
  text-decoration: underline;
}

.footer__copyright {
  margin-bottom: 0;
}
.footer__email-link {
	text-decoration: underline;
}

@media (max-width: 1023px) {
  .footer {
    min-height: 0;
  }

  .footer__body {
    border-radius: 0 40px 0 0;
  }

  .footer__body .wrapper {
    width: calc(100% - var(--padding-x) * 2);
    max-width: none;
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .footer__brand-logo {
    padding: 48px 0 36px;
  }

  .footer__brand-logo img {
    width: min(85%, 430px);
    height: auto;
  }

  .footer__nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer__about,
  .footer__nav > :nth-child(2) {
    width: auto;
    flex-basis: auto;
  }

  .footer__line {
    margin: 32px 0 32px;
  }

  .footer__info,
  .footer__info a,
  .footer__copyright {
    width: 100%;
  }
}

@media (min-width: 768px) and (max-width: 1279px) {
  :root {
    --header-height: 76px;
  }

  .header {
    box-shadow: none;
  }

  .header__topbar,
  .header__burger,
  .header__menu-title {
    display: none;
  }

  .header__main-inner {
    width: 100%;
    min-height: 76px;
    justify-content: center;
    padding: 0 40px;
  }

  .header__logo {
    width: 86px;
    height: 40px;
  }

  .footer {
    flex: 0 0 0;
    min-height: 486px;
    height: 486px;
  }

  .footer__brand-band {
    flex: 0 0 216px;
    height: 216px;
  }

  .footer__brand-logo {
    padding: 88px 0;
  }

  .footer__brand-logo img {
    width: 524px;
    height: 40px;
  }

  .footer__body {
    flex: 0 0 270px;
    height: 270px;
    border-radius: 0 20px 0 0;
  }

  .footer__body .wrapper {
    width: calc(100% - 60px);
    height: 270px;
    padding: 40px 0px;
  }

  .footer__about {
    display: none;
  }

  .footer__nav {
    display: flex;
    gap: 24px;
  }

  .footer__nav > :nth-child(2) {
    width: 156px;
    flex: 0 0 156px;
  }

  .footer__legal {
    width: 209px;
    flex: 0 0 209px;
  }

  .footer__menu-heading {
    margin-bottom: 16px;
  }

  .footer__legal-links {
    gap: 12px;
  }

  .footer__legal-links a {
    min-height: 24px;
    padding: 7px 0;
    font-size: 10px;
    line-height: 10px;
    white-space: nowrap;
  }

  .footer__line {
    margin: 32px 0 16px;
  }

  .footer__info,
  .footer__info a,
  .footer__copyright {
    width: 100%;
  }
}
@media (max-width: 768px) {
	.footer__menu-heading,
	.footer__menu-list a {
		font-size: 12px;
		line-height: 14px;
	}
	.footer__legal-links a {
		font-size: 10px;
		line-height: 10px;
		letter-spacing: 0.1px;
		min-height: 24px;
	}
	.footer__legal-links {
		gap: 12px;
	}
	.footer__info {
		font-size: 9px;
		line-height: 12px;
	}
	.footer__legal-links {
		margin-left: 0px;
	}
	
}