:root {
  --blue: #1E4FA3;
  --blue-dark: #173d80;
  --blue-light: #2f66c4;
  --dark: #2E3138;
  --dark-2: #23262b;
  --yellow: #F2B705;
  --bg: #f5f7fa;
  --white: #ffffff;
  --text: #2E3138;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --shadow-sm: 0 2px 8px rgba(46, 49, 56, 0.06);
  --shadow-md: 0 8px 24px rgba(46, 49, 56, 0.10);
  --shadow-lg: 0 16px 40px rgba(46, 49, 56, 0.16);
  --shadow-blue: 0 10px 30px rgba(30, 79, 163, 0.30);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Arial', system-ui, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
  font-size: 17px;
  overflow-x: hidden;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== ХЕДЕР ===== */
.header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.25s;
}

.header:hover {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 30px;
}

#logo-mark {
  width: 180px;
  flex-shrink: 0;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  text-decoration: none;
  color: var(--dark);
  font-size: 17px;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--blue);
  transition: width 0.25s ease;
}

.nav a:hover {
  color: var(--blue);
}

.nav a:hover::after {
  width: 100%;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-shrink: 0;
}

.header-phone {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.header-phone:hover {
  color: var(--blue);
}

/* ===== БУРГЕР (по умолчанию скрыт) ===== */
.burger {
  display: none;
  width: 46px;
  height: 46px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
  position: relative;
  z-index: 1001;
}

.burger:hover {
  background: var(--blue);
  border-color: var(--blue);
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: background 0.2s, transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.burger:hover span {
  background: #fff;
}

.burger.active {
  background: var(--blue);
  border-color: var(--blue);
}

.burger.active span {
  background: #fff;
}

.burger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.burger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===== КНОПКИ ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--blue);
  color: #fff;
  padding: 15px 28px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s, gap 0.25s;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(30, 79, 163, 0.20);
  position: relative;
  overflow: hidden;
  font-family: inherit;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.18) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s;
}

.btn:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
  gap: 14px;
}

.btn:hover::before {
  transform: translateX(120%);
}

.btn:active {
  transform: translateY(0);
}

.btn .arrow {
  font-size: 18px;
  line-height: 1;
  transition: transform 0.25s;
}

.btn:hover .arrow {
  transform: translateX(4px);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow-blue);
}

/* ===== БАННЕР ===== */
.banner {
  background-image: url(../image/banner.png);
  background-repeat: no-repeat;
  background-size: cover;
  color: #fff;
  padding: 100px 0 90px;
  position: relative;
  overflow: hidden;
}

.banner::before {
  content: '';
  position: absolute;
  right: -10%;
  top: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(30, 79, 163, 0.28) 0%, transparent 65%);
  pointer-events: none;
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

.banner::after {
  content: '';
  position: absolute;
  left: -8%;
  bottom: -30%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(242, 183, 5, 0.10) 0%, transparent 70%);
  pointer-events: none;
}

.banner-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.banner-tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #fff;
  background: var(--blue);
  padding: 8px 16px;
  border-radius: 2px;
  margin-bottom: 26px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(30, 79, 163, 0.4);
  transition: transform 0.25s;
}

.banner h1 {
  font-size: 64px;
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 26px;
}

.banner h1 .accent {
  color: var(--blue-light);
  display: inline-block;
  transition: transform 0.3s;
}

.banner h1:hover .accent {
  transform: translateX(4px);
}

.banner-sub {
  font-size: 19px;
  color: #c9ced6;
  margin-bottom: 12px;
  max-width: 520px;
  line-height: 1.55;
}

.banner-sub strong {
  color: #fff;
  font-weight: 700;
}

/* ===== СЕКЦИИ ===== */
.section {
  padding: 90px 0;
}

.section-alt {
  background: var(--bg);
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 18px;
  position: relative;
  padding-left: 40px;
}

.section-tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 28px;
  height: 2px;
  background: var(--blue);
  transform: translateY(-50%);
  transition: width 0.25s;
}

.section-tag:hover::before {
  width: 36px;
}

.section-title {
  font-size: 44px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.12;
  margin-bottom: 20px;
  color: var(--dark);
}

.section-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 50px;
  line-height: 1.6;
}

.services-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 50px;
}

/* ===== УСЛУГИ ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(.2, .8, .3, 1), box-shadow 0.35s, border-color 0.3s;
  cursor: pointer;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s;
  z-index: 2;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  padding-top: 20px;
  padding-left: 26px;
  font-size: 30px;
  line-height: 1;
  transition: transform 0.35s, color 0.35s;
  display: flex;
  gap: 8px;
}

.service-icon img {
  width: 50px;
}

.service-icon h3 {
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
  line-height: 1.25;
  transition: color 0.25s;
}

.service-card:hover .service-icon img {
  transform: scale(1.15) rotate(-4deg);
}

.service-card:hover h3 {
  color: var(--blue);
}

.service-card p {
  font-size: 14.5px;
  color: var(--text-muted);
  padding: 0 26px 20px;
  flex-grow: 1;
  line-height: 1.55;
}

.service-img {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #eef1f5 0%, #dfe3e8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa1ab;
  font-size: 13px;
  border-top: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  transition: background 0.35s;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, 0.5) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.7s;
}

.service-card:hover .service-img::after {
  transform: translateX(100%);
}

.service-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 26px;
  border-top: 1px solid var(--border);
  transition: background 0.3s;
}

.service-card:hover .service-foot {
  background: #fafbfd;
}

.service-foot span a:first-child {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.25s;
}

.service-card:hover .service-foot span a:first-child {
  color: var(--blue);
}

.service-arrow {
  width: 34px;
  height: 34px;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  font-size: 16px;
  transition: background 0.3s, transform 0.3s, color 0.3s;
}

.service-card:hover .service-arrow {
  background: var(--yellow);
  color: var(--dark);
  transform: translateX(4px) rotate(-8deg);
}

/* ===== ПРЕИМУЩЕСТВА ===== */
.advantages {
  background: var(--dark);
  color: #fff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.advantages::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -50%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(30, 79, 163, 0.18) 0%, transparent 65%);
  transform: translateX(-50%);
  pointer-events: none;
}

.advantages .section-tag {
  color: #7ea3e0;
}

.advantages .section-tag::before {
  background: #7ea3e0;
}

.advantages h2 {
  font-size: 40px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 55px;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 26px;
  position: relative;
  z-index: 1;
}

.adv-item {
  text-align: center;
  padding: 20px 10px;
  border-radius: 4px;
  transition: transform 0.3s, background 0.3s;
  cursor: default;
}

.adv-item:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.04);
}

.adv-icon {
  width: 68px;
  height: 68px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 26px;
  color: #fff;
  transition: border-color 0.3s, background 0.3s, transform 0.4s, box-shadow 0.3s;
}

.adv-item:hover .adv-icon {
  border-color: var(--yellow);
  background: rgba(242, 183, 5, 0.10);
  transform: scale(1.12) rotate(6deg);
  box-shadow: 0 0 0 6px rgba(242, 183, 5, 0.06);
}

.adv-item h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.35;
}

.adv-item p {
  font-size: 13.5px;
  color: #9aa1ab;
  line-height: 1.5;
}

/* ===== КОНСУЛЬТАЦИЯ ===== */
.consult-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 70px;
  align-items: center;
}

.consult-form {
  background: #fff;
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: var(--shadow-md);
  transition: transform 0.35s, box-shadow 0.35s;
}

.consult-form:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.consult-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.field {
  position: relative;
}

.field input,
.field textarea {
  width: 100%;
  padding: 16px 18px;
  border: 1.5px solid var(--border);
  border-radius: 3px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
}

.field input:hover,
.field textarea:hover {
  border-color: #c8ced8;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(30, 79, 163, 0.10);
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #9aa1ab;
}

.consult-privacy {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 16px;
}

/* ===== НАШИ РАБОТЫ ===== */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-bottom: 44px;
}

.work-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa1ab;
  font-size: 14px;
  transition: transform 0.4s cubic-bezier(.2, .8, .3, 1), box-shadow 0.4s;
  box-shadow: var(--shadow-sm);
  background: #dfe3e8;
}

.work-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-lg);
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-card-img {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.work-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(35, 38, 43, 0.15) 100%);
  transition: background 0.4s;
  pointer-events: none;
  z-index: 1;
}

.work-card:hover::after {
  background: linear-gradient(180deg, transparent 30%, rgba(30, 79, 163, 0.25) 100%);
}

.work-caption {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(transparent, rgba(35, 38, 43, 0.95));
  color: #fff;
  padding: 60px 22px 20px;
  font-size: 14px;
  line-height: 1.45;
  text-align: left;
  transition: padding 0.35s;
  z-index: 2;
}

.work-card:hover .work-caption {
  padding-bottom: 26px;
}

.center-btn {
  text-align: center;
}

/* ===== ОТЗЫВЫ ===== */
.reviews {
  background: var(--dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.reviews::before {
  content: '';
  position: absolute;
  right: -10%;
  top: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(30, 79, 163, 0.20) 0%, transparent 70%);
  pointer-events: none;
}

.reviews .section-tag {
  color: #7ea3e0;
}

.reviews .section-tag::before {
  background: #7ea3e0;
}

.reviews .section-title {
  color: #fff;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 44px;
  position: relative;
  z-index: 1;
}

.review-wrap {
  transition: transform 0.35s;
}

.review-wrap:hover {
  transform: translateY(-6px);
}

.review-card {
  background: #fff;
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa1ab;
  font-size: 13px;
  border-radius: 4px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.35s;
  overflow: hidden;
}

.review-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.review-wrap:hover .review-card {
  box-shadow: 0 14px 34px rgba(30, 79, 163, 0.35);
}

.review-caption {
  margin-top: 14px;
  font-size: 13px;
  color: #c9ced6;
  text-align: center;
  transition: color 0.25s;
}

.review-wrap:hover .review-caption {
  color: #fff;
}

/* ===== О КОМПАНИИ ===== */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.about-text p {
  font-size: 16px;
  color: #4b5563;
  margin-bottom: 18px;
  line-height: 1.65;
}

.about-text a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(30, 79, 163, 0.3);
  transition: border-color 0.2s, color 0.2s;
}

.about-text a:hover {
  border-color: var(--blue);
  color: var(--blue-dark);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 40px;
}

.stat {
  transition: transform 0.3s;
  cursor: default;
}

.stat:hover {
  transform: translateY(-4px);
}

.stat-num {
  font-size: 40px;
  font-weight: 900;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 8px;
  transition: color 0.3s;
}

.stat:hover .stat-num {
  color: var(--blue-light);
}

.stat-label {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

.about-img {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #dfe3e8 0%, #cdd3da 100%);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa1ab;
  font-size: 15px;
  transition: transform 0.4s, box-shadow 0.4s;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-img:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-lg);
}

/* ===== ПОДВАЛ ===== */
.footer {
  background: var(--dark-2);
  color: #fff;
  padding: 70px 0 28px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  left: 30%;
  bottom: -40%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(30, 79, 163, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
  gap: 44px;
  margin-bottom: 44px;
  position: relative;
  z-index: 1;
}

.footer .logo {
  color: #fff;
  margin-bottom: 20px;
}

.footer img {
  width: 200px;
}

.footer-about {
  font-size: 14px;
  color: #9aa1ab;
  line-height: 1.65;
  margin-bottom: 22px;
}

.footer h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  color: #fff;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 12px;
}

.footer a {
  color: #9aa1ab;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s, padding-left 0.25s;
  display: inline-block;
  position: relative;
}

.footer ul a:hover {
  color: #fff;
  padding-left: 6px;
}

.footer-contacts p,
.footer-contacts a {
  font-size: 14px;
  color: #9aa1ab;
  margin-bottom: 12px;
  display: flex;
  gap: 10px;
  line-height: 1.5;
  transition: color 0.25s;
}

.footer-contacts p:hover,
.footer-contacts a:hover {
  color: #fff;
}

.footer-contacts strong {
  color: #fff;
  font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  font-size: 13px;
  color: #6b7280;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  position: relative;
  z-index: 1;
}

.footer-bottom a {
  color: #6b7280;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: #fff;
}

/* ===== МИНИ-БАННЕР СТРАНИЦЫ ===== */
.page-hero {
  background: linear-gradient(115deg, #23262b 0%, #2E3138 55%, #1a1d22 100%);
  color: #fff;
  padding: 55px 0 45px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  right: -10%;
  top: -40%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(30, 79, 163, 0.22) 0%, transparent 65%);
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
}

.breadcrumbs {
  font-size: 13px;
  color: #9aa1ab;
  margin-bottom: 16px;
}

.breadcrumbs a {
  color: #9aa1ab;
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: #fff;
}

.breadcrumbs span {
  color: #fff;
}

.page-hero h1 {
  font-size: 52px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.1;
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 18px;
  color: #c9ced6;
  max-width: 640px;
  line-height: 1.55;
}

/* ===== БЛОК УСЛУГИ ===== */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  padding: 50px 0;
  border-bottom: 1px solid var(--border);
}

.service-block:last-child {
  border-bottom: none;
}

.service-block.reverse .service-block-text {
  order: 2;
}

.service-block.reverse .service-block-img {
  order: 1;
}

.service-block-text h2 {
  font-size: 36px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--dark);
}

.service-block-text h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 20px;
  line-height: 1.4;
}

.service-block-text p {
  font-size: 16px;
  color: #4b5563;
  margin-bottom: 16px;
  line-height: 1.7;
}

.service-block-text .btn {
  margin-top: 10px;
}

.service-block-img {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #dfe3e8 0%, #cdd3da 100%);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa1ab;
  font-size: 15px;
  transition: transform 0.4s, box-shadow 0.4s;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.service-block-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-block-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, 0.4) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.8s;
}

.service-block-img:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-lg);
}

.service-block-img:hover::after {
  transform: translateX(100%);
}

/* ===== МОДАЛКА ===== */
.modal {
  border: none;
  border-radius: 8px;
  padding: 0;
  max-width: 900px;
  width: 92%;
  max-height: 88vh;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  color: var(--text);
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}

.modal[open] {
  display: flex;
  flex-direction: column;
}

.modal::backdrop {
  background: rgba(35, 38, 43, 0.7);
  backdrop-filter: blur(3px);
}

.modal-inner {
  display: flex;
  flex-direction: column;
  max-height: 88vh;
}

.modal-header {
  padding: 26px 36px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 2;
  flex-shrink: 0;
}

.modal-header h2 {
  font-size: 24px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.2;
  color: var(--dark);
}

.modal-close {
  width: 42px;
  height: 42px;
  background: var(--bg);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 22px;
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  line-height: 1;
  font-family: inherit;
}

.modal-close:hover {
  background: var(--blue);
  color: #fff;
  transform: rotate(90deg);
}

.modal-body {
  padding: 26px 36px 36px;
  overflow-y: auto;
}

.modal-body p {
  font-size: 16px;
  color: #4b5563;
  line-height: 1.75;
  margin-bottom: 16px;
}

.modal-body h4 {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--dark);
  margin: 24px 0 12px;
}

.modal-body ul {
  list-style: none;
  margin: 14px 0 20px;
}

.modal-body ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 8px;
  font-size: 16px;
  color: #4b5563;
  line-height: 1.6;
}

.modal-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--blue);
  border-radius: 50%;
}

.modal-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0 24px;
}

.modal-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

.modal-gallery .img-slot {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #eef1f5 0%, #dfe3e8 100%);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa1ab;
  font-size: 13px;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  overflow: hidden;
}

.modal-gallery .img-slot:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 24px rgba(46, 49, 56, 0.10);
}

.modal-gallery .img-slot.wide {
  grid-column: span 3;
  aspect-ratio: 21/9;
}

.modal-cta {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.modal-cta-text {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 380px;
}

/* ===== МОДАЛКА ЗАЯВКИ ===== */
.modal-request {
  max-width: 500px;
}

.modal-request .modal-body {
  padding-bottom: 32px;
}

.request-form .field input,
.request-form .field textarea {
  width: 100%;
  padding: 15px 16px;
  border: 1.5px solid var(--border);
  border-radius: 3px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.request-form .field input:hover,
.request-form .field textarea:hover {
  border-color: #c8ced8;
}

.request-form .field input:focus,
.request-form .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(30, 79, 163, 0.10);
}

.request-form .field input::placeholder,
.request-form .field textarea::placeholder {
  color: #9aa1ab;
}

.request-form .field textarea {
  resize: vertical;
  min-height: 90px;
}


/* ============================================
   АДАПТИВ
   ============================================ */

/* ---------- Планшет: 1000px и меньше ---------- */
@media (max-width: 1000px) {

  .burger {
    display: flex;
  }

  .header-inner {
    flex-wrap: nowrap;
    gap: 12px;
    padding: 16px 0;
  }

  #logo-mark {
    width: 140px;
  }

  .header-right {
    margin-left: auto;
    gap: 12px;
  }

  .header-phone {
    font-size: 14px;
  }

  .header-right .btn {
    padding: 12px 20px;
    font-size: 14px;
  }

  /* ===== ВЫЕЗЖАЮЩЕЕ МЕНЮ ===== */
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 100px 40px 40px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(.2, .8, .3, 1);
    z-index: 999;
    overflow-y: auto;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.2);
    left: auto;
    bottom: auto;
    margin: 0;
  }

  .nav.open {
    transform: translateX(0);
  }

  .nav a {
    font-size: 20px;
    font-weight: 600;
    padding: 22px 0;
    border-bottom: 1px solid var(--border);
    width: 100%;
    color: var(--dark);
    text-align: left;
  }

  .nav a::after {
    display: none;
  }

  .nav a:hover,
  .nav a.active {
    color: var(--blue);
    padding-left: 8px;
  }

  body.menu-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(35, 38, 43, 0.55);
    z-index: 998;
    animation: fadeIn 0.3s ease;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }

  body.menu-open {
    overflow: hidden;
  }

  /* ---- Контент ---- */
  .banner-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .banner h1 {
    font-size: 44px;
  }

  .page-hero h1 {
    font-size: 36px;
  }

  .section-title {
    font-size: 32px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .advantages-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 20px;
  }

  .advantages h2 {
    font-size: 30px;
  }

  .consult-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-inner {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-block {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 0;
  }

  .service-block.reverse .service-block-text {
    order: 1;
  }

  .service-block.reverse .service-block-img {
    order: 2;
  }

  .service-block-text h2 {
    font-size: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .modal-header {
    padding: 20px 24px 16px;
  }

  .modal-body {
    padding: 22px 24px 28px;
  }

  .modal-header h2 {
    font-size: 19px;
  }

  .modal-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .modal-gallery .img-slot.wide {
    grid-column: span 2;
  }
}


/* ---------- Телефон: 700px и меньше ---------- */
@media (max-width: 700px) {

  body {
    font-size: 16px;
  }

  .container {
    padding: 0 18px;
  }

  .header-inner {
    gap: 8px;
    padding: 14px 0;
  }

  #logo-mark {
    width: 110px;
  }

  .header-phone {
    display: none;
  }

  .header-right {
    margin-left: auto;
    gap: 8px;
  }

  .header-right .btn {
    padding: 11px 16px;
    font-size: 13px;
    gap: 6px;
  }

  .header-right .btn .arrow {
    font-size: 14px;
  }

  .burger {
    width: 42px;
    height: 42px;
  }

  .burger span {
    width: 22px;
  }

  .nav {
    padding: 90px 28px 30px;
  }

  .nav a {
    font-size: 18px;
    padding: 20px 0;
  }

  .banner {
    padding: 50px 0;
  }

  .banner h1 {
    font-size: 30px;
    margin-bottom: 18px;
  }

  .banner-tag {
    font-size: 10px;
    padding: 6px 12px;
    letter-spacing: 1.2px;
    margin-bottom: 18px;
  }

  .banner-sub {
    font-size: 15px;
  }

  .banner .btn {
    margin-top: 24px;
    width: 100%;
    justify-content: center;
  }

  .page-hero {
    padding: 35px 0 32px;
  }

  .page-hero h1 {
    font-size: 24px;
    margin-bottom: 12px;
  }

  .page-hero p {
    font-size: 14.5px;
  }

  .breadcrumbs {
    font-size: 12px;
    margin-bottom: 12px;
  }

  .section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 22px;
    margin-bottom: 14px;
  }

  .section-tag {
    font-size: 10.5px;
    padding-left: 32px;
    margin-bottom: 12px;
  }

  .section-tag::before {
    width: 22px;
  }

  .section-desc {
    font-size: 15px;
    margin-bottom: 28px;
  }

  .services-head {
    margin-bottom: 30px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .service-card h3 {
    font-size: 16px;
  }

  .service-card p {
    font-size: 14px;
    padding: 0 22px 18px;
  }

  .service-icon {
    padding-top: 18px;
    padding-left: 22px;
  }

  .service-icon img {
    width: 42px;
  }

  .service-foot {
    padding: 12px 22px;
  }

  .advantages {
    padding: 45px 0;
  }

  .advantages h2 {
    font-size: 22px;
    margin-bottom: 30px;
  }

  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 14px;
  }

  .adv-item {
    padding: 14px 6px;
  }

  .adv-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 14px;
  }

  .adv-item h3 {
    font-size: 13.5px;
  }

  .adv-item p {
    font-size: 12.5px;
  }

  .consult-form {
    padding: 22px;
  }

  .consult-form .row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .field input,
  .field textarea {
    padding: 14px 15px;
    font-size: 15px;
  }

  .field textarea {
    min-height: 90px;
  }

  .consult-form .btn,
  .request-form .btn {
    width: 100%;
    justify-content: center;
  }

  .works-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .work-caption {
    padding: 44px 16px 16px;
    font-size: 13px;
  }

  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .review-caption {
    font-size: 12px;
    margin-top: 10px;
  }

  .about-inner {
    gap: 26px;
  }

  .about-text p {
    font-size: 15px;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 26px;
  }

  .stat-num {
    font-size: 30px;
  }

  .stat-label {
    font-size: 12.5px;
  }

  .service-block {
    padding: 30px 0;
    gap: 22px;
  }

  .service-block-text h2 {
    font-size: 22px;
    margin-bottom: 14px;
  }

  .service-block-text h3 {
    font-size: 16px;
    margin-bottom: 14px;
  }

  .service-block-text p {
    font-size: 15px;
  }

  .service-block-text .btn {
    width: 100%;
    justify-content: center;
  }

  .modal {
    width: 94%;
    max-height: 92vh;
    border-radius: 6px;
  }

  .modal-header {
    padding: 16px 18px 14px;
  }

  .modal-header h2 {
    font-size: 15.5px;
    line-height: 1.3;
  }

  .modal-close {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .modal-body {
    padding: 18px 18px 24px;
  }

  .modal-body p {
    font-size: 14.5px;
  }

  .modal-body h4 {
    font-size: 14px;
    margin: 18px 0 10px;
  }

  .modal-body ul li {
    font-size: 14.5px;
  }

  .modal-gallery {
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 16px 0 20px;
  }

  .modal-gallery .img-slot.wide {
    grid-column: span 1;
    aspect-ratio: 4/3;
  }

  .modal-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 20px;
    padding-top: 18px;
  }

  .modal-cta-text {
    font-size: 14px;
    max-width: 100%;
  }

  .modal-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .footer {
    padding: 45px 0 22px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 28px;
  }

  .footer img {
    width: 160px;
  }

  .footer h4 {
    font-size: 13px;
    margin-bottom: 14px;
  }

  .footer ul li {
    margin-bottom: 8px;
  }

  .footer a {
    font-size: 13.5px;
  }

  .footer-bottom {
    font-size: 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}


/* ---------- Очень маленькие: 420px ---------- */
@media (max-width: 420px) {

  .container {
    padding: 0 14px;
  }

  #logo-mark {
    width: 90px;
  }

  .header-right .btn {
    padding: 9px 12px;
    font-size: 12px;
  }

  .header-right .btn .arrow {
    display: none;
  }

  .burger {
    width: 38px;
    height: 38px;
  }

  .burger span {
    width: 20px;
  }

  .nav {
    padding: 80px 22px 24px;
  }

  .nav a {
    font-size: 17px;
    padding: 18px 0;
  }

  .banner h1 {
    font-size: 26px;
  }

  .page-hero h1 {
    font-size: 21px;
  }

  .section-title {
    font-size: 20px;
  }

  .advantages h2 {
    font-size: 20px;
  }

  .advantages-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .stat-num {
    font-size: 26px;
  }

  .modal {
    width: 96%;
  }

  .modal-header {
    padding: 14px 14px 12px;
  }

  .modal-body {
    padding: 14px 14px 20px;
  }
}

/* ===== НАПРАВЛЕНИЯ ДЕЯТЕЛЬНОСТИ ===== */
.directions-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 20px;
}

.direction-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 26px 28px;
  transition: transform 0.35s cubic-bezier(.2, .8, .3, 1), box-shadow 0.35s, border-color 0.3s;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  cursor: default;
}

.direction-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: var(--blue);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s;
}

.direction-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.direction-item:hover::before {
  transform: scaleY(1);
}

.direction-item h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.3;
  transition: color 0.25s;
}

.direction-item:hover h3 {
  color: var(--blue);
}

.direction-item p {
  font-size: 15px;
  color: #4b5563;
  line-height: 1.6;
}

/* ===== ЦЕЛИ (нумерованный список) ===== */
.goals-list {
  list-style: none;
  margin-top: 20px;
  counter-reset: goal;
}

.goals-list li {
  position: relative;
  padding: 14px 20px 14px 54px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: 12px;
  font-size: 16px;
  color: #4b5563;
  line-height: 1.6;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  counter-increment: goal;
}

.goals-list li::before {
  content: counter(goal);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  transition: background 0.3s, transform 0.3s;
}

.goals-list li:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
  border-color: #c8ced8;
}

.goals-list li:hover::before {
  background: var(--blue-dark);
  transform: translateY(-50%) scale(1.1);
}

/* ===== СЕРТИФИКАТЫ ===== */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.cert-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(.2, .8, .3, 1), box-shadow 0.35s, border-color 0.3s;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.cert-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s;
  z-index: 2;
}

.cert-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.cert-card:hover::before {
  transform: scaleX(1);
}

.cert-img {
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, #eef1f5 0%, #dfe3e8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa1ab;
  font-size: 13px;
  overflow: hidden;
  position: relative;
}

.cert-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, 0.5) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.7s;
}

.cert-card:hover .cert-img::after {
  transform: translateX(100%);
}

.cert-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== МОДАЛКА ПРОСМОТРА (сертификат / отзыв) ===== */
.modal-viewer {
  max-width: 800px;
}

.modal-viewer .modal-body {
  padding: 20px;
  text-align: center;
  background: var(--bg);
}

.modal-viewer .modal-body img {
  max-width: 100%;
  max-height: 75vh;
  display: block;
  margin: 0 auto;
  border-radius: 4px;
  box-shadow: var(--shadow-md);
}

/*
09:37
===== АДАПТИВ для новых блоков ===== */
@media (max-width: 1000px) {
  .directions-list {
    grid-template-columns: 1fr;
  }

  .certs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 700px) {
  .certs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .direction-item {
    padding: 20px 22px;
  }

  .direction-item h3 {
    font-size: 15.5px;
  }

  .direction-item p {
    font-size: 14px;
  }

  .goals-list li {
    padding: 12px 16px 12px 48px;
    font-size: 14.5px;
  }

  .goals-list li::before {
    width: 22px;
    height: 22px;
    font-size: 12px;
    left: 14px;
  }

  .modal-viewer {
    width: 94%;
  }
}

@media (max-width: 420px) {
  .certs-grid {
    grid-template-columns: 1fr;
  }

  .goals-list li {
    padding: 10px 14px 10px 44px;
  }
}

/* ===== СЕТКА СТАТЕЙ ===== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.article-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(.2, .8, .3, 1), box-shadow 0.35s, border-color 0.3s;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.article-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s;
  z-index: 2;
}

.article-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.article-card:hover::before {
  transform: scaleX(1);
}

.article-link {
  display: block;
  color: inherit;
  height: 100%;
}

.article-img {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #eef1f5 0%, #dfe3e8 100%);
  overflow: hidden;
  position: relative;
}

.article-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s;
}

.article-card:hover .article-img img {
  transform: scale(1.05);
}

.article-body {
  padding: 22px 24px 24px;
}

.article-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.article-body h3 {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 10px;
  color: var(--dark);
  transition: color 0.25s;
}

.article-card:hover h3 {
  color: var(--blue);
}

.article-body p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.article-more {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  transition: transform 0.25s;
}

.article-card:hover .article-more {
  transform: translateX(4px);
}

/* ===== СТРАНИЦА ОДНОЙ СТАТЬИ ===== */
.article-single {
  max-width: 820px;
  margin: 0 auto;
}

.article-meta {
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.article-hero-img {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #eef1f5 0%, #dfe3e8 100%);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
}

.article-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-single p {
  font-size: 17px;
  color: #4b5563;
  line-height: 1.75;
  margin-bottom: 20px;
}

.article-single h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--dark);
  margin: 36px 0 16px;
  line-height: 1.3;
}

.article-cta {
  margin-top: 50px;
  padding: 36px;
  background: var(--bg);
  border-radius: 6px;
  border: 1px solid var(--border);
}

.article-cta h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--dark);
}

.article-cta p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 22px;
  line-height: 1.6;
}

.article-cta .btn {
  margin-top: 6px;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 1000px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .article-body {
    padding: 18px 20px 20px;
  }

  .article-body h3 {
    font-size: 16px;
  }

  .article-single p {
    font-size: 15.5px;
  }

  .article-single h2 {
    font-size: 20px;
    margin: 28px 0 14px;
  }

  .article-cta {
    padding: 24px;
    margin-top: 36px;
  }

  .article-cta h3 {
    font-size: 18px;
  }

  .article-cta .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .articles-grid {
    gap: 16px;
  }

  .article-body {
    padding: 16px 18px 18px;
  }

  .article-body h3 {
    font-size: 15px;
  }
}

.phone-error {
  font-size: 12px;
  color: #e53935;
  margin-top: 6px;
  line-height: 1.3;
}

.input-error {
  border-color: #e53935 !important;
}
.name-error {
  font-size: 12px;
  color: #e53935;
  margin-top: 6px;
  line-height: 1.3;
}
.field-error-msg {
  font-size: 12px;
  color: #e53935;
  margin-top: 6px;
  line-height: 1.3;
}

.input-error {
  border-color: #e53935 !important;
}

