:root {
  --font-primary: "Helvetica Neue", Arial, sans-serif;
  --font-secondary: "Georgia", serif;

  --color-primary: #0a4d68;
  --color-secondary: #088395;
  --color-accent: #05bfdb;
  --color-light-accent: #f0f8ff;

  --color-text-base: #333333;
  --color-text-muted: #666666;
  --color-text-inverted: #ffffff;

  --color-background-light: #ffffff;
  --color-background-medium: #f9f9f9;
  --color-background-dark: #f0f4f8;

  --color-border: #e0e0e0;
  --color-success: #28a745;
  --color-success-background: #e9f5eb;
  --color-white: #ffffff;
  --color-black: #000000;

  --spacing-xs: 4px;
  --spacing-s: 8px;
  --spacing-m: 16px;
  --spacing-l: 24px;
  --spacing-xl: 32px;
  --spacing-xxl: 64px;

  --border-radius-small: 4px;
  --border-radius-medium: 8px;
  --border-radius-large: 16px;

  --shadow-light: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-heavy: 0 8px 24px rgba(0, 0, 0, 0.15);

  --transition-fast: 0.2s ease-in-out;
  --transition-medium: 0.4s ease-in-out;

  --max-width-container: 1200px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-primary: #4fa8c2;
    --color-secondary: #3aaab9;
    --color-accent: #05bfdb;
    --color-light-accent: #1a2a3a;

    --color-text-base: #e0e0e0;
    --color-text-muted: #a0a0a0;
    --color-text-inverted: #121212;

    --color-background-light: #121212;
    --color-background-medium: #1e1e1e;
    --color-background-dark: #282828;

    --color-border: #444444;
    --color-success: #33c355;
    --color-success-background: #1a3b23;
    --color-white: #ffffff;
    --color-black: #000000;

    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-heavy: 0 8px 32px rgba(0, 0, 0, 0.5);
  }
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  line-height: 1.7;
  background-color: var(--color-background-light);
  color: var(--color-text-base);
  transition: background-color var(--transition-fast),
    color var(--transition-fast);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-secondary);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-primary);
  margin-bottom: var(--spacing-l);
  text-wrap: balance;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.25rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.25rem;
  color: var(--color-secondary);
  margin-bottom: var(--spacing-m);
}

p {
  margin-bottom: var(--spacing-m);
  max-width: 75ch;
}

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover,
a:focus {
  color: var(--color-accent);
  text-decoration: underline;
}

ul,
ol {
  list-style-position: inside;
  padding-left: var(--spacing-m);
  margin-bottom: var(--spacing-m);
}

li {
  margin-bottom: var(--spacing-s);
}

ul {
  list-style-type: disc;
}

ol {
  list-style-type: decimal;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: var(--max-width-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--spacing-l);
  padding-right: var(--spacing-l);
}

.cta-button {
  display: inline-block;
  background-color: var(--color-secondary);
  color: var(--color-text-inverted);
  padding: var(--spacing-m) var(--spacing-xl);
  border-radius: var(--border-radius-medium);
  text-decoration: none;
  font-weight: 700;
  border: 2px solid transparent;
  transition: background-color var(--transition-fast),
    color var(--transition-fast), border-color var(--transition-fast),
    transform var(--transition-fast);
}

.cta-button:hover,
.cta-button:focus {
  background-color: var(--color-accent);
  color: var(--color-text-inverted);
  transform: translateY(-3px);
  text-decoration: none;
  box-shadow: var(--shadow-medium);
}

.cta-button:active {
  transform: translateY(-1px);
  box-shadow: var(--shadow-light);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--spacing-xxl);
}

.section-header h2 {
  margin-bottom: var(--spacing-m);
}

.section-header p {
  font-size: 1.125rem;
  color: var(--color-text-muted);
}

.main-header {
  background-color: var(--color-background-light);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: var(--spacing-m) 0;
  transition: background-color var(--transition-fast),
    border-color var(--transition-fast);
}

.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  color: var(--color-accent);
}

.nav-menu {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: var(--spacing-xl);
}

.nav-menu a {
  text-decoration: none;
  font-weight: 600;
  color: var(--color-text-base);
  padding: var(--spacing-s) 0;
  position: relative;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-fast);
}

.nav-menu a:hover::after,
.nav-menu a:focus::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  padding: var(--spacing-s) var(--spacing-l);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-toggle .icon {
  width: 30px;
  height: 30px;
  stroke: var(--color-primary);
}

.hero-section {
  padding: var(--spacing-xxl) 0;
  background-color: var(--color-light-accent);
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xxl);
  align-items: center;
}

.hero-content h1 {
  margin-bottom: var(--spacing-l);
}

.hero-content .subtitle {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-xl);
  max-width: 60ch;
}

.hero-cta {
  font-size: 1.125rem;
  padding: var(--spacing-l) var(--spacing-xxl);
}

.hero-subtext {
  margin-top: var(--spacing-m);
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.hero-image img {
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-heavy);
}

.divider {
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--color-border),
    transparent
  );
  margin: 0 auto;
  width: 100%;
}

.features-section {
  padding: var(--spacing-xxl) 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
}

.feature-card {
  background-color: var(--color-background-light);
  border: 1px solid var(--color-border);
  padding: var(--spacing-xl);
  border-radius: var(--border-radius-medium);
  text-align: center;
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast);
  box-shadow: var(--shadow-light);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-medium);
}

.feature-icon {
  margin-bottom: var(--spacing-l);
}

.feature-icon svg {
  width: 48px;
  height: 48px;
  stroke: var(--color-secondary);
  stroke-width: 1.5;
}

.feature-card h3 {
  margin-bottom: var(--spacing-m);
}

.feature-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.content-section-light {
  padding: var(--spacing-xxl) 0;
  background-color: var(--color-background-medium);
}

.content-section-dark {
  padding: var(--spacing-xxl) 0;
  background-color: var(--color-background-dark);
}

.content-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xxl);
  align-items: center;
}

.content-container.reverse {
  grid-template-columns: 1fr 1fr;
}

.content-container.reverse .content-text {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}

.content-container.reverse .content-image {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}

.content-text header h2 {
  margin-bottom: var(--spacing-m);
}

.content-text header p {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-xl);
}

.content-text ul {
  list-style-type: none;
  padding: 0;
}

.content-text ul li {
  padding-left: var(--spacing-xl);
  position: relative;
}

.content-text ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-secondary);
  font-weight: bold;
}

.content-image img {
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-medium);
}

.tabs-section {
  padding: var(--spacing-xxl) 0;
  background-color: var(--color-background-light);
}

.tabs-container {
  max-width: 900px;
  margin: 0 auto;
}

.tab-buttons {
  display: flex;
  justify-content: center;
  margin-bottom: var(--spacing-xl);
  border-bottom: 1px solid var(--color-border);
}

.tab-button {
  padding: var(--spacing-m) var(--spacing-l);
  background-color: transparent;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-muted);
  border-bottom: 3px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--spacing-s);
}

.tab-button:hover {
  color: var(--color-primary);
}

.tab-button.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-accent);
}

.tab-button svg {
  stroke: currentColor;
  width: 20px;
  height: 20px;
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.testimonials-section {
  padding: var(--spacing-xxl) 0;
  background-color: var(--color-background-dark);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
}

.testimonial-card {
  background-color: var(--color-background-light);
  border-radius: var(--border-radius-medium);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-medium);
  display: flex;
  flex-direction: column;
}

.testimonial-card blockquote {
  flex-grow: 1;
  border-left: 3px solid var(--color-accent);
  padding-left: var(--spacing-l);
  margin: 0 0 var(--spacing-l) 0;
}

.testimonial-card blockquote p {
  font-style: italic;
  color: var(--color-text-muted);
}

.testimonial-card footer {
  font-weight: 600;
}

.testimonial-card cite {
  font-style: normal;
  color: var(--color-primary);
}

.testimonial-card span {
  display: block;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

.faq-section {
  padding: var(--spacing-xxl) 0;
  background-color: var(--color-background-medium);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-medium);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  background-color: var(--color-background-light);
  border: none;
  text-align: left;
  padding: var(--spacing-l);
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-primary);
  transition: background-color var(--transition-fast);
}

.faq-question:hover {
  background-color: var(--color-light-accent);
}

.faq-question svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-text-muted);
  transition: transform var(--transition-fast);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0, 1, 0, 1), padding 0.5s ease-in-out;
  background-color: var(--color-background-light);
}

.faq-answer p {
  padding: 0 var(--spacing-l) var(--spacing-l);
  margin-bottom: 0;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  transition: max-height 1s cubic-bezier(1, 0, 1, 0);
}

.faq-more {
  text-align: center;
  margin-top: var(--spacing-xl);
}

.cta-form-section {
  padding: var(--spacing-xxl) 0;
  background-color: var(--color-primary);
}

.cta-form-section .section-header h2,
.cta-form-section .section-header p {
  color: var(--color-text-inverted);
}

.form-container {
  max-width: 700px;
  margin: 0 auto;
  background-color: var(--color-background-light);
  padding: var(--spacing-xxl);
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-heavy);
}

.registration-form .form-row {
  display: flex;
  gap: var(--spacing-l);
  margin-bottom: var(--spacing-l);
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: var(--spacing-s);
  color: var(--color-text-base);
}

.form-group input {
  width: 100%;
  padding: var(--spacing-m);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-small);
  font-size: 1rem;
  transition: border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.form-group input:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(8, 131, 149, 0.2);
}

.form-legal {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-l);
}

.form-submit {
  width: 100%;
  font-size: 1.125rem;
  border: none;
}

.form-success-message {
  text-align: center;
  padding: var(--spacing-xl);
  border: 1px solid var(--color-success);
  background-color: var(--color-success-background);
  border-radius: var(--border-radius-medium);
  color: var(--color-success);
}

.form-success-message h3 {
  color: var(--color-success);
}

.main-footer {
  padding: var(--spacing-xxl) 0 0;
  background-color: var(--color-background-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--spacing-xxl);
  padding-bottom: var(--spacing-xxl);
}

.footer-column h4 {
  margin-bottom: var(--spacing-l);
  font-family: var(--font-primary);
  font-weight: 700;
  color: var(--color-primary);
}

.footer-column p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: var(--spacing-s);
}

.footer-column ul a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.footer-column ul a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.footer-column.contact address {
  font-style: normal;
  line-height: 1.6;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.footer-column.contact p {
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: var(--spacing-l) 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0;
}

.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-background-dark);
  color: var(--color-text-base);
  padding: var(--spacing-l);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-l);
  transform: translateY(100%);
  animation: slideInUp 0.5s forwards;
}

@keyframes slideInUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.cookie-consent-banner.hidden {
  animation: slideOutDown 0.5s forwards;
}

@keyframes slideOutDown {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(100%);
  }
}

.cookie-consent-banner p {
  margin: 0;
  font-size: 0.9rem;
}

.cookie-consent-banner a {
  text-decoration: underline;
}

.cookie-consent-button {
  background-color: var(--color-secondary);
  color: var(--color-white);
  border: none;
  padding: var(--spacing-s) var(--spacing-l);
  border-radius: var(--border-radius-small);
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
}

.cookie-consent-button:hover {
  background-color: var(--color-accent);
}

@media (max-width: 1200px) {
  h1 {
    font-size: 2.75rem;
  }
  h2 {
    font-size: 2rem;
  }
}

@media (max-width: 992px) {
  .container {
    padding-left: var(--spacing-xl);
    padding-right: var(--spacing-xl);
  }

  h1 {
    font-size: 2.5rem;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-background-light);
    flex-direction: column;
    padding: var(--spacing-l);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-light);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu li {
    width: 100%;
    text-align: center;
  }

  .nav-cta {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    order: 2;
  }

  .hero-image {
    order: 1;
    max-width: 500px;
    margin: 0 auto;
  }

  .hero-content .subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .content-container,
  .content-container.reverse {
    grid-template-columns: 1fr;
  }

  .content-container.reverse .content-text,
  .content-container.reverse .content-image {
    grid-column: 1 / 2;
  }

  .content-image {
    max-width: 500px;
    margin: 0 auto;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
  }

  .footer-column.about,
  .footer-column.contact {
    grid-column: 1 / 3;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .container {
    padding-left: var(--spacing-m);
    padding-right: var(--spacing-m);
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .cta-button {
    padding: var(--spacing-m) var(--spacing-l);
  }

  .hero-cta {
    padding: var(--spacing-l) var(--spacing-xl);
  }

  .tab-buttons {
    flex-direction: column;
  }

  .tab-button {
    border-bottom: 1px solid var(--color-border);
  }

  .tab-button.active {
    border-bottom: 1px solid var(--color-border);
    background-color: var(--color-light-accent);
  }

  .registration-form .form-row {
    flex-direction: column;
    gap: var(--spacing-l);
    margin-bottom: 0;
  }

  .registration-form .form-row .form-group {
    margin-bottom: var(--spacing-l);
  }

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

  .footer-column.about,
  .footer-column.contact {
    grid-column: auto;
  }

  .cookie-consent-banner {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-m);
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: var(--spacing-s);
    padding-right: var(--spacing-s);
  }

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

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

  .form-container {
    padding: var(--spacing-xl);
  }
}
