:root {
  --ink-soft: #5f717c;
}

html {
  scroll-behavior: smooth;
}

.hero {
  position: relative;
  min-height: 100vh;
  color: #fff;
  background: #3e4f65;
  overflow: visible;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.425);
  z-index: 1;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.hero .container {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-main {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}


h1 {
  margin: 0;
  font-size: 52px;
  letter-spacing: 2px;
}

h2 {
  margin: 14px 0 10px;
  font-size: 50px;
  line-height: 1.15;
}

.hero p {
  max-width: 700px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.9);
}

.scroll-down {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 4;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  animation: heroScrollBounce 1.6s ease-in-out infinite;
}

.scroll-down .iconfont {
  display: none;
}

.scroll-down::before {
  content: "";
  width: 13px;
  height: 13px;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(45deg) translate(-2px, -2px);
}

@keyframes heroScrollBounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

.section {
  padding: 56px 0;
}

.section.compact {
  padding-top: 20px;
}

.section-light {
  background: #f2f3f3;
}

.section-title {
  margin: 0 0 28px;
  text-align: center;
  color: var(--teal);
  font-size: 40px;
  line-height: 1.2;
}

.section-title span {
  position: relative;
  display: inline-block;
  padding-bottom: 16px;
}

.section-title span svg {
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 16px;
  overflow: visible;
  pointer-events: none;
  transform: rotate(-3.5deg) translateY(-1px);
  transform-origin: left center;
}

.section-title span svg path {
  fill: none;
  stroke: #A56836;
  stroke-width: 22;
  stroke-linecap: round;
  transform: scaleY(1.45);
  transform-origin: center center;
  stroke-dasharray: 1200;
  stroke-dashoffset: 0;
  animation: titleArcDraw 5s ease-in-out infinite;
}

@keyframes titleArcDraw {
  0% {
    opacity: 0;
    stroke-dashoffset: 1200;
  }

  18% {
    opacity: 1;
    stroke-dashoffset: 1200;
  }

  58% {
    opacity: 1;
    stroke-dashoffset: 0;
  }

  84% {
    opacity: 1;
    stroke-dashoffset: 0;
  }

  100% {
    opacity: 0;
    stroke-dashoffset: 0;
  }
}

.section-title.left {
  text-align: left;
}

.card-grid {
  display: grid;
  gap: 18px;
}

.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cover-card,
.about-photo {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.cover-card {
  min-height: 200px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.category-card {
  position: relative;
  background: #fff;
  border: 1px solid #dde2e5;
  border-radius: 12px;
  overflow: hidden;
}

.category-card a {
  display: block;
}

.category-card .img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.category-card .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.category-visual {
  position: relative;
}

.category-visual .img-main,
.category-visual .img-hover {
  position: absolute;
  inset: 0;
  transition: transform .4s ease;
}

.category-visual .img-main {
  transform: translateY(0);
}

.category-visual .img-hover {
  transform: translateY(100%);
}

.category-card .info {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: rgba(0, 0, 0, 0.5);
}

.category-card .title {
  margin: 0;
  color: #fff;
  font-weight: 700;
  text-align: center;
  transition: opacity .3s ease, transform .3s ease;
}

.category-card .title-main {
  opacity: 1;
  transform: translateY(0);
  font-size: 28px;
}

.category-card .title-hover {
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(100% - 48px);
  transform: translate(-50%, calc(-50% + 8px));
  opacity: 0;
  font-size: 16px;
}

.category-card .more {
  display: none;
}

.category-card .more p {
  margin: 0;
  text-transform: uppercase;
  font-size: 12px;
}

.category-card:hover .category-visual .img-main {
  transform: translateY(-100%);
}

.category-card:hover .category-visual .img-hover {
  transform: translateY(0);
}

.category-card:hover .title-main {
  opacity: 0;
  transform: translateY(-8px);
}

.category-card:hover .title-hover {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  background: #f7f7f7;
  border-radius: 12px;
  padding: 28px 24px 20px;
  text-align: center;
  border: 1px solid #d2d5d7;
  box-shadow: 0 3px 12px rgba(23, 40, 46, 0.14);
}

.feature-card i {
  font-size: 42px;
  color: #2f6269;
}

.feature-card h4 {
  margin: 18px 0 12px;
  font-size: 24px;
  line-height: 1.15;
  color: #2f6269;
}

.feature-card p {
  margin: 0;
  color: #1f252b;
  font-size: 14px;
  line-height: 1.45;
}

.section.compact .section-title {
  margin-bottom: 30px;
  line-height: 1.2;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.02fr;
  gap: 34px;
  align-items: center;
}

.about-section {
  padding-top: 42px;
}

.about-section .section-title {
  margin-bottom: 34px;
}

.about-copy p {
  margin: 0 0 12px;
  color: #303a43;
  line-height: 1.65;
  font-size: 19px;
}

.about-photo {
  border-radius: 0;
  overflow: hidden;
}

.about-photo img {
  display: block;
}

.about-copy .btn-solid {
  margin-top: 16px;
  height: 44px;
  padding: 0 28px;
  letter-spacing: 2px;
}

.cta {
  padding: 90px 0;
  text-align: center;
  background: url("/static/images/index-se-bg.jpg") center center / cover no-repeat fixed;
}

.cta .container {
  width: min(1400px, calc(100% - 48px));
}

.cta .cta-panel {
  background: #efefef;
  padding: 68px 50px 58px;
}

.cta .section-title {
  margin-bottom: 24px;
  font-size: 32px;
  line-height: 1.1;
}

.cta p {
  margin: 0;
  color: #242b2f;
  font-size: 18px;
  line-height: 1.45;
}

.cta .btn-solid {
  margin-top: 36px;
  height: 46px;
  padding: 0 32px;
  letter-spacing: 1px;
  font-size: 18px;
}

.news .section-title.orange {
  color: var(--orange);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.news .btn-solid {
  height: 46px;
  padding: 0 30px;
}
.news .section-title{
  margin:  0 0 40px;
}
.news-card {
  background: #f7f7f7;
  border: 1px solid #d8dce0;
  box-shadow: 0 2px 10px rgba(25, 35, 40, 0.1);
}

.news-thumb {
  position: relative;
  height: 320px;
  margin: 0;
  display: block;
  overflow: hidden;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-thumb .date {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34, 56, 63, 0.82);
  color: #fff;
  font-size: 12px;
  padding: 5px 8px;
}

.news-card .info {
  padding: 14px 16px 18px;
}

.news-card .title {
  display: block;
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
  color: #1f252b;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: calc(1.25em * 2);
}

.news-card .text {
  color: #2f353a;
  font-size: 16px;
  line-height: 1.55;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  min-height: calc(1.55em * 3);
}

.news-card .info {
  min-height: 260px;
  display: flex;
  flex-direction: column;
}

.news-card .home-more {
  margin-top: auto;
}

.home-more {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .4px;
}

.center {
  text-align: center;
  margin-top: 30px;
}

@media (max-width: 1200px) {
  h1 {
    font-size: 42px;
  }

  h2,
  .section-title {
    font-size: 34px;
  }
}

@media (max-width: 960px) {

  .two-col,
  .feature-grid,
  .about-grid,
  .news-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 100vh;
  }

  .cta {
    background-attachment: scroll;
    padding: 44px 0;
  }

  .cta .cta-panel {
    padding: 32px 16px;
  }

  .cta .section-title {
    font-size: 30px;
  }

  .cta p {
    font-size: 18px;
  }

  .cta .btn-solid {
    margin-top: 20px;
    height: 40px;
    padding: 0 22px;
    font-size: 14px;
    letter-spacing: 1px;
  }
}
