/* ===== VARIABLES & RESET ===== */
:root {
  /* Цвета */
  --color-primary: #2E7D32;
  --color-primary-dark: #1B5E20;
  --color-accent: #1976D2;
  --color-text: #1A1A1A;
  --color-text-light: #555;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F8F9FA;
  --color-border: #E0E0E0;
  --color-error: #D32F2F;
  --color-success: #388E3C;
  
  /* Шрифты */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Roboto Mono', monospace;
  
  /* Размеры */
  --container-width: 1200px;
  --header-height: 72px;
  --border-radius: 12px;
  --transition: 0.3s ease;
  
  /* Тени */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.6;
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

/* ===== UTILITIES ===== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.highlight {
  color: white;
  font-weight: 600;
}

.required {
  color: var(--color-error);
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
}

.section__title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--color-primary);
  margin: 1rem auto 0;
  border-radius: 2px;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;
}

.section__subtitle {
  font-size: 1.125rem;
  color: var(--color-text-light);
  max-width: 700px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.highlight-box {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #FFA726 0%, #FFB74D 100%);
  color: #1B5E20;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.05rem;
  margin-top: 1.5rem;
  box-shadow: 0 4px 15px rgba(255, 167, 38, 0.3);
}

.highlight-box::before { content: ''; }
.highlight-box.yellow { background: linear-gradient(135deg, #FFD54F 0%, #FFE082 100%); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-align: center;
}

.btn--primary {
  background: var(--color-primary);
  color: white;
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background: var(--color-primary);
  color: white;
  border: 2px solid var(--color-primary);
}

.btn--secondary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
  padding: 0.75rem 1.25rem;
}

.btn--outline:hover {
  background: var(--color-accent);
  color: white;
}

.btn--full {
  width: 100%;
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text);
}

.logo__img {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
}

.logo__text {
  line-height: 1.2;
}

.logo__highlight {
  color: var(--color-primary);
}

.footer .logo {
  color: white;
}

.nav__list {
  display: flex;
  gap: 1.5rem;
}

.nav__link {
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition);
}

.nav__link:hover::after,
.nav__link:focus::after {
  width: 100%;
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: inherit;
  left: 0;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

/* Телефоны в шапке */
.header__phones {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.header__phone {
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color var(--transition);
  white-space: nowrap;
}

.header__phone:hover {
  color: var(--color-primary);
}

.header__cta {
  display: none;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0;
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(27,94,32,0.6) 100%);
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  color: white;
  padding: 6rem 0;
}

.hero__title {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: white;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero__subtitle {
  font-size: 1.125rem;
  color: #e8e8e8;
  margin-bottom: 2rem;
  max-width: 540px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero__stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat__value {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: #a5d6a7;
}

.stat__label {
  font-size: 0.875rem;
  color: #e0e0e0;
}

/* ===== BENEFITS ===== */
.benefits {
  padding: 5rem 0;
  background: var(--color-bg);
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.benefit-card {
  background: var(--color-bg-alt);
  padding: 1.75rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  border: 1px solid var(--color-border);
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.benefit-card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.benefit-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.benefit-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  padding: 5rem 0;
  background: var(--color-bg-alt);
}

.steps {
  display: grid;
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.25rem;
  background: var(--color-bg);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--color-primary);
}

.step__number {
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.step__content h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.step__content p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* ===== PRODUCTS ===== */
.products {
  padding: 5rem 0;
  background: var(--color-bg);
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--color-bg-alt);
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-card__image {
  width: 100%;
  height: 280px;
  overflow: hidden;
  position: relative;
  background: #f0f0f0;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card__image img {
  transform: scale(1.05);
}

.product-card__image img.portrait {
  object-position: center top;
}

.product-card__content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.product-card__desc {
  color: var(--color-text-light);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.product-card__specs {
  margin: 1rem 0;
  font-size: 0.9rem;
  list-style: none;
}

.product-card__specs li {
  padding: 0.35rem 0;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product-card .btn {
  margin-top: auto;
}

/* ===== ОЦИФРОВКА ПОЛЕЙ ===== */
.digitization {
  padding: 6rem 0;
  background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
  position: relative;
  overflow: hidden;
}

.digitization__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.digitization__services,
.digitization__benefits {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.digitization__services h3,
.digitization__benefits h3 {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.service-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 12px;
  border-left: 4px solid var(--color-primary);
  transition: all 0.3s ease;
}

.service-item:hover {
  transform: translateX(8px) translateY(-2px);
  box-shadow: 0 8px 25px rgba(46, 125, 50, 0.15);
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #66BB6A 100%);
  color: white;
  border-radius: 12px;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.service-content h4 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.service-content p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

.benefits-check {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.benefits-check li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: linear-gradient(135deg, #E8F5E9 0%, #ffffff 100%);
  border-radius: 10px;
  border: 1px solid #C8E6C9;
  transition: all 0.3s ease;
}

.benefits-check li:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.1);
}

.check-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #66BB6A 100%);
  color: white;
  border-radius: 50%;
  font-size: 0.875rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ===== ОБРАБОТКА ПОЛЕЙ ===== */
.treatment {
  padding: 6rem 0;
  background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 50%, #388E3C 100%);
  position: relative;
  overflow: hidden;
}

.treatment .section-header h2,
.treatment .section-header h3,
.treatment .section-header h4 {
  color: white;
}

.treatment .section__subtitle {
  color: rgba(255, 255, 255, 0.9);
}

.treatment__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.treatment__advantages {
  background: rgba(255, 255, 255, 0.95);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.treatment__advantages h3 {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--color-primary);
}

.advantages-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.advantages-list li {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  border-left: 4px solid var(--color-primary);
}

.advantages-list li:hover {
  transform: translateX(8px) scale(1.02);
  box-shadow: 0 8px 25px rgba(46, 125, 50, 0.2);
}

.adv-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #66BB6A 100%);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.adv-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--color-text);
}

.adv-content p {
  color: var(--color-text-light);
  font-size: 0.9rem;
  line-height: 1.5;
}

.treatment__info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

.productivity-box {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.productivity-box:hover {
  transform: translateY(-5px);
}

.clock-icon {
  font-size: 3rem;
}

.productivity-box strong {
  display: block;
  color: var(--color-primary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.productivity-box p {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.price-box {
  background: linear-gradient(135deg, #FFD54F 0%, #FFB74D 100%);
  color: #1B5E20;
  padding: 2.5rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 15px 50px rgba(255, 213, 79, 0.4);
  transition: transform 0.3s ease;
}

.price-box:hover {
  transform: scale(1.05);
}

.price-label {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  opacity: 0.9;
}

.price-value {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
}

.price-note {
  font-size: 0.95rem;
  opacity: 0.9;
  font-weight: 500;
}

.treatment-types {
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  width: 100%;
  box-sizing: border-box;
}

.treatment-types h4 {
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-primary);
}

.treatment-types ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  width: 100%;
  list-style: none;
}

.treatment-types li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 10px;
  font-weight: 600;
  color: var(--color-text);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  min-width: 0;
}

.treatment-types li:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.15);
  transform: translateY(-2px);
}

.type-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
}

/* ===== APPLICATION FORM — С ФОНОВЫМ ИЗОБРАЖЕНИЕМ ===== */
.application {
  padding: 5rem 0;
  /* Фоновое изображение с зелёным затемнением */
  background: 
    linear-gradient(135deg, rgba(0, 0, 0, 0.301) 0%, rgba(255, 255, 255, 0.3) 100%),
    url('assets/images/field-bg.jpg') center/cover no-repeat fixed;
  color: white;
  position: relative;
}

.application__wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

.application__info .section__title {
  color: white;
  text-align: left;
  margin-bottom: 1.5rem;
}

.application__info .section__title::after {
  margin: 1rem 0 0;
  background: white;
}

.application__info > p {
  margin-bottom: 2rem;
  opacity: 0.95;
}

.application__contacts {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.application__contacts a {
  color: white;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.application__contacts a:hover {
  opacity: 0.9;
}

.form {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  color: var(--color-text);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.form__group {
  margin-bottom: 1.25rem;
}

.form__label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
  background: var(--color-bg);
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
}

.form__input.error,
.form__select.error,
.form__textarea.error {
  border-color: var(--color-error);
}

.form__error {
  display: block;
  color: var(--color-error);
  font-size: 0.875rem;
  margin-top: 0.375rem;
  min-height: 1.25rem;
}

.form__checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  cursor: pointer;
}

.form__checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  cursor: pointer;
}

.form__checkbox a {
  color: var(--color-accent);
  text-decoration: none;
}

.form__checkbox a:hover {
  text-decoration: underline;
}

.form__status {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 8px;
  font-weight: 500;
  text-align: center;
  display: none;
}

.form__status.success {
  display: block;
  background: #E8F5E9;
  color: var(--color-success);
  border: 1px solid #A5D6A7;
}

.form__status.error {
  display: block;
  background: #FFEBEE;
  color: var(--color-error);
  border: 1px solid #EF9A9A;
}

/* ===== FOOTER ===== */
.footer {
  background: #1A1A1A;
  color: #E0E0E0;
  padding: 3rem 0 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
}

.footer__brand .logo {
  margin-bottom: 1rem;
}

.footer__brand p {
  color: #9E9E9E;
  font-size: 0.95rem;
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.footer__col h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__col a {
  color: #BDBDBD;
  transition: color var(--transition);
}

.footer__col a:hover {
  color: white;
}

.footer__bottom {
  text-align: center;
  padding: 1.5rem 0;
  color: #757575;
  font-size: 0.9rem;
  border-top: 1px solid #333;
}

/* ===== QR-коды внутри футера ===== */
.footer__qr {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid #333;
}

.footer__qr-title {
  color: white;
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 2rem;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  justify-items: center;
}

.qr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.qr-code-wrapper {
  background: white;
  padding: 0.75rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.qr-code-wrapper:hover {
  transform: scale(1.05);
}

.qr-code {
  width: 140px;
  height: 140px;
  object-fit: contain;
  display: block;
}

.qr-label {
  color: #BDBDBD;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.animate-on-scroll.visible {
  opacity: 1;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 768px) {
  .hero__inner {
    grid-template-columns: 1fr 1fr;
    padding: 8rem 0;
  }
  
  .digitization__grid {
    grid-template-columns: 1.2fr 1fr;
  }
  
  .treatment__grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  
  .treatment-types ul {
    grid-template-columns: 1fr 1fr;
  }
  
  .application__wrapper {
    grid-template-columns: 1fr 1.2fr;
  }
  
  .footer__inner {
    grid-template-columns: 1.2fr 1fr;
  }
  
  .header__phones {
    display: flex;
  }
  
  .header__cta {
    display: inline-flex;
  }
}

@media (min-width: 1024px) {
  .nav__toggle {
    display: none;
  }
  
  .nav__list {
    display: flex !important;
  }
}

/* ===== МОБИЛЬНАЯ АДАПТАЦИЯ ===== */
@media (max-width: 767px) {
  /* МЕНЮ ПОЛНОСТЬЮ СКРЫТО ПО УМОЛЧАНИЮ */
  .nav__list {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem 20px;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 999;
  }
  
  /* МЕНЮ ПОЯВЛЯЕТСЯ ТОЛЬКО ПРИ КЛИКЕ */
  .nav__list.active {
    display: flex;
  }
  
  .nav__link {
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
    width: 100%;
    min-height: 44px;
  }
  
  .nav__link:last-child {
    border-bottom: none;
  }
  
  .nav__toggle {
    display: block;
  }
  
  .header__phones {
    display: none !important;
  }
  
  .hero__title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    text-align: center;
  }
  
  .hero__subtitle {
    font-size: 1rem;
    text-align: center;
    max-width: 100%;
  }
  
  .hero__actions {
    flex-direction: column;
    width: 100%;
    padding: 0 1rem;
  }
  
  .hero__actions .btn {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
  
  .btn--secondary {
    background: var(--color-primary);
    color: white;
    border: 2px solid var(--color-primary);
    box-shadow: var(--shadow-md);
  }
  
  .btn--secondary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
  }
  
  .hero__stats {
    justify-content: center;
    gap: 1.5rem;
    padding: 0 1rem;
  }
  
  .stat__value {
    font-size: 1.25rem;
  }
  
  .stat__label {
    font-size: 0.8rem;
  }
  
  .btn {
    min-height: 48px;
    touch-action: manipulation;
  }
  
  .footer__col a {
    padding: 0.75rem 0;
    min-height: 44px;
  }
  
  .form__input,
  .form__select,
  .form__textarea {
    font-size: 16px;
    min-height: 48px;
  }
  
  .treatment-types ul {
    grid-template-columns: 1fr;
  }
  
  .treatment-types li {
    padding: 1.25rem;
  }
  
  .section__title {
    font-size: 1.75rem;
    text-align: center;
  }
  
  .section__subtitle {
    text-align: center;
    font-size: 1rem;
  }
  
  .advantages-list li {
    padding: 1.25rem;
  }
  
  .adv-number {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  
  .price-value {
    font-size: 2rem;
  }
  
  /* Фоновое изображение на мобильном — без fixed (для производительности) */
  .application {
    background-attachment: scroll;
  }
  
  /* QR-коды на мобильном */
  .footer__qr-title {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }
  
  .qr-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .qr-code {
    width: 180px;
    height: 180px;
  }
  
  .qr-label {
    font-size: 0.85rem;
  }
}

@media (max-width: 375px) {
  .hero__title {
    font-size: 1.5rem;
  }
  
  .hero__subtitle {
    font-size: 0.95rem;
  }
  
  .stat__value {
    font-size: 1.1rem;
  }
  
  .stat__label {
    font-size: 0.75rem;
  }
  
  .section__title {
    font-size: 1.5rem;
  }
  
  .qr-code {
    width: 160px;
    height: 160px;
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* ===== PRINT ===== */
@media print {
  .header, .footer, .hero__actions, .form {
    display: none;
  }
  
  body {
    font-size: 12pt;
    color: black;
    background: white;
  }
}