/* Фирменные цвета */
:root {
  --color-white: #ffffff;
  --color-blue: #0060d7;
  --color-green: #007b14;
  --color-turquoise: #00a685;
  --color-text: #222;
  --color-bg: #f8f9fa;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', 'Arial', sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.header {
  background: var(--color-blue);
  color: var(--color-white);
  padding: 18px 0 10px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.header__logo {
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: 1px;
}
.nav {
  display: flex;
  gap: 24px;
}
.nav__link {
  color: var(--color-white);
  text-decoration: none;
  font-size: 1.1rem;
  padding: 10px 28px;
  border-radius: 32px;
  font-weight: 600;
  position: relative;
  background: linear-gradient(90deg, var(--color-blue) 0%, var(--color-turquoise) 100%);
  box-shadow: 0 2px 8px rgba(0,96,215,0.10);
  margin: 0 2px;
  transition: background 0.25s, box-shadow 0.25s, color 0.2s, transform 0.12s;
  overflow: hidden;
  z-index: 1;
}
.nav__link:before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, var(--color-green) 0%, transparent 80%);
  opacity: 0.18;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s;
  z-index: 0;
}
.nav__link:hover:before, .nav__link.active:before {
  width: 200%;
  height: 200%;
}
.nav__link:hover, .nav__link.active {
  background: linear-gradient(90deg, var(--color-green) 0%, var(--color-blue) 100%);
  color: #fff;
  box-shadow: 0 6px 24px rgba(0,166,133,0.13), 0 2px 12px rgba(0,96,215,0.13);
  outline: none;
  text-shadow: 0 1px 8px rgba(0,96,215,0.10);
}
.nav__link:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(0,96,215,0.10);
}
.nav__link.active, .nav__link:hover {
  background: var(--color-turquoise);
  color: var(--color-white);
}
.header__contacts {
  font-size: 1rem;
  opacity: 0.9;
}
.header__divider {
  margin: 0 8px;
  color: var(--color-turquoise);
}

.hero {
  background: linear-gradient(90deg, var(--color-blue) 60%, var(--color-turquoise) 100%);
  color: var(--color-white);
  padding: 48px 0 32px 0;
}
.hero__container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
}
.hero__content {
  flex: 1 1 320px;
}
.hero__content h1 {
  font-size: 2.5rem;
  margin-bottom: 18px;
  font-weight: 700;
}
.hero__content p {
  font-size: 1.2rem;
  margin-bottom: 28px;
}
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-size: 1.15rem;
  font-weight: 700;
  border: none;
  border-radius: 32px;
  cursor: pointer;
  text-decoration: none;
  background: linear-gradient(90deg, var(--color-green) 0%, var(--color-blue) 100%);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(0,96,215,0.10), 0 1.5px 8px rgba(0,166,133,0.10);
  transition: background 0.25s, box-shadow 0.25s, transform 0.12s, color 0.2s;
  position: relative;
  overflow: hidden;
}
.btn:before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, var(--color-turquoise) 0%, transparent 80%);
  opacity: 0.25;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s;
  z-index: 0;
}
.btn:hover:before {
  width: 220%;
  height: 220%;
}
.btn:hover, .btn:focus {
  background: linear-gradient(90deg, var(--color-blue) 0%, var(--color-turquoise) 100%);
  color: #fff;
  box-shadow: 0 8px 32px rgba(0,96,215,0.18), 0 2px 12px rgba(0,166,133,0.13);
  outline: none;
}
.btn:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(0,96,215,0.10);
}
.btn--main {
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 8px rgba(0,96,215,0.10);
}
.hero__image {
  flex: 1 1 320px;
  text-align: center;
}
.hero__image img {
  max-width: 100%;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,96,215,0.08);
}

.features {
  background: var(--color-white);
  padding: 48px 0 32px 0;
}
.features__container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}
.feature {
  flex: 1 1 220px;
  background: var(--color-bg);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,96,215,0.04);
  padding: 24px 18px;
  margin-bottom: 16px;
  min-width: 220px;
}
.feature h2 {
  color: var(--color-blue);
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.feature p {
  font-size: 1rem;
  color: #444;
}

.footer {
  background: var(--color-blue);
  color: var(--color-white);
  padding: 32px 0 16px 0;
  margin-top: 32px;
}
.footer__container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.footer__info {
  font-size: 1rem;
  line-height: 1.7;
}
.footer__info a {
  color: var(--color-turquoise);
  text-decoration: underline;
}
.footer__copyright {
  font-size: 0.95rem;
  opacity: 0.8;
}

/* Анимация появления главного текста */
.main-title-animated, .main-desc-animated {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1.2s cubic-bezier(.23,1.02,.32,1) forwards;
}
.main-title-animated {
  animation-delay: 0.2s;
}
.main-desc-animated {
  animation-delay: 0.7s;
}
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Яркий блок Интересные решения */
.solutions-bright {
  background: linear-gradient(120deg, #007b14 0%, #00a685 100%);
  color: #fff;
  padding: 64px 0 56px 0;
  position: relative;
  overflow: hidden;
}
.solutions-bright__title {
  text-align: center;
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 44px;
  letter-spacing: 1px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.13);
  position: relative;
}
.solutions-bright__title:after {
  content: '';
  display: block;
  width: 70px;
  height: 4px;
  background: #fff;
  margin: 18px auto 0;
  border-radius: 2px;
  opacity: 0.25;
}
.solutions-bright__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}
.solution-bright-card {
  background: rgba(255,255,255,0.13);
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  padding: 32px 22px 28px 22px;
  text-align: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  animation: cardFadeUp 1s cubic-bezier(.23,1.02,.32,1) forwards;
}
.solution-bright-card:nth-child(1) { animation-delay: 0.2s; }
.solution-bright-card:nth-child(2) { animation-delay: 0.4s; }
.solution-bright-card:nth-child(3) { animation-delay: 0.6s; }
.solution-bright-card:nth-child(4) { animation-delay: 0.8s; }
@keyframes cardFadeUp {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.solution-bright-card__icon {
  font-size: 2.7rem;
  margin-bottom: 18px;
  transition: transform 0.35s cubic-bezier(.23,1.02,.32,1);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.10));
}
.solution-bright-card:hover .solution-bright-card__icon {
  transform: scale(1.18) rotate(-8deg);
}
.solution-bright-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #fff;
  letter-spacing: 0.5px;
}
.solution-bright-card p {
  font-size: 1.05rem;
  color: #eafff2;
  opacity: 0.93;
}
.solution-bright-card:after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, #fff 0%, transparent 80%);
  opacity: 0.10;
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s, opacity 0.4s;
  z-index: 0;
}
.solution-bright-card:hover:after {
  width: 220%;
  height: 220%;
  opacity: 0.18;
}
@media (max-width: 1200px) {
  .container {
    max-width: 100vw;
    padding: 0 8px;
  }
}
@media (max-width: 900px) {
  .header__container, .footer__container {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .hero__container {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .solutions-bright__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 18px;
  }
  .services-grid {
    flex-direction: column;
    gap: 18px;
  }
  .service-card, .service-photo-frame {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: auto;
  }
  .service-photo-frame {
    height: 220px;
  }
}
@media (max-width: 600px) {
  body {
    overflow-x: hidden;
  }
  .container,
  .header__container,
  .footer__container {
    padding-left: 14px;
    padding-right: 14px;
    box-sizing: border-box;
  }
  .header__container,
  .footer__container {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .header__logo {
    text-align: center;
    margin-bottom: 6px;
  }
  .header__contacts {
    text-align: center;
    margin-bottom: 6px;
  }
  .nav {
    flex-direction: column;
    gap: 8px;
    align-items: center;
    margin-bottom: 6px;
  }
  .nav__link {
    width: 100%;
    text-align: center;
    padding-left: 0;
    padding-right: 0;
    min-width: 0;
    box-sizing: border-box;
  }
  .solutions-bright__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .solution-bright-card {
    padding-left: 14px;
    padding-right: 14px;
    margin-left: 0;
    margin-right: 0;
  }
  .footer__info {
    text-align: center;
    padding-left: 0;
    padding-right: 0;
  }
  .footer {
    padding-left: 0;
    padding-right: 0;
  }
  .solutions-bright,
  .services-section,
  .blue-section,
  .green-section {
    padding-left: 14px;
    padding-right: 14px;
    box-sizing: border-box;
  }
  .service-card,
  .service-photo-frame {
    margin-left: auto;
    margin-right: auto;
    display: block;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    padding-left: 14px;
    padding-right: 14px;
  }
  .contacts-section {
    padding: 18px 4px 14px 4px;
  }
  .contacts-info__block {
    padding: 6px 6px !important;
    min-width: 0 !important;
    width: 100% !important;
    flex: none !important;
    margin-bottom: 8px;
    box-sizing: border-box;
  }
}

/* Модальное окно обратной связи */
.modal {
  position: fixed;
  z-index: 1000;
  left: 0; top: 0; right: 0; bottom: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  /* Отступ сверху */
  padding-top: 48px;
  box-sizing: border-box;
}
.modal__overlay {
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.35);
  z-index: 1;
}
.modal__content {
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0,96,215,0.18), 0 2px 12px rgba(0,166,133,0.13);
  padding: 36px 28px 28px 28px;
  min-width: 320px;
  max-width: 95vw;
  width: 400px;
  animation: modalFadeIn 0.4s cubic-bezier(.23,1.02,.32,1);
  margin: 0 auto;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  /* Исправление: убираем float и любые смещения */
}
@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(40px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal__close {
  position: absolute;
  top: 12px;
  right: 18px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #007b14;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.modal__close:hover { opacity: 1; }
.modal__content h2 {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 1.4rem;
  color: #007b14;
  text-align: center;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-left: auto;
  margin-right: auto;
  display: block;
  max-width: 480px;
  width: 100%;
  box-sizing: border-box;
  padding-left: 24px;
  padding-right: 24px;
}
.contact-form label {
  font-size: 1rem;
  color: #222;
  margin-bottom: 2px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #cce5d6;
  font-size: 1rem;
  margin-top: 4px;
  background: #f8f9fa;
  transition: border 0.2s;
  max-width: 95%;
  margin-left: auto;
  margin-right: auto;
  display: block;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border: 1.5px solid #007b14;
  outline: none;
}
.contact-form button[type="submit"] {
  margin-top: 10px;
  width: 100%;
  font-size: 1.1rem;
}
@media (max-width: 500px) {
  .modal__content {
    min-width: 0;
    width: 98vw;
    padding: 18px 4vw 18px 4vw;
  }
} 
@media (max-width: 400px) {
  .main-title-animated {
    font-size: 1.05rem !important;
    line-height: 1.1;
  }
  .main-desc-animated {
    font-size: 0.93rem !important;
  }
  .btn, .btn--main {
    font-size: 0.98rem;
    padding: 10px 8px;
    min-width: 120px;
  }
  .service-card, .solution-bright-card {
    font-size: 0.93rem;
    padding: 6px 2px 10px 2px;
  }
  .service-photo-frame {
    height: 80px;
    margin-bottom: 6px;
  }
  .footer {
    font-size: 0.93rem;
    padding: 10px 0 4px 0;
  }
  .header__logo {
    font-size: 1.1rem;
  }
  .nav__link {
    font-size: 0.98rem;
    padding: 7px 10px;
  }
}
@media (max-width: 350px) {
  .main-title-animated {
    font-size: 0.93rem !important;
  }
  .btn, .btn--main {
    font-size: 0.93rem;
    padding: 8px 4px;
    min-width: 90px;
  }
}
@media (min-width: 601px) and (max-width: 900px) {
  .service-photo-frame {
    height: 160px;
  }
  .service-card {
    font-size: 1.05rem;
  }
}
@media (min-width: 901px) and (max-width: 1200px) {
  .service-photo-frame {
    height: 200px;
  }
} 
@media (max-width: 600px) {
  .contact-form {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
  .contact-form input,
  .contact-form textarea {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }
} 