/* Сброс */
* { margin: 0; padding: 0; box-sizing: border-box; }


html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f8f9fb;
  color: #19213a;
  min-height: 100vh;
}

/* HEADER */
header {
  position: sticky;
  top: 0;
  background: #173a6e;
  color: #fff;
  padding: 0rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(23,58,110,0.08);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: bold;
  font-size: 1.3rem;
}
.logo img {
  width: 200px;
  height: 150px;
}

/* NAVIGATION */
nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  transition: color 0.2s;
  position: relative;
}
nav a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: #f6b11c;
  transition: width 0.3s;
  position: absolute;
  left: 0;
  bottom: -3px;
}
nav a:hover::after { width: 100%; }

/* HERO BLOCK */
.hero-block {
  min-height: 100vh;
  width: 100vw;
  background: linear-gradient(90deg, #173a6e 60%, #f6b11c 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-content {
  text-align: center;
}
.hero-content h1 {
  font-size: 3.2rem;
  margin-bottom: 1rem;
}
.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}
.hero-content button {
  padding: 0.8rem 2.2rem;
  border: none;
  background: #f6b11c;
  color: #173a6e;
  font-weight: bold;
  font-size: 1.1rem;
  border-radius: 2rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.hero-content button:hover { background: #fff; color: #173a6e; }

/* WIDE BLOCKS: FULL WIDTH, CHESS STYLE */
.wide-block {
  width: 100vw;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #f8f9fb 75%, #e0e5ef 100%);
  overflow: hidden;
  position: relative;
}
.block-content {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1280px;
  width: 100%;
  gap: 4vw;
  padding: 2rem 2vw;
}
.block-img {
  flex: 1 1 48%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.block-img img {
  max-width: 520px;
  width: 100%;
  height: 62vh;
  object-fit: cover;
  border-radius: 2rem;
  box-shadow: 0 4px 32px rgba(23,58,110,0.14);
}
.block-text {
  flex: 1 1 48%;
  padding: 1rem 0;
}
.block-text h2 {
  font-size: 2.3rem;
  margin-bottom: 1.2rem;
  color: #173a6e;
}
.block-text p, .block-text ul {
  font-size: 1.15rem;
  color: #2a3556;
  margin-bottom: 0.7rem;
}
.block-text ul { padding-left: 1.1em; }
.block-text li { margin-bottom: 0.5em; }
.block-img-left .block-content { flex-direction: row; }
.block-img-right .block-content { flex-direction: row-reverse; }

/* FORMS */
form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  max-width: 400px;
}
input, textarea {
  border: 1px solid #cfd8dc;
  border-radius: 0.5rem;
  padding: 0.7rem;
  font-size: 1rem;
}
textarea { min-height: 90px; }
button[type="submit"] {
  padding: 0.7rem 2rem;
  border: none;
  background: #173a6e;
  color: #fff;
  font-weight: 500;
  border-radius: 2rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
button[type="submit"]:hover { background: #f6b11c; color: #173a6e; }

/* FOOTER */
footer {
  background: #173a6e;
  color: #fff;
  padding: 2rem 1rem 1rem 1rem;
  text-align: center;
  font-size: 1.05rem;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.footer-links a {
  color: #f6b11c;
  text-decoration: underline;
  margin: 0 0.5rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }

/* MODAL WINDOWS */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.18);
  justify-content: center;
  align-items: center;
  transition: opacity 0.2s;
}
.modal-content {
  background: #fff;
  padding: 2rem 2.2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 28px rgba(23,58,110,0.20);
  min-width: 320px;
  position: relative;
}
.close {
  position: absolute;
  right: 1.2rem;
  top: 1rem;
  font-size: 1.6rem;
  cursor: pointer;
  color: #173a6e;
}

/* ADAPTIVE */
@media (max-width:900px) {
  .block-content { flex-direction: column; gap: 2vw; }
  .block-img, .block-text { flex: 1 1 100%; width: 100%; }
  .block-img img { height: 32vh; }
}
@media (max-width:600px) {
  header { flex-direction: column; gap: 0.8rem; padding: 1rem; }
  nav ul { gap: 0.9rem; }
  .hero-content h1 { font-size: 2rem; }
  .hero-content p { font-size: 1.1rem; }
  .block-img img { height: 22vh; min-height: 140px; }
  .block-text h2 { font-size: 1.3rem; }
}
.form-success {
  margin-top: 1em;
  background: #f6b11c;
  color: #173a6e;
  font-weight: bold;
  font-size: 1.1rem;
  padding: 0.8em 1.5em;
  border-radius: 1em;
  text-align: center;
  box-shadow: 0 2px 16px rgba(23,58,110,0.10);
  transition: opacity 0.2s;
}