/* ===== FONTS ===== */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat/Montserrat-VariableFont_wght.ttf")
       format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat/Montserrat-Italic-VariableFont_wght.ttf")
       format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --color-bg-dark: #303032;
  --color-bg-light: #F1F2F2;
  --color-text-dark: #080808;
  --color-text-light: #F1F2F2;
  --color-border-light: #F1F2F2;

  --container-width: 1360px;
  --container-padding: 24px;
}

@media (max-width: 1024px){
  :root{
    --container-width: 665px;
    --container-padding: 24px; 
  }
}

@media (max-width: 768px){
  :root{
    --container-width: 100%;
    --container-padding: 20px;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body{
  font-family: "Montserrat", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.1;
  color: var(--color-text-dark);
  background-color: var(--color-bg-light);
}

a{ color: inherit; text-decoration: none; }

img{
  max-width: 100%;
  height: auto;
  display: block;
}

.container{
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.site-header{
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
}

.header-inner{
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo{
  font-size: 18px;
  font-weight: 600;
}

.header-nav{
  display: flex;
  gap: 32px;
}

.header-nav a{
  color: var(--color-text-light);
  font-size: 24px;
  font-weight: 400;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.header-nav a:hover{ opacity: 1; }

@media (max-width: 1024px){
  .header-nav{ gap: 25px; }
  .header-nav a{ font-size: 18px; }
}

@media (max-width: 768px){
  .header-nav{ display: none; }
}

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

.btn-login{
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border-light);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--color-text-light);

  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  background: transparent;
}

.btn-login__icon{
  width: 24px;
  height: 24px;
  display: block;
  box-sizing: content-box;
  margin-right: 12px;
}

@media (max-width: 1024px){
  .btn-login{
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 999px;
    font-size: 0;
    line-height: 0;
    justify-content: center;
  }

  .btn-login__icon{
    width: 22px;
    height: 22px;
    margin: 0;
    box-sizing: border-box;
  }

  .btn-login__menu{ display: none; }
}


@media (max-width: 768px){
  .btn-login{
    border: 0;
    padding:0;
    border-radius: 0;
    background: transparent;
    gap: 16px;
  }

  .btn-login__text{ display: none; }

  .btn-login__icon{
    width: 22px;
    height: 22px;
    margin: 0;
    padding: 3px;
    box-sizing: content-box;
    border: 1px solid var(--color-border-light);
    border-radius: 999px;
  }

  .btn-login__menu{
    display: block;
    width: 32px;
    height: 32px;
    margin-right: 20px;
  }
}

@media(min-width:1000px){
  .btn-login__menu{ display: none; }
}

.meta-bar{
  margin-top: 72px;
  color: #303032;
}

.meta-bar__inner{
  border-top: 1px solid #303032;
  border-bottom: 1px solid #303032;

  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.meta-bar__left{
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.meta-bar__topic,
.meta-bar__time{
  font-size: 24px;
  font-weight: 400;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #303032;
}

.meta-bar__right{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 18px;
}

.meta-bar__social{
  display: flex;
  align-items: center;
  gap: 10px;
}

.meta-bar__social-link{
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.meta-bar__social-link img{
  width: 31px;
  height: 31px;
}

.meta-bar__stats{
  display: flex;
  align-items: center;
  gap: 34px;
  color: var(--color-text-dark);
}

.meta-bar__stat{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 400;
}

.meta-bar__stat img{
  width: 24px;
  height: 24px;
}

.meta-bar__share img{
  width: 24px;
  height: 24px;
}

@media (max-width: 1024px){
  .meta-bar{ margin-top: 32px; }

  .meta-bar__social-link img{
    width: 28px;
    height: 28px;
  }

  .meta-bar__topic,
  .meta-bar__time,
  .meta-bar__stat{
    font-size: 18px;
  }
}

@media (max-width: 768px){
  .meta-bar{ margin-top: 32px; }

  .meta-bar__inner{
    padding: 16px 0;
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 24px;
    align-items: flex-start;
  }

  .meta-bar__topic,
  .meta-bar__time{
    font-size: 16px;
    line-height: 1.15;
  }

  .meta-bar__social-link{
    width: 28px;
    height: 28px;
  }

  .meta-bar__social-link img{
    width: 28px;
    height: 28px;
  }

  .meta-bar__stats{
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
  }

  .meta-bar__stat{
    font-size: 16px;
  }

  .meta-bar__share img{
    width: 24px;
    height: 24px;
  }
}

.article-hero{
  background: var(--color-bg-light);
  color: var(--color-text-dark);
  padding: 52px 0 56px;
}

.article-hero__title{
  margin: 0;
  text-align: center;
  font-weight: 700;
  font-size: 37px;
  line-height: 1.1;
}

.article-hero__subtitle{
  margin: 14px 0 42px;
  text-align: center;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.1;
  color: #080808;
}

.article-hero__text{
  margin: 28px auto 0;
  text-align: center;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.1;
  color: #080808;
}

.article-hero__text strong{
  font-weight: 600;
  color: var(--color-text-dark);
}

.article-hero__media{ margin-top: 34px; }

.article-hero__img{
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px){
  .article-hero__title{ font-size: 28px; }
  .article-hero__subtitle{ font-size: 18px; margin-bottom: 28px; }
  .article-hero__text{ font-size: 18px; }
}


.info-block{
  background: var(--color-bg-light);
  color: var(--color-text-dark);
  margin: 0;
  text-align: center;
}

.info-block__title{
  font-weight: 700;
  font-size: 26px;
  line-height: 1.1;
}

.info-block__title--spaced{ margin-top: 50px; }

.info-block__advantages{
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.info-block__subtitle{
  font-weight: 600;
  font-size: 22px;
  line-height: 1.1;
}

.info-block__text{
  font-weight: 400;
  font-size: 22px;
  line-height: 1.1;
}

.info-block__text strong{
  font-weight: 600;
  color: var(--color-text-dark);
}

.info-block__how{
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

@media (max-width: 768px){
  .info-block__title{ font-size: 20px; }
  .info-block__title--spaced{ margin-top: 10px; }
  .info-block__subtitle{ font-size: 18px; }
  .info-block__text{ font-size: 18px; }
  .info-block__advantages{ gap: 12px; }
  .info-block__how{ gap: 12px; }
}

.test-results{
  background: var(--color-bg-light);
  padding: 40px 0;
}

.test-results__card{
  max-width: 480px;
  margin: 0 auto;
  border: 3px solid #DCDBE1;
  border-radius: 20px;
  padding: 40px 20px;
}

.test-results__title{
  margin: 0 0 26px;
  text-align: center;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.1;
}

.test-results__list{
  display: flex;
  flex-direction: column;
  gap: 42px;
}

.test-results__row{
  display: grid;
  grid-template-columns: 22px 1fr;
  column-gap: 18px;
  align-items: center;
}

.test-results__icon{
  width: 15px;
  height: 15px;
  margin: 0; 
}

.test-results__text{
  margin: 0;
  text-align: center;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.1;
  color: #080808;
}

.test-results__text strong{ font-weight: 600; }

@media (max-width: 1024px){
  .test-results__card{ max-width: 664px; }
}

@media (max-width: 768px){
  .test-results__card{
    max-width: 100%; 
  }
  .test-results__text{ font-size: 18px; }
}


.steps{
  background: var(--color-bg-light);
  color: var(--color-text-dark);
  padding: 0 0 42px;
}

.steps__title{
  margin: 0;
  text-align: center;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.1;
}

.steps__lead{
  margin: 18px auto 0;
  text-align: center;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.1;
}

.steps__subtitle{
  margin: 42px 0 0;
  text-align: center;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.1;
}

.steps__flow{
  margin: 26px auto 0;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.steps__card{
  width: 100%;
  border: 3px solid #DCDBE1;
  border-radius: 20px;
  padding: 40px 20px;
  text-align: center;
}

.steps__card-title{
  margin: 0 0 12px;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.1;
}

.steps__card-text{
  margin: 0;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.1;
}

.steps__arrow{
  width: 60px;
  height: auto;
}

@media (max-width: 1024px){
  .steps__flow{ max-width: 664px; }
}

@media (max-width: 768px){
  .steps__title{ font-size: 20px; }
  .steps__lead{ font-size: 18px; }
  .steps__subtitle{ font-size: 20px; }
  .steps__card-title{ font-size: 20px; }
  .steps__card-text{ font-size: 18px; }
  .steps__flow{ max-width: 100%; }
}

.meta-footer{
  background: var(--color-bg-light);
  color: var(--color-text-dark);
  margin: 42px 0;
}

.meta-footer__inner{
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #303032;
  border-bottom: 1px solid #303032;
}

.meta-footer .meta-bar__stats{
  display: flex;
  align-items: center;
  gap: 34px;
}

.meta-footer .meta-bar__stat{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 400;
}

@media (max-width: 768px){
  .meta-footer__inner{
    height: auto;
    padding: 18px 0;
    gap: 18px;
    align-items: center;
  }

  .meta-footer .meta-bar__social-link{
    width: 34px;
    height: 34px;
  }

  .meta-footer .meta-bar__stats{
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
  }

  .meta-footer .meta-bar__stat{
    font-size: 20px;
  }

  .meta-footer .meta-bar__stat img,
  .meta-footer .meta-bar__share img{
    width: 26px;
    height: 26px;
  }
}


.comments{
  background: var(--color-bg-light);
  color: var(--color-text-dark);
  padding: 34px 0 60px;
}

.comments__title{
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 3px solid #303032;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.1;
  text-transform: uppercase;
}
.comments__container{ 
    height:262px; 
    border-bottom:3px solid #E3E8FF; 
}

/* Form */
.comments__form{
  margin-top: 18px;
  border: 3px solid #DCDBE1;
  border-radius: 16px;
  padding: 20px 40px;
  position: relative;
}

.comments__textarea{
  width: 100%;
  height: 124px;
  resize: none;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 400;
  color: #303032;
  font-family: "Montserrat", sans-serif;
}

.comments__submit{
  position: absolute;
  right: 18px;
  top:180px;
  background: #303032;
  color: #E3E8FF;
  padding: 20px 40px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.1;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* list */
.comments__list{
  margin-top: 50px;
  display: flex;
  flex-direction: column;
}

.comment{
  padding: 22px 0 12px;
  border-bottom: 1px solid #303032;
}

.comment__top{
  display: grid;
  grid-template-columns: 440px 1fr;
  column-gap: 20px;
  align-items: start;
}

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

.comment__avatar{
  width: 60px;
  height: 60px;
  border-radius: 999px;
  object-fit: cover;
}

.comment__name{
  font-weight: 700;
  font-size: 26px;
}

.comment__text{
  margin: 0;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.1;
  color: #080808;
}

.comment__bottom{
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.comment__date{
  font-weight: 400;
  font-size: 22px;
  text-transform: uppercase;
  color: #303032;
}

.comment__reactions{
  display: flex;
  align-items: center;
  gap: 22px;
}

.comment__reaction{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  font-size: 24px;
  color: #303032;
}

.comment__reaction img{
  width: 24px;
  height: 24px;
}

/* tablet */
@media (max-width: 1024px){
  .comment__top{ grid-template-columns: 321px 1fr; }
}

/* mobile */
@media (max-width: 768px){
  .comments{
    padding: 34px 0 60px;
    margin: 0;
  }
  .comments__container{ 
    height:218px;  
}

  .comments__form{
    padding: 14px;
  }

  .comments__textarea{
    height: 96px;
    font-size: 18px;
  }

  .comments__submit{
    position: static;
    width: 100%;
    margin-top: 12px;
    padding: 16px 18px;
    font-size: 18px;
  }

  .comment__top{
    grid-template-columns: 1fr;
    row-gap: 12px;
  }

  .comment__name{ font-size: 22px; }
  .comment__text{ font-size: 18px; }
  .comment__date{ font-size: 18px; }

  .comment__reaction{ font-size: 18px; }
  .comment__reaction img{ width: 22px; height: 22px; }
}
.site-footer{
  background: #303032;
  padding: 54px 0 44px;
}

.footer__inner{
  max-width: 980px; /* визуально как на макете */
  margin: 0 auto;
}

.footer__logo{
  display: flex;
  justify-content: center;
  margin-bottom: 72px;
}

.footer__logo img{
  height: 61px;
  width: auto;
}

.footer__nav{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-family: "Montserrat", sans-serif;
  font-size: 17px;
  font-weight:400;
  text-transform: uppercase;
  line-height:100%;
  color: rgba(241,242,242,.85);
  margin-bottom: 72px;
}

.footer__nav a{
  color: rgba(241,242,242,.85);
  text-decoration: none;
}

.footer__nav a:hover{
  color: rgba(241,242,242,1);
}

.footer__dot{
  opacity: .75;
}

.footer__text{
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.1;
  color: #F1F2F2;
}

.footer__text p{
  margin: 0 0 32px;
}

.footer__offer-link{
  color: #E3E8FF; /* как просила */
  text-decoration: none;
  font-weight: 600;
}

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

.footer__copyright{
  margin-top: 72px;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-size: 22px;
  color: rgba(241,242,242,.7);
}

/* mobile */
@media (max-width: 768px){
  .site-footer{
    padding: 42px 0 36px;
  }

  .footer__inner{
    max-width: 100%;
  }

  .footer__logo img{
    height: 44px;
  }
  .footer__logo{
    margin-bottom:32px;
  }
  .footer__nav{
    font-size: 14px;
    row-gap: 8px;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;          
    text-align: center;
  }

  .footer__text{
    font-size: 16px;
  }
  .footer__copyright{
    margin-top:32px;
    font-size:16px;
  }
  .footer__dot{
    display:none;
  }
}
.text__offer-link{
    color:#003366;
    font-weight:600;
}