:root {
  --color-dark: #0f172a;
  --color-primary: #2866d3;
  --color-primary-dark: #1b58aa;
  --color-primary-deep: #071f4e;
  --color-accent: #fbb040;
  --color-muted: #64748b;
  --color-border: #e2e8f0;
  --color-panel: #ffffff;
  --color-soft: #f5f7fb;
  --radius-md: 16px;
  --radius-lg: 32px;
  --shadow-soft: 0 30px 80px rgba(15, 23, 42, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Montserrat", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--color-dark);
  background: radial-gradient(circle at 12% 10%, rgba(40, 102, 211, 0.25), transparent 55%),
    radial-gradient(circle at 85% 0%, rgba(27, 88, 170, 0.25), transparent 45%),
    #f6f8fd;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.container {
  width: min(1320px, 96vw);
  margin: 0 auto;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.top-bar__contacts {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.top-bar__contacts a {
  color: var(--color-dark);
  font-weight: 600;
  transition: color 0.2s ease;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.social-links a {
  color: inherit;
  transition: color 0.2s ease;
}

.top-bar__contacts a:hover,
.social-links a:hover {
  color: var(--color-primary);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.brand {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.brand img {
  width: 130px;
  height: auto;
}

.brand h1 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 1.5rem;
  font-weight: 600;
}

.nav a {
  color: var(--color-dark);
  padding: 0.25rem 0;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.2s ease;
}

.nav a:hover::after,
.nav a.is-active::after {
  width: 100%;
}

/* Бургер-меню */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  gap: 4px;
}

.nav-toggle__line {
  width: 100%;
  height: 2px;
  background-color: var(--color-dark);
  transition: all 0.3s ease;
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Удалены стили для .nav-cta - кнопка больше не используется */

.primary-btn {
  background: linear-gradient(120deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

/* Ссылки внутри кнопок должны быть белыми */
a.primary-btn:not(.primary-btn--outline),
.primary-btn:not(.primary-btn--outline) a {
  color: #fff !important;
  text-decoration: none !important;
}

a.primary-btn:not(.primary-btn--outline):hover,
.primary-btn:not(.primary-btn--outline) a:hover {
  color: #fff !important;
}

.primary-btn:disabled,
.primary-btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  display: grid;
  place-items: center;
  box-shadow: 0 15px 35px rgba(40, 102, 211, 0.4);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, box-shadow 0.3s ease;
  z-index: 20;
}

.scroll-top span[aria-hidden="true"] {
  width: 12px;
  height: 12px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg) translateY(2px);
}

/* Hover только для устройств с мышью */
@media (hover: hover) {
.scroll-top:hover {
  opacity: 0.85;
  box-shadow: 0 18px 40px rgba(27, 88, 170, 0.5);
  }
}

.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  padding: 4rem 0 3rem;
}

.hero--home {
  background: radial-gradient(circle at top, rgba(40, 102, 211, 0.12), transparent 55%),
    linear-gradient(135deg, #fdf7f2, #f3f7fe);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: var(--shadow-soft);
}

.hero--home::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/hero-shape.svg") no-repeat right -30px top -40px / 340px,
    url("../images/hero-shape.svg") no-repeat left -40px bottom -60px / 280px;
  opacity: 0.25;
  pointer-events: none;
}

.hero-shape {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: 0.8;
}

.hero-shape img {
  width: 220px;
  height: auto;
}

.hero-shape--left {
  top: 10%;
  left: -60px;
}

.hero-shape--right {
  bottom: 5%;
  right: -40px;
  transform: rotate(180deg);
}

.hero__split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(2rem, 4vw, 3rem);
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.hero__content h2 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  line-height: 1.2;
  color: var(--color-dark);
}

.hero__content p {
  color: var(--color-muted);
  font-size: 1.08rem;
  max-width: 520px;
}

.hero__cta {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero__cta p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.hero__card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero__card-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.hero__card-header small {
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-muted);
}

.hero__card-header strong {
  display: block;
  font-size: 1.2rem;
  color: var(--color-dark);
}

.hero__status {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(40, 102, 211, 0.12);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.hero__card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero__card-list li {
  padding: 1rem 1.25rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius-md);
  background: var(--color-soft);
  display: grid;
  gap: 0.35rem;
}

.hero__card-list strong {
  font-size: 1.5rem;
  color: var(--color-primary);
}

.hero__card-list span {
  font-weight: 600;
  color: var(--color-dark);
}

.hero__card-list p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}


.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(40, 102, 211, 0.12);
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 1rem;
  width: fit-content;
}

.stats-grid {
  margin: 2.5rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.brand-strip {
  padding: 2rem 0 1rem;
}

.brand-strip__inner {
  background: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.08);
  padding: 2rem;
  text-align: center;
}

.brand-strip__inner p {
  margin: 0 0 1.25rem 0;
  font-weight: 600;
  color: var(--color-muted);
  font-size: 1.05rem;
}

.brand-strip__logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  align-items: center;
}

.brand-strip__logos img {
  max-height: 48px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.2s ease, filter 0.2s ease;
  filter: grayscale(1);
}

.brand-strip__logos img:hover {
  opacity: 1;
  filter: grayscale(0);
}

.stat-card {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.05);
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
}

.stat-card__value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
}

.section {
  padding: 4rem 0;
}

.section + .section {
  margin-top: 1rem;
}

#contact-cta {
  padding-top: 0;
  margin-top: 0;
}

.section__inner {
  background: var(--color-panel);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow-soft);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.section__inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(40, 102, 211, 0.08), transparent 45%),
    radial-gradient(circle at 85% 0%, rgba(27, 88, 170, 0.12), transparent 50%);
  pointer-events: none;
}

.section__inner-bg-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

.section-ribbon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 0;
  opacity: 0.8;
  pointer-events: none;
}

.section-ribbon img {
  max-width: 240px;
  height: auto;
}

.section-ribbon--left {
  left: -80px;
}

.section-ribbon--right {
  right: -80px;
  transform: translateY(-50%);
}

.section.section--team {
  position: relative;
  overflow: hidden;
}

.section.section--team .section__inner {
  position: relative;
  z-index: 1;
}

.section__heading {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.section__heading--link {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.section__link {
  font-weight: 600;
  color: var(--color-muted);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s ease;
}

.section__link::after {
  content: "→";
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.section__link:hover {
  color: var(--color-primary);
}

.section__link:hover::after {
  transform: translateX(4px);
}

.section__heading h3 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--color-dark);
}

.hero--decor,
.section--decor,
.cta-block--decor {
  position: relative;
  overflow: hidden;
  z-index: 0;
}


.cta-block--decor::before,
.cta-block--decor::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.cta-block--decor::before {
  background: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
}

.cta-block--decor::after {
  background: radial-gradient(circle at 90% 10%, rgba(10, 16, 45, 0.25), rgba(10, 16, 45, 0));
}

.cta-block__shape {
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.cta-block__shape--grid {
  background-image: url("../images/decor/from-example/video/shape.svg");
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.45;
  width: 520px;
  height: 320px;
  top: auto;
  left: auto;
  right: -160px;
  bottom: -160px;
}

.cta-block__shape--glow {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0));
  mix-blend-mode: screen;
  width: 260px;
  height: 260px;
  top: -140px;
  left: -60px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.cards-grid--projects {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.cards-grid--projects > * {
  min-width: 0;
}

.cards-grid--horizontal {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 1.5rem;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 23, 42, 0.2) transparent;
}

.cards-grid--horizontal::-webkit-scrollbar {
  height: 6px;
}

.cards-grid--horizontal::-webkit-scrollbar-track {
  background: transparent;
}

.cards-grid--horizontal::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.2);
  border-radius: 3px;
}

.cards-grid--horizontal > * {
  flex: 0 0 auto;
  min-width: 320px;
  max-width: 380px;
}

.cards-grid--services {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cards-grid--services > * {
  width: 100%;
}

.service-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2rem;
  padding: 2rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  position: relative;
}

.service-card:hover {
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.12);
  transform: translateY(-2px);
}

.service-card__icon {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-soft);
  border-radius: 8px;
  color: var(--color-primary);
}

.service-card__icon svg {
  width: 40px;
  height: 40px;
}

.service-card__icon svg.fill-current {
  fill: currentColor;
}

.service-card__icon svg path {
  fill: currentColor;
}

.service-card__body {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  justify-content: space-between;
}

.service-card__body h4 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.3;
}

.service-card__body p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.6;
  font-size: 1rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.05);
  font-size: 0.85rem;
  color: var(--color-muted);
  width: fit-content;
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.service-card ul li {
  position: relative;
  padding-left: 1.25rem;
}

.service-card ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

.service-card .primary-btn {
  align-self: flex-start;
  margin-top: 0.5rem;
}

.project-card {
  background: var(--color-soft);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid var(--color-border);
  color: var(--color-dark);
}

.project-card--clickable {
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.project-card--clickable:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.15);
  border-color: var(--color-primary);
}

.project-card--clickable h4 {
  color: var(--color-dark);
  transition: color 0.2s ease;
}

.project-card--clickable:hover h4 {
  color: var(--color-primary);
}

.project-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.project-card__excerpt {
  color: var(--color-muted);
  line-height: 1.55;
}

.project-card__details {
  margin-top: 0.75rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.project-card__details ul {
  padding-left: 1.2rem;
  margin: 0.25rem 0 0;
}

.project-card__details li::marker {
  color: var(--color-primary);
}

.cards-grid--articles {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.pagination {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 0.95rem;
  color: var(--color-muted);
}

.pagination__link {
  color: var(--color-muted);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s ease;
}

.pagination__link.is-active {
  color: var(--color-primary);
  pointer-events: none;
}

.pagination__link:hover {
  color: var(--color-primary);
}

.pagination__link.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

.pagination__ellipsis {
  color: var(--color-muted);
}

.pagination__info {
  color: var(--color-muted);
}

.project-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.project-card ul {
  padding-left: 1.2rem;
  color: var(--color-muted);
  margin: 0;
}

.projects-cta {
  margin-top: 2rem;
  text-align: center;
}

.review-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.review-card__author {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.review-card__author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.team-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.team-card:hover {
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.12);
  transform: translateY(-2px);
}

.team-card__image {
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: var(--color-soft);
}

.team-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.team-card:hover .team-card__image img {
  transform: scale(1.05);
}

.team-card__body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.team-card__post {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  font-weight: 600;
}

.team-card__body h4 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-dark);
}

.team-card__body p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.team-card__contacts {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.team-card__contacts a {
  color: var(--color-muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.team-card__contacts a:hover {
  color: var(--color-primary);
}

.team-card__contacts .primary-btn {
  width: 100%;
  margin-top: 0.5rem;
}

.team-section {
  margin-bottom: 4rem;
}

.team-section:last-child {
  margin-bottom: 0;
}

.team-section__header {
  margin-bottom: 2.5rem;
}

.team-section__header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 1rem 0;
}

.team-section__header p {
  color: var(--color-muted);
  line-height: 1.7;
  margin: 0 0 1rem 0;
  font-size: 1rem;
}

.team-section__header p:last-child {
  margin-bottom: 0;
}

.cta-block {
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-soft);
}

.cta-form {
  position: relative;
}

.cta-form__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.cta-form .form-field label {
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.cta-form .form-field input,
.cta-form .form-field textarea {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  box-shadow: none;
}

.cta-form .form-field input::placeholder,
.cta-form .form-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

.cta-form textarea {
  min-height: 140px;
}

.cta-form .primary-btn {
  background: #fff;
  color: var(--color-primary);
  width: auto;
  align-self: flex-start;
  padding-inline: 1.5rem;
}

.cta-form .primary-btn:hover {
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.2);
}

.cta-form .form-field input:focus,
.cta-form .form-field textarea:focus {
  border-color: rgba(40, 102, 211, 0.7);
  box-shadow: 0 0 0 2px rgba(40, 102, 211, 0.2);
  outline: none;
}

.form-error {
  font-size: 0.85rem;
  color: #ffe0e0;
}

.page-hero {
  padding: 2.5rem 0 1.5rem;
  background: linear-gradient(120deg, rgba(40, 102, 211, 0.08), transparent);
}

.page-hero__excerpt {
  margin-top: 1rem;
  max-width: 720px;
  color: var(--color-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.breadcrumbs {
  display: flex;
  gap: 0.4rem;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: var(--color-muted);
}

.service-detail {
  display: block;
}

.service-detail__content {
  width: 100%;
}

.service-detail__note {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--color-panel);
  border-left: 3px solid var(--color-primary);
  border-radius: var(--radius-sm);
}

.service-detail__note p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.service-detail__cta {
  margin-top: 1.5rem;
}

.project-gallery {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-gallery__main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-soft);
  background: #f5f7ff;
  max-height: 420px;
}

.project-gallery__slide {
  margin: 0;
  display: none;
  cursor: zoom-in;
}

.project-gallery__slide.is-active {
  display: block;
}

.project-gallery__slide img {
  width: 100%;
  display: block;
}

.project-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 999px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--color-primary);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.project-gallery__nav:hover {
  background: var(--color-primary);
  color: #fff;
}

.project-gallery__nav--prev {
  left: 1rem;
}

.project-gallery__nav--next {
  right: 1rem;
}

.project-gallery__thumbs {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.project-gallery__thumb {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: var(--radius-md);
  padding: 0.15rem;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  flex: 0 0 110px;
}

.project-gallery__thumb img {
  width: 100%;
  height: 70px;
  object-fit: cover;
  border-radius: calc(var(--radius-md) - 2px);
  display: block;
}

.project-gallery__thumb.is-active {
  border-color: var(--color-primary);
  box-shadow: 0 8px 30px rgba(27, 88, 170, 0.25);
}

/* Галерея для статей блога */
.article-gallery {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.article-gallery__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.article-gallery__thumb {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: var(--radius-md);
  padding: 0.25rem;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  flex: 0 0 230px;
}

.article-gallery__thumb:hover {
  border-color: var(--color-primary);
  box-shadow: 0 8px 30px rgba(27, 88, 170, 0.15);
  transform: translateY(-2px);
}

.article-gallery__thumb img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: calc(var(--radius-md) - 2px);
  display: block;
}

.service-detail__panel {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.02);
}

.service-detail__panel a:not(.primary-btn) {
  color: var(--color-primary);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.service-detail__panel a:not(.primary-btn):hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.service-detail__panel a:not(.primary-btn):visited {
  color: var(--color-primary-dark);
}

.service-detail__panel + .service-detail__panel {
  margin-top: 1.5rem;
}

.pill-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.pill-filter a {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 0.9rem;
}

.pill-filter a.is-active {
  background: var(--color-primary);
  color: #fff;
  border-color: transparent;
}

.article-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  background: #fff;
}

.article-card--clickable {
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.article-card--clickable:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.15);
  border-color: var(--color-primary);
}

.article-card--clickable h4 {
  color: var(--color-dark);
  transition: color 0.2s ease;
}

.article-card--clickable:hover h4 {
  color: var(--color-primary);
}

.article-card img {
  height: 220px;
  object-fit: cover;
}

.article-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.legal-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--color-muted);
}

.legal-content h3 {
  margin: 1.5rem 0 0.25rem;
  color: var(--color-dark);
}

.legal-content ul {
  margin: 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.legal-content li {
  list-style: disc;
}

.legal-content a {
  color: var(--color-primary);
}

.footer__grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer__grid ul li a {
  color: inherit;
}

.footer a {
  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--color-primary);
}

.footer__links p {
  margin: 0 0 0.4rem;
}

.footer__links p:last-child {
  margin-bottom: 0;
}

.article-content {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1.1fr);
  gap: 2.5rem;
}

.article-content h1 {
  margin-top: 0;
}

.article-content--single {
  grid-template-columns: minmax(0, 1fr);
}

.article-content figure {
  margin: 1.5rem 0;
}

.article-content a:not(.primary-btn) {
  color: var(--color-primary);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.article-content a:not(.primary-btn):hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.article-content a:not(.primary-btn):visited {
  color: var(--color-primary-dark);
}

.sidebar-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.02);
  align-self: flex-start;
}

.project-deliverables,
.project-metrics {
  color: var(--color-muted);
  line-height: 1.6;
}

.project-deliverables ul,
.project-metrics ul {
  padding-left: 1.2rem;
  margin: 0.5rem 0 0;
}

.project-deliverables li::marker,
.project-metrics li::marker {
  color: var(--color-primary);
}

.article-nav {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

.article-nav__link {
  flex: 1 1 260px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.02);
  color: var(--color-dark);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.article-nav__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(7, 31, 78, 0.15);
  color: var(--color-primary);
}

.article-nav__hint {
  font-size: 0.85rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.article-nav__link--next {
  text-align: right;
  align-items: flex-end;
}

.sidebar-card ul li a {
  color: var(--color-muted);
  transition: color 0.2s ease;
}

.sidebar-card ul li a:hover {
  color: var(--color-primary);
}

.sidebar-card .section__link {
  margin-top: 1rem;
  display: inline-flex;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.contact-card {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.02);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

/* Убран hover эффект для лучшей совместимости */

.contact-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(40, 102, 211, 0.12), rgba(27, 88, 170, 0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}

.contact-card__icon svg {
  width: 24px;
  height: 24px;
}

.contact-card h4 {
  margin: 0;
  font-size: 1.35rem;
  color: var(--color-dark);
  font-weight: 600;
}

.contact-card__content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: var(--color-muted);
  line-height: 1.6;
}

.contact-card__content p {
  margin: 0;
}

.contact-card__item {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: baseline;
}

.contact-card__label {
  font-weight: 600;
  color: var(--color-dark);
}

.contact-card__content a {
  color: var(--color-primary);
  font-weight: 500;
  transition: color 0.2s ease;
}

.contact-card__content a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.contact-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-card__list li {
  position: relative;
  padding-left: 1.5rem;
}

.contact-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

.contact-card__section {
  margin-top: 0.5rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field--checkbox {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.checkbox-control {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  font-size: 0.9rem;
  line-height: 1.4;
}

.checkbox-control input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--color-primary);
}

.checkbox-control span {
  color: rgba(255, 255, 255, 0.92);
}

.checkbox-control span a {
  color: #fff;
  text-decoration: underline;
}

.checkbox-control span a:hover {
  color: #dbe4ff;
}

.contact-form .checkbox-control span {
  color: var(--color-muted);
}

.contact-form .checkbox-control span a {
  color: var(--color-primary);
  text-decoration: underline;
}

.contact-form .checkbox-control span a:hover {
  color: var(--color-primary-dark);
}

.project-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 999;
}

.project-lightbox.is-open {
  display: flex;
}

.project-lightbox__inner {
  max-width: min(960px, 90vw);
  max-height: 90vh;
  width: 100%;
  text-align: center;
  position: relative;
}

.project-lightbox__image {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.project-lightbox__caption {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.project-lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
}

.project-lightbox__close::before,
.project-lightbox__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 2px;
  background: currentColor;
}

.project-lightbox__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.project-lightbox__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.form-field input,
.form-field textarea {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--color-dark);
}

.form-hint {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.map-embed iframe {
  width: 100%;
  border: none;
  border-radius: var(--radius-md);
  min-height: 360px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.gallery-grid img {
  border-radius: var(--radius-md);
  height: 220px;
  object-fit: cover;
}

.richtext p + p {
  margin-top: 1rem;
}

.richtext ul {
  padding-left: 1.25rem;
  margin: 1rem 0;
  color: var(--color-muted);
}

.richtext li::marker {
  color: var(--color-primary);
}

/* Стили для ссылок в контенте */
.service-detail__content a:not(.primary-btn),
.richtext a:not(.primary-btn) {
  color: var(--color-primary);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.service-detail__content a:not(.primary-btn):hover,
.richtext a:not(.primary-btn):hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.service-detail__content a:not(.primary-btn):visited,
.richtext a:not(.primary-btn):visited {
  color: var(--color-primary-dark);
}

.certificate-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .certificate-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.certificate-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  min-height: 100%;
}

.certificate-card__image {
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, rgba(40, 102, 211, 0.05), rgba(7, 31, 78, 0.05));
}

.certificate-card__image img {
  max-height: 160px;
  width: auto;
  object-fit: contain;
}

.certificate-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.certificate-card__issuer {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.certificate-grid--individual {
  gap: 1rem;
}

.certificates-accordion {
  margin-top: 2rem;
}

.certificates-accordion__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem;
  background: var(--color-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.certificates-accordion__toggle:hover {
  background: rgba(40, 102, 211, 0.08);
  border-color: var(--color-primary);
}

.certificates-accordion__toggle svg {
  transition: transform 0.3s ease;
}

.certificates-accordion__toggle.is-open svg {
  transform: rotate(180deg);
}

.certificates-accordion__content {
  margin-top: 1.5rem;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.certificate-card--person {
  flex-direction: row;
  align-items: center;
  padding: 1.25rem;
  gap: 1rem;
}

.certificate-card--person .certificate-card__body {
  padding: 0;
  flex: 1;
}

.certificate-card__meta h4 {
  margin-bottom: 0.1rem;
}

.certificate-card__role {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin: 0;
}

.certificate-card__title {
  font-weight: 600;
  margin: 0.3rem 0;
}

.certificate-card--company {
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
}

.certificate-card--company .certificate-card__body {
  padding: 0;
}

.certificate-card--company .certificate-card__image {
  margin-left: auto;
}

.certificate-card__image--small {
  border: none;
  background: linear-gradient(135deg, rgba(40, 102, 211, 0.08), rgba(7, 31, 78, 0.08));
  padding: 0;
  margin-left: auto;
  position: relative;
  border-radius: var(--radius-lg);
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.certificate-card__image--small img {
  width: 120px;
  height: 120px;
  border-radius: 10%;
  object-fit: cover;
  display: block;
}

.certificate-card__preview {
  border: none;
  background: transparent;
  padding: 0;
  cursor: zoom-in;
}

.certificate-card__zoom {
  position: absolute;
  bottom: 0.4rem;
  right: 0.4rem;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(7, 31, 78, 0.85);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  pointer-events: none;
  box-shadow: 0 6px 14px rgba(7, 31, 78, 0.35);
}

.footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.footer a {
  color: inherit;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
}

.messages {
  width: min(960px, 94vw);
  margin: 1rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.message {
  padding: 0.85rem 1.2rem;
  border-radius: 12px;
  font-weight: 500;
}

.message.success {
  background: rgba(34, 197, 94, 0.15);
  color: #166534;
}

.message.error {
  background: rgba(248, 113, 113, 0.15);
  color: #b91c1c;
}

/* Планшеты */
@media (max-width: 900px) {
  .top-bar {
    display: none;
  }

  .site-header__inner {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .nav {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .article-content {
    grid-template-columns: 1fr;
  }

  .project-gallery__nav {
    width: 40px;
    height: 40px;
  }

  .hero__content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Мобильные устройства */
@media (max-width: 768px) {
  .site-header__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
  }

  .nav-toggle {
    display: flex;
  }

  .brand {
    /* Логотип остается слева */
  }

  .header-cta {
    display: none;
  }

  .nav {
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-panel);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-top: 1px solid var(--color-border);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    order: 4;
    width: 100%;
    box-shadow: var(--shadow-soft);
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav a {
    font-size: 1.1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
  }

  .nav a:last-child {
    border-bottom: none;
  }

  .header-cta {
    order: 2;
    margin-left: auto;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Карточки услуг на мобильных */
  .service-card {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .service-card__icon {
    width: 60px;
    height: 60px;
    align-self: flex-start;
  }

  .service-card__icon svg {
    width: 32px;
    height: 32px;
  }

  .service-card__body {
    gap: 1rem;
  }

  .service-card__body h4 {
    font-size: 1.25rem;
  }

  .service-card .primary-btn {
    align-self: center;
  }

  /* Карточки команды на мобильных */
  .team-card {
    padding: 1.5rem;
  }

  .team-card__image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    float: left;
    margin: 0 1rem 1rem 0;
    overflow: hidden;
  }

  .team-card__image img {
    border-radius: 50%;
  }

  .team-card__post {
    font-size: 0.8rem;
    margin: 0 0 0.5rem 0;
    color: var(--color-muted);
  }

  .team-card__body {
    padding: 0;
    gap: 0.75rem;
    overflow: hidden;
  }

  .team-card__body h4 {
    font-size: 1.1rem;
    margin: 0 0 0.75rem 0;
    clear: left;
  }

  .team-card__body p {
    font-size: 0.9rem;
    margin: 0 0 1rem 0;
    clear: left;
  }

  .team-card__contacts {
    margin-top: 0.75rem;
    clear: left;
    text-align: center;
  }

  .team-card__contacts .primary-btn {
    display: inline-flex;
    width: auto;
  }

  /* Карточки статей на мобильных */
  .article-card__body {
    padding: 1.25rem 0;
  }

  .article-card__body .pill {
    margin: 0 1.25rem 0.75rem 1.25rem;
  }

  .article-card__body h4 {
    font-size: 1.1rem;
    line-height: 1.3;
    margin: 0 1.25rem 0.5rem 1.25rem;
  }

  .article-card__body p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 1.25rem;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1320px, 92vw);
  }

  /* Скрываем верхнюю панель с контактами на мобильных */
  .top-bar {
    display: none;
  }

  .section__heading--link {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .hero {
    padding: 2rem 0 1.5rem;
  }

  .hero__title {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero__lead {
    font-size: 1rem;
  }

  /* Убираем flex у хлебных крошек на мобильных */
  .breadcrumbs {
    display: block;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .pill-filter {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .section {
    padding: 2rem 0;
  }

  .section--lg {
    padding: 3rem 0;
  }

  /* Section inner на мобильных */
  .section__inner {
    padding: 1.5rem;
  }

  /* Hero card на мобильных */
  .hero__card {
    padding: 1rem;
  }

  /* CTA блок на мобильных */
  .cta-block {
    padding: 2rem 1.5rem;
    margin: 0 -1rem;
  }

  .service-card img {
    height: 180px;
  }

  .brand-strip__inner {
    padding: 1.5rem;
  }

  .brand-strip__logos {
    gap: 1rem 1.5rem;
  }

  .project-gallery__thumbs {
    gap: 0.5rem;
  }

  .article-gallery__thumbs {
    gap: 0.75rem;
  }

  .article-gallery__thumb {
    flex: 0 0 calc(50% - 0.5rem);
  }

  .article-gallery__thumb img {
    height: 100px;
  }
}

/* Модальное окно */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
}

.modal__content {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-soft);
  z-index: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(40, 102, 211, 0.3) rgba(15, 23, 42, 0.05);
}

.modal__content::-webkit-scrollbar {
  width: 8px;
}

.modal__content::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.05);
  border-radius: 4px;
}

.modal__content::-webkit-scrollbar-thumb {
  background: rgba(40, 102, 211, 0.3);
  border-radius: 4px;
  transition: background 0.2s ease;
}

.modal__content::-webkit-scrollbar-thumb:hover {
  background: rgba(40, 102, 211, 0.5);
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.2s ease, background 0.2s ease;
}

.modal__close:hover {
  color: var(--color-dark);
  background: var(--color-soft);
}

.modal__content h3 {
  margin: 0 0 1.5rem 0;
  font-size: 1.5rem;
  color: var(--color-dark);
}

.modal__content .form-field {
  margin-bottom: 1.25rem;
}

.modal__content .form-field:not(.form-field--checkbox) {
  display: flex;
  flex-direction: column;
}

.modal__content .form-field:not(.form-field--checkbox) label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-dark);
}

.modal__content .form-field--checkbox {
  display: block;
}

.modal__content .form-field--checkbox .checkbox-control {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.modal__content .form-field--checkbox .checkbox-control input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.modal__content .form-field--checkbox .checkbox-control span {
  flex: 1;
  min-width: 0;
}

.modal__content .form-field input,
.modal__content .form-field textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.modal__content .form-field input:focus,
.modal__content .form-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.modal__content .primary-btn {
  width: 100%;
  margin-top: 1rem;
}

.modal__content .checkbox-control span {
  color: var(--color-muted);
}

.modal__content .checkbox-control span a {
  color: var(--color-primary);
  text-decoration: underline;
}

.modal__content .checkbox-control span a:hover {
  color: var(--color-primary-dark);
}

/* Дополнительные стили для мобильных форм */
@media (max-width: 640px) {
  /* Формы на мобильных */
  .contact-form {
    gap: 1.25rem;
  }

  .form-field input,
  .form-field textarea {
    padding: 1rem;
    font-size: 16px; /* Предотвращает зум на iOS */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .primary-btn {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }

  /* Модальные окна на мобильных */
  .modal__content {
    margin: 1rem;
    padding: 1.5rem;
    max-height: calc(100vh - 2rem);
    border-radius: var(--radius-md);
  }

  .modal__close {
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
  }

  /* CTA форма */
  .cta-form {
    gap: 1.25rem;
  }

  .cta-form__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .cta-form .form-field input,
  .cta-form .form-field textarea {
    padding: 1rem;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
  }

  .cta-form .primary-btn {
    align-self: center;
  }

  /* Контактные карточки на мобильных */
  .contact-grid {
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .contact-card {
    padding: 1rem;
    margin: 0;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  /* Контактная форма на мобильных */
  .contact-form {
    width: 100%;
    max-width: 100%;
  }

  .contact-form form {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .contact-card h4 {
    font-size: 1.2rem;
  }

  .contact-card__content {
    gap: 1rem;
  }

  .contact-card__item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .contact-card__label {
    font-size: 0.9rem;
  }

  /* Чекбоксы */
  .checkbox-control {
    align-items: flex-start !important;
    gap: 0.75rem;
  }

  .checkbox-control input[type="checkbox"] {
    width: 1.25rem !important;
    height: 1.25rem !important;
    margin-top: 0.125rem;
  }

  .checkbox-control span {
    font-size: 0.9rem;
    line-height: 1.5;
  }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
  .container {
    width: min(1320px, 88vw);
  }

  .hero__title {
    font-size: 1.75rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .partners-grid {
    grid-template-columns: 1fr;
  }

  .modal__content {
    margin: 0.5rem;
    padding: 1rem;
  }

  .top-bar__contacts {
    font-size: 0.85rem;
  }

  .social-links {
    font-size: 0.8rem;
  }

  /* CTA блок на очень маленьких экранах */
  .cta-block {
    padding: 1.5rem 1rem;
    margin: 0 -0.5rem;
  }

  .cta-form__grid {
    gap: 0.75rem;
  }

  /* Карточки на очень маленьких экранах */
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .service-card,
  .project-card,
  .team-card,
  .certificate-card {
    padding: 1rem;
  }

  /* Дополнительные улучшения для карточек услуг */
  .service-card {
    gap: 1rem;
  }

  .service-card__icon {
    width: 50px;
    height: 50px;
  }

  .service-card__icon svg {
    width: 28px;
    height: 28px;
  }

  .service-card__body h4 {
    font-size: 1.1rem;
  }

  .service-card__body p {
    font-size: 0.9rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .certificate-grid {
    grid-template-columns: 1fr;
  }

  /* Улучшение отступов */
  .stat-card {
    padding: 1rem;
  }

  .contact-card {
    padding: 0.75rem;
    width: 100%;
    max-width: 100%;
  }

  /* Section inner на очень маленьких экранах */
  .section__inner {
    padding: 1rem;
  }

  /* Контактная форма на очень маленьких экранах */
  .contact-form {
    width: 100%;
  }

  .contact-form form {
    width: 100%;
  }

  .contact-form .form-field input,
  .contact-form .form-field textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Исправление чекбокса на маленьких экранах */
  .contact-form .checkbox-control {
    padding-left: 0.25rem;
    margin-left: -0.25rem;
  }

  /* Центрирование кнопки в контактной форме */
  .contact-form .primary-btn {
    align-self: center;
    margin: 0 auto;
    display: block;
  }

  .contact-card h4 {
    font-size: 1.1rem;
  }

  .contact-card__icon {
    width: 40px;
    height: 40px;
  }

  .contact-card__icon svg {
    width: 20px;
    height: 20px;
  }

  /* Адаптивные изображения в карточках */
  .service-card img {
    width: 40px;
    height: 40px;
  }

  .team-card__image {
    width: 60px;
    height: 60px;
  }

  /* Дополнительные улучшения для карточек команды */
  .team-card__image {
    margin: 0 0.75rem 0.75rem 0;
  }

  /* Дополнительные улучшения для карточек статей */
  .article-card__body {
    padding: 1rem 0;
  }

  .article-card__body .pill {
    margin: 0 1rem 0.75rem 1rem;
  }

  .article-card__body h4 {
    font-size: 1rem;
    margin: 0 1rem 0.5rem 1rem;
  }

  .article-card__body p {
    font-size: 0.85rem;
    margin: 0 1rem;
  }
}

/* Дополнительные стили для горизонтального скролла таблиц */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-responsive table {
  min-width: 600px;
  width: 100%;
}

/* Стили для скрытия элементов на мобильных */
@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }

  .show-mobile {
    display: block !important;
  }
}

/* Улучшение touch-интерфейса */
@media (hover: none) and (pointer: coarse) {
  .primary-btn,
  .nav a,
  .service-card,
  .project-card,
  .article-card {
    -webkit-tap-highlight-color: rgba(40, 102, 211, 0.1);
  }

  .nav a {
    padding: 1rem 0;
  }

  .primary-btn {
    min-height: 44px;
  }

  /* Четкие стили для scroll-top на мобильных */
  .scroll-top {
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .scroll-top.is-visible {
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}

/* Анимации появления контента */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Базовые классы для анимаций */
.animate-on-scroll {
  opacity: 0;
  transition: all 0.6s ease-out;
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-up {
  animation: slideUp 0.8s ease-out forwards;
}

.animate-slide-left {
  animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slide-right {
  animation: slideInRight 0.8s ease-out forwards;
}

/* Задержки для последовательного появления */
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }
.animate-delay-6 { animation-delay: 0.6s; }

/* Анимации для карточек */
.card-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.card-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Анимации для заголовков */
.heading-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease-out;
}

.heading-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Оптимизация анимаций для мобильных */
@media (max-width: 768px) {
  .animate-on-scroll,
  .card-animate,
  .heading-animate {
    animation-duration: 0.5s;
    transition-duration: 0.5s;
  }

  @keyframes slideUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes slideInLeft {
    from {
      opacity: 0;
      transform: translateX(-20px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  @keyframes slideInRight {
    from {
      opacity: 0;
      transform: translateX(20px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
}

/* Отключение анимаций для пользователей с prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll,
  .card-animate,
  .heading-animate {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Отключение анимаций на очень слабых устройствах */
@media (max-width: 480px) and (max-height: 600px) {
  .animate-on-scroll,
  .card-animate,
  .heading-animate {
    animation-duration: 0.3s;
    transition-duration: 0.3s;
  }
}

/* Стили для outline кнопки */
.primary-btn--outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary) !important;
}

.primary-btn--outline:hover {
  background: var(--color-primary);
  color: #fff !important;
  border-color: var(--color-primary);
}

a.primary-btn--outline {
  color: var(--color-primary) !important;
  text-decoration: none !important;
}

a.primary-btn--outline:hover {
  color: #fff !important;
}

/* Страница 404 */
.error-404 {
  text-align: center;
  padding: 3rem 0;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-404__content {
  max-width: 600px;
  margin: 0 auto;
}

.error-404__number {
  font-size: 8rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-primary);
  margin-bottom: 1rem;
  opacity: 0.8;
}

.error-404__title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1rem;
}

.error-404__description {
  font-size: 1.1rem;
  color: var(--color-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.error-404__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.error-404__links {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.error-404__links p {
  color: var(--color-muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.error-404__links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.error-404__links li {
  margin: 0;
}

.error-404__links a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.error-404__links a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

@media (max-width: 640px) {
  .error-404__number {
    font-size: 6rem;
  }

  .error-404__title {
    font-size: 1.5rem;
  }

  .error-404__description {
    font-size: 1rem;
  }

  .error-404__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .error-404__actions .primary-btn {
    width: 100%;
  }

  .error-404__links ul {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }
}

