html {
    box-sizing: border-box;
}
*, *::before, *::after {
    box-sizing: inherit;
}
html, body, h1, h2, h3, h4,
h5, h6, p, a, li, ul {
  margin: 0;
  padding: 0;
  text-decoration: none;
  list-style: none;
  color: black;
  font-size: 14px;
}
body {
    background: #F4F6F6;
}
.container {
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  padding: 0px 15px;
}
.header {
    background: #EDF7F1;
    padding: 15px 0;
}
.header__wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;    
}
.menu {
    display: flex;
    align-items: center;
    gap: 5px;
    padding-left: 48px;
}
.menu__item {
    color: #000;
    font-family: Roboto;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    padding: 8px 15px;
    transition: all 0.2s ease;
    border-radius: 20px;
}
.menu__item:hover {
    border-radius: 20px;
    background: rgba(0, 102, 255, 0.1);
    color: var(--Brandeis-blue, #06f);
    font-family: "Roboto";
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}
.search {
    padding: 15px;
    display: flex;
    align-items: center;
    border-radius: 25px;
    /* background: #edeef0; */
    background: #fff;
    flex: 0 1 300px;
    gap: 7px;
    transition: all 0.2s ease;
}
.search__icon {
    min-width: 20px;
    max-width: 20px;
    aspect-ratio: 1;
    background-image: url("../img/search.svg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.search__input {
    width: 100%;
    background-color: transparent;
    border: none;
    color: var(--Text-Tag, #8b92a5);
    font-family: "Roboto";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    outline: none;
}
.search__input::placeholder {
    color: var(--Text-Tag, #8b92a5);
}
.search:focus-within {
    background: #e4e5e9;
}
.headline {
    /* aspect-ratio: 1440/537; */
    min-height: 537px;
    background-image: url("../img/background.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding-top: 50px;
	border-radius: 5px;
}
.headline__title {
    color: #fff;
    font-family: Roboto;
    font-size: 28px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin-bottom: 30px;
}
.headline__subtitle {
    color: #626d7a;
    font-family: Roboto;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin-bottom: 20px;
}
.headline__announce {
    color: rgba(255, 255, 255, 0.9);
    font-family: Roboto;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    max-width: 540px;
}
.main {
    /* background: #F4F6F6; */
    margin-bottom: 120px;
}
.about__main {
    margin-bottom: 120px;
}
.main__wrapper {
    display: flex;
    gap: 30px;
}
.news {
    width: 100%;
    margin-top: -180px;
}
.news__item {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #dce1e6;
    background: #fff;
    padding: 20px;
}
.about__item {
    display: flex;
    width: 100%;
    border-radius: 12px;
    border: 1px solid #dce1e6;
    background: #fff;
    padding: 20px;
}
.about__content {
    width: 100%;
    margin-top: -180px;
}
.card__header {
    display: flex;
    align-items: start;
    gap: 37px;
}
.card__title {
    color: #000;
    font-family: Roboto;
    font-size: 32px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: -0.32px;
}
.card__share {
    width: 34px;
    min-width: 34px;
    aspect-ratio: 1;
    background-image: url("../img/share.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}
.card__text {
    color: #626d7a;
    font-family: Roboto;
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: 163%; /* 24.45px */
    letter-spacing: -0.15px;
    margin-bottom: 30px;
    display: block;
    display: -webkit-box;
    -webkit-line-clamp: 5; /* количество строк */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.about__text {
    color: #626d7a;
    font-family: Roboto;
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: 163%; /* 24.45px */
    letter-spacing: -0.15px;
    margin-bottom: 30px;
    display: block;
    /* display: -webkit-box; */
    -webkit-line-clamp: 5; /* количество строк */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 30px;
}
.card__footer {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
}
.card__date {
    color: var(--Text-Tag, #8b92a5);
    font-family: Arial;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: -0.14px;
}
.card__img {
    width: 100%;
    object-fit: cover; /* установите, как изображение должно масштабироваться внутри контейнера */
    object-position: center;
    aspect-ratio: 16/9;
    border-radius: 8px;
    margin-top: 30px;
}
.tags {
    display: flex;
    width: 100%;
    padding: 30px 0;
}
.tags__item {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 6px 12px;
    color: var(--Text-Tag, #8b92a5);
    font-family: Roboto;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: -0.14px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.tags__item:hover {
    color: var(--Brandeis-blue, #06f);
    border: 1px solid var(--Brandeis-blue, #06f);
}
.btn {
    color: var(--Brandeis-blue, #06f);
    font-family: Roboto;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: -0.14px;
    padding: 8px 15px;
    border-radius: 20px;
    background: rgba(0, 102, 255, 0.1);
    transition: all 0.2s ease;
}
.btn:hover {
    background: var(--Brandeis-blue, #06F);
    color: #fff;
}
.categories {
    width: 100%;
    max-width: 300px;
    margin-top: -180px;
}
.categories__decor {
    display: flex;
    margin-bottom: 20px;
    gap: 10px;
}
.categories__decor .decor {
    flex: 1 1 auto;
    aspect-ratio: 110/50;
    border-radius: 12px;
}
.categories__decor .decor-1 {
    background: #c93a35;
}
.categories__decor .decor-2 {
    background: #00a2f3;
}
.categories__decor .decor-3 {
    background: #272a34;
}
.categories__menu {
    border-radius: 12px;
    border: 1px solid #dce1e6;
    background: #fff;
    padding: 20px;
}
.categories__title {
    color: #000;
    font-family: Arial;
    font-size: 15px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: -0.15px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.categories__icon {
    display: inline-block;
    min-width: 26px;
    aspect-ratio: 1;
    background-image: url("../img/folder.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.categories__item {
    width: 100%;
    display: block;
    color: #000;
    font-family: Arial;
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: -0.15px;
    padding: 9px 0;
    border-top: 1px solid #DCE1E6;
}
.categories__item:last-child {
    padding-bottom: 0;
}
.contacts__main {
    margin-bottom: 120px;
}
.contacts__menu {
    margin-bottom: 30px;
}
.contacts__content {
    width: 100%;
    margin-top: -180px;
    border-radius: 12px;
    border: 1px solid #dce1e6;
    background: #fff;
    padding: 20px;
}
.contacts__menu-item {
    display: flex;
    position: relative;
    align-items: center;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 14px;
    user-select: none; 
}
.contacts__menu-item-pic {
    padding-left: 12px;
}
.contacts__menu-item-text {
    padding-left: 18px;
}
.contacts__text,
.contacts__menu-text {
    color: #626d7a;
    font-family: Roboto;
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: 163%; /* 24.45px */
    letter-spacing: -0.15px;
    margin-bottom: 30px;
    display: block;
    /* display: -webkit-box; */
    -webkit-line-clamp: 5; /* количество строк */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 30px;
}
.contacts__menu-text {
    font-size: 24px;
}
.contacts__form {
    margin-bottom: 56px;
}
.input-box {
    height: 50px;
    width: 100%;
    margin-bottom: 20px;
}
.input-box input,
.input-box textarea {
  height: 100%;
  width: 50%;
  border: none;
  border-radius: 5px;
  /* background: #f0f1f8; */
  background: rgba(0, 102, 255, 0.1);
  padding: 0 20px;
}
.input-box textarea {
    resize: none;
    padding: 20px;
    font-family: "Roboto", sans-serif;
}
.message-box {
    min-height: 110px;
}
.contacts__form-button {
    display: inline-block;
}
.contacts__form-button input[type="button"] {
    /* color: #fff; */
    color: var(--Brandeis-blue, #06f);
    font-size: 16px;
    /* background: #3e2093; */
    background: rgba(0, 102, 255, 0.1);
    outline: none;
    border: none;
    padding: 10px 20px;
    border-radius: 7px;
    transition: 0.2s;
}
.contacts__form-button input[type="button"]:hover {
    color: #fff;
    background: rgb(0, 0, 207);
}
.footer {
    /* background-color: #fff; */
    background: #EDF7F1;
    padding-top: 50px;
    padding-bottom: 20px;
    /* margin-top: 138px; */
}
.footer__info {
    padding-bottom: 20px;
    border-bottom: 1px solid #dce1e6;
}
.footer__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 200px;
}
.footer__logo {
    display: flex;
    align-items: center;
    gap: 25px;
}
.footer__controls {
    margin-top: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #dce1e6;
}
.footer__copyright {
    color: var(--Text-Tag, #8b92a5);
    font-family: Roboto;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px; /* 171.429% */
}
.footer__bottom {
    margin-top: 20px;
}
.footer .menu {
    flex-wrap: wrap;
    gap: 12px 36px;
}
.footer .menu__item {
    padding: 0;
    white-space: nowrap;
    font-weight: 400;
}
.footer .menu__item:hover {
    color: #000;
    background-color: transparent;
}
.logo__title {
    color: #000;
    font-family: Roboto;
    font-size: 18px;
    font-style: italic;
    font-weight: 500;
    line-height: normal;
}
.logo__subtitle {
    color: #626d7a;
    font-family: Roboto;
    font-size: 14px;
    font-style: italic;
    font-weight: 400;
    line-height: normal;
}
.up {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 15px;
}
.up__text {
    color: var(--Brandeis-blue, #06f);
    font-family: Roboto;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px; /* 150% */
}
.up__ico {
    min-width: 36px;
    max-width: 36px;
    aspect-ratio: 1;
    width: 100%;
    border-radius: 80px;
    background: rgba(0, 102, 255, 0.1);
    background-image: url("../img/arr.svg");
}
.n-mode {
    display: flex;
    align-items: center;
    gap: 15px;
}
.n-mode__ico {
    width: 18px;
    aspect-ratio: 1;
    background-image: url("../img/moon.svg");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}
.n-mode__text {
    color: #000;
    font-family: Roboto;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    white-space: nowrap;
}
#n-mode {
    display: none;
}
#n-mode:checked + .switch__decor {
    background-color: #b8c9df;
}
#n-mode:checked + .switch__decor .switch__circle {
    border: 3px solid #b8c9df;
    left: calc(100% - 8px);
}
.switch__decor {
    display: block;
    background-color: #000;
    min-width: 28px;
    aspect-ratio: 2/1;
    border-radius: 20px;
    position: relative;
    transition: all 0.2s ease;
}
.switch__circle {
    position: absolute;
    width: 18px;
    aspect-ratio: 1;
    border: 3px solid #000;
    background-color: #fff;
    border-radius: 50%;
    left: 8px;
    top: 50%;
    translate: -50% -50%;
    transition: all 0.2s ease;
}
.madeby {
    display: flex;
    align-items: center;
    gap: 10px;
}
.madeby__ico {
    width: 27px;
    height: 24px;
    background-image: url("../img/madeby.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}
.madeby__text {
    color: var(--Text-Tag, #8b92a5);
    text-align: right;
    font-family: Montserrat;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}