/* Base reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Montserrat", "Open Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #F5F5FF;
  color: #02274A;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select {
  font: inherit;
}

:root{
  --c-bg: #F5F5FF;
  --c-surface: #FFFFFF;
  --c-text: #02274A;
  --c-muted: rgba(2,39,74,.68);
  --c-border: rgba(2,39,74,.14);
  --c-border-2: rgba(2,39,74,.10);
  --c-accent: #B1F0F0;
  --c-accent-2: #4FC1D0;
  --radius-12: 12px;
  --radius-16: 16px;
  --radius-20: 20px;
  --shadow-1: 0 10px 30px rgba(2,39,74,.08);
  --shadow-2: 0 6px 18px rgba(2,39,74,.10);
}

/* Layout grid (container_sk / wrapper_sk / col_sk*) */
.container_sk{
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

.wrapper_sk{
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
}

.wrapper_sk.content_center{ justify-content: center; }
.wrapper_sk.content_between{ justify-content: space-between; }
.wrapper_sk.content_around{ justify-content: space-around; }
.wrapper_sk.content_right{ justify-content: flex-end; }

.wrapper_sk.vertical_bottom{ align-items: flex-end; }
.wrapper_sk.vertical_top{ align-items: flex-start; }
.wrapper_sk.vertical_center{ align-items: center; }
.wrapper_sk.vertical_normal{ align-items: normal; }

.col_sk1, .col_sk2, .col_sk3, .col_sk4, .col_sk5, .col_sk6, .col_sk7, .col_sk8, .col_sk9, .col_sk10, .col_sk11, .col_sk12{
  margin: 0 10px;
}

.col_sk1{ width: calc(8.3333333333% - 20px); }
.col_sk2{ width: calc(16.6666666667% - 20px); }
.col_sk3{ width: calc(25% - 20px); }
.col_sk4{ width: calc(33.3333333333% - 20px); }
.col_sk5{ width: calc(41.6666666667% - 20px); }
.col_sk6{ width: calc(50% - 20px); }
.col_sk7{ width: calc(58.3333333333% - 20px); }
.col_sk8{ width: calc(66.6666666667% - 20px); }
.col_sk9{ width: calc(75% - 20px); }
.col_sk10{ width: calc(83.3333333333% - 20px); }
.col_sk11{ width: calc(91.6666666667% - 20px); }
.col_sk12{ width: 100%; }

/* Header */
header.fixed{
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 80px;
  z-index: 20;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(2,39,74,.08);
}

header.fixed .container_sk{
  height: 100%;
}

header.fixed .wrapper_sk{
  height: 100%;
}

.logo_header a{
  height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 150px;
}

.menu_header{
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu_header .menu{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 26px;
  align-items: center;
}

.menu_header .menu li{ list-style: none; }

.menu_header .menu li a{
  font-weight: 500;
  font-size: 16px;
  line-height: 150%;
  color: var(--c-text);
  padding: 0 0 6px;
  border-bottom: 2px solid transparent;
  transition: all .2s ease;
  white-space: nowrap;
}

.menu_header .menu li a:hover,
.menu_header .menu li a.current{
  border-bottom-color: var(--c-text);
}

.btn_header{
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

/* Header buttons (animated letters) */
.header-button{
  display: flex;
  align-items: center;
  padding: 16px 39px;
  gap: 10px;
  background: var(--c-text);
  width: 140px;
  height: 48px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 16px;
  line-height: 22px;
  text-align: center;
  color: #fff;
  transition: transform .2s ease;
  transform: scale(1);
  position: relative;
  overflow: hidden;
}

.header-button.login{
  color: var(--c-text);
  background: var(--c-accent-2);
  width: 100px;
}

.header-button .arrow_wrapper{
  position: absolute;
  right: 18px;
  width: 12px;
  height: 12px;
  overflow: hidden;
  display: flex;
}

.header-button .arrow_wrapper .arrow{
  display: flex;
  transition: .2s ease;
}

.header-button .arrow_wrapper .is_hover{
  display: flex;
  transform: translate(-28px, 16px);
}

.header-button span{
  display: inline-block;
  min-width: .3em;
  transition: .2s ease;
  opacity: 1;
  transform: translate(0);
}

.header-button .static{
  position: absolute;
  white-space: nowrap;
  top: 50%;
  left: 45%;
  transform: translate(-50%, -50%);
}

.header-button .hover{
  position: absolute;
  top: 50%;
  left: 45%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.header-button .hover span{
  opacity: 0;
  transform: translateY(12px) skew(36deg);
}

.header-button:hover{
  transform: scale(1.06);
}

.header-button:hover .arrow_wrapper .arrow{
  transform: translate(12px, -12px);
}

.header-button:hover .arrow_wrapper .is_hover{
  transform: translate(-12px, 0);
}

.header-button:hover .hover span{
  opacity: 1;
  transform: translate(0);
}

.header-button:hover .static span{
  opacity: 0;
  transform: translateY(-12px) skew(-36deg);
}

/* Burger */
.burger_menu{
  width: 30px;
  height: 26px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.burger_menu .line{
  width: 100%;
  height: 2px;
  background: #111;
  transition: transform .2s ease, opacity .2s ease;
}

.burger_menu.open .line:nth-child(2){ opacity: 0; }
.burger_menu.open .line:nth-child(1){ transform: rotate(45deg) translate(10px, 5px); }
.burger_menu.open .line:nth-child(3){ transform: rotate(-45deg) translate(11px, -7px); }

.overlay{
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.70);
  z-index: 9;
}
.overlay.active{ display: block; }

/* Page offset because of fixed header */
.blog_head,
.categories_blog,
.first_article {
  scroll-margin-top: 90px;
}

/* Blog head */
.blog_head{
  padding: 130px 0 40px;
}

.title_blog{
  font-weight: 600;
  font-size: 46px;
  line-height: 120%;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--c-text);
}

.title_blog span{
  display: inline-block;
  padding: 6px 14px;
  background: var(--c-accent);
  border-radius: 999px;
  margin-left: 10px;
}

.search_block{
  margin-top: 22px;
}

.search_blog form{
  position: relative;
  max-width: 520px;
}

.search_blog .icon{
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.search_blog input[type="text"]{
  width: 100%;
  padding: 16px 16px 16px 52px;
  border-radius: 14px;
  border: 1px solid rgba(2,39,74,.16);
  background: rgba(255,255,255,.86);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 10px 30px rgba(2,39,74,.06);
}

.search_blog input[type="text"]::placeholder{
  color: rgba(2,39,74,.55);
}

.search_blog input[type="text"]:focus{
  background: #fff;
  border-color: rgba(2,39,74,.28);
  box-shadow: 0 14px 40px rgba(2,39,74,.10);
}

/* Categories */
.categories_blog{
  padding: 10px 0 30px;
}

.list_category{
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.list_category li{
  list-style: none;
}

.list_category li a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(2,39,74,.14);
  background: rgba(255,255,255,.70);
  color: rgba(2,39,74,.85);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.list_category li a:hover{
  transform: translateY(-1px);
  background: #fff;
  border-color: rgba(2,39,74,.22);
}

.list_category li.active a{
  background: var(--c-text);
  border-color: var(--c-text);
  color: #fff;
}

.select_mob{
  display: none;
  width: 100%;
  margin-top: 14px;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(2,39,74,.16);
  background: rgba(255,255,255,.86);
}

/* Featured article */
.first_article{
  padding: 10px 0 60px;
}

.item_article{
  display: flex;
  gap: 26px;
  padding: 26px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(2,39,74,.10);
  border-radius: var(--radius-20);
  box-shadow: var(--shadow-1);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.item_article:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 55px rgba(2,39,74,.12);
  background: #fff;
}

.item_article .content_section{
  flex: 1 1 auto;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.item_article .content_section .left{
  flex: 0 0 auto;
}

.item_article .content_section .right{
  flex: 1 1 auto;
}

.meta_fields{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: rgba(2,39,74,.70);
  font-size: 13px;
  font-weight: 600;
}

.meta_fields .time_read{
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(177,240,240,.55);
  color: var(--c-text);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .02em;
}

.meta_fields .star_icon{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(2,39,74,.06);
}

.meta_fields .article_date{
  font-weight: 700;
  letter-spacing: .02em;
}

.body_article .category{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--c-accent);
  color: var(--c-text);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.body_article .name{
  margin-top: 12px;
  font-weight: 700;
  font-size: 30px;
  line-height: 120%;
  text-transform: capitalize;
}

.body_article .text{
  margin-top: 10px;
  font-size: 16px;
  line-height: 160%;
  color: rgba(2,39,74,.70);
  max-width: 60ch;
}

.item_article .main_image{
  flex: 0 0 420px;
  border-radius: var(--radius-16);
  overflow: hidden;
  border: 1px solid rgba(2,39,74,.08);
  background: rgba(2,39,74,.04);
  min-height: 240px;
}

.item_article .main_image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Articles list */
.list_articles{
  padding: 0 0 60px;
}

.wrapper_article{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.wrapper_article .item{
  min-width: 0;
}

.wrapper_article .item.two_col{
  grid-column: span 2;
}

a.article{
  display: grid;
  grid-template-areas:
    "category"
    "name"
    "meta"
    "image";
  gap: 14px;
  padding: 22px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(2,39,74,.10);
  border-radius: var(--radius-20);
  box-shadow: 0 12px 36px rgba(2,39,74,.08);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  height: 100%;
}

a.article:hover{
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 18px 55px rgba(2,39,74,.12);
}

a.article .category{ grid-area: category; }
a.article .name{ grid-area: name; }
a.article .meta_fields{ grid-area: meta; }
a.article .main_image{ grid-area: image; }

a.article .category span{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(177,240,240,.75);
  color: var(--c-text);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

a.article .name{
  font-weight: 700;
  font-size: 18px;
  line-height: 140%;
}

a.article .meta_fields{
  color: rgba(2,39,74,.68);
  font-size: 13px;
  font-weight: 700;
}

a.article .main_image{
  border-radius: var(--radius-16);
  overflow: hidden;
  border: 1px solid rgba(2,39,74,.08);
  background: rgba(2,39,74,.04);
  height: 180px;
}

a.article .main_image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* two_col article layout: content + image side-by-side */
.wrapper_article .item.two_col a.article{
  grid-template-columns: 1fr 320px;
  grid-template-areas:
    "category image"
    "name     image"
    "meta     image";
  align-items: start;
}

.wrapper_article .item.two_col a.article .main_image{
  height: 100%;
  min-height: 210px;
}

/* Button (Show more) */
.button_articles{
  margin-top: 26px;
  display: flex;
  justify-content: center;
}

.h-button{
  display: flex;
  align-items: center;
  padding: 16px 39px;
  gap: 10px;
  background: var(--c-text);
  width: 200px;
  height: 48px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 16px;
  line-height: 22px;
  text-align: center;
  color: #fff;
  transition: transform .2s ease;
  transform: scale(1);
  position: relative;
  overflow: hidden;
}

.h-button .arrow_wrapper{
  position: absolute;
  right: 48px;
  width: 12px;
  height: 12px;
  overflow: hidden;
  display: flex;
}

.h-button .arrow_wrapper .arrow{ display: flex; transition: .2s ease; }
.h-button .arrow_wrapper .is_hover{ display: flex; transform: translate(-28px, 16px); }

.h-button span{
  display: inline-block;
  min-width: .3em;
  transition: .2s ease;
  opacity: 1;
  transform: translate(0);
}

.h-button .static{
  position: absolute;
  white-space: nowrap;
  top: 50%;
  left: 45%;
  transform: translate(-50%, -50%);
}

.h-button .hover{
  position: absolute;
  top: 50%;
  left: 45%;
  transform: translate(-50%, -50%);
}

.h-button .hover span{
  opacity: 0;
  transform: translateY(12px) skew(36deg);
}

.h-button:hover{
  transform: scale(1.06);
}

.h-button:hover .arrow_wrapper .arrow{ transform: translate(12px, -12px); }
.h-button:hover .arrow_wrapper .is_hover{ transform: translate(-12px, 0); }

.h-button:hover .hover span{
  opacity: 1;
  transform: translate(0);
}

.h-button:hover .static span{
  opacity: 0;
  transform: translateY(-12px) skew(-36deg);
}

/* Strokes */
.strokes{
  width: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  height: 360px;
  margin-top: 30px;
}

.strokes .line_1{
  height: 85px;
  width: 102%;
  margin-left: -10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  background: var(--c-accent);
  transform: rotate(2deg);
}

.strokes .line_2{
  height: 85px;
  width: 102%;
  margin-left: -10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  background: var(--c-text);
  position: absolute;
  top: 58%;
  transform: translateY(-50%) rotate(-5deg);
  z-index: -1;
}

.strokes .item{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.strokes .line_1 .item span{
  font-weight: 600;
  font-size: 38px;
  line-height: 120%;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--c-text);
  white-space: nowrap;
}

.strokes .line_2 .item span{
  font-weight: 600;
  font-size: 38px;
  line-height: 120%;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}

.strokes .line_2 .item img{
  transform: rotate(4deg);
}

.line_running{
  will-change: transform;
  animation: ticker 26s linear infinite;
}

.strokes .line_2.line_running{
  animation-duration: 30s;
  animation-direction: reverse;
}

@keyframes ticker{
  0% { transform: translateX(0) rotate(var(--rot, 0deg)); }
  100% { transform: translateX(-35%) rotate(var(--rot, 0deg)); }
}

/* Footer */
footer.writer{
  width: 100%;
  background: var(--c-text);
  padding-top: 80px;
}

footer.writer .title_footer{
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

footer.writer .title_footer .text_1,
footer.writer .title_footer .text_2{
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .02em;
}

footer.writer .title_footer .text_1{
  font-size: 40px;
  line-height: 120%;
}

footer.writer .title_footer .text_1 i{
  font-style: normal;
  color: var(--c-accent);
}

footer.writer .title_footer .text_2{
  font-size: 28px;
  line-height: 120%;
  opacity: .95;
}

footer.writer .title_footer .bage{
  position: absolute;
  right: 0;
  top: -10px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

footer.writer .title_footer .bage .text{
  width: 0;
  height: 0;
}

footer.writer .content_section{
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-top: 40px;
}

footer.writer .content_section .left{
  width: 30%;
  min-width: 200px;
}

footer.writer .content_section .right{
  flex: 1;
}

footer.writer .contacts{
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 10px 0 0;
  flex-wrap: wrap;
}

footer.writer .contacts .footer_menu .name{
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 14px;
}

footer.writer .contacts .footer_menu ul{
  margin: 0;
  padding: 0;
}

footer.writer .contacts .footer_menu ul li{
  list-style: none;
  margin: 10px 0;
}

footer.writer .contacts .footer_menu ul li a{
  font-weight: 400;
  font-size: 16px;
  line-height: 120%;
  color: #fff;
  transition: color .2s ease;
}

footer.writer .contacts .footer_menu ul li a:hover{
  color: var(--c-accent);
}

footer.writer .copyright{
  margin-top: 60px;
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 30px;
  padding-bottom: 60px;
}

footer.writer .copyright .line{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

footer.writer .copyright .social_menu{
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: flex-start;
  gap: 16px;
}

footer.writer .copyright .social_menu li{ list-style: none; }

footer.writer .copyright .social_menu li a{
  font-weight: 600;
  font-size: 14px;
  line-height: 120%;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  transition: all .2s ease;
  padding: 6px 20px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 999px;
  text-transform: uppercase;
}

footer.writer .copyright .social_menu li a:hover{
  color: var(--c-accent);
  border-color: var(--c-accent);
}

footer.writer .copyright .payment{
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: flex-end;
  gap: 30px;
}

footer.writer .copyright .payment li{ list-style: none; }

footer.writer .copyright .text{
  margin-top: 30px;
  font-weight: 400;
  font-size: 14px;
  line-height: 160%;
  color: #fff;
  opacity: .92;
}

/* Responsive */
@media (max-width: 1024px){
  header.fixed{
    height: 60px;
    backdrop-filter: blur(8px);
  }

  .blog_head{
    padding-top: 105px;
  }

  .burger_menu{ display: flex; }

  header.fixed .col_sk2{ width: 50px; order: 1; margin: 0; }
  header.fixed .col_sk3{ order: 2; width: calc(100% - 60px); margin: 0; }
  header.fixed .col_sk7{ order: 3; width: 100%; margin: 0; }

  .menu_header{
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 24px 0 34px;
    border-bottom: 1px solid rgba(2,39,74,.10);
  }

  .menu_header.open{ display: flex; }

  .menu_header .menu{
    flex-direction: column;
    gap: 16px;
  }

  .title_blog{
    font-size: 34px;
  }

  .item_article{
    flex-direction: column;
  }

  .item_article .main_image{
    flex-basis: auto;
    width: 100%;
    min-height: 220px;
  }

  .wrapper_article{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wrapper_article .item.two_col{
    grid-column: span 2;
  }

  .strokes{
    height: 140px;
  }

  .strokes .line_1,
  .strokes .line_2{
    height: 45px;
    gap: 10px;
  }

  .strokes .line_1 .item span,
  .strokes .line_2 .item span{
    font-size: 16px;
  }
}

@media (max-width: 560px){
  .header-button{
    width: 120px !important;
    padding: 0 16px !important;
  }
  .header-button.login{
    width: 70px !important;
  }
  .header-button .arrow_wrapper{
    right: 8px !important;
  }

  .title_blog{
    font-size: 28px;
  }

  .list_category{
    display: none;
  }

  .select_mob{
    display: block;
  }

  .wrapper_article{
    grid-template-columns: 1fr;
  }

  .wrapper_article .item.two_col{
    grid-column: span 1;
  }

  .wrapper_article .item.two_col a.article{
    grid-template-columns: 1fr;
    grid-template-areas:
      "category"
      "name"
      "meta"
      "image";
  }

  footer.writer .title_footer .text_1{ font-size: 28px; }
  footer.writer .title_footer .text_2{ font-size: 18px; }

  footer.writer .title_footer .bage{
    position: static;
    margin-top: 16px;
    align-self: flex-start;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
