/* ---------- Base styles ---------- */

:root {
  --background: #ffffff;
  --surface: #f5f8fc;
  --dark: #0b1420;
  --text: #101b29;
  --muted: #607083;
  --primary: #007fff;
  --primary-dark: #0066cc;
  --primary-soft: #e8f3ff;
  --border: #dce5ee;
  --white: #ffffff;

  --container: 1180px;
  --radius: 18px;
  --shadow: 0 20px 60px rgba(11, 40, 72, 0.12);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  background: var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(0, 127, 255, 0.35);
  outline-offset: 3px;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.section {
  padding: 110px 0;
}

.section-muted {
  background: var(--surface);
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 650px;
  margin-bottom: 55px;
}

.section-heading h2,
.about-content h2,
.contact-section h2 {
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.section-heading > p:last-child {
  color: var(--muted);
  font-size: 1.05rem;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  transition:
    background-color 0.2s,
    border-color 0.2s,
    color 0.2s,
    transform 0.2s;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--primary);
  color: var(--white);
}

.button-primary:hover {
  background: var(--primary-dark);
}

.button-secondary {
  border-color: var(--border);
  background: var(--white);
}

.button-secondary:hover {
  border-color: var(--text);
}

.button-light {
  background: var(--white);
  color: var(--dark);
}

.text-link {
  display: inline-block;
  margin-top: 22px;
  color: var(--primary);
  font-weight: 700;
}

/* ---------- Header ---------- */

.header {
  position: fixed;
  z-index: 1000;
  top: 0;
  width: 100%;
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.header.scrolled {
  border-color: var(--border);
  box-shadow: 0 8px 30px rgba(17, 19, 24, 0.06);
}

.nav-container {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  line-height: 0;
}

.logo img {
  display: block;
  width: clamp(150px, 16vw, 205px);
  height: 48px;
  object-fit: contain;
  object-position: left center;
}

.navigation {
  display: flex;
  align-items: center;
  gap: 30px;
}

.navigation a {
  font-size: 0.95rem;
  font-weight: 600;
}

.navigation a:hover {
  color: var(--primary);
}

.language-selector {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-inline: 2px;
}

.language-selector::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 15px;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  pointer-events: none;
  transform: translateY(-65%) rotate(45deg);
}

.language-selector select {
  min-width: 76px;
  height: 44px;
  padding: 0 34px 0 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  outline: none;
  background: var(--surface);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  appearance: none;
  box-shadow: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.language-selector select:hover,
.language-selector select:focus {
  border-color: var(--primary);
  background: var(--white);
  outline: none;
  box-shadow: none;
}

.language-selector select:focus-visible {
  outline: none;
  box-shadow: none;
}

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

.navigation .nav-button {
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--dark);
  color: var(--white);
}

.navigation .nav-button:hover {
  background: var(--primary);
  color: var(--white);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
}

.menu-button span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: var(--dark);
  transition: transform 0.2s, opacity 0.2s;
}

.menu-button.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-button.active span:nth-child(2) {
  opacity: 0;
}

.menu-button.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  display: flex;
  min-height: 100vh;
  align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 20%, rgba(0, 127, 255, 0.18) 0, transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
  gap: 80px;
}

.hero h1 {
  max-width: 760px;
  margin-bottom: 28px;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.hero-description {
  max-width: 620px;
  margin-bottom: 36px;
  color: var(--muted);
  font-size: 1.2rem;
}

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

.browser-preview {
  overflow: hidden;
  border: 1px solid #cdd0d9;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.browser-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: #f1f2f5;
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.browser-dots span:nth-child(1) {
  background: #ff665c;
}

.browser-dots span:nth-child(2) {
  background: #ffbd44;
}

.browser-dots span:nth-child(3) {
  background: #00ca4e;
}

.browser-address {
  flex: 1;
  padding: 6px 10px;
  border-radius: 7px;
  background: var(--white);
  color: #777b85;
  font-size: 0.75rem;
  text-align: center;
}

.browser-content {
  min-height: 470px;
  padding: 90px 45px;
  background:
    linear-gradient(rgba(5, 23, 40, 0.55), rgba(5, 23, 40, 0.7)),
    linear-gradient(135deg, #007fff, #092947);
  color: var(--white);
}

.browser-content p {
  margin-bottom: 18px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.browser-content h2 {
  max-width: 500px;
  margin-bottom: 30px;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1;
}

.preview-button {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--white);
  color: var(--dark);
  font-size: 0.85rem;
  font-weight: 700;
}

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  min-height: 270px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.card-number {
  display: block;
  margin-bottom: 65px;
  color: var(--primary);
  font-weight: 700;
}

.card h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.card p {
  color: var(--muted);
}

/* ---------- Projects ---------- */

.project-grid {
  display: grid;
  gap: 34px;
}

.project {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}

.project:nth-child(even) .project-image {
  order: 2;
}

.project-image {
  display: grid;
  min-height: 390px;
  place-items: center;
  padding: 30px;
}

.project-image span {
  padding: 16px 22px;
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow);
  font-size: 1.2rem;
  font-weight: 700;
}

.project-one {
  background: linear-gradient(135deg, #007fff, #75bbff);
}

.project-two {
  background: linear-gradient(135deg, #0b2034, #2779b7);
}

.project-three {
  background: linear-gradient(135deg, #4ba3f5, #d4ebff);
}

.project-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 45px;
}

.project-category {
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-content h3 {
  margin-bottom: 16px;
  font-size: 2rem;
}

.project-content > p:not(.project-category) {
  color: var(--muted);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.project-tags span {
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.75rem;
}

/* ---------- Process ---------- */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.process-step {
  padding: 30px;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.process-step:last-child {
  border-right: 0;
}

.process-step > span {
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
}

.process-step h3 {
  margin: 45px 0 12px;
  font-size: 1.4rem;
}

.process-step p {
  color: var(--muted);
}

/* ---------- About ---------- */

.section-dark {
  background: var(--dark);
  color: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 90px;
}

.about-visual {
  display: grid;
  min-height: 480px;
  place-items: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), #005bb8);
}

.about-visual span {
  font-size: clamp(4rem, 9vw, 8rem);
  font-weight: 800;
}

.about-content p {
  max-width: 650px;
  margin-bottom: 20px;
  color: #b9bdc8;
  font-size: 1.05rem;
}

/* ---------- FAQ ---------- */

.faq-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 80px;
}

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

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

.faq-question {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  text-align: left;
}

.faq-question span {
  font-size: 1.5rem;
  transition: transform 0.2s;
}

.faq-item.active .faq-question span {
  transform: rotate(45deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq-answer p {
  overflow: hidden;
  color: var(--muted);
}

.faq-item.active .faq-answer {
  grid-template-rows: 1fr;
}

.faq-item.active .faq-answer p {
  padding-bottom: 24px;
}

/* ---------- Contact ---------- */

.contact-section {
  background: var(--primary-soft);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 90px;
}

.contact-grid > div > p {
  max-width: 480px;
  color: var(--muted);
}

.contact-email {
  display: inline-block;
  margin-top: 28px;
  color: var(--primary);
  font-weight: 700;
}

.contact-form {
  padding: 35px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-form label {
  display: block;
  margin-bottom: 20px;
  font-size: 0.85rem;
  font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  margin-top: 8px;
  padding: 14px 15px;
  border: 1px solid var(--border);
  border-radius: 9px;
  outline: none;
  background: var(--white);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 127, 255, 0.13);
}

.contact-form textarea {
  resize: vertical;
}

.form-message {
  margin-top: 16px;
  color: #21783f;
  font-weight: 700;
}

/* ---------- Footer ---------- */

.footer {
  padding: 45px 0;
  background: var(--dark);
  color: var(--white);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer p {
  color: #a9adb7;
  font-size: 0.85rem;
}

/* ---------- Responsive styles ---------- */

@media (max-width: 950px) {
  .hero-grid,
  .about-grid,
  .faq-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid,
  .about-grid,
  .contact-grid {
    gap: 55px;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .project:nth-child(even) .project-image {
    order: 0;
  }

  .browser-preview {
    max-width: 700px;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 80px 0;
  }

  .menu-button {
    position: relative;
    z-index: 2;
    display: block;
  }

  .logo img {
    width: 155px;
    height: 42px;
  }

  .navigation {
    position: fixed;
    top: 86px;
    right: 14px;
    left: 14px;
    bottom: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
    max-height: calc(100dvh - 100px);
    padding: 16px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 16px 40px rgba(11, 40, 72, 0.14);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px) scale(0.98);
    transform-origin: top center;
    transition:
      opacity 0.2s ease,
      transform 0.2s ease;
  }

  .navigation.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .navigation a {
    display: block;
    width: 100%;
    padding: 11px 13px;
    border-radius: 12px;
    font-size: 1rem;
    line-height: 1.25;
  }

  .navigation a:not(.nav-button):hover,
  .navigation a:not(.nav-button):focus-visible {
    background: var(--surface);
  }

  .navigation .nav-button {
    min-width: 0;
    margin-top: 4px;
    padding: 12px 16px;
    text-align: center;
  }

  .language-selector {
    display: block;
    width: 100%;
    margin: 5px 0;
  }

  .language-selector select {
    width: 100%;
    height: 44px;
    padding: 0 38px 0 14px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--surface);
    font-size: 0.9rem;
    text-align: left;
  }

  .language-selector::after {
    right: 16px;
  }

  .hero {
    min-height: auto;
    padding-top: 130px;
  }

  .hero-grid {
    gap: 50px;
  }

  .browser-content {
    min-height: 370px;
    padding: 65px 30px;
  }

  .card-grid,
  .process-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .process-step {
    border-right: 0;
  }

  .project-image {
    min-height: 280px;
  }

  .project-content,
  .contact-form {
    padding: 28px;
  }

  .about-visual {
    min-height: 330px;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Final polish ---------- */

.nav-container {
  gap: 32px;
}

.navigation a {
  transition: color 0.2s ease;
}

.navigation .nav-button {
  background: var(--primary);
}

.navigation .nav-button:hover {
  background: var(--primary-dark);
}

.button {
  box-shadow: 0 10px 25px rgba(0, 127, 255, 0.12);
}

.button-primary:hover {
  box-shadow: 0 14px 30px rgba(0, 127, 255, 0.25);
}

.browser-preview {
  transform: rotate(1.5deg);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.browser-preview:hover {
  transform: rotate(0) translateY(-6px);
  box-shadow: 0 28px 75px rgba(11, 40, 72, 0.18);
}

.card {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.card:hover {
  border-color: rgba(0, 127, 255, 0.32);
}

.project {
  box-shadow: 0 12px 35px rgba(11, 40, 72, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 55px rgba(11, 40, 72, 0.12);
}

.contact-form {
  border: 1px solid rgba(0, 127, 255, 0.1);
}

.form-message.success {
  color: #16733a;
}

.form-message.error {
  color: #c83232;
}

.contact-form button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .hero h1 {
    font-size: clamp(2.75rem, 15vw, 4rem);
  }

  .hero-description {
    font-size: 1.05rem;
  }

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

  .hero-buttons .button {
    width: 100%;
  }

  .browser-preview {
    transform: none;
  }

  .project-content,
  .contact-form {
    padding: 24px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
