/* Fonts (self-hosted) */
@font-face {
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/mulish-v18-cyrillic_cyrillic-ext_latin_latin-ext-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/mulish-v18-cyrillic_cyrillic-ext_latin_latin-ext-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/mulish-v18-cyrillic_cyrillic-ext_latin_latin-ext-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/mulish-v18-cyrillic_cyrillic-ext_latin_latin-ext-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/mulish-v18-cyrillic_cyrillic-ext_latin_latin-ext-800.woff2') format('woff2');
}

/* Variables and reset */
:root {

  --bg-page: #fafbff;   
  --bg-white: #ffffff;  
  --white: #ffffff;     
  --bg-light: #f1f1f1; 
  --bg-blue: #e6f1ff;   
  --bg-review: #f5f6fb; 


  --text-main: #333333; 
  --text-muted: #83898d; 


  --yellow: #fecc00; 
  --dark: #1a1a2e; 


  --border: #dbdbdb;

  /* Shadow values from Figma */
  --shadow: 0 4px 46px rgba(128, 148, 174, 0.15);
  --shadow-sm: 0 2px 12px rgba(128, 148, 174, 0.1);


  --font: "Mulish", sans-serif;


  --text-xs: 13px;
  --text-sm: 14px;
  --text-base: 15px;
  --text-md: 16px;
  --text-lg: 18px;
  --text-h2: 45px;
  --text-h2-mob: 35px;


  --lh-tight: 1.2; 
  --lh-normal: 1.4; 


  --container: 1200px;
  --radius: 8px;
  --transition: 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}
main {
  padding-top: 40px;
  flex: 1 0 auto;
}
html {
  min-height: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  color: var(--text-main);
  background: var(--bg-page);
  font-size: var(--text-base);
  line-height: var(--lh-normal);
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.page-content > :where(p, ul, ol, blockquote, table, .wp-block-heading) {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.page-content > :where(p, ul, ol, blockquote, table) {
  margin-bottom: 16px;
}

.page-content > .wp-block-heading {
  margin-bottom: 16px;
  color: var(--dark);
  line-height: var(--lh-tight);
}

.page-content > h1.wp-block-heading {
  font-size: 36px;
  font-weight: 800;
  text-transform: uppercase;
}

.page-content > h2.wp-block-heading {
  margin-top: 32px;
  font-size: 28px;
  font-weight: 800;
}

.page-content > h3.wp-block-heading {
  margin-top: 24px;
  font-size: 22px;
  font-weight: 700;
}

.page-content > :where(ul, ol) {
  padding-left: 44px;
}

.page-content > ul {
  list-style: disc;
}

.page-content > ol {
  list-style: decimal;
}

.page-content > :where(ul, ol) li + li {
  margin-top: 6px;
}

/* Buttons */
.btn--primary,
.btn--outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.26;
  text-align: center;
  border-radius: 315px;
  cursor: pointer;
  white-space: nowrap;
}

.btn--primary {
  background: var(--yellow);
  color: var(--dark);
  padding: 12px 28px;
  border: none;
  transition: background var(--transition), color var(--transition);
}
.btn--primary:hover {
  background: #333333;
  color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--dark);
  padding: 11px 27px;
  border: 1px solid var(--text-muted);
  transition: all var(--transition);
}
.btn--outline:hover {
  background: var(--yellow);
}

@media (max-width: 768px) {
  .btn--primary,
  .btn--outline {
    font-size: 16px;
  }
}

.btn__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Common classes */
.section-title {
  font-size: clamp(26px, 4vw, 45px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}
.section-subtitle {
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.4;
}
.section-text {
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--text-muted);
}


/* 404 */
.not-found {
  padding: 80px 0 100px;
  text-align: center;
}

.not-found__code {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin-bottom: 32px;
}

.not-found__digit {
  font-size: 180px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
}

.not-found__digit--accent {
  color: var(--yellow);
}

.not-found__title {
  font-size: var(--text-h2);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
}

.not-found__desc {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: var(--lh-normal);
}

.not-found__btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .not-found__digit {
    font-size: 100px;
  }
  .not-found__title {
    font-size: var(--text-h2-mob);
  }
}


@media (max-width: 480px) {
  h2 {
    text-align: center;
  }
}

/* Search results */
.search-page {
  padding: 56px 0 80px;
}

.search-page__title {
  margin: 0 0 32px;
  color: var(--dark);
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.search-page__title span {
  color: var(--yellow);
}

.search-page__list {
  display: grid;
  gap: 16px;
  max-width: 860px;
}

.search-page__item {
  padding: 22px 26px;
  border: 1px solid #eef0f5;
  border-radius: 16px;
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
}

.search-page__item-title {
  margin: 0 0 8px;
  color: var(--dark);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
}

.search-page__item-title a {
  transition: color var(--transition);
}

.search-page__item-title a:hover {
  color: var(--yellow);
}

.search-page__excerpt {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.5;
}

.search-page__pagination {
  margin-top: 28px;
}

.search-page__pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-page__pagination .page-numbers {
  display: inline-flex;
  min-width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 50px;
  background: var(--bg-white);
  color: var(--text-main);
  font-weight: 700;
}

.search-page__pagination .page-numbers.current {
  background: var(--yellow);
  color: var(--dark);
}

.search-page__empty {
  max-width: 720px;
  padding: 34px;
  border-radius: 18px;
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.search-page__empty p {
  margin: 0 0 22px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .search-page {
    padding: 36px 0 56px;
  }

  .search-page__title {
    font-size: 28px;
    text-align: center;
  }

  .search-page__item {
    padding: 18px;
  }

  .search-page__item-title {
    font-size: 20px;
    text-align: left;
  }
}


/* Breadcrumbs */
.breadcrumbs {
  padding: 20px 0 40px;
}
.breadcrumbs + main {
  padding-top: 0;
}

.breadcrumbs .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.breadcrumbs__link {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumbs__link:hover { color: var(--text-main); }

.breadcrumbs__home { display: flex; align-items: center; }

.breadcrumbs__sep {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0 12px;
  user-select: none;
}

.breadcrumbs__current {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

/* Coming soon */
.coming-soon {
  padding: 80px 0 100px;
  text-align: center;
}

.coming-soon__icon {
  position: relative;
  display: inline-block;
  margin-bottom: 32px;
  line-height: 1;
}

.coming-soon__gear {
  display: inline-block;
  color: var(--dark);
}

.coming-soon__gear--lg {
  font-size: 120px;
  animation: gear-spin 8s linear infinite;
}

.coming-soon__gear--sm {
  font-size: 60px;
  color: var(--yellow);
  position: absolute;
  right: -30px;
  bottom: -5px;
  animation: gear-spin-reverse 6s linear infinite;
}

@keyframes gear-spin {
  to { transform: rotate(360deg); }
}

@keyframes gear-spin-reverse {
  to { transform: rotate(-360deg); }
}

.coming-soon__title {
  font-size: var(--text-h2);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
}

.coming-soon__desc {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: var(--lh-normal);
}

.coming-soon__btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .coming-soon__gear--lg {
    font-size: 80px;
  }
  .coming-soon__gear--sm {
    font-size: 40px;
    right: -20px;
    bottom: -3px;
  }
  .coming-soon__title {
    font-size: var(--text-h2-mob);
  }
}

