@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap");

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

html,
body {
  /*height: 100%;*/
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  color: #577387;
  background: linear-gradient(to bottom, #ffffff, #f5f5f5, #ffffff, #f5f5f5);
}

.main {
  flex: 1;
}

.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}

.row {
  margin-right: 0;
  margin-left: 0;
}
.line {
  width: 100%;
  border: 0;
  border-top: 1px solid #ccc;
  height: 1px;
  position: relative;
  margin: 50px 0;
}
.safety-list {
  margin: 90px 0 50px 0;
  text-align: center;
}
.safety-list h2 {
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  max-width: 75%;
  margin: 20px auto;
}
.safety-list img {
  border: 0;
  width: 75px;
  margin: 30px 0 0 0;
}

/* Header */
.header {
  width: 100%;
  max-width: 1261px;
  margin: 0 auto;
  /*background: white;*/
  border-bottom: 1px solid #d1d1d1;
  padding: 25px 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  position: relative;
}
.logo span {
  position: relative;
  left: 4px;
  top: 6px;
  margin: 0;
  font-size: 1.85em;
  color: #777777;
  font-weight: 300;
}
.logo-image {
  width: 91px;
  cursor: pointer;
}

.support-link {
  color: #1a6fca;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
  text-decoration-line: underline;
  text-decoration-style: dotted;
}

.support-link:hover {
  color: #3367d6;
  text-decoration: underline;
}

/* Main Content */
.main {
  padding: 80px 0;
}

.hero {
  display: flex;
  gap: 51px;
  align-items: center;
  min-height: 500px;
}

.hero-content {
  width: 100%;
  max-width: 608px;
}

.hero-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  color: #1a1a1a;
  margin-bottom: 40px;
  max-width: 566px;
}

.hero-subtitle {
  font-size: 24px;
  color: #577387;
  margin-bottom: 19px;
  line-height: 29px;
}

.hero-description {
  font-size: 18px;
  color: #577387;
  margin-bottom: 40px;
  /*line-height: 22px;*/
}

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

.btn {
  height: 55px;
  border-radius: 8px;
  font-size: 20px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  min-width: 260px;
}

.btn-primary {
  background-color: #1a6fca;
  color: white;
}

.btn-primary:hover {
  background-color: #3367d6;
  transform: translateY(2px);
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: #1a6fca;
  border: 2px solid #1a6fca;
}

.btn-secondary:hover {
  background-color: #4285f4;
  background-color: #3367d6;
  color: white;
  transform: translateY(2px);
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.2);
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 645px;
}

.family-image,
.welcome-image {
  width: 100%;
  height: auto;
  max-width: 645px;
}
.welcome-image {
  display: none;
}

.footer {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: #8e8e8e;
}

.footer-container {
  border-top: 1px solid #1a60ca;
  margin: 0 auto;
  padding: 0 15px;
  padding: 15px 0;

  display: flex;
  align-items: center;
  gap: 58px;
}

.footer-right {
  display: flex;
  gap: 58px;
}

.footer-right a {
  color: #1a6fca;
  text-decoration: none;
  border-bottom: 1px dotted transparent;
  transition: border-color 0.3s;
}

.footer-right a:hover {
  border-color: #1a6fca;
}

/* Responsive Design */

@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .hero-image {
    display: none;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-title {
    font-size: 42px;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .header {
    padding: 16px 0;
    padding: 25px 0 0 0;
  }
  .support-link {
    display: none;
  }
  .welcome-image {
    display: block;
    margin: 0 0 15px 0;
  }
  .footer-container {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .logo-text {
    font-size: 28px;
  }

  .main {
    padding: 40px 0;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-title {
    font-size: 36px;
    margin-bottom: 24px;
  }

  .hero-subtitle {
    font-size: 16px;
    margin-bottom: 20px;
    display: none;
  }

  .hero-description {
    font-size: 15px;
    margin-bottom: 32px;
  }

  .hero-buttons {
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }

  .safety-list,
  .safety-list h2 {
    text-align: center;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .header-content {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .support-link {
    display: none;
  }
  .hero-title {
    font-size: 28px;
    line-height: 1.3;
  }

  .hero-subtitle {
    font-size: 15px;
    display: none;
  }

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

  .btn {
    padding: 14px 24px;
    font-size: 15px;
  }

  .main {
    padding: 32px 0;
  }
}

@media (max-width: 360px) {
  .hero-title {
    font-size: 24px;
  }

  .container {
    padding: 0 12px;
  }
}

.lang-switcher {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.lang-current {
  margin-right: 47px;
  border-bottom: 1px solid #2a67c7;
  color: #2a67c7;
  font-size: 14px;
  font-weight: 500;
  padding: 4px 0;
}

.lang-options {
  width: 170px;
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-top: 8px;
  z-index: 100;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.lang-options div {
  padding: 10px 14px;
  cursor: pointer;
  color: #444;
  font-size: 14px;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-options div:hover span {
  border-bottom: 1px solid #2a67c7;
}
.lang-options div:hover {
  background: #f2f2f2;
  color: #2a67c7;
}

.lang-switcher.open .lang-options {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* --- Адаптив для планшетов --- */
@media (max-width: 768px) {
  .lang-current {
    margin-right: 20px;
    font-size: 16px;
  }
  .lang-options {
    width: 150px;
    font-size: 15px;
  }
}

/* --- Адаптив для телефонов --- */
@media (max-width: 480px) {
  .lang-switcher {
    display: block;
    margin: 10px auto;
    text-align: center;
  }

  .lang-current {
    font-size: 18px;
    margin-right: 0;
    padding: 6px 0;
  }

  .lang-options {
    width: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    max-width: 220px;
  }

  .lang-options div {
    font-size: 16px;
    padding: 12px 16px;
  }
}

.nav {
  display: flex;
  align-items: center;
}
