/* ==========================================================================
   Cratos Consult — styles.css
   ========================================================================== */

:root {
  --dark: #292929;
  --gold: #F4C748;
  --gold-dark: #F4C748;
  --gray-bg: #f5f5f5;
  --white: #ffffff;
  --text-muted: #6b6b6b;
  --text-light: rgba(255, 255, 255, 0.75);
  --border: #e0e0e0;
  --container: 1200px;
  --header-h: 80px;
  --radius: 8px;
  --radius-pill: 999px;
  --transition: 0.3s ease;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
  --font: "Montserrat", system-ui, -apple-system, sans-serif;
}

/* Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

/* Container
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography utilities
   -------------------------------------------------------------------------- */
.label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.label--dark {
  color: var(--dark);
  opacity: 0.6;
}

.text-gold {
  color: #F4C748;
}

.footer__brand .text-gold,
.footer-tablet__brand .text-gold,
.footer-mobile__brand .text-gold {
  color: #F4C748;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

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

.section-desc {
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 16px;
}

/* Visibility utilities
   -------------------------------------------------------------------------- */
.hide-desktop {
  display: none;
}

.link-mobile {
  display: none;
}

.link-desktop {
  display: inline;
}

.hide-mobile-inline {
  display: inline;
}

.show-mobile-inline {
  display: none;
}

.show-tablet-up {
  display: none;
}

/* Fade-up animation
   -------------------------------------------------------------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition),
    transform var(--transition), box-shadow var(--transition);
}

.btn--gold {
  background: #f7c35f;
  color: var(--dark);
}

.btn--gold:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(247, 195, 95, 0.4);
}

.btn--pill {
  border-radius: var(--radius-pill);
  padding: 16px 40px;
  font-size: 15px;
  font-weight: 700;
}

.btn--discover {
  background: transparent;
  padding: 16px 8px;
  font-size: 15px;
  font-weight: 500;
  color: #888888;
  gap: 6px;
}

.btn--discover:hover {
  color: var(--dark);
}

.btn--discover-light {
  color: rgba(255, 255, 255, 0.75);
}

.btn--discover-light:hover {
  color: var(--gold);
}

.btn__chevron {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1;
}

.btn--text {
  background: transparent;
  padding: 14px 20px;
}

.btn--text-dark {
  color: var(--dark);
}

.btn--text-dark:hover {
  color: var(--gold);
}

.btn--text-light {
  color: var(--white);
}

.btn--text-light:hover {
  color: var(--gold);
}

.btn--full {
  width: 100%;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  margin-top: 32px;
}

.btn-group--center {
  justify-content: center;
}

/* Section common
   -------------------------------------------------------------------------- */
.section {
  padding: 80px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  text-align: left;
  gap: 24px;
}

.section-head--row .section-title {
  margin-bottom: 0;
}

.section-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  white-space: nowrap;
}

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

.section-link--center {
  display: block;
  text-align: center;
  margin-top: 32px;
}

/* Header
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--dark);
  min-height: var(--header-h);
}

.header.is-search-open {
  height: auto;
}

.header__inner {
  position: relative;
  min-height: var(--header-h);
}

.header__default {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}

.header.is-search-open .header__default {
  display: none;
}

.header__search-panel[hidden] {
  display: none;
}

.header.is-search-open .header__search-panel {
  display: block;
}

.header__search-panel {
  width: 100%;
  padding-top: 14px;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: calc(var(--header-h) - 28px);
}

.search-bar__icon {
  flex-shrink: 0;
  display: flex;
  color: var(--white);
  opacity: 0.9;
}

.search-bar__input {
  flex: 1;
  min-width: 0;
  padding: 8px 0;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  color: var(--white);
  background: transparent;
  border: none;
  outline: none;
}

.search-bar__input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.search-bar__input::-webkit-search-cancel-button {
  display: none;
}

.search-bar__close {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--white);
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--transition);
}

.search-bar__close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.search-dropdown {
  background: #f3f3f3;
  margin: 0 -24px -14px;
  padding: 18px 24px 22px;
  border-radius: 0 0 16px 16px;
}

.search-dropdown[hidden] {
  display: none;
}

.search-dropdown__title {
  font-size: 14px;
  font-weight: 700;
  color: #333333;
  margin-bottom: 14px;
}

.search-suggestions {
  list-style: none;
  margin: 0;
  padding: 0;
}

.search-suggestions li + li {
  margin-top: 4px;
}

.search-suggestions button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  color: #555555;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color var(--transition);
}

.search-suggestions button:hover {
  color: var(--dark);
}

.search-suggestions button svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: #888888;
}

.logo img {
  height: 40px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  position: relative;
}

.nav__link:hover,
.nav__link--active {
  color: var(--white);
}

.nav__link--active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header__signin {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  padding: 8px 16px;
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
}

.header__signin:hover {
  color: var(--gold);
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--white);
  border-radius: 50%;
  transition: background var(--transition);
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
}

.lang-switcher__btn {
  padding: 6px 10px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-light);
  background: transparent;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
}

.lang-switcher__btn:hover {
  color: var(--white);
}

.lang-switcher__btn.is-active {
  color: var(--dark);
  background: var(--gold);
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 4px;
}

.burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

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

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

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

.nav-overlay {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.nav-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--dark);
  color: var(--white);
  padding-top: calc(var(--header-h) + 60px);
  padding-bottom: 0;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  flex: 1;
  padding-bottom: 80px;
}

.hero__content {
  max-width: 560px;
}

.hero__title {
  font-size: clamp(34px, 5vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero__text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-light);
  max-width: 480px;
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__logo {
  width: 100%;
  max-width: 420px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 48px rgba(244, 196, 76, 0.18));
}

.hero__curve {
  position: relative;
  width: 100%;
  line-height: 0;
  margin-top: auto;
}

.hero__curve svg {
  display: block;
  width: 100%;
  height: 80px;
}

.hero__curve path {
  fill: var(--white);
}

.hero__scroll {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  opacity: 0.85;
  animation: scroll-bounce 2s ease-in-out infinite;
  z-index: 2;
}

.hero__scroll:hover {
  opacity: 1;
}

.hero__scroll-icon {
  display: block;
  overflow: visible;
}

.hero__scroll-outline {
  fill: none;
}

.hero__scroll-fill {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: scroll-fill-up 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

@keyframes scroll-fill-up {
  0% {
    transform: scaleY(0);
    opacity: 0.9;
  }
  45% {
    transform: scaleY(1);
    opacity: 1;
  }
  55% {
    transform: scaleY(1);
    opacity: 1;
  }
  100% {
    transform: scaleY(0);
    opacity: 0.9;
  }
}

/* Services
   -------------------------------------------------------------------------- */
.services {
  background: var(--white);
}

.services .section-head {
  text-align: center;
  max-width: none;
  margin-inline: 0;
}

.services .section-desc {
  margin-inline: auto;
}

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

.service-card {
  position: relative;
  background: #262626;
  border-radius: 16px;
  padding: 40px 32px 56px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.service-card--wide {
  grid-column: 1 / -1;
  padding: 48px 40px 64px;
}

.service-card__title {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--white);
  margin-bottom: 20px;
}

.service-card--wide .service-card__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.service-card__title .text-gold {
  color: var(--gold);
}

.service-card__desc {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  max-width: 520px;
  margin: 0 auto 24px;
}

.service-card--wide .service-card__desc {
  max-width: 720px;
}

.service-card__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  display: inline-block;
}

.service-card__link:hover {
  color: var(--gold);
}

.service-card__plus {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.service-card__plus span {
  margin-top: -2px;
}

.service-card__plus:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(244, 196, 76, 0.08);
}

/* Approach & stats
   -------------------------------------------------------------------------- */
.approach {
  background: var(--gray-bg);
}

.approach__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.approach__text {
  color: var(--text-muted);
  margin: 20px 0 0;
  max-width: 520px;
}

.stats-card {
  position: relative;
  padding: 0 0 20px 20px;
  background: transparent;
  box-shadow: none;
}

.stats-card::before {
  content: "";
  position: absolute;
  top: 20px;
  right: 0;
  bottom: 0;
  left: 0;
  background: #f7c35f;
  border-radius: 20px;
  z-index: 0;
}

.stats-card__items {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  padding: 40px 48px;
  background: linear-gradient(145deg, #ffffff 0%, #fff9eb 45%, #f5e6b8 100%);
  border-radius: 20px;
}

.stats-card__img {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  filter: invert(1) brightness(0.28) contrast(1.2);
  mix-blend-mode: multiply;
  opacity: 1;
}

/* Benefits
   -------------------------------------------------------------------------- */
.benefits {
  background: var(--white);
}

.benefits__inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.benefits__title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.benefits__subtitle-wrap {
  position: relative;
  height: 1.6em;
  margin-bottom: 28px;
  cursor: default;
}

.benefits__subtitle {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  margin: 0;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 600;
  color: var(--dark);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}

.benefits__subtitle.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.benefits__subtitle span {
  font-weight: 400;
  color: #b0b0b0;
}

.benefits__text {
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.75;
  color: #3d3d3d;
  margin-bottom: 32px;
}

.benefits__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  transition: color var(--transition);
}

.benefits__link:hover {
  color: var(--gold);
}

.benefits__chevron {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1;
}

/* Team
   -------------------------------------------------------------------------- */
.team {
  background: var(--gray-bg);
}

.team-slider {
  position: relative;
}

.team-slider__track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.team-slider__btn {
  display: none;
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: var(--white);
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  color: var(--dark);
  box-shadow: var(--shadow-card);
  z-index: 2;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
}

.team-slider__btn:hover {
  background: var(--gold);
}

.team-slider__btn--prev {
  left: -12px;
}

.team-slider__btn--next {
  right: -12px;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.team-card__photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-card:hover .team-card__photo img {
  transform: scale(1.05);
}

.team-card__info {
  padding: 24px;
}

.team-card__info h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.team-card__info p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.team-card__info a {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
}

.team-card__info a:hover {
  color: var(--gold);
}

.team-dots {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.team-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  padding: 0;
  transition: background var(--transition), transform var(--transition);
}

.team-dots button.is-active {
  background: var(--gold);
  transform: scale(1.25);
}

/* CTA banner
   -------------------------------------------------------------------------- */
.cta-banner {
  background: var(--dark);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}

.cta-banner__inner {
  max-width: 640px;
  margin: 0 auto;
}

.cta-banner h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-banner p {
  color: var(--text-light);
  margin-bottom: 8px;
}

/* Articles
   -------------------------------------------------------------------------- */
.articles {
  background: var(--white);
}

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

.article-card {
  background: var(--gray-bg);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.article-card__img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.article-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-card:hover .article-card__img img {
  transform: scale(1.05);
}

.article-card__body {
  padding: 24px;
}

.article-card__body h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

.article-card__body > p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.article-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.article-card__meta time {
  color: var(--text-muted);
}

.article-card__meta a {
  font-weight: 600;
  color: var(--dark);
}

.article-card__meta a:hover {
  color: var(--gold);
}

.page-top {
  padding-top: var(--header-h);
}

.articles-empty {
  grid-column: 1 / -1;
  color: var(--text-muted);
  font-size: 15px;
}

.article-page__hero {
  max-height: 420px;
  overflow: hidden;
}

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

.article-page__content {
  padding: 48px 24px 80px;
  max-width: 820px;
}

.article-page__back {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.article-page__back:hover {
  color: var(--gold);
}

.article-page__content time {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.article-page__content h1 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
  margin-bottom: 16px;
}

.article-page__excerpt {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.article-page__body {
  font-size: 16px;
  line-height: 1.8;
  color: #444444;
}

.article-page__body p + p {
  margin-top: 16px;
}

.article-page__empty {
  padding: 120px 24px;
  text-align: center;
}

.article-page__empty h1 {
  margin-bottom: 12px;
}

/* Contact
   -------------------------------------------------------------------------- */
.contact {
  background: var(--gray-bg);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact__info .section-title {
  margin-bottom: 32px;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-card {
  position: relative;
}

.contact-card::before {
  content: "";
  position: absolute;
  border-radius: 28px;
  z-index: 0;
  pointer-events: none;
}

/* Первый блок — золотая обводка снизу справа */
.contact-card:not(.contact-card--social) {
  padding: 0 14px 14px 0;
}

.contact-card:not(.contact-card--social)::before {
  top: 14px;
  left: 14px;
  right: 0;
  bottom: 0;
  border: 1.5px solid #f7c35f;
}

/* Второй блок — золотая обводка сверху слева */
.contact-card--social {
  padding: 14px 0 0 14px;
}

.contact-card--social::before {
  top: 0;
  left: 0;
  right: 14px;
  bottom: 14px;
  border: 1.5px solid #f7c35f;
}

.contact-card__inner {
  position: relative;
  z-index: 1;
  background: var(--white);
  border: 1.5px solid #292929;
  border-radius: 28px;
  padding: 36px 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 20px;
}

.contact-detail + .contact-detail {
  margin-top: 28px;
}

.contact-detail__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  color: #333333;
}

.contact-detail__body strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #333333;
  margin-bottom: 4px;
}

.contact-detail__body a {
  font-size: 15px;
  font-weight: 400;
  color: #666666;
  transition: color var(--transition);
}

.contact-detail__body a:hover {
  color: var(--gold);
}

.contact-card__title {
  font-size: 15px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 20px;
}

.contact-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-socials__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #333333;
  border-radius: 10px;
  color: var(--white);
  transition: background var(--transition), transform var(--transition);
}

.contact-socials__link svg {
  width: 18px;
  height: 18px;
}

.contact-socials__link:hover {
  background: var(--gold);
  color: var(--dark);
  transform: translateY(-2px);
}

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

.socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--white);
  transition: background var(--transition), transform var(--transition);
}

.socials a svg {
  width: 18px;
  height: 18px;
}

.socials a:hover {
  background: var(--gold);
  color: var(--dark);
  transform: translateY(-2px);
}

.socials--footer a {
  width: auto;
  height: auto;
  padding: 4px;
  border-radius: 0;
  background: transparent;
  border: none;
  color: var(--gray-text);
}

.socials--footer a:hover {
  background: transparent;
  border: none;
  color: var(--gold);
  transform: none;
}

.socials--footer a svg {
  width: 20px;
  height: 20px;
}

.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--dark);
  border-radius: 20px;
  padding: 40px 36px 36px;
}

.contact-form__head {
  text-align: center;
  margin-bottom: 28px;
}

.contact-form__head h3 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 8px;
}

.contact-form__subtitle {
  font-size: 14px;
  font-weight: 400;
  color: #9a9a9a;
}

.contact-form .form-group {
  margin: 0 0 22px;
  padding: 0;
  border: none;
  min-width: 0;
}

.contact-form .form-group__label {
  display: block;
  width: 100%;
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  padding: 0;
}

.contact-form .form-group__fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 14px;
  border: 1px solid var(--dark);
  border-radius: 12px;
  background: var(--white);
  color: var(--dark);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #b0b0b0;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(247, 195, 95, 0.25);
}

.contact-form input.is-invalid,
.contact-form textarea.is-invalid {
  border-color: #e74c3c;
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.form-divider {
  height: 1px;
  margin: 8px 0 24px;
  background: #f7c35f;
  border: none;
}

.form-select-wrap {
  position: relative;
}

.form-select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--dark);
  border-bottom: 1.5px solid var(--dark);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.contact-form select {
  appearance: none;
  padding-right: 44px;
  color: var(--dark);
  cursor: pointer;
}

.contact-form select:has(option[value=""]:checked) {
  color: #b0b0b0;
}

.contact-form select option {
  color: var(--dark);
}

.contact-form__submit {
  margin-top: 8px;
  padding: 16px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
}

.contact-form__submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.form-note {
  margin-top: 12px;
  font-size: 13px;
  text-align: center;
  min-height: 20px;
}

.form-note.is-success {
  color: #27ae60;
}

.form-note.is-error {
  color: #e74c3c;
}

/* Success modal
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.modal-overlay:not([hidden]) {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: relative;
  width: min(620px, 100%);
  background: var(--white);
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  transform: translateY(12px) scale(0.98);
  transition: transform var(--transition);
}

.modal-overlay:not([hidden]) .modal {
  transform: translateY(0) scale(1);
}

.modal--success {
  padding: 72px 56px 80px;
}

.modal__close {
  position: absolute;
  top: 24px;
  left: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #c8c8c8;
  background: transparent;
  border: 1px solid #e3e3e3;
  border-radius: 50%;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.modal__close svg {
  width: 16px;
  height: 16px;
}

.modal__close:hover {
  color: #888888;
  border-color: #cccccc;
  background: rgba(0, 0, 0, 0.02);
}

.modal__body {
  text-align: center;
  max-width: 460px;
  margin: 0 auto;
}

.modal__title {
  font-size: clamp(30px, 4.5vw, 38px);
  font-weight: 400;
  line-height: 1.2;
  color: #f7c35f;
  margin-bottom: 32px;
}

.modal__text {
  font-size: 16px;
  line-height: 1.55;
  color: #333333;
}

.modal__text + .modal__text {
  margin-top: 8px;
}

.modal__text--muted {
  color: var(--text-muted);
}

.modal--login {
  padding: 48px 48px 56px;
}

.modal--login .modal__title {
  margin-bottom: 8px;
}

.modal--login .modal__text {
  margin-bottom: 28px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-form__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}

.login-form input {
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text-dark);
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.login-form input::placeholder {
  color: rgba(0, 0, 0, 0.35);
}

.login-form input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(244, 199, 72, 0.2);
}

.login-form input.is-invalid {
  border-color: #e74c3c;
}

.login-form__submit {
  margin-top: 8px;
}

.login-form__submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.modal--login .form-note {
  min-height: 20px;
  text-align: center;
}

/* Footer
   -------------------------------------------------------------------------- */
.footer {
  color: var(--text);
}

.footer > .container {
  background: var(--white);
  padding-top: 64px;
}

.footer__grid--desktop {
  display: grid;
  grid-template-columns: 1.4fr repeat(5, 1fr);
  gap: 32px;
  padding-bottom: 48px;
}

.footer__grid--mobile {
  display: none;
}

.footer__grid--tablet {
  display: none;
}

.footer__copyright-tablet {
  display: none;
  font-size: 12px;
  color: #9a9a9a;
}

.footer__copyright-tablet a {
  color: #9a9a9a;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer__copyright-tablet a:hover {
  color: var(--gold);
}

.footer-tablet__brand p {
  font-size: 14px;
  line-height: 1.55;
  margin-top: 16px;
  color: var(--dark);
}

.footer-tablet__nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-tablet__nav a {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
}

.footer-tablet__nav a:hover {
  color: var(--gold);
}

.footer-tablet__contact h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}

.footer-tablet__contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #555555;
  margin-bottom: 12px;
}

.footer-tablet__contact-item svg {
  flex-shrink: 0;
  color: #666666;
}

.footer-tablet__contact-item:hover {
  color: var(--gold);
}

.footer-tablet__socials {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.footer-tablet__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #292929;
  color: var(--white);
  border-radius: 6px;
  transition: background var(--transition);
}

.footer-tablet__socials a svg {
  width: 16px;
  height: 16px;
}

.footer-tablet__socials a:hover {
  background: var(--gold);
  color: var(--dark);
}

.footer-mobile__brand p {
  font-size: 14px;
  line-height: 1.55;
  margin-top: 14px;
  color: var(--dark);
}

.footer-mobile__muted {
  color: #9a9a9a;
}

.footer-mobile__row {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 16px 20px;
  align-items: start;
}

.logo--footer img {
  height: 36px;
  width: auto;
}

.footer__brand p {
  font-size: 13px;
  line-height: 1.6;
  margin-top: 16px;
  max-width: 260px;
  color: var(--gray-text);
}

.footer__col h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.footer__col a {
  display: block;
  font-size: 13px;
  color: var(--gray-text);
  margin-bottom: 10px;
}

.footer__col a:hover {
  color: var(--gold);
}

.footer__col--contact .socials {
  margin-top: 16px;
}

.footer__bottom {
  background: var(--white);
  border-top: 1px solid #e8e8e8;
  padding: 24px 0;
}

.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer__bottom p {
  font-size: 12px;
  color: var(--gray-text);
}

.footer__legal {
  display: flex;
  gap: 20px;
}

.footer__legal a {
  font-size: 12px;
  color: var(--gray-text);
}

.footer__legal a:hover {
  color: var(--gold);
}

/* ==========================================================================
   Tablet — max-width 1024px
   ========================================================================== */
@media (max-width: 1024px) {
  .hide-tablet {
    display: none !important;
  }

  .show-tablet-up {
    display: block;
  }

  .container {
    padding: 0 20px;
  }

  .section {
    padding: 64px 0;
  }

  .section-head {
    margin-bottom: 40px;
  }

  .section-head--row {
    flex-wrap: wrap;
    align-items: flex-end;
  }

  /* Header — burger menu */
  .burger {
    display: flex;
  }

  .header__default {
    gap: 16px;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    width: min(340px, 88vw);
    height: calc(100vh - var(--header-h));
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
    background: var(--dark);
    gap: 0;
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 999;
    overflow-y: auto;
  }

  .nav.is-open {
    transform: translateX(0);
  }

  .nav__link {
    width: 100%;
    padding: 16px 0;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav__link--active::after {
    display: none;
  }

  .nav__link--active {
    color: var(--gold);
  }

  .nav-overlay {
    display: block;
  }

  .search-dropdown {
    margin: 0 -20px -14px;
    padding: 16px 20px 20px;
  }

  /* Hero stacked */
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + 48px);
  }

  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
    padding-bottom: 48px;
    gap: 32px;
  }

  .hero__content {
    max-width: 100%;
    margin: 0 auto;
  }

  .hero__text {
    margin: 0 auto;
  }

  .hero__logo {
    max-width: 260px;
    margin: 0 auto;
  }

  .hero__scroll {
    bottom: 80px;
  }

  .hero__title {
    font-size: clamp(30px, 5vw, 38px);
  }

  /* Services 2x2 */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card--wide {
    grid-column: 1 / -1;
  }

  /* Approach */
  .approach__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .approach__content {
    text-align: center;
  }

  .approach__text {
    margin-inline: auto;
  }

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

  .btn-group--left {
    justify-content: center;
  }

  .stats-card {
    max-width: 520px;
    margin: 0 auto;
  }

  .stats-card__items {
    padding: 40px 32px;
  }

  .stats-card__img {
    max-width: 240px;
    margin: 0 auto;
  }

  /* Benefits */
  .benefits__inner {
    padding: 0 8px;
  }

  /* CTA */
  .cta-banner {
    padding: 64px 0;
  }

  /* Articles 2 col */
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Contact stacked */
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .approach__content .btn-group {
    justify-content: center;
  }

  /* Footer — tablet layout handled in 769–1024 query */
  .footer__grid--desktop {
    display: none;
  }

  .footer > .container {
    padding-top: 56px;
  }
}

/* ==========================================================================
   Mobile — max-width 768px
   ========================================================================== */
@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  .hide-mobile,
  .hide-mobile-inline {
    display: none !important;
  }

  .hide-desktop {
    display: block;
  }

  .hide-desktop.section-link--center {
    display: block;
  }

  .link-mobile {
    display: inline;
  }

  .link-desktop {
    display: none;
  }

  .show-mobile-inline {
    display: inline;
  }

  .show-tablet-up {
    display: none !important;
  }

  .container {
    padding: 0 16px;
  }

  .section {
    padding: 48px 0;
  }

  .section-head--row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .section-title {
    font-size: clamp(24px, 6vw, 32px);
  }

  .header__actions {
    gap: 10px;
  }

  .logo img {
    height: 32px;
  }

  .lang-switcher {
    padding: 2px;
  }

  .lang-switcher__btn {
    padding: 5px 8px;
    font-size: 10px;
  }

  .search-dropdown {
    margin: 0 -16px -14px;
    padding: 16px;
    border-radius: 0 0 12px 12px;
  }

  /* Hero */
  .hero {
    padding-top: calc(var(--header-h) + 24px);
  }

  .hero__grid {
    gap: 24px;
    padding-bottom: 40px;
  }

  .hero__curve path {
    fill: var(--white);
  }

  .hero__scroll {
    display: none;
  }

  .hero__title {
    font-size: clamp(26px, 7vw, 32px);
    margin-bottom: 16px;
  }

  .hero__text {
    font-size: 15px;
  }

  .hero__logo {
    max-width: 200px;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-card {
    padding: 32px 24px 52px;
  }

  .service-card--wide {
    grid-column: auto;
    padding: 36px 24px 56px;
  }

  .service-card__plus {
    right: 16px;
    bottom: 16px;
    width: 32px;
    height: 32px;
    font-size: 1.125rem;
  }

  /* Approach */
  .approach__grid {
    gap: 32px;
  }

  .stats-card {
    padding: 0 0 12px 12px;
  }

  .stats-card::before {
    top: 12px;
    right: 0;
    bottom: 0;
    left: 0;
  }

  .stats-card__items {
    padding: 28px 20px;
  }

  .stats-card__img {
    max-width: 200px;
  }

  /* Benefits */
  .benefits__title {
    font-size: 1.5rem;
  }

  .benefits__text {
    font-size: 15px;
  }

  /* CTA */
  .cta-banner {
    padding: 48px 0;
  }

  .cta-banner h2 {
    font-size: clamp(22px, 6vw, 28px);
  }

  .btn-group {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .btn-group--center {
    width: 100%;
  }

  .btn--pill {
    width: 100%;
    max-width: 280px;
    padding: 14px 32px;
  }

  /* Articles */
  .articles-grid {
    grid-template-columns: 1fr;
  }

  .article-card.hide-tablet {
    display: block !important;
  }

  /* Contact */
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact__info .section-title {
    font-size: clamp(24px, 6vw, 30px);
    margin-bottom: 24px;
  }

  .contact-form-wrap {
    padding: 28px 20px 24px;
  }

  .contact-form__head h3 {
    font-size: 24px;
  }

  .modal-overlay {
    padding: 16px;
  }

  .modal--success {
    padding: 56px 28px 48px;
  }

  .modal--login {
    padding: 48px 28px 40px;
  }

  .modal__title {
    font-size: 28px;
    margin-bottom: 24px;
  }

  .modal__close {
    top: 18px;
    left: 18px;
    width: 38px;
    height: 38px;
  }

  .contact-card:not(.contact-card--social) {
    padding: 0 10px 10px 0;
  }

  .contact-card:not(.contact-card--social)::before {
    top: 10px;
    left: 10px;
  }

  .contact-card--social {
    padding: 10px 0 0 10px;
  }

  .contact-card--social::before {
    right: 10px;
    bottom: 10px;
  }

  .contact-card__inner {
    padding: 28px 24px;
    border-radius: 22px;
  }

  .contact-card::before {
    border-radius: 22px;
  }

  .contact-detail + .contact-detail {
    margin-top: 22px;
  }

  /* Footer mobile */
  .footer__grid--desktop,
  .footer__grid--tablet {
    display: none;
  }

  .footer__grid--mobile {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-bottom: 32px;
  }

  .footer-mobile__row .footer-tablet__nav {
    gap: 12px;
  }

  .footer-mobile__row .footer-tablet__nav a {
    font-size: 14px;
  }

  .footer-mobile__row .footer-tablet__contact h4 {
    font-size: 14px;
    margin-bottom: 12px;
  }

  .footer-mobile__row .footer-tablet__contact-item {
    font-size: 11px;
    gap: 8px;
    margin-bottom: 10px;
  }

  .footer-mobile__row .footer-tablet__contact-item--email {
    word-break: break-all;
    line-height: 1.4;
  }

  .footer-mobile__row .footer-tablet__socials {
    margin-top: 12px;
    gap: 8px;
  }

  .footer-mobile__row .footer-tablet__socials a {
    width: 32px;
    height: 32px;
  }

  .footer-mobile__row .footer-tablet__socials a svg {
    width: 14px;
    height: 14px;
  }

  .footer > .container {
    padding-top: 40px;
  }

  .footer__copyright {
    display: none;
  }

  .footer__copyright-tablet {
    display: block;
    text-align: left;
    line-height: 1.5;
  }

  .footer__legal.hide-desktop {
    display: none;
  }

  .footer__bottom {
    border-top: none;
    padding: 0 0 24px;
  }

  .footer__bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .show-tablet-up {
    display: block;
  }

  .footer__grid--tablet {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr 1.2fr;
    gap: 32px 24px;
    align-items: start;
    padding-bottom: 40px;
  }

  .footer__grid--mobile {
    display: none;
  }

  .footer__copyright {
    display: none;
  }

  .footer__copyright-tablet {
    display: block;
  }

  .footer__legal.hide-desktop {
    display: none;
  }

  .footer__bottom {
    border-top: none;
    padding-top: 0;
  }

  .footer__bottom-inner {
    justify-content: flex-start;
  }
}
