@import url(./assets_main/css/fonts.css);

*,
*::before,
*::after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Colors */
  --color-accent: rgba(16, 123, 142, 1);
  --color-bg: rgba(239, 239, 239, 1);
  --color-text: rgba(41, 46, 50, 1);

  /* Typography */
  --font-base: "Source Sans", sans-serif;
  --font-size-base: 19px;
  --font-weight-normal: 400;
  --font-weight-bold: 700;
  --line-height-base: 32px;

  /* Borders & Radius */
  --border-radius: 4px;
  --border-color: rgba(216, 216, 216, 1);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
}

html {
  scroll-behavior: smooth;
}

html,
body {
  height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
  background-color: transparent;
}

ul,
ol {
  list-style: none;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-base);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-base);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin-left: 130px;
}

.link {
  color: var(--color-accent);
}

.link:hover {
  text-decoration: underline;
}

.hidden {
  display: none !important;
  visibility: hidden;
}

.clearfix:before,
.clearfix:after {
  content: " ";
  display: table;
}

.clearfix:after {
  clear: both;
}

.clearfix {
  zoom: 1;
}

/* Animations */
.fade-out {
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.main__btn {
  display: inline-block;
  color: var(--color-text);
  font-weight: 700;
  border-radius: var(--border-radius);
  padding: 16px 24px;
  font-size: 14px;
  line-height: 18px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

/* Header */
.header {
  background-color: rgba(255, 255, 255, 1);
  border-bottom: 1px solid rgba(216, 216, 216, 1);
}

.header__top-wrapper {
  padding: 10px 0px;
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.15);
}

.header__container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.header__top {
  display: flex;
  align-items: center;
}

.logo img {
  width: 100px;
  height: auto;
}

.header__search-form {
  margin: 0 auto;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 600px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 10px 0px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header__search-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  line-height: 1;
  color: var(--color-accent);
}

.header__search-btn:hover {
  opacity: 0.8;
}

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

.header__depot-link {
  background-color: rgba(177, 16, 41, 1);
  color: #fff;
  padding: 10px 15px;
}

.header__depot-link:hover {
  background-color: rgba(177, 16, 41, 0.8);
}

.header__icon-link.icon-login {
  display: flex;
  flex-direction: row;
  gap: 5px;
  align-items: center;
  font-weight: 700;
  border-radius: var(--border-radius);
  padding: 10px 15px;
  font-size: 14px;
  line-height: 18px;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
}

.header__icon-link.icon-login:hover {
  opacity: 0.8;
}

.header__icon-link.icon-search,
.header__icon-link.icon-menu {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.header__menu {
  position: relative;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 25px;
}

.main-nav__arrow {
  width: 23px;
  display: none;
  position: absolute;
  top: 0;
  right: -1px;
  bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 255, 255, 1) 100%
  );
}

.main-nav__arrow img {
  width: 12px;
  height: 12px;
}

.main-nav__link {
  color: var(--color-accent);
  font-size: 18px;
  line-height: 23px;
  font-weight: 400;
  transition: color 0.15s;
  white-space: nowrap;
}

.main-nav__link:hover {
  color: #a0111b;
}

.header__bottom {
  position: relative;
}

.header__bottom-content {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 5px 0px;
}

.header__news-bar {
  font-size: 14px;
  line-height: 19px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header__news-bar strong {
  font-weight: 700;
}

.header__quick-actions {
  display: flex;
  align-items: center;
}

.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  line-height: 16px;
  min-width: 90px;
}

.quick-action:hover {
  opacity: 0.7;
}

.quick-action img {
  width: auto;
  height: 16px;
}

.quick-action span {
  font-size: 12px;
  line-height: 16px;
}

/* Main */
.main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #fff;
  padding: 30px 20px;
  margin-bottom: 40px;
}

/* Article */
.article {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.article__header {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.article__title {
  font-family: "Source Serif", serif;
  font-size: 50px;
  line-height: 1.1;
  font-weight: 700;
}

.article__actions {
  display: flex;
  align-items: center;
  padding-top: 30px;
}

.article__text {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.article h3 {
  font-size: 32px;
  line-height: 1;
  font-weight: 700;
}

.article__list {
  padding-left: 30px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Comments */
.comments-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comments-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 15px;
}

.comments-section__title {
  font-size: 23px;
  font-weight: 700;
  line-height: 35px;
  text-transform: uppercase;
}

.comments-section__login-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comments-section__login-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  font-size: 17px;
  line-height: 26px;
}

.comments-section__login {
  background: #188493;
  color: #fff;
}

.comments-section__login:hover {
  background: #0e5b64;
}

.comments-section__count {
  align-self: flex-end;
  font-size: 23px;
  font-weight: 700;
  line-height: 35px;
  text-transform: uppercase;
}

.divider {
  width: 100%;
  height: 1px;
  background: rgba(239, 239, 239, 1);
}

.comments-section__comments-header {
  border-top: 1px solid rgba(160, 163, 166, 1);
  border-bottom: 1px solid rgba(160, 163, 166, 1);
  padding: 10px 0px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.comments-section__sort {
  display: flex;
  align-items: center;
  font-size: 16px;
}

.comments-section__sort-title {
  margin-right: 15px;
}

.comments-section__sort-link {
  color: var(--color-accent);
  display: flex;
  align-items: center;
  gap: 5px;
}

.comments-section__sort-link:hover {
  text-decoration: underline;
}

.comments-section__sort img {
  transform: rotate(180deg);
}

.comments-section__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comment {
  border-bottom: 1px solid rgba(160, 163, 166, 1);
  padding: 40px 0px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.comment__author {
  font-weight: 700;
  font-size: 17px;
  line-height: 26px;
}

.comment__date {
  font-weight: 400;
  font-size: 16px;
  line-height: 26px;
}

.comment__text {
  font-weight: 400;
  font-size: 16px;
  line-height: 26px;
}

.comment__reply-link {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--color-accent);
  font-size: 17px;
  line-height: 26px;
  font-weight: 700;
  text-decoration: none;
}
.comment__reply-link img {
  transform: rotate(180deg);
}

.comment__reply-link:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  background: rgba(41, 46, 50, 1);
  color: rgba(248, 248, 248, 1);
  padding: 50px 0px;
}

.footer__top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 50px;
  margin-bottom: 50px;
}

.footer__logo img {
  height: 41px;
}

.footer__nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 16px;
}

.footer__nav-link {
  transition: color 0.18s;
  font-weight: 400;
  text-transform: uppercase;
}

.footer__nav-link:hover {
  color: #1ea9bc;
}

.footer__content {
  margin-bottom: 30px;
}

.footer__content a {
  color: #1ea9bc;
}

.footer__content p {
  margin: 0 0 15px 0;
}

@media (max-width: 1024px) {
  .container {
    max-width: 884px;
    margin: 0 auto;
  }

  .header__search-form {
    max-width: 400px;
  }

  .main-nav {
    overflow-x: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-right: 20px;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header__news-bar {
    max-width: 365px;
  }
}

@media (max-width: 768px) {
  .header__search-form,
  .header__menu,
  .header__bottom {
    display: none;
  }

  .header__top {
    justify-content: space-between;
    padding: 0px 20px;
  }

  .header__nav {
    gap: 5px;
  }

  .header__icon-link {
    width: 40px;
    font-size: 12px;
    color: var(--color-accent);
    line-height: 18px;
  }

  .logo img {
    width: 70px;
  }

  .header__depot-link {
    margin-right: 10px;
    padding: 5px 15px;
  }

  .main__btn.header__depot-link span {
    display: none;
  }

  .quick-action--print {
    display: none;
  }

  .header__icon-link.icon-login {
    height: 100%;
    flex-direction: column;
    border: none;
    padding: 0;
    font-weight: 400;
    justify-content: space-between;
    align-items: center;
    gap: 0;
    font-size: 12px;
    line-height: 18px;
  }

  .header__icon-link.icon-search,
  .header__icon-link.icon-menu {
    display: flex;
    text-align: center;
  }

  .article__title {
    font-size: 25px;
  }

  .article__actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 1);
    border-top: 1px solid rgba(216, 216, 216, 1);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 0;
    z-index: 999;
  }

  .quick-action {
    flex: 1;
    min-width: auto;
  }

  body {
    font-size: 18px;
    line-height: 1.1;
  }

  .article,
  .article__header {
    gap: 10px;
  }

  .article__text {
    gap: 20px;
  }

  .article h3 {
    font-size: 28px;
  }

  .article__list {
    gap: 20px;
  }

  .comments-section__title,
  .comments-section__count {
    font-size: 18px;
  }

  .comment {
    padding: 20px 0px;
  }

  .main {
    margin-bottom: 0;
  }

  .footer {
    padding: 50px 20px;
  }

  .footer__content,
  .footer__copyright {
    font-size: 16px;
    line-height: 23px;
  }
}
