/* Reset and base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Ubuntu, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #222;
  background-color: #f7f9fc;
  scroll-behavior: smooth;
}

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

a {
  text-decoration: none;
  cursor: pointer;
}

button {
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

button[disabled],
button:disabled {
  cursor: default;
  opacity: 0.6;
  pointer-events: none;
}

/* Utilities */
.container {
  max-width: 1500px;
  padding: 0 24px;
  margin: 0 auto;
}

/* Typography */
h1,
h2,
h3 {
  font-weight: 700;
  color: #2f74cc;
  margin-top: 0;
  margin-bottom: 0.6em;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 2.875rem;
  line-height: 1.1;
}

h2.section-title {
  font-size: 2rem;
  border-bottom: 3px solid #2f74cc;
  display: inline-block;
  padding-bottom: 0.25em;
  margin-bottom: 1.5em;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.4em;
  color: #1d4e9c;
}

p {
  margin-top: 0;
  margin-bottom: 1em;
  color: #444;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

button.btn,
a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  user-select: none;
  text-align: center;
  padding: 14px 28px;
  font-size: 1rem;
  line-height: 1;
  min-height: 44px;
  letter-spacing: 0.02em;
}

.btn--primary {
  background: linear-gradient(90deg, #2f74cc, #195db7);
  color: #fff;
  box-shadow: 0 4px 10px rgb(47 116 204 / 0.3);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: #195db7;
  box-shadow: 0 6px 14px rgb(25 93 183 / 0.45);
  outline-offset: 2px;
  outline: 2px solid #63aaff;
}

.btn--secondary {
  background-color: #38b2ac;
  color: #fff;
  border: 2px solid transparent;
  transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
  box-shadow: 0 4px 14px rgb(56 178 172 / 0.35);
  font-weight: 700;
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
  border-color: #2c8b86;
  background-color: #2c8b86;
  color: #daf4f3;
  outline-offset: 2px;
  outline: 2px solid #a3e3de;
  box-shadow: 0 6px 16px rgb(44 139 134 / 0.5);
}

.btn--small {
  padding: 8px 16px;
  font-size: 0.875rem;
  min-height: 36px;
  border-radius: 5px;
}

/* Header */
.header {
  background-color: #fff;
  border-bottom: 1px solid #dde3ea;
  position: sticky;
  top: 0;
  z-index: 1100;
  box-shadow: 0 1px 4px rgb(0 0 0 / 0.05);
}

.header__container {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 24px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.25rem;
  color: #2f74cc;
  user-select: none;
}

.logo__svg {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}

.logo__text {
  white-space: nowrap;
}

.nav {
  margin-left: auto;
}

.nav__list {
  display: flex;
  gap: 28px;
}

.nav__item {
  position: relative;
}

.nav__link {
  font-weight: 600;
  font-size: 1rem;
  color: #2f74cc;
  padding: 8px 4px;
  transition: color 0.3s ease;
}

.nav__link:hover,
.nav__link:focus-visible {
  color: #195db7;
  outline-offset: 3px;
  outline: 2px solid #63aaff;
  border-radius: 3px;
}

.header__user {
  margin-left: 24px;
}

.burger {
  background: none;
  border: none;
  display: none;
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 28px;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  cursor: pointer;
  z-index: 1200;
}

.burger__line {
  width: 100%;
  height: 3.5px;
  background-color: #2f74cc;
  border-radius: 2px;
  transition: background-color 0.3s ease;
}

.burger:hover .burger__line,
.burger:focus-visible .burger__line {
  background-color: #195db7;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #2f74cc 0%, #195db7 70%, #38b2ac 100%);
  color: #eef6f9;
  padding: 96px 24px 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  user-select: none;
}

.hero__container {
  max-width: 720px;
}

.hero__title {
  font-size: 3.25rem;
  font-weight: 700;
  margin-bottom: 0.5em;
  color: #caf0f8;
  text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.hero__subtitle {
  font-size: 1.25rem;
  margin-bottom: 1.5em;
  color: #d6e4ff;
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

.hero__btn {
  font-size: 1.125rem;
  box-shadow: 0 4px 14px rgb(56 178 172 / 0.7);
  border: 1.5px solid rgba(255 255 255 / 0.7);
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.hero__btn:hover,
.hero__btn:focus-visible {
  box-shadow: 0 6px 18px rgb(24 139 132 / 0.85);
  background: #22a6a0;
  border-color: #fff;
  color: #e0f7f7;
}

/* Trust strip */
.trust-strip {
  background-color: #f0fcfb;
  padding: 48px 24px 48px;
  border-radius: 0 0 56px 0;
  box-shadow: inset 0 0 40px #38b2ac33;
  margin: 0 auto 48px;
}

.trust-strip__container {
  max-width: 1140px;
}

.trust-strip__list {
  display: flex;
  flex-wrap: wrap;
  gap: 36px 56px;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

.trust-strip__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 1.1rem;
  color: #2c8b86;
  user-select: none;
  min-width: 200px;
}

.trust-strip__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  stroke: none;
  fill: #38b2ac;
  filter: drop-shadow(0 1.5px 1.5px rgba(0,0,0,0.07));
}

/* Services */
.services {
  background-color: #fff;
  padding: 72px 24px 72px;
}

.services__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 36px;
}

.service-card {
  background: #f0f5fb;
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 4px 12px rgb(47 116 204 / 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.service-card:hover,
.service-card:focus-within {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgb(47 116 204 / 0.3);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  flex-shrink: 0;
  stroke: #2f74cc;
  fill: none;
}

.service-card__icon svg {
  display: block;
}

.service-card__title {
  margin-bottom: 0.5em;
  color: #194a99;
}

.service-card__desc {
  color: #3a4a6d;
  font-size: 0.95rem;
  line-height: 1.35;
  user-select: text;
}

/* About section */
.about {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 96px 24px 96px;
  background: #f7f9fc;
  border-radius: 0 0 0 56px;
  overflow: visible;
}

.about__image {
  flex: 1 1 50%;
  background-image: url('https://images.unsplash.com/photo-1560264355-8893d7e9e993?auto=format&fit=crop&w=800&q=80');
  background-position: center;
  background-size: cover;
  border-radius: 36px;
  box-shadow: 0 8px 36px rgb(47 116 204 / 0.3);
  min-height: 320px;
}

.about__content {
  flex: 1 1 50%;
  max-width: 520px;
}

.about__content p {
  margin-bottom: 1.25em;
  font-size: 1.05rem;
  color: #2a3c63;
  user-select: text;
}

.about__content .btn {
  margin-top: 1em;
}

/* Process section */
.process {
  background: #fff;
  padding: 72px 24px 72px;
}

.process__steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 36px;
}

.process__step {
  background: #f0f5fb;
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 6px 14px rgb(47 116 204 / 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
  transition: box-shadow 0.3s ease;
}

.process__step:hover,
.process__step:focus-within {
  box-shadow: 0 10px 22px rgb(31 97 191 / 0.5);
  cursor: pointer;
  outline-offset: 4px;
  outline: 3px solid #63aaff;
}

.step__number {
  counter-increment: step;
  width: 52px;
  height: 52px;
  line-height: 52px;
  font-weight: 700;
  font-size: 1.625rem;
  color: #2f74cc;
  border-radius: 50%;
  border: 4px solid #2f74cc;
  text-align: center;
  margin-bottom: 18px;
  user-select: none;
}

/* FAQ */
.faq {
  background: #f7f9fc;
  padding: 72px 24px 72px;
  max-width: 1140px;
  margin: 0 auto;
  user-select: text;
}

.faq__wrapper {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq__item {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgb(47 116 204 / 0.12);
  overflow: hidden;
}

.faq__question {
  width: 100%;
  background: #e2e9f8;
  border: none;
  text-align: left;
  padding: 18px 24px;
  font-weight: 600;
  font-size: 1rem;
  color: #2f74cc;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  border-radius: 14px;
  transition: background-color 0.25s ease;
}

.faq__question:hover,
.faq__question:focus-visible {
  background-color: #c7d9fb;
  outline-offset: 2px;
  outline: 3px solid #63aaff;
}

.faq__question::after {
  content: "▾";
  font-weight: 900;
  transition: transform 0.3s ease;
  color: #2f74cc;
  margin-left: 12px;
}

.faq__question[aria-expanded="true"]::after {
  transform: rotate(-180deg);
}

.faq__answer {
  padding: 14px 24px 20px;
  color: #40587a;
  font-size: 0.95rem;
  line-height: 1.4;
  user-select: text;
}

/* Contact form */
.contact {
  background: #fff;
  padding: 64px 24px 96px;
}

.contact__form {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-label {
  font-weight: 600;
  font-size: 1rem;
  color: #2f74cc;
  user-select: none;
}

.form-input,
.form-textarea {
  border: 2px solid #c8d7f9;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 1rem;
  color: #223156;
  outline-offset: 2px;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
  font-family: inherit;
  resize: vertical;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #a8b6d9;
  font-style: italic;
}

.form-input:focus,
.form-textarea:focus {
  border-color: #2f74cc;
  box-shadow: 0 0 6px #a3bffc88;
  outline: none;
}

.contact__btn {
  align-self: flex-start;
  font-size: 1.125rem;
  padding: 16px 36px;
}

/* Footer */
.footer {
  background-color: #195db7;
  color: #dce8ff;
  padding: 36px 24px;
  margin-top: 48px;
}

.footer__container {
  max-width: 1500px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer__info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #dce8ff;
  font-weight: 700;
  font-size: 1.125rem;
  white-space: nowrap;
}

.logo__text--footer {
  font-weight: 700;
  font-size: 1.125rem;
  color: #dce8ff;
}

.footer__copyright {
  font-size: 0.875rem;
  opacity: 0.7;
}

.footer__nav {
  flex-grow: 1;
  max-width: 600px;
}

.footer__list {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer__link {
  font-weight: 600;
  font-size: 0.95rem;
  color: #dce8ff;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.footer__link:hover,
.footer__link:focus-visible {
  opacity: 1;
  outline-offset: 3px;
  outline: 2px solid #a9ceff;
  border-radius: 4px;
}

/* Scroll top button */
.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 88px;
  background: #fff;
  border-radius: 50%;
  border: none;
  width: 44px;
  height: 44px;
  box-shadow: 0 2px 10px rgb(47 116 204 / 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-top.show {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top svg {
  display: block;
}

/* Mobile user panel */
.mobile-user-panel {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 24px;
  background: #2f74cc;
  box-shadow: 0 -4px 12px rgb(47 116 204 / 0.7);
  z-index: 1200;
  justify-content: center;
}

.mobile-user-panel__btn {
  width: 100%;
  max-width: 320px;
  font-size: 1.125rem;
  padding: 16px 0;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgb(25 93 183 / 0.5);
  text-align: center;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #195db7;
  color: #dce8ff;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  z-index: 1300;
  box-shadow: 0 -2px 12px rgb(25 93 183 / 0.8);
  flex-wrap: wrap;
  gap: 12px;
}

.cookie-banner__text {
  flex-grow: 1;
  min-width: 180px;
}

.cookie-banner__btn {
  flex-shrink: 0;
  background-color: #2f74cc;
  border: none;
  color: #fff;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 12px;
  transition: background-color 0.3s ease;
}

.cookie-banner__btn:hover,
.cookie-banner__btn:focus-visible {
  background-color: #195db7;
  outline-offset: 2px;
  outline: 2px solid #a9ceff;
}

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

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

.animate-fade-in {
  animation: fadeIn 0.7s ease forwards;
  opacity: 0;
}

.animate-fade-in-delay {
  animation-delay: 0.3s;
}

.animate-fade-in-delay-lg {
  animation-delay: 0.6s;
}

.animate-slide-up {
  animation: slideUp 0.7s ease forwards;
  opacity: 0;
}

.animate-slide-up-delay-sm {
  animation-delay: 0.15s;
}

.animate-slide-up-delay-md {
  animation-delay: 0.3s;
}

.animate-slide-up-delay-lg {
  animation-delay: 0.45s;
}

.animate-fade-in-up {
  animation: fadeIn 0.6s ease forwards;
  opacity: 0;
}

.delay-0 {
  animation-delay: 0s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-400 {
  animation-delay: 0.4s;
}

.delay-600 {
  animation-delay: 0.6s;
}

/* Responsive */

/* Tablets and below */
@media (max-width: 991px) {
  .about {
    flex-direction: column-reverse;
    padding: 64px 24px 64px;
    border-radius: 0 0 0 36px;
  }
  .about__image {
    width: 100%;
    height: 280px;
    border-radius: 24px;
    box-shadow: 0 6px 24px rgb(47 116 204 / 0.3);
  }
  .about__content {
    max-width: 100%;
    margin-bottom: 48px;
  }
  .process__steps {
    grid-template-columns: 1fr 1fr;
    gap: 28px 16px;
  }
  .process__step {
    padding: 20px 16px;
  }
  .services {
    padding: 48px 16px 48px;
  }
  .trust-strip {
    padding: 36px 16px 36px;
    border-radius: 0 0 36px 0;
  }
  .trust-strip__list {
    gap: 24px 32px;
  }
}

/* Mobile phones */
@media (max-width: 639px) {
  html {
    font-size: 15px;
  }
  .header__container {
    height: 56px;
    gap: 8px;
  }
  .nav {
    background-color: #fff;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    box-shadow: 0 4px 18px rgb(47 116 204 / 0.3);
    z-index: 1150;
  }
  .nav.open {
    max-height: 240px;
  }
  .nav__list {
    flex-direction: column;
    padding: 8px 24px;
  }
  .nav__item {
    margin-bottom: 12px;
  }
  .nav__item:last-child {
    margin-bottom: 0;
  }
  .burger {
    display: flex;
  }
  .header__user {
    display: none;
  }

  .hero__title {
    font-size: 2rem;
  }
  .hero__subtitle {
    font-size: 1rem;
    margin-bottom: 1.2em;
  }
  .hero__btn {
    padding: 14px 24px;
    font-size: 1rem;
  }

  .services__list {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .service-card {
    padding: 20px 16px;
  }

  .about {
    padding: 48px 16px 48px;
    border-radius: 0;
  }
  .about__image {
    height: 200px;
    border-radius: 18px;
  }
  .process__steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .process__step {
    padding: 16px 12px;
  }
  .contact {
    padding: 48px 16px 80px;
  }
  .contact__form {
    max-width: 100%;
  }

  .trust-strip {
    padding: 28px 16px 28px;
    margin-bottom: 32px;
    border-radius: 0;
  }
  .trust-strip__list {
    gap: 20px 16px;
    flex-direction: column;
    align-items: flex-start;
  }
  .trust-strip__item {
    min-width: auto;
    font-size: 1rem;
  }

  .mobile-user-panel {
    display: flex;
  }

  .scroll-top {
    bottom: 80px;
    right: 16px;
  }
}

/* Accessibility focus outline override */
:focus:not(:focus-visible) {
  outline: none;
}

/* Scrollbar styling for large screens */
@media (min-width: 640px) {
  ::-webkit-scrollbar {
    width: 8px;
  }
  ::-webkit-scrollbar-thumb {
    background-color: #2f74ccaa;
    border-radius: 4px;
  }
}

/* Form validation styles */
input:invalid,
textarea:invalid {
  border-color: #d03e3e;
}

input:focus:invalid,
textarea:focus:invalid {
  box-shadow: 0 0 8px #d03e3e88;
}

/* Smooth scroll for anchor targets */
:target {
  scroll-margin-top: 72px;
}