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

:root {
  --color-primary: #003c73;
  --color-accent-light: #89c6ff;
  --color-accent-vibrant: #c20a08;
  --color-neutral-text: #707070;
  --color-white: #ffffff;
  --color-light-bg: #f8f9fa;
  --color-border: #dee2e6;
}

body,
html {
  margin: 0;
  padding: 0;
  font-family: "Lato", sans-serif;
  line-height: 1.6;
  background-color: var(--color-white);
  color: #333;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hero-section {
  width: 100%;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  box-sizing: border-box;
}

.hero-content-block {
  width: 100%;
  max-width: 750px;
  text-align: center;
}

.hero-content-block h1 {
  font-size: 2.8rem;
  line-height: 1.2;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-neutral-text);
  margin-bottom: 2.5rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: left;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  font-size: 1rem;
  font-family: "Lato", sans-serif;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-accent-light);
  box-shadow: 0 0 0 3px rgba(137, 198, 255, 0.4);
}

.form-input.form-input-error {
  border-color: var(--color-accent-vibrant);
}

.error-message {
  color: var(--color-accent-vibrant);
  font-size: 0.9em;
  font-weight: 700;
  margin: -0.75rem 0 0 5px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.2s ease-in-out;
}

.error-message.visible {
  opacity: 1;
  max-height: 2em;
  margin-top: 0;
}

.submit-button {
  width: 100%;
  padding: 16px 20px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-white);
  background-color: var(--color-accent-vibrant);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease, opacity 0.2s ease;
}

.submit-button:hover {
  background-color: #a90907;
}

.submit-button:active {
  transform: scale(0.99);
}

.submit-button:disabled {
  background-color: #cccccc;
  opacity: 0.7;
  cursor: not-allowed;
}

.turnstile-container {
  margin: 0 auto;
}

.optional-form-elements {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.optional-label {
  position: absolute;
  top: -0.7em;
  left: 12px;
  padding: 0 8px;
  font-size: 0.9em;
  color: var(--color-neutral-text);
  background-color: var(--color-white);
}

.features-prompt {
  font-size: 1rem;
  font-weight: 700;
  color: #333;
  margin: 0;
}

.features-grid-checkboxes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.feature-checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.feature-checkbox-item:hover {
  background-color: var(--color-light-bg);
}

.feature-checkbox-item input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 5px;
  width: 1.15em;
  height: 1.15em;
  accent-color: var(--color-accent-vibrant);
}

.feature-text h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
  color: #333;
}

.feature-text p {
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
  color: var(--color-neutral-text);
}

.success-message-container {
  display: none;
  text-align: center;
  padding: 3rem 1rem;
}

.success-message-container h2 {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.success-message-container p {
  font-size: 1.15rem;
  color: var(--color-neutral-text);
  max-width: 500px;
  margin: 0 auto;
}

.form-submission-error {
  display: none;
  color: var(--color-accent-vibrant);
  background-color: rgba(194, 10, 8, 0.05);
  border: 1px solid rgba(194, 10, 8, 0.2);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.9em;
  font-weight: 700;
  text-align: center;
}

.info-section {
  width: 100%;
  padding: 5rem 2rem;
  box-sizing: border-box;
  background-color: var(--color-light-bg);
}

.info-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.info-section h2 {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.info-subtitle {
  font-size: 1.15rem;
  color: var(--color-neutral-text);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: left;
}

.principle-item {
  background-color: var(--color-white);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.principle-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.principle-item h4 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem 0;
  color: var(--color-accent-vibrant);
}

.principle-item p {
  font-size: 0.95rem;
  margin: 0;
  color: var(--color-neutral-text);
}

footer {
  width: 100%;
  text-align: center;
  padding: 2.5rem 1rem;
  box-sizing: border-box;
}

footer p {
  margin: 0.25rem auto;
  color: var(--color-neutral-text);
}

footer a {
  font-weight: 400;
  color: var(--color-primary);
}

.scroll-indicator {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  z-index: 1000;
}

.scroll-indicator.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-indicator .arrow-svg {
  width: 24px;
  height: 24px;
  color: var(--color-white);
  transition: transform 0.3s ease;
}

.scroll-indicator.arrow-up .arrow-svg {
  transform: rotate(180deg);
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: 200ms ease-in-out;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  z-index: 2000;
  background-color: var(--color-white);
  width: 90%;
  max-width: 800px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.modal.active {
  transform: translate(-50%, -50%) scale(1);
}

.modal-header {
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
}

.modal-header .modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
}

.modal-header .modal-close-button {
  cursor: pointer;
  border: none;
  background: none;
  font-size: 2rem;
  font-weight: 300;
  color: var(--color-neutral-text);
}

.modal-body {
  padding: 1.5rem;
  max-height: 70vh;
  overflow-y: auto;
}

.modal-body p,
.modal-body li {
  color: var(--color-neutral-text);
  font-size: 1rem;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: 200ms ease-in-out;
  pointer-events: none;
  z-index: 1999;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

@media (max-width: 900px) {
  .principles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 3rem 1.5rem;
    min-height: auto;
  }

  .hero-content-block h1 {
    font-size: 2.2rem;
  }

  .features-grid-checkboxes {
    grid-template-columns: 1fr;
  }

  .info-section {
    padding: 4rem 1.5rem;
  }

  .info-section h2 {
    font-size: 2rem;
  }

  .principles-grid {
    grid-template-columns: 1fr;
  }
}
