:root {
  --blue: #0d7fe2;
  --blue-2: #1aa6ff;
  --dark: #062b62;
  --text: #12315f;
  --muted: #6d7f9b;
  --soft: #edf8ff;
  --line: #d7ecff;
  --white: #ffffff;
  --shadow: 0 18px 44px rgba(7, 68, 128, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Noto Sans", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(195, 231, 255, 0.45), transparent 130px),
    linear-gradient(270deg, rgba(195, 231, 255, 0.45), transparent 130px),
    #fff;
  letter-spacing: 0;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 330px;
  height: 330px;
  opacity: 0.34;
  background: url("../img/kazakh-ornament-ai.png") center / contain no-repeat;
}

body::before {
  top: -82px;
  left: -88px;
}

body::after {
  right: -88px;
  top: -82px;
  transform: scaleX(-1);
}

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

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

button,
input {
  font: inherit;
}

.container {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201, 232, 255, 0.7);
}

.header-inner {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 218px;
  color: var(--blue);
}

.brand-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
}

.brand-icon svg {
  width: 54px;
  height: 54px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand strong {
  display: block;
  color: #0969c7;
  font-size: 18px;
  line-height: 1.05;
  font-weight: 800;
}

.brand small {
  display: block;
  margin-top: 5px;
  color: #54aeee;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex: 1;
}

.main-nav a {
  position: relative;
  padding: 39px 0 34px;
  color: #0c2f64;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--blue);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

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

.header-search {
  display: flex;
  align-items: center;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  overflow: hidden;
}

.header-search input {
  width: 174px;
  height: 44px;
  padding: 0 4px 0 16px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 14px;
  font-weight: 700;
}

.header-search input::placeholder {
  color: var(--muted);
}

.header-search .icon-button {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.icon-button,
.burger,
.slider-arrow {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--dark);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.icon-button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.icon-button svg,
.slider-arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button:hover,
.slider-arrow:hover {
  transform: translateY(-2px);
  border-color: #9ad6ff;
  box-shadow: 0 12px 24px rgba(13, 127, 226, 0.16);
}

.burger {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  padding: 12px;
}

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--dark);
  border-radius: 3px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.burger.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
  opacity: 0;
}

.burger.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  padding-top: 34px;
}

.hero-card {
  position: relative;
  min-height: 462px;
  overflow: hidden;
  border-radius: 20px;
  background:
    linear-gradient(90deg, rgba(229, 247, 255, 0.97) 0%, rgba(229, 247, 255, 0.82) 33%, rgba(229, 247, 255, 0.16) 58%),
    var(--hero-image) center / cover no-repeat;
  box-shadow: var(--shadow);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(8, 73, 127, 0.08));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
  padding: 74px 88px;
}

.hero h1 {
  margin: 0;
  color: #0d336b;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0;
}

.nowrap {
  white-space: nowrap;
}

.hero p {
  max-width: 420px;
  margin: 24px 0 32px;
  color: #1d4579;
  font-size: 18px;
  line-height: 1.65;
  font-weight: 600;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #086fd6, #10a7f9);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(12, 127, 226, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 34px rgba(12, 127, 226, 0.34);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  transform: translateY(-50%);
}

.slider-arrow:hover {
  transform: translateY(-50%) scale(1.04);
}

.slider-prev {
  left: 22px;
}

.slider-next {
  right: 22px;
}

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 20px;
  z-index: 2;
  display: flex;
  gap: 7px;
  transform: translateX(-50%);
}

.slider-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
}

.slider-dots button.active {
  width: 23px;
  border-radius: 999px;
  background: var(--blue);
}

.section {
  padding: 42px 0 0;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section h2,
.article-band h2,
.subscribe-section h2 {
  margin: 0;
  color: #0766bf;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
}

.section-title-link {
  display: inline-block;
  color: inherit;
}

.section-title-link:hover h2 {
  color: #0a8dea;
}

.ornament-mark {
  display: block;
  width: 96px;
  height: 14px;
  margin-top: 7px;
  background:
    linear-gradient(90deg, var(--blue) 0 34px, transparent 34px),
    radial-gradient(circle at 50% 100%, transparent 0 6px, #bae2ff 7px 8px, transparent 9px);
  background-size: 100% 2px, 22px 14px;
  background-position: left bottom, 42px top;
  background-repeat: no-repeat;
}

.section-link {
  color: #0766bf;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.section-link:hover {
  color: var(--blue-2);
}

.cards-grid,
.gallery-grid,
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.news-card,
.feature-article,
.faq-card,
.video-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(22, 90, 150, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.news-card:hover,
.feature-article:hover,
.faq-card:hover,
.video-card:hover,
.gallery-grid img:hover {
  transform: translateY(-5px);
  border-color: #9ad6ff;
  box-shadow: 0 20px 38px rgba(22, 90, 150, 0.14);
}

.news-card img {
  width: 100%;
  height: 168px;
  object-fit: cover;
}

.card-body {
  padding: 20px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: #e2f4ff;
  color: var(--blue);
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
}

.news-card h3,
.feature-article h3,
.faq-card h3 {
  margin: 12px 0 14px;
  color: #0c2f64;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 800;
}

time,
.feature-article p,
.faq-card p,
.service-item small,
.subscribe-section p,
.site-footer p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.article-band {
  width: min(1200px, calc(100% - 48px));
  margin: 34px auto 0;
  padding: 30px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.9), transparent 340px),
    linear-gradient(135deg, #eef9ff, #f7fcff);
}

.article-band > .container {
  width: calc(100% - 52px);
}

.articles-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.45fr);
  gap: 52px;
}

.feature-article img {
  width: 100%;
  height: 255px;
  object-fit: cover;
}

.feature-article p {
  margin: -4px 0 10px;
}

.article-list {
  display: grid;
  gap: 0;
}

.article-row {
  display: grid;
  grid-template-columns: 112px 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.article-row img {
  width: 112px;
  height: 72px;
  object-fit: cover;
  border-radius: 7px;
}

.article-row span {
  display: grid;
  align-items: start;
  justify-items: start;
  gap: 7px;
}

.article-row strong {
  color: #0c2f64;
  font-size: 15px;
  font-weight: 800;
}

.article-row em {
  color: var(--blue);
  font-style: normal;
  font-size: 24px;
  transition: transform 0.2s ease;
}

.article-row:hover em {
  transform: translateX(4px);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.faq-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  padding: 28px 26px;
}

.faq-icon,
.mail-icon {
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #0574d8, #049bec);
  clip-path: polygon(50% 0, 63% 15%, 83% 10%, 91% 30%, 100% 50%, 91% 70%, 83% 90%, 63% 85%, 50% 100%, 37% 85%, 17% 90%, 9% 70%, 0 50%, 9% 30%, 17% 10%, 37% 15%);
}

.faq-icon {
  width: 58px;
  height: 58px;
  font-size: 28px;
  font-weight: 900;
}

.faq-card h3 {
  margin-top: 4px;
}

.faq-card p {
  margin: 0 0 20px;
}

.faq-card a {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.service-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 30px;
  padding: 24px 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(135deg, #eaf8ff, #f6fcff);
}

.service-strip::after {
  content: "";
  position: absolute;
  inset: auto 0 0 auto;
  width: 180px;
  height: 110px;
  opacity: 0.28;
  background:
    radial-gradient(circle at center, transparent 0 18px, #91d2ff 19px 21px, transparent 22px);
  background-size: 42px 42px;
}

.service-item {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
}

.service-item svg {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  fill: none;
  stroke: #0574d8;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-item strong {
  display: block;
  color: #0766bf;
  font-size: 15px;
  font-weight: 900;
}

.service-item small {
  display: block;
  margin-top: 3px;
  color: #23517f;
}

.gallery-grid img {
  width: 100%;
  height: 178px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 26px rgba(22, 90, 150, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-preview {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 10px;
  background: #d8eefa;
}

.video-preview img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.feature-video:hover .video-preview img,
.video-card:hover .video-preview img {
  transform: scale(1.03);
}

.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(7, 102, 191, 0.92);
  color: #fff;
  font-size: 22px;
  transform: translate(-50%, -50%);
  box-shadow: 0 12px 28px rgba(6, 43, 98, 0.24);
}

.video-body {
  padding: 18px;
}

.video-body h3 {
  margin: 0 0 10px;
}

.video-body h3 a {
  color: #0c2f64;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 800;
  transition: color 0.2s ease;
}

.video-body h3 a:hover {
  color: var(--blue);
}

.video-body p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.videos-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.45fr);
  gap: 52px;
}

.feature-video {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(22, 90, 150, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-video:hover,
.video-row:hover {
  border-color: #9ad6ff;
  box-shadow: 0 20px 38px rgba(22, 90, 150, 0.14);
}

.feature-video:hover {
  transform: translateY(-5px);
}

.feature-video .video-body {
  display: grid;
  gap: 9px;
}

.feature-video strong {
  color: #0c2f64;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 800;
}

.feature-video small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.video-list {
  display: grid;
  gap: 0;
}

.video-row {
  display: grid;
  grid-template-columns: 152px 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.video-row-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 7px;
  background: #d8eefa;
}

.video-row-thumb img {
  width: 152px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.video-row-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(7, 102, 191, 0.92);
  color: #fff;
  font-size: 13px;
  transform: translate(-50%, -50%);
}

.video-row span:not(.video-row-thumb):not(.video-row-play) {
  display: grid;
  align-items: start;
  justify-items: start;
  gap: 7px;
}

.video-row strong {
  color: #0c2f64;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 800;
}

.video-row em {
  color: var(--blue);
  font-style: normal;
  font-size: 24px;
  transition: transform 0.2s ease;
}

.video-row:hover em {
  transform: translateX(4px);
}

.video-detail-page {
  padding: 42px 0 56px;
}

.video-detail-card {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.video-detail-card h1 {
  margin: 0 0 14px;
  color: #0c2f64;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.22;
  font-weight: 800;
}

.content-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 14px 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #f5fbff;
}

.content-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #23517f;
  font-size: 14px;
  font-weight: 700;
}

.content-meta-source {
  font-weight: 800;
}

.content-meta svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.share-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 6px;
}

.share-links + .detail-body,
.share-links + .detail-gallery {
  margin-top: 24px;
}

.share-links span {
  color: #23517f;
  font-size: 14px;
  font-weight: 800;
}

.share-links a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #f5fbff;
  color: #0766bf;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.share-links a:hover {
  transform: translateY(-2px);
  border-color: #8fd2ff;
  background: #eaf7ff;
}

.share-links svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.video-meta {
  margin-bottom: 16px;
}

.video-player iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #d8eefa;
}

.video-youtube-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-top: 16px;
  padding: 0 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0875db, #13a3f5);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(13, 127, 226, 0.2);
}

.about-page {
  padding: 42px 0 56px;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 34px;
  align-items: start;
}

.about-media,
.about-content {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.about-media img {
  width: 100%;
  min-height: 420px;
  object-fit: cover;
}

.about-content {
  padding: 30px;
}

.about-content p {
  color: #1d4579;
  font-size: 16px;
  line-height: 1.85;
}

.about-contacts {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.about-contacts h3 {
  margin: 0 0 16px;
  color: #0766bf;
  font-size: 22px;
  font-weight: 800;
}

.about-contacts p {
  margin: 0 0 14px;
}

.archive-page {
  padding: 42px 0 56px;
}

.archive-grid {
  margin-top: 4px;
}

.archive-empty {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.archive-video-card {
  display: block;
}

.archive-video-card .video-body {
  display: grid;
  gap: 9px;
}

.archive-video-card .video-body h3 {
  color: #0c2f64;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 800;
}

.subscribe-section {
  margin-top: 42px;
  padding: 42px 0;
  background:
    linear-gradient(90deg, rgba(236, 248, 255, 0.94), rgba(255, 255, 255, 0.94)),
    radial-gradient(circle at 100% 50%, #bfe8ff 0 2px, transparent 3px);
  background-size: auto, 28px 28px;
}

.subscribe-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  align-items: center;
  gap: 56px;
}

.subscribe-copy {
  display: flex;
  align-items: center;
  gap: 24px;
}

.mail-icon {
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
}

.mail-icon svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.subscribe-section h2 {
  max-width: 530px;
  font-size: 24px;
}

.subscribe-section p {
  max-width: 520px;
  margin: 10px 0 0;
}

.subscribe-form {
  display: grid;
  grid-template-columns: 1fr 136px;
  gap: 12px;
  padding: 8px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(22, 90, 150, 0.09);
}

.subscribe-form input {
  min-width: 0;
  height: 52px;
  padding: 0 20px;
  border: 0;
  outline: 0;
  color: var(--text);
}

.subscribe-form button {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #0875db, #13a3f5);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.subscribe-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(13, 127, 226, 0.24);
}

.site-footer {
  color: #fff;
  background:
    radial-gradient(circle at 18% 0, rgba(28, 174, 255, 0.42), transparent 380px),
    linear-gradient(135deg, #064f9d, #01336f);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 1fr 1.15fr;
  gap: 48px;
  padding: 44px 0 36px;
}

.brand-light,
.brand-light strong,
.brand-light small {
  color: #fff;
}

.footer-brand p {
  max-width: 290px;
  margin: 20px 0 22px;
  color: rgba(255, 255, 255, 0.78);
}

.socials {
  display: flex;
  gap: 12px;
}

.socials a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  transition: background 0.2s ease, transform 0.2s ease;
}

.socials svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.socials a:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.site-footer h3 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 16px;
}

.site-footer a {
  display: block;
  margin: 9px 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer .socials a {
  display: grid;
  margin: 0;
  color: #fff;
}

.site-footer p {
  margin: 0 0 13px;
  color: rgba(255, 255, 255, 0.78);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.17);
}

.footer-bottom p {
  margin: 0;
  font-size: 12px;
}

.detail-page {
  padding: 42px 0 56px;
}

.detail-card {
  margin-top: 18px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.detail-card h1 {
  max-width: 860px;
  margin: 14px 0 12px;
  color: #0c2f64;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.2;
  font-weight: 800;
}

.detail-card > img {
  width: 100%;
  max-height: 520px;
  margin-top: 24px;
  object-fit: cover;
  border-radius: 12px;
}

.detail-body {
  max-width: 820px;
  margin-top: 28px;
}

.detail-body p {
  color: #1d4579;
  font-size: 17px;
  line-height: 1.85;
}

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.detail-gallery figure {
  margin: 0;
}

.detail-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 26px rgba(22, 90, 150, 0.08);
}

.detail-gallery figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.search-page {
  padding: 42px 0 56px;
}

.search-page-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.search-page-form input {
  min-width: 0;
  height: 52px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}

.search-page-form input:focus {
  border-color: #83ccff;
  box-shadow: 0 0 0 4px rgba(13, 127, 226, 0.1);
}

.search-page-form button {
  height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #0875db, #13a3f5);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.search-summary {
  margin: 22px 0 16px;
  color: #23517f;
  font-weight: 800;
}

.search-results {
  display: grid;
  gap: 14px;
}

.search-result {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  min-height: 132px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(22, 90, 150, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-result:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(22, 90, 150, 0.14);
}

.search-result > img {
  width: 170px;
  height: 118px;
  object-fit: cover;
  border-radius: 10px;
}

.search-result:not(:has(> img)) {
  grid-template-columns: 1fr;
}

.search-result-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  min-width: 0;
}

.search-result-body strong {
  color: #0c2f64;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 800;
}

.search-result-body small {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

@media (max-width: 1120px) {
  .header-inner {
    min-height: 88px;
  }

  .main-nav {
    position: absolute;
    top: 88px;
    left: 24px;
    right: 24px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 14px 12px;
  }

  .main-nav a::after {
    bottom: 8px;
    left: 12px;
    right: auto;
    width: 44px;
  }

  .burger {
    display: block;
  }

  .articles-layout,
  .subscribe-inner,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .container,
  .article-band {
    width: min(100% - 32px, 1200px);
  }

  .hero-card {
    min-height: 420px;
    background:
      linear-gradient(90deg, rgba(229, 247, 255, 0.98), rgba(229, 247, 255, 0.76), rgba(229, 247, 255, 0.25)),
      var(--hero-image) center / cover no-repeat;
  }

  .hero-content {
    max-width: 500px;
    padding: 54px 58px 96px;
  }

  .hero h1 {
    max-width: 460px;
    font-size: 30px;
    line-height: 1.28;
  }

  .hero p {
    max-width: 390px;
    margin-top: 20px;
    font-size: 16px;
  }

  .slider-arrow {
    top: auto;
    bottom: 42px;
    transform: none;
  }

  .slider-arrow:hover {
    transform: translateY(-2px);
  }

  .cards-grid,
  .gallery-grid,
  .video-grid,
  .detail-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .faq-grid,
  .articles-layout,
  .videos-layout,
  .about-layout,
  .subscribe-inner,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .subscribe-inner {
    gap: 28px;
  }
}

@media (max-width: 620px) {
  .header-inner {
    gap: 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand-icon {
    width: 44px;
    height: 44px;
  }

  .brand-icon svg {
    width: 42px;
    height: 42px;
  }

  .brand strong {
    font-size: 14px;
  }

  .brand small {
    font-size: 10px;
    letter-spacing: 1.4px;
  }

  .header-search {
    width: 46px;
    flex: 0 0 46px;
    border-radius: 50%;
  }

  .header-search input {
    width: 0;
    padding: 0;
  }

  .header-search .icon-button {
    display: grid;
    flex: 0 0 44px;
  }

  .hero {
    padding-top: 20px;
  }

  .hero-card {
    min-height: 480px;
    border-radius: 18px;
    background:
      linear-gradient(180deg, rgba(229, 247, 255, 0.98) 0%, rgba(229, 247, 255, 0.82) 58%, rgba(229, 247, 255, 0.24) 100%),
      var(--hero-image) center bottom / cover no-repeat;
  }

  .hero-content {
    padding: 42px 28px 92px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(28px, 8vw, 32px);
    line-height: 1.25;
  }

  .hero h1 .nowrap {
    white-space: normal;
  }

  .hero p {
    font-size: 16px;
  }

  .slider-prev {
    left: 16px;
  }

  .slider-next {
    right: 16px;
  }

  .slider-arrow {
    top: auto;
    bottom: 42px;
    transform: none;
  }

  .slider-arrow:hover {
    transform: translateY(-2px);
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .cards-grid,
  .gallery-grid,
  .video-grid,
  .detail-gallery,
  .service-strip {
    grid-template-columns: 1fr;
  }

  .article-band > .container {
    width: calc(100% - 28px);
  }

  .article-row {
    grid-template-columns: 86px 1fr auto;
    gap: 14px;
  }

  .article-row img {
    width: 86px;
    height: 66px;
  }

  .video-row {
    grid-template-columns: 96px 1fr auto;
    gap: 14px;
  }

  .video-row-thumb img {
    width: 96px;
  }

  .faq-card {
    grid-template-columns: 1fr;
  }

  .about-media img {
    min-height: 300px;
  }

  .subscribe-copy {
    align-items: flex-start;
  }

  .subscribe-form {
    grid-template-columns: 1fr;
    border-radius: 18px;
  }

  .search-page-form,
  .search-result {
    grid-template-columns: 1fr;
  }

  .search-result > img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .subscribe-form button {
    height: 50px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}
