/* ===================================================================
   МЕДИА-ЦЕХ: Фирменный дизайн-код (Рефакторинг с Тильды)
   Шрифт: Оригинальный TildaSans
   Цвета: #196259 (Изумрудный), #b65d77 (Бордово-малиновый)
   =================================================================== */

@import url('/css/fonts.css');

:root {
  --color-primary: #196259;
  --color-primary-dark: #0f3d37;
  --color-accent: #b65d77;
  --color-accent-hover: #9c0528;
  --color-text-dark: #222222;
  --color-text-muted: #555555;
  --color-bg-light: #f7f9f9;
  --color-border: #e8eded;
  --font-family: 'TildaSans', Arial, sans-serif;
  --container-width: 1200px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 20px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body, input, textarea, button, select, h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
}

body {
  color: var(--color-text-dark);
  background-color: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

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

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

/* ================= HEADER ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  height: 90px;
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo img {
  height: 50px;
  width: auto;
  border-radius: 4px;
}

.header-logo-text {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.5px;
}

.header-logo-sub {
  font-size: 11px;
  color: var(--color-accent);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 22px;
}

.nav-link {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--color-accent);
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-accent);
  transition: width 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

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

.header-phone {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-accent);
  white-space: nowrap;
}

.header-phone:hover {
  color: var(--color-accent-hover);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-link {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, opacity 0.2s;
  flex-shrink: 0;
}

.social-link:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.social-link svg {
  width: 32px;
  height: 32px;
  display: block;
}

.btn-max {
  display: inline-block;
  padding: 7px 14px;
  background-color: #f0f3f3;
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 700;
  border-radius: 20px;
  white-space: nowrap;
  transition: all 0.2s;
}

.btn-max:hover {
  background-color: var(--color-primary);
  color: #ffffff;
}

.burger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.burger-btn span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--color-accent);
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.3s;
}

/* ================= HERO SECTION ================= */
.hero-cover {
  position: relative;
  background-color: #0b272a;
  background-size: cover;
  background-position: center center;
  color: #ffffff;
  padding: 95px 0 85px;
  text-align: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(9, 47, 51, 0.88) 0%, rgba(8, 29, 31, 0.82) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 950px;
  margin: 0 auto;
}

.hero-breadcrumbs {
  font-size: 14px;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.7);
}

.hero-breadcrumbs a {
  color: #ffffff;
  text-decoration: underline;
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 21px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 34px;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  font-family: inherit;
}

.btn-primary {
  background-color: var(--color-accent);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(182, 93, 119, 0.35);
}

.btn-white {
  background-color: #ffffff;
  color: var(--color-accent);
}

.btn-white:hover {
  background-color: var(--color-accent);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-telegram {
  background-color: #ffffff;
  color: #27a7e7;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-telegram:hover {
  background-color: #27a7e7;
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-accent);
  color: #ffffff;
  transform: translateY(-1px);
}

/* ================= ABOUT SPLIT BLOCK (T480) ================= */
.about-section {
  padding: 80px 0;
  background-color: #ffffff;
}

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

.split-img-box {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.split-img-box img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.split-text-box h2 {
  font-size: 38px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.split-subtitle {
  font-size: 20px;
  line-height: 1.4;
  color: #333333;
  margin-bottom: 20px;
}

.accent-line {
  width: 70px;
  height: 3px;
  background-color: var(--color-primary);
  margin-bottom: 24px;
}

.split-body {
  font-size: 17px;
  color: #444444;
  line-height: 1.7;
}

.split-body p {
  margin-bottom: 16px;
}

/* ================= SECTION HEADINGS ================= */
.section-header {
  text-align: center;
  max-width: 850px;
  margin: 0 auto 50px;
}

.section-header h2 {
  font-size: 40px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.section-header p {
  font-size: 18px;
  color: var(--color-text-muted);
}

/* ================= SERVICES CARDS GRID (T850 / T106) ================= */
.services-section {
  padding: 80px 0;
  background-color: var(--color-bg-light);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 25px;
}

.service-card {
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 30px 25px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.03);
  position: relative;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.card-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--color-accent);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.card-badge.geo {
  background-color: var(--color-primary);
}

.card-title {
  font-size: 21px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 14px;
  line-height: 1.3;
}

.card-title a:hover {
  color: var(--color-accent);
}

.card-descr {
  font-size: 15px;
  color: #666666;
  margin-bottom: 24px;
  line-height: 1.5;
  flex-grow: 1;
}

.card-btn-wrap {
  margin-top: auto;
}

.card-btn {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.card-btn:hover {
  color: var(--color-accent-hover);
}

/* ================= ARTICLE CONTENT ================= */
.article-section {
  padding: 70px 0;
  background-color: #ffffff;
}

.content-article {
  max-width: 900px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.75;
  color: #333333;
}

.content-article p {
  margin-bottom: 20px;
}

.lead-text {
  font-size: 21px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--color-primary-dark);
  margin-bottom: 30px !important;
  border-left: 4px solid var(--color-accent);
  padding-left: 18px;
}

.content-article h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 40px 0 20px;
  letter-spacing: -0.3px;
}

.content-article h3 {
  font-size: 23px;
  font-weight: 700;
  color: var(--color-accent);
  margin: 30px 0 15px;
}

.content-article ul,
.content-article ol {
  margin: 20px 0 30px 24px;
}

.content-article li {
  margin-bottom: 12px;
}

.feature-box {
  background-color: var(--color-bg-light);
  border-left: 4px solid var(--color-primary);
  padding: 24px 30px;
  margin: 30px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.warning-box {
  background-color: #fff6f8;
  border-left: 4px solid var(--color-accent);
  padding: 24px 30px;
  margin: 30px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.feature-card {
  background: var(--color-bg-light);
  padding: 24px;
  border-radius: var(--radius-sm);
  border-top: 3px solid var(--color-primary);
}

.feature-card h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 15px;
  color: #555555;
  margin-bottom: 0;
}

.sub-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.sub-link-card {
  display: block;
  background: #ffffff;
  border: 1px solid var(--color-border);
  padding: 20px;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: all 0.2s;
}

.sub-link-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.sub-link-card strong {
  display: block;
  font-size: 17px;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.sub-link-card span {
  font-size: 14px;
  color: #666666;
  line-height: 1.4;
  display: block;
}

/* ================= FAQ ACCORDION (T585) ================= */
.faq-section {
  padding: 70px 0;
  background-color: var(--color-bg-light);
}

.faq-list {
  max-width: 850px;
  margin: 0 auto;
}

.faq-item {
  background: #ffffff;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.faq-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 26px;
  font-size: 18px;
  font-weight: 700;
  color: #333333;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: inherit;
}

.faq-trigger:hover {
  color: var(--color-primary);
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f0f3f3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 18px;
  font-weight: 700;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: var(--color-accent);
  color: #ffffff;
}

.faq-content {
  padding: 0 26px 24px;
  font-size: 16px;
  color: #555555;
  line-height: 1.6;
  display: none;
}

.faq-item.active .faq-content {
  display: block;
}

/* ================= ПОЧЕМУ МЫ? (T491) ================= */
.why-us-section {
  padding: 70px 0 50px;
  background-color: #ffffff;
  text-align: center;
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.why-us-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.why-us-icon {
  width: 70px;
  height: 70px;
  margin-bottom: 20px;
  object-fit: contain;
}

.why-us-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.why-us-descr {
  font-size: 16px;
  color: #555555;
  line-height: 1.5;
}

/* ================= ПОЛЕЗНЫЕ СТАТЬИ (T404) ================= */
.articles-section {
  padding: 70px 0 65px;
  background-color: #f7f9f9;
}

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

.article-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.article-img-wrap {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: #e5eceb;
}

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

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

.article-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.35;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

.article-card:hover .article-title {
  color: var(--color-accent);
}

.article-descr {
  font-size: 15px;
  color: #666666;
  line-height: 1.5;
  margin-top: auto;
}

/* ================= РАБОТА У НАС (T482 / #work) ================= */
.work-section {
  padding: 75px 0 80px;
  background-color: #ffffff;
}

.work-box {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.work-title {
  font-size: 42px;
  font-weight: 700;
  color: #555555;
  margin-bottom: 12px;
}

.work-divider {
  width: 70px;
  height: 3px;
  background-color: var(--color-primary);
  margin: 0 auto 35px;
}

.work-body {
  text-align: left;
  background: #fdfdfd;
  border: 1px solid #e8eded;
  border-radius: var(--radius-md);
  padding: 35px 40px;
  margin-bottom: 35px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.work-subtitle {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 12px;
}

.work-list-ordered {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 25px;
  padding-left: 20px;
  color: #333333;
}

.work-list-ordered li {
  margin-bottom: 8px;
}

.work-list-bullet {
  font-size: 16px;
  line-height: 1.6;
  padding-left: 20px;
  list-style-type: disc;
  color: #333333;
}

.work-list-bullet li {
  margin-bottom: 6px;
}

.btn-resume {
  display: inline-block;
  background-color: var(--color-accent);
  color: #ffffff;
  padding: 15px 45px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background-color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

.btn-resume:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(182, 93, 119, 0.3);
}

/* ================= CTA BANNER ================= */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #ffffff;
  padding: 60px 0;
  text-align: center;
}

.cta-banner h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-banner p {
  font-size: 19px;
  opacity: 0.9;
  max-width: 650px;
  margin: 0 auto 30px;
}

/* ================= MEGA-FOOTER NAVIGATION ================= */
.footer-seo-nav {
  background-color: #134f47;
  padding: 50px 0 35px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: #ffffff;
}

.footer-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.footer-col h4 {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background-color: var(--color-accent);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  transition: all 0.2s;
  display: inline-block;
}

.footer-col a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

/* ================= FOOTER CONTACTS & MAP ================= */
.site-footer {
  background-color: var(--color-primary);
  color: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.footer-map-box {
  width: 100%;
  min-height: 400px;
  background-color: #e5e5e5;
}

.footer-map-box iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: 0;
}

.footer-info-box {
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.footer-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 20px;
}

.footer-contacts-list {
  list-style: none;
  margin-bottom: 25px;
}

.footer-contacts-list li {
  font-size: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-contact-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.footer-copy {
  font-size: 13px;
  opacity: 0.8;
  margin-bottom: 25px;
  line-height: 1.5;
}

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

/* ================= MODAL POPUP (T702) ================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: #ffffff;
  border-radius: var(--radius-md);
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  width: 100%;
  padding: 35px 30px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  animation: modalFadeIn 0.25s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: #999;
  transition: color 0.2s;
  line-height: 1;
}

.modal-close:hover {
  color: #222;
}

.modal-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 6px;
  text-align: center;
}

.modal-descr {
  font-size: 14px;
  color: #666;
  text-align: center;
  margin-bottom: 22px;
  line-height: 1.45;
}

.form-group {
  margin-bottom: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 5px;
}

.form-label .req {
  color: #b65d77;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d2d8d8;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  background-color: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(25, 98, 89, 0.12);
}

.file-drop-area {
  position: relative;
  border: 2px dashed #b9cccc;
  border-radius: 8px;
  padding: 14px;
  text-align: center;
  background: #fbfdfd;
  cursor: pointer;
  transition: all 0.2s ease;
}

.file-drop-area:hover,
.file-drop-area.dragover {
  border-color: var(--color-primary);
  background: #f0f7f6;
}

.file-drop-area input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-drop-text {
  font-size: 13px;
  color: #555555;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.file-drop-text u {
  color: var(--color-primary);
  font-weight: 600;
}

.file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.file-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eef5f4;
  border: 1px solid #d2e4e1;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
  color: #196259;
  font-weight: 500;
}

.file-item-remove {
  cursor: pointer;
  color: #b65d77;
  font-weight: bold;
  font-size: 14px;
  margin-left: 2px;
  line-height: 1;
}

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #666;
  cursor: pointer;
  line-height: 1.4;
  margin-bottom: 12px;
}

.form-checkbox-label input {
  margin-top: 3px;
}

.form-submit-btn {
  width: 100%;
  padding: 14px;
  background: var(--color-accent);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.2s;
}

.form-submit-btn:hover {
  background: var(--color-accent-hover);
}

.form-success-box {
  display: none;
  background: #e8f5e9;
  border: 1px solid #c8e6c9;
  color: #2e7d32;
  padding: 20px;
  border-radius: 6px;
  text-align: center;
  font-weight: 600;
  margin-top: 15px;
}

/* ===================================================================
   RESPONSIVE DESIGN & MOBILE OPTIMIZATIONS (Smartphones & Tablets)
   =================================================================== */

/* Кнопка быстрого звонка для мобильных (в хедере) */
.mobile-phone-btn {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: #f0f5f4;
  color: var(--color-primary);
  border-radius: 50%;
  transition: all 0.2s ease;
  flex-shrink: 0;
  text-decoration: none;
}

.mobile-phone-btn:hover,
.mobile-phone-btn:active {
  background: var(--color-primary);
  color: #ffffff;
}

/* Нижняя плавающая панель (скрыта на десктопе) */
.mobile-bottom-bar {
  display: none;
}

/* Стили мобильного блока в меню */
.mobile-menu-extra {
  display: none;
}

/* 1. ПЛАНШЕТЫ И НОУТБУКИ (до 992px) */
@media (max-width: 992px) {
  .site-header {
    height: 72px;
  }

  .mobile-phone-btn {
    display: inline-flex;
  }

  .header-phone,
  .social-links,
  .btn-max {
    display: none;
  }

  .burger-btn {
    display: block;
    margin-left: 6px;
  }

  /* Выдвижное меню-дровер */
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    padding: 18px 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transform: translateY(-130%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 9999;
    border-bottom: 3px solid var(--color-accent);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-menu.mobile-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-menu .nav-link {
    font-size: 15px;
    padding: 10px 0;
    display: block;
    border-bottom: 1px solid #f2f5f5;
  }

  .mobile-menu-extra {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 6px;
    padding-top: 14px;
    border-top: 2px dashed #e8eded;
  }

  .mobile-menu-phone {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .mobile-menu-phone a {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-accent);
    text-decoration: none;
  }

  .mobile-menu-socials {
    display: flex;
    gap: 8px;
  }

  .mobile-soc-btn {
    flex: 1;
    text-align: center;
    padding: 9px 12px;
    border-radius: 6px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
  }

  .mobile-soc-btn.tg { background: #229ED9; }
  .mobile-soc-btn.wa { background: #25D366; }

  .mobile-menu-order-btn {
    width: 100%;
    padding: 13px;
    text-align: center;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    background: var(--color-accent);
    color: #fff;
    border: none;
    cursor: pointer;
  }

  .burger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  .burger-btn.active span:nth-child(2) {
    opacity: 0;
  }
  .burger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }

  .split-grid {
    grid-template-columns: 1fr;
  }
  .split-img-box img {
    height: 320px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-nav-grid {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }
  .hero-title {
    font-size: 36px;
  }
  .hero-subtitle {
    font-size: 18px;
  }
}

/* 2. СМАРТФОНЫ (до 768px) - плавающая нижняя панель и перестроение сеток */
@media (max-width: 768px) {
  body {
    /* Отступ снизу для безопасного отображения над плавающей панелью */
    padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px));
  }

  /* Плавающая нижняя панель быстрого контакта */
  .mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #ffffff;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 99990;
    border-top: 1px solid #e5ebea;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .mobile-bar-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 100%;
    color: var(--color-primary);
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s;
  }

  .mobile-bar-btn svg {
    display: block;
  }

  .mobile-bar-btn.whatsapp {
    color: #25D366;
  }

  .mobile-bar-btn.telegram {
    color: #229ED9;
  }

  .mobile-bar-btn.order {
    background: var(--color-accent);
    color: #ffffff;
    margin: 4px 6px;
    height: calc(100% - 8px);
    border-radius: 8px;
    font-weight: 700;
    letter-spacing: 0.3px;
  }

  .mobile-bar-btn.order svg {
    stroke: #ffffff;
  }

  /* Hero секция */
  .hero-cover {
    padding: 55px 0 50px;
  }

  .hero-title {
    font-size: 28px;
    line-height: 1.25;
    word-break: break-word;
    hyphens: auto;
  }

  .hero-subtitle {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 22px;
  }

  .breadcrumbs {
    white-space: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    font-size: 12px;
    display: block;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    min-height: 48px;
    font-size: 15px;
    justify-content: center;
  }

  /* Каталог услуг и карточки */
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-card {
    padding: 22px 18px;
  }

  .section-header {
    margin-bottom: 35px;
  }

  .section-header h2 {
    font-size: 28px;
  }

  .section-header p {
    font-size: 15px;
  }

  /* Статьи и контент */
  .article-section {
    padding: 40px 0;
  }

  .content-article {
    font-size: 16px;
    line-height: 1.65;
  }

  .content-article h2 {
    font-size: 24px;
    margin: 30px 0 14px;
    word-break: break-word;
  }

  .content-article h3 {
    font-size: 19px;
    margin: 22px 0 10px;
  }

  .lead-text {
    font-size: 17px;
    line-height: 1.55;
    padding-left: 14px;
    border-left-width: 3px;
    margin-bottom: 20px !important;
  }

  .content-article table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Разделы Вакансии и Почему мы */
  .work-section {
    padding: 50px 0;
  }

  .work-title {
    font-size: 28px;
  }

  .work-body {
    padding: 24px 18px;
  }

  /* Футер и карта */
  .footer-map-box,
  .footer-map-box iframe {
    min-height: 280px;
    height: 280px;
  }

  .footer-info-box {
    padding: 35px 20px;
  }

  .footer-title {
    font-size: 26px;
  }

  .footer-nav-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cta-banner {
    padding: 45px 0;
  }

  .cta-banner h2 {
    font-size: 26px;
  }

  .cta-banner p {
    font-size: 16px;
  }
}

/* 3. МОБИЛЬНАЯ ОПТИМИЗАЦИЯ ФОРМ И МОДАЛОК (до 640px) */
@media (max-width: 640px) {
  .modal-overlay {
    padding: 10px 8px;
    align-items: center;
  }

  .modal-box {
    padding: 22px 16px 20px;
    max-height: 94vh;
    width: 100%;
    border-radius: 12px;
  }

  .modal-close {
    top: 6px;
    right: 6px;
    width: 44px;
    height: 44px;
    font-size: 28px;
    line-height: 44px;
    text-align: center;
  }

  .modal-title {
    font-size: 20px;
    margin-bottom: 6px;
    padding-right: 32px;
  }

  .modal-descr {
    font-size: 13px;
    margin-bottom: 16px;
    line-height: 1.4;
  }

  /* Схлопывание двух колонок в одну для эргономики на смартфонах */
  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .form-group {
    margin-bottom: 12px;
  }

  .form-label {
    font-size: 13px;
    margin-bottom: 4px;
  }

  /* 16px предотвращает автоматический зум в iOS Safari */
  .form-input,
  .form-select,
  .form-textarea {
    font-size: 16px !important;
    min-height: 46px;
    padding: 10px 12px;
    border-radius: 6px;
  }

  .form-select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23196259' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 32px;
  }

  /* Зона прикрепления файлов на сенсорных экранах */
  .file-drop-area {
    padding: 14px 10px;
  }

  .file-drop-text {
    font-size: 12.5px;
    flex-direction: column;
    gap: 4px;
  }

  .file-item {
    font-size: 12px;
    padding: 5px 8px;
  }

  .file-item-remove {
    padding: 2px 6px;
    font-size: 16px;
  }

  /* Чекбокс согласия */
  .form-checkbox-label {
    font-size: 12.5px;
    line-height: 1.4;
    min-height: 40px;
    margin-bottom: 14px;
  }

  .form-checkbox-label input {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 2px;
  }

  /* Кнопка отправки на весь экран для удобного нажатия большим пальцем */
  .form-submit-btn {
    min-height: 50px;
    font-size: 15px;
    border-radius: 8px;
    margin-top: 8px;
  }

  .form-success-box {
    padding: 18px 14px;
    border-radius: 8px;
  }
}

/* 4. КОМПАКТНЫЕ СМАРТФОНЫ (до 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .site-header {
    height: 64px;
  }

  .nav-menu {
    top: 64px;
    max-height: calc(100vh - 64px);
  }

  .header-logo img {
    height: 38px;
  }

  .header-logo-text {
    font-size: 18px;
  }

  .header-logo-sub {
    font-size: 9.5px;
  }

  .hero-title {
    font-size: 24px;
    line-height: 1.25;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .btn {
    padding: 12px 18px;
    font-size: 14px;
  }

  .badge-link {
    font-size: 12px;
    padding: 6px 12px;
  }
}

/* ================= BADGE & TELEGRAM LINKS ================= */
.badge-link {
  display: inline-block;
  padding: 8px 16px;
  background: #ffffff;
  border: 1px solid #d2dcdc;
  border-radius: 20px;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
  text-decoration: none;
}

.badge-link:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(25, 98, 89, 0.18);
}

.btn-telegram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
