* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  background: #f2f2f2;
  color: #1d1d1d;
  font-family: Roboto, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
.ih-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}
.ih-top {
  position: sticky;
  top: 0;
  z-index: 50;
}
.ih-bar {
  background: #eb1e25;
  height: 60px;
}
.ih-bar .ih-wrap {
  display: flex;
  align-items: center;
  height: 60px;
  gap: 24px;
  overflow: hidden;
}
.ih-logo img {
  height: 24px;
  width: auto;
}
.ih-menu ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 22px;
  font-family: Rubik, sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #fff;
  white-space: nowrap;
}
.ih-menu a.active {
  border-bottom: 3px solid #fff;
  padding-bottom: 4px;
}
.ih-pret a {
  background: #fff;
  color: #eb1e25;
  padding: 6px 10px;
  border-radius: 3px;
}
.ih-sub {
  background: #fff;
  border-bottom: 1px solid #ebebeb;
}
.ih-sub .ih-wrap {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 46px;
  overflow-x: auto;
  white-space: nowrap;
}
.ih-sec {
  font-family: Rubik, sans-serif;
  font-weight: 700;
  color: #eb1e25;
  font-size: 15px;
}
.ih-sub ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 20px;
  font-family: Rubik, sans-serif;
  font-size: 14px;
  color: #4b4646;
}
.ih-sub a.active {
  color: #eb1e25;
  border-bottom: 2px solid #eb1e25;
  padding-bottom: 3px;
}
.ih-main {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding-top: 30px;
  padding-bottom: 40px;
}
.ih-article {
  flex: 1;
  min-width: 0;
  max-width: 800px;
  background: #fff;
  padding: 30px 40px 40px;
}
.ih-cat {
  font-family: Rubik, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: #eb1e25;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.ih-title {
  font-family: "Roboto Slab", serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.24;
  margin: 0 0 18px;
}
.ih-lead {
  font-size: 20px;
  line-height: 1.5;
  font-weight: 500;
  margin: 0 0 20px;
  color: #1d1d1d;
}
.ih-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #ebebeb;
  padding: 14px 0 18px;
  font-family: Rubik, sans-serif;
  font-size: 14px;
}
.ih-author b {
  display: block;
  color: #eb1e25;
}
.ih-author span {
  color: #777;
  font-size: 13px;
}
.ih-share {
  display: flex;
  gap: 8px;
}
.ih-share span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f2f2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #4b4646;
}
.ih-hero {
  margin: 0 0 24px;
}
.ih-hero img {
  width: 100%;
}
.ih-hero figcaption,
.ih-text .caption {
  font-family: Rubik, sans-serif;
  font-size: 13px;
  color: #6b6b6b;
  padding: 8px 0;
  margin: 0;
  line-height: 1.4;
}
.ih-hero figcaption span {
  color: #999;
}
.ih-text {
  font-size: 18px;
  line-height: 1.65;
}
.ih-text p {
  margin: 0 0 20px;
}
.ih-text h2 {
  font-family: "Roboto Slab", serif;
  font-size: 26px;
  line-height: 1.3;
  margin: 34px 0 16px;
}
.ih-text h3 {
  font-family: "Roboto Slab", serif;
  font-size: 20px;
  margin: 0 0 10px;
}
.ih-text figure {
  margin: 0 0 22px;
}
.ih-text figure img {
  width: 100%;
}
.ih-text a.link {
  color: #eb1e25;
  font-weight: 700;
  text-decoration: underline;
}
.ih-text .italic-q {
  font-style: italic;
}
.info-box {
  background: #fdf0f0;
  border-left: 5px solid #eb1e25;
  padding: 20px 24px;
  margin: 0 0 24px;
}
.info-box--plain {
  background: #fff;
  border: 1px solid #ddd;
  border-left: 5px solid #eb1e25;
}
.info-box ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}
.info-box li {
  margin: 0 0 8px;
}
.warning-box {
  background: #fff6d6;
  border: 2px solid #e8b400;
  padding: 18px 22px;
  margin: 0 0 24px;
  font-size: 17px;
}
.expert-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: #f7f7f7;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 22px;
  margin-bottom: 20px;
}
.expert-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid #eb1e25;
}
.expert-info {
  flex: 1;
}
.expert-info h4 {
  font-family: "Roboto Slab", serif;
  font-size: 18px;
  margin: 0 0 2px;
}
.expert-info > span {
  display: block;
  font-size: 13px;
  color: #666;
  margin-bottom: 10px;
  font-family: Rubik, sans-serif;
}
.expert-info p {
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}
.comments {
  border-top: 3px solid #eb1e25;
  padding-top: 10px;
}
.comments-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.comments-title {
  font-family: "Roboto Slab", serif;
}
.comments-badge {
  background: #eb1e25;
  color: #fff;
  border-radius: 12px;
  padding: 2px 10px;
  font-size: 15px;
  vertical-align: middle;
}
.comments textarea {
  width: 100%;
  min-height: 70px;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px;
  font-family: inherit;
  margin: 10px 0;
}
.cf-top {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.cf-avatar svg,
.btn-send svg,
.ci-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.cf-actions {
  text-align: right;
  margin-bottom: 20px;
}
.btn-send {
  background: #eb1e25;
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 8px 16px;
  font-weight: 700;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.ih-side {
  width: 300px;
  flex-shrink: 0;
  position: sticky;
  top: 120px;
}
.ih-side-box {
  background: #fff;
  padding: 20px;
}
.ih-side-t {
  font-family: Rubik, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  color: #eb1e25;
  border-bottom: 3px solid #eb1e25;
  padding-bottom: 8px;
  margin-bottom: 10px;
}
.ih-side ol {
  margin: 0;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.4;
}
.ih-side li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}
.ih-foot {
  background: #1d1d1d;
  color: #bbb;
  padding: 30px 0;
  font-family: Rubik, sans-serif;
  font-size: 13px;
}
.ih-foot-logo {
  height: 29px;
  width: auto;
  background: #fff;
  padding: 4px 8px;
  border-radius: 3px;
  margin-bottom: 14px;
}
.ih-foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 12px;
}
@media (max-width: 1024px) {
  .ih-side {
    display: none;
  }
  .ih-main {
    padding-top: 0;
  }
}
@media (max-width: 760px) {
  .ih-wrap {
    padding: 0 12px;
  }
  .ih-bar,
  .ih-bar .ih-wrap {
    height: 54px;
  }
  .ih-menu {
    display: none;
  }
  .ih-main {
    padding: 0 0 20px;
  }
  .ih-article {
    padding: 18px 14px 26px;
  }
  .ih-title {
    font-size: 27px;
  }
  .ih-lead {
    font-size: 18px;
  }
  .ih-text {
    font-size: 17px;
  }
  .ih-text h2 {
    font-size: 22px;
  }
  .expert-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 18px;
  }
}

.comment-list {
  display: flex;
  flex-direction: column;
}

.comment-item {
  padding: 18px 0;
  border-top: 1px solid #eee;
}

.comment-item:first-child {
  border-top: none;
  padding-top: 0;
}

.ci-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.ci-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.ci-avatar.blue {
  background: #2980b9;
}

.ci-avatar.green {
  background: #27ae60;
}

.ci-avatar.orange {
  background: #d35400;
}

.ci-avatar.purple {
  background: #8e44ad;
}

.ci-avatar.teal {
  background: #16a085;
}

.ci-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--nrk-text);
}

.ci-date {
  font-size: 12px;
  color: #999;
  margin-left: auto;
}

.ci-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--nrk-text);
  margin-bottom: 10px;
  padding-left: 44px;
}

.ci-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-left: 44px;
}

.ci-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #999;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.ci-btn:hover {
  color: var(--nrk-text);
}

.ci-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.ci-btn .count {
  font-weight: 600;
}

.ci-btn.liked {
  color: var(--nrk-link);
}

.ci-btn.liked svg {
  stroke: var(--nrk-link);
  fill: var(--nrk-link);
  fill-opacity: 0.15;
}

.ci-reply-btn {
  font-size: 13px;
  color: var(--nrk-link);
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
}

.ci-reply-btn:hover {
  text-decoration: underline;
}

/* Вложенный ответ */

/* Кнопка "Vis flere kommentarer" */

.comments {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 2px solid var(--nrk-border);
}

.comments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.comments-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--nrk-blue);
  display: flex;
  align-items: center;
  gap: 10px;
}

.comments-badge {
  background: var(--nrk-link);
  color: #fff;
  font-family: "Source Sans 3", sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 12px;
}

.comments-sort select {
  font-family: inherit;
  font-size: 13px;
  border: 1px solid var(--nrk-border);
  border-radius: 6px;
  padding: 6px 28px 6px 10px;
  background: #fff;
  -webkit-appearance: none;
  cursor: pointer;
  color: var(--nrk-text);
}

/* Форма комментария */
.comment-form {
  position: relative;
  background: #f7f9fb;
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 24px;
  border: 1px solid #e8ecf0;
}

.cf-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.cf-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--nrk-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cf-avatar svg {
  width: 20px;
  height: 20px;
  stroke: #999;
  stroke-width: 1.5;
  fill: none;
}

.cf-info {
  font-size: 14px;
  color: var(--nrk-gray);
}

.cf-info a {
  color: var(--nrk-link);
  font-weight: 600;
}

.comment-form textarea {
  width: 100%;
  min-height: 72px;
  border: 1px solid var(--nrk-border);
  border-radius: 8px;
  padding: 12px;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  background: #fff;
}

.comment-form textarea:focus {
  outline: none;
  border-color: var(--nrk-link);
}

.cf-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.btn-send {
  background: var(--nrk-link);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 9px 20px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-send:hover {
  background: #004a99;
}

.btn-send svg {
  width: 14px;
  height: 14px;
  fill: #fff;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(50% - 200px);
}

#form {
  max-width: 450px;
  width: 100%;
  margin: 10px auto;
}
