@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(255, 128, 0, 1);
  --color-bg: rgba(255, 255, 255, 1);
  --color-text: rgba(78, 78, 78, 1);

  /* Typography */
  --font-base: "Open Sans", sans-serif;
  --font-size-base: 24px;
  --font-weight-normal: 400;
  --font-weight-bold: 700;
  --line-height-base: 1.3;

  /* Borders & Radius */
  --border-color: rgba(217, 217, 217, 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: 1060px;
  margin: 0 auto;
}

.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;
  }
}

/* Header */
.header {
  background: rgba(78, 78, 78, 1);
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
}

.header__top {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 1);
}

.header__top .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__hot-deal-icon {
  width: 109px;
  height: 30px;
}

.header__burger-link {
  display: none;
}

.header__right {
  display: flex;
  align-items: center;
  gap: 139px;
}

.header__search-form {
  width: 216px;
  display: flex;
  align-items: center;
  color: #fff;
  border-bottom: 1px solid #fff;
  padding-bottom: 1px;
  height: 32px;
}

.header__search-input {
  font-family: "Harmattan", sans-serif;
  font-weight: 500;
  line-height: 1;
  font-size: 18px;
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  outline: none;
  height: 100%;
}

.header__search-input::placeholder {
  color: #fff;
}

.header__search-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px;
}

.header__nav-link {
  font-family: "Harmattan", sans-serif;
  height: 31px;
  color: #fff;
  font-weight: 500;
  font-size: 18px;
  transition: color 0.15s;
}

.header__nav-link--active {
  font-weight: 700;
  border-bottom: 2px solid var(--color-accent);
}

.header__nav-link:hover {
  border-bottom: 2px solid var(--color-accent);
}

.main {
  padding: 40px 0px 48px 0px;
}

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

.breadcrumbs {
  display: flex;
  align-items: center;
  font-family: "Harmattan", sans-serif;
  font-size: 12px;
  line-height: 1.1;
  font-weight: 400;
  gap: 12px;
}

.breadcrumb-link {
  transition: color 0.12s;
}

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

.breadcrumb-link--active {
  color: var(--color-accent);
  font-weight: 600;
}

.breadcrumb-sep img {
  width: 8.33px;
}

.article {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.article-header {
}

.article-meta {
  font-family: "Harmattan", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.1;
  margin-bottom: 17px;
}

.article-title {
  font-size: 46px;
  font-weight: 700;
  margin-bottom: 24px;
}

.article-subtitle {
  font-size: 28px;
  margin-bottom: 40px;
}

.article-social {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 22px;
  margin-top: 22px;
}

.article-social-btn {
  transition: scale 0.15s;
}

.article-social-btn:hover {
  scale: 1.1;
}

.article-social-icon {
  width: 36px;
  height: 36px;
  display: block;
}

.article-body {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.article-body h2 {
  font-size: 32px;
  font-weight: 700;
}

.article-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-left: 32px;
}

.article-image img {
  width: 100%;
}

/* Comments */
.comments {
  margin-top: 52px;
  border-top: 4px solid rgba(217, 217, 217, 1);
  border-bottom: 4px solid rgba(217, 217, 217, 1);
  padding: 24px 0 0 0;
}

.comments__title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 32px;
}

.comments__list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-left: 64px;
}

.comments__item {
  display: flex;
  gap: 16px;
  border-bottom: 1px solid rgba(168, 168, 168, 1);
  padding-bottom: 24px;
}

.comments__avatar {
  width: 48px;
  height: 48px;
  object-fit: cover;
  flex-shrink: 0;
}

.comments__content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.comments__author {
  font-weight: 600;
  margin-bottom: 8px;
}

.comments__text {
  margin-bottom: 18px;
}

.comments__actions {
  font-size: 18px;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 20px;
}

.comments__action-link {
  transition: color 0.13s;
  cursor: pointer;
}

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

.comments__action-time {
  color: rgba(168, 168, 168, 1);
}

.comments__actions-sep {
  color: rgba(168, 168, 168, 1);
  font-weight: 700;
}

.comments-form {
  padding: 32px 0px 24px 0px;
  text-align: center;
}

.comment-form__title {
  font-size: 24px;
  color: var(--color-accent);
  margin-bottom: 32px;
  font-weight: 600;
}

.comment-form {
  max-width: 804px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.comment-form__textarea {
  width: 100%;
  height: 190px;
  font-size: 18px;
  border: 1px solid rgba(168, 168, 168, 1);
  padding: 16px 0px 0px 22px;
  margin-bottom: 32px;
  resize: none;
  box-sizing: border-box;
}

.comment-form__textarea::placeholder {
  color: rgba(168, 168, 168, 1);
}

.comment-form__submit-link {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  text-align: center;
  padding: 8px 32px;
  transition: background 0.13s;
}

.comment-form__submit-link:hover {
  background: #ff9900;
}

.footer {
  background: rgba(78, 78, 78, 1);
  padding: 32px 0px;
  color: #fff;
  text-align: center;
}

.footer__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 18px;
  font-weight: 600;
  flex-wrap: wrap;
}

.footer-link {
  transition: color 0.13s;
}

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

.footer__disclaimer {
  font-size: 16px;
}

@media (max-width: 1024px) {
  .container {
    max-width: 704px;
  }

  .header__right {
    gap: 50px;
  }

  .header__nav-list {
    gap: 0px;
    justify-content: space-between;
  }

  .header__nav-link {
    white-space: nowrap;
    font-size: 16px;
  }

  .article-title {
    font-size: 32px;
  }

  .article-subtitle {
    font-size: 24px;
  }

  .article-body {
    gap: 26px;
  }

  .article-body h2 {
    font-size: 26px;
  }

  .comments__list {
    margin: 0px 32px;
  }

  .comments__author,
  .comments__text {
    font-size: 22px;
  }

  .comment-form {
    max-width: 640px;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 100%;
    padding: 0px 12px;
  }

  .header__top {
    border: none;
  }

  .header__nav {
    display: none;
  }

  .header__right {
    gap: 20px;
  }

  .header__search-form {
    border: none;
    width: auto;
  }

  .header__search-input {
    display: none;
  }

  .header__burger-link {
    display: block;
  }

  .main {
    padding: 26px 0px;
  }

  .article-title {
    font-size: 24px;
  }

  .article-subtitle {
    font-size: 18px;
  }

  .article-body h2 {
    font-size: 20px;
  }

  body {
    font-size: 18px;
  }

  .comments__list {
    margin: 0;
  }

  .comments__author {
    font-size: 20px;
  }

  .comments__text {
    font-size: 18px;
  }

  .comments__actions {
    font-size: 14px;
    gap: 10px;
  }

  .comment-form__title {
    font-size: 20px;
  }

  .comment-form__textarea {
    height: 92px;
  }
}
