body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f5f7fa;
  color: #222;
}

header.hero {
  background: linear-gradient(rgba(25, 32, 43, 0.8), rgba(20, 20, 20, 0.6)),
    url('images/hero-bg-optimized.webp') no-repeat center center/cover;
  color: #fff;
  padding: 90px 0 56px 0;
  text-align: center;
  position: relative;
  min-height: 380px;
  overflow: hidden;
  animation: heroAppear .9s cubic-bezier(.44,1.7,.73,1.01) 0.05s both;
}
@keyframes heroAppear {
  from { opacity:0; transform:translateY(-50px);}
  to   { opacity:1; transform:none;}
}

/* --- Анимированный крупный логотип --- */
.site-logo {
  width: 230px;
  max-width: 90vw;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
  opacity: 0;
  transform: scale(0.85) translateY(-30px);
  animation: logoAppear .9s cubic-bezier(.44,1.7,.73,1.01) .25s forwards;
}
@keyframes logoAppear {
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
@media (max-width: 800px) {
  .site-logo { width: 150px; margin-bottom: 15px; }
}
@media (max-width: 430px) {
  .site-logo { width: 110px; }
}

/* --- Hero text --- */
.hero-text h1 {
  font-size: 2.8em;
  margin-bottom: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.1;
  animation: fadeinUp .8s .35s both;
}
.hero-text p {
  font-size: 1.25em;
  margin: 0 0 12px 0;
  line-height: 1.5;
  font-weight: 400;
  animation: fadeinUp .8s .5s both;
}
.hero-text p:last-of-type {
  margin-bottom: 28px;
  font-style: italic;
  font-size: 1.1em;
  color: #d4eaff;
}
.utp {
  font-size: 1.14em;
  background: rgba(67, 182, 89, 0.13);
  color: #fff;
  padding: 12px 24px;
  border-radius: 16px;
  display: inline-block;
  margin: 18px auto 10px auto;
  font-weight: 600;
  letter-spacing: 0.2px;
  animation: fadeinUp .7s .55s both;
}

@keyframes fadeinUp {
  from { opacity: 0; transform: translateY(30px);}
  to   { opacity: 1; transform: none;}
}

/* --- Кнопки --- */
.buttons a, .discount-form-section button {
  background: linear-gradient(90deg, #eab308 60%, #ff6500 100%);
  color: #fff !important;
  border: none;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 1.17em;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 14px #0002;
  text-decoration: none;
  transition: background 0.22s, transform 0.13s, box-shadow 0.19s;
  display: inline-block;
}

.buttons a:hover, .discount-form-section button:hover {
  background: linear-gradient(90deg, #ff6500 60%, #eab308 100%);
  box-shadow: 0 6px 22px #0002;
  transform: translateY(-2px) scale(1.04);
}


/* --- Меню --- */
.main-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  background: #263169;
  padding: 10px 0;
}
.main-nav a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  font-size: 1.08em;
  letter-spacing: 0.04em;
  transition: color 0.18s;
}
.main-nav a:hover { color: #43b659; text-decoration: underline; }
@media (max-width: 780px) {
  .main-nav { flex-wrap: wrap; gap: 15px; }
}

/* --- Контакты --- */
.contact-top, .contact-bottom {
  text-align: center;
  margin: 8px 0 14px 0;
  color: #383c77;
  font-size: 1.05em;
}
.contact-top a { color: #1d2686; text-decoration: underline; }
.contact-bottom a { color: #fff; text-decoration: underline; }

/* --- Переключатель языков --- */
.language-switcher {
  position: absolute;
  top: 18px;
  right: 30px;
  z-index: 1000;
  font-size: 15px;
  font-weight: bold;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}
.language-switcher a {
  color: #fff;
  text-decoration: none;
  margin: 0 6px;
}
.language-switcher a:hover { text-decoration: underline; }

/* --- Секции --- */
section {
  padding: 40px 20px 30px 20px;
  max-width: 950px;
  margin: 32px auto 0 auto;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 24px 0 rgba(0,0,0,0.04);
}
section h2 {
  color: #263169;
  margin-bottom: 18px;
  font-size: 2.0em;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-align: center;
}
section p {
  font-size: 1.12em;
  color: #454c58;
  line-height: 1.6;
  margin-bottom: 15px;
  text-align: center;
}
@media (max-width: 700px) {
  section {
    padding: 22px 2vw 15px 2vw;
  }
  .hero-text h1 { font-size: 1.6em; }
}

/* --- Галерея --- */
.gallery-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 10px;
}
.gallery-flex img {
  width: 220px;
  max-width: 44vw;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 1px 8px 0 rgba(60,70,90,0.07);
  transition: transform 0.2s;
}
.gallery-flex img:hover {
  transform: scale(1.025);
  box-shadow: 0 4px 18px 0 rgba(30,40,70,0.12);
}
@media (max-width: 700px) {
  .gallery-flex { gap: 10px; }
  .gallery-flex img { width: 100%; max-width: 97vw; height: 120px; }
}

/* === SERVICES GRID FIX: ровные и широкие карточки, одинаковая высота и ровное выравнивание === */
section.services {
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  background: transparent !important;
  box-shadow: none !important;
  padding-top: 28px !important;
  padding-bottom: 0 !important;
}

.services-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 28px 22px !important;
  width: 100% !important;
  margin: 0 auto !important;
  max-width: 1140px !important;
}

.service {
  background: #fff !important;
  border-radius: 16px !important;
  box-shadow: 0 3px 16px 0 #26316912 !important;
  padding: 32px 20px 28px 20px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  min-height: 190px !important;
  border: 1.5px solid #ecf0fa !important;
  transition: box-shadow 0.18s, transform 0.13s !important;
}

.service h3 {
  color: #263169 !important;
  font-size: 1.15em !important;
  font-weight: 700 !important;
  margin-top: 0 !important;
  margin-bottom: 18px !important;
  min-height: 40px !important;        /* одинаковое пространство под заголовок */
  display: flex !important;
  align-items: flex-end !important;
}

.service p {
  color: #535a6c !important;
  font-size: 1.06em !important;
  margin: 0 !important;
  flex: 1 1 auto !important;
  display: flex !important;
  align-items: flex-end !important;
}
.service h3 {
  text-align: center !important;
  width: 100% !important;
  justify-content: center !important;
  display: flex !important;
  align-items: flex-end !important;
}

@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr) !important; max-width: 700px !important;}
}
@media (max-width: 700px) {
  .services-grid { grid-template-columns: 1fr !important; gap: 13px !important; max-width: 99vw !important;}
  section.services { padding-left: 0 !important; padding-right: 0 !important;}
  .service { padding: 18px 6px 14px 6px !important;}
}



/* --- Отзывы (testimonials) --- */
.testimonials {
  background: #fff;
  padding: 46px 20px 32px 20px;
  border-radius: 18px;
  box-shadow: 0 1px 14px 0 rgba(40,40,70,0.07);
  max-width: 730px;
  margin: 38px auto 0 auto;
  text-align: center;
  position: relative;
}
.testimonials h2 {
  color: #263169;
  margin-bottom: 32px;
  font-size: 2em;
  font-weight: 700;
}
.testimonial-slider {
  position: relative;
  min-height: 220px;
}
.testimonial {
  display: none;
  flex-direction: column;
  align-items: center;
  animation: fadein 0.6s;
  min-height: 220px;
}
.testimonial.active { display: flex; }
@keyframes fadein {
  from { opacity: 0; transform: translateY(30px);}
  to   { opacity: 1; transform: translateY(0);}
}
.testimonial img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 16px;
  border: 3px solid #e4eaf5;
  box-shadow: 0 2px 8px 0 rgba(70,70,120,0.06);
}
.testimonial p {
  font-size: 1.13em;
  color: #2c3558;
  margin-bottom: 14px;
  line-height: 1.5;
}
.testimonial strong {
  color: #1b345e;
  font-weight: 700;
  font-size: 1.07em;
}
.testimonial-dots {
  margin-top: 16px;
}
.testimonial-dots .dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #c6cfde;
  margin: 0 6px;
  cursor: pointer;
  transition: background 0.25s;
}
.testimonial-dots .dot.active { background: #263169; }

/* --- Контакт форма --- */
.contact form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}
.contact input, .contact textarea {
  padding: 12px;
  font-size: 1em;
  width: 100%;
  border: 1px solid #c3d4e3;
  border-radius: 6px;
  background: #f8fafc;
}
.contact button {
  padding: 12px;
  background: #1b7e35;
  color: white;
  border: none;
  border-radius: 7px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.contact button:hover { background: #145622; }

/* --- Карта и соцсети --- */
.map {
  margin-top: 24px;
  background: #f8fafc;
  border-radius: 14px;
  box-shadow: 0 1px 6px 0 rgba(40,40,60,0.06);
  padding: 25px 15px 10px 15px;
  text-align: center;
}
.map iframe { width: 100%; border: none; border-radius: 8px; }
.social-footer {
  text-align: center;
  margin: 15px 0 0 0;
}
.social-footer a { margin: 0 8px; opacity: 0.83; vertical-align: middle; transition: opacity 0.16s; }
.social-footer a:hover { opacity: 1; }
.social-footer svg, .social-footer img { width: 32px; height: 32px; vertical-align: middle; }

/* --- Footer --- */
footer {
  text-align: center;
  padding: 20px;
  background: #263169;
  color: #fff;
  font-size: 1.04em;
  letter-spacing: 0.4px;
  border-top-left-radius: 13px;
  border-top-right-radius: 13px;
  margin-top: 24px;
}
footer .contact-bottom { color: #e3e6ec; font-size: 1em; margin-bottom: 7px; }

/* --- Анимация секций при прокрутке --- */
.fade-in { opacity:0; transform:translateY(40px); transition:all .8s cubic-bezier(.44,1.7,.73,1.01);}
.fade-in-active { opacity:1 !important; transform: none !important; }

/* --- Go top button --- */
.go-top-btn {
  position:fixed; bottom:38px; right:38px; width:44px; height:44px; border:none; background:#263169; color:#fff;
  font-size:1.7em; border-radius:50%; box-shadow:0 2px 12px 0 #0003; opacity:0; transition:opacity .2s;
  cursor:pointer; z-index:10002;
}

/* --- Мобильное меню --- */
.nav-toggle {
  display: none;
}
@media (max-width: 700px) {
  .main-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0;
    position: relative;
  }
  .nav-toggle {
    display: block;
    background: #263169;
    color: #fff;
    border: none;
    font-size: 2em;
    padding: 12px 20px 8px 20px;
    cursor: pointer;
    width: 100%;
    text-align: left;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #263169;
  }
  .nav-links.active { display: flex; }
  .nav-links a {
    padding: 16px 24px;
    border-bottom: 1px solid #314175;
    font-size: 1.1em;
  }
}.discount-form-section, .contact {
  background: rgba(255,255,255,0.92);
  border-radius: 18px;
  box-shadow: 0 4px 24px 0 #0001;
  padding: 36px 28px 28px 28px;
  margin-top: 40px;
  margin-bottom: 40px;
  max-width: 370px;
  width: 100%;
  text-align: center;
  backdrop-filter: blur(2px);
}

.discount-form-section h2,
.contact h2 {
  font-size: 1.45em;
  margin-bottom: 10px;
  color: #263169;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.discount-form-section p {
  font-size: 1em;
  color: #777;
  margin-bottom: 18px;
}

.discount-form-section form input,
.discount-form-section form textarea,
.contact form input,
.contact form textarea {
  width: 100%;
  border: 1.5px solid #c3d4e3;
  border-radius: 7px;
  margin-bottom: 16px;
  padding: 12px;
  font-size: 1em;
  background: #fafdff;
  transition: border 0.18s;
  outline: none;
  resize: none;
  box-sizing: border-box;
}

.discount-form-section form input:focus,
.discount-form-section form textarea:focus,
.contact form input:focus,
.contact form textarea:focus {
  border-color: #263169;
}

.discount-form-section form button,
.contact form button {
  background: #263169;
  color: #fff;
  border: none;
  padding: 12px 0;
  width: 100%;
  border-radius: 7px;
  font-size: 1.1em;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 #0001;
  transition: background 0.22s, box-shadow 0.19s;
}

.discount-form-section form button:hover,
.contact form button:hover {
  background: #364b8a;
  box-shadow: 0 6px 24px 0 #0002;
}


