:root {
  --bg-main: #f5f5f5;
  --white: #ffffff;
  --lime: #dfff5e;
  --text-primary: #111111;
  --text-secondary: #3f3f46;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--bg-main);
  color: var(--text-primary);
}

.page {
  max-width: 1440px;
  margin: 0 auto;
  padding: 18px 18px 0;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-main);
  margin-bottom: 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 10px 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
}

.logo-link {
  display: inline-flex;
  align-items: center;
}

.logo {
  max-height: 44px;
  width: auto;
  display: block;
}

.lang-switcher {
  border: 1px solid #d4d4d8;
  background: var(--white);
  color: var(--text-primary);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

.lang-switcher:hover {
  background: #f8fafc;
}

.hero {
  display: grid;
  grid-template-columns: 660px 660px;
  gap: 24px;
  margin-bottom: 80px;
}

.hero-card {
  width: 660px;
  height: 660px;
  border-radius: 32px;
  overflow: hidden;
}

.hero-card-left {
  background: var(--white);
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-content h1 {
  margin: 0 0 24px;
  max-width: 510px;
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-content p {
  margin: 0;
  max-width: 510px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.cta-btn {
  width: fit-content;
  min-width: 190px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  padding: 14px 20px;
  border-radius: 14px;
  background: var(--lime);
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
}

.hero-card-right {
  background: var(--lime);
  position: relative;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  padding: 24px 0 64px;
}

.about-image-wrap {
  width: 100%;
  max-width: 500px;
  margin-left: 50px;
}

.about-image {
  width: 100%;
  height: auto;
  display: block;
}

.about-content {
  max-width: 620px;
}

.about-tag {
  display: inline-block;
  border: 1px solid #111111;
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 18px;
}

.about-content h2 {
  margin: 0 0 24px;
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.about-content p {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.services {
  padding: 24px 0 72px;
}

.services-heading {
  text-align: center;
  margin-bottom: 34px;
}

.services-tag {
  display: inline-block;
  border: 1px solid #111111;
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 16px;
}

.services-heading h2 {
  margin: 0 0 14px;
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.services-heading p {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-secondary);
}

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

.service-card {
  background: var(--white);
  border-radius: 20px;
  padding: 16px;
  min-height: 288px;
  transition: background-color 0.2s ease;
}

.service-card:hover,
.service-card:focus-within {
  background: #deec52;
}

.service-icon {
  width: 52px;
  height: 52px;
  object-fit: contain;
  display: block;
  margin-bottom: 30px;
}

.service-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.service-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.testimonials {
  padding: 24px 0 72px;
}

.testimonials-heading {
  text-align: center;
  margin-bottom: 28px;
}

.testimonials-tag {
  display: inline-block;
  border: 1px solid #111111;
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 16px;
}

.testimonials-heading h2 {
  margin: 0 0 14px;
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.testimonials-heading p {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.testimonials-body {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.testimonial-content {
  max-width: 820px;
  margin-left: 34px;
}

.testimonial-quote {
  margin: 0 0 58px;
  font-size: 32px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-photo {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.author-meta p {
  margin: 0;
}

.author-name {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
}

.author-role {
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-secondary);
}

.testimonial-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
}

.review-btn {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 6px;
  background: #deec52;
  color: #111111;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.contact {
  padding: 24px 0 88px;
}

.contact-heading {
  text-align: center;
  margin-bottom: 44px;
}

.contact-tag {
  display: inline-block;
  border: 1px solid #111111;
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 16px;
}

.contact-heading h2 {
  margin: 0 0 14px;
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.contact-heading p {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.contact-form {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  row-gap: 18px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #d4d4d8;
  background: transparent;
  color: var(--text-primary);
  font-family: "Inter", sans-serif;
  font-size: 18px;
  line-height: 1.4;
  padding: 14px 10px;
  outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #71717a;
}

.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contact-form textarea {
  margin-top: 4px;
  min-height: 130px;
  resize: vertical;
}

.contact-submit {
  margin-top: 30px;
  min-width: 204px;
  border: 0;
  border-radius: 14px;
  padding: 14px 22px;
  background: #deec51;
  color: #111111;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.success-popup {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.success-popup.is-visible {
  display: flex;
}

.success-popup-content {
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  border-radius: 18px;
  padding: 28px 24px;
  text-align: center;
}

.success-popup-content p {
  margin: 0 0 20px;
  font-size: 20px;
  line-height: 1.4;
}

.popup-close-btn {
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  background: #deec51;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.site-footer {
  margin-top: 30px;
  background: #020202;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 28px 28px 22px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid #222222;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.footer-nav a {
  text-decoration: none;
  color: #f4f4f5;
  font-size: 15px;
  font-weight: 500;
}

.site-footer .logo {
  max-height: 40px;
}

.footer-logo {
  max-height: 64px;
}

.footer-copy {
  margin: 14px 0 0;
  color: #d4d4d8;
  font-size: 20px;
  line-height: 1.4;
}

.legal-page {
  max-width: 980px;
  margin: 20px auto 0;
  background: #ffffff;
  border-radius: 24px;
  padding: 42px 42px 46px;
}

.legal-page h1 {
  margin: 0 0 10px;
  font-size: 42px;
  line-height: 1.1;
}

.legal-updated {
  margin: 0 0 28px;
  color: var(--text-secondary);
  font-size: 15px;
}

.legal-page h2 {
  margin: 24px 0 10px;
  font-size: 24px;
  line-height: 1.25;
}

.legal-page p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.6;
  color: #27272a;
}

.legal-page p:last-child {
  margin-bottom: 0;
}

.partners-table-wrap {
  margin-top: 16px;
  overflow-x: auto;
}

.partners-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.partners-table th,
.partners-table td {
  border: 1px solid #e4e4e7;
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.partners-table th {
  background: #f4f4f5;
  font-weight: 600;
  color: #111111;
}

.partners-table a {
  color: #111111;
  word-break: break-word;
}

.partners-table a:hover {
  text-decoration: underline;
}

@media (max-width: 1460px) {
  .page {
    max-width: 100%;
  }

  .hero {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-image-wrap {
    max-width: 500px;
    margin-left: 0;
  }

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

  .testimonial-quote {
    font-size: 28px;
  }

  .testimonials-body {
    flex-direction: column;
  }

  .testimonial-content {
    margin-left: 0;
  }

  .testimonial-controls {
    padding-top: 0;
  }

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

  .footer-nav {
    flex-wrap: wrap;
    gap: 14px 24px;
  }
}

@media (max-width: 780px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .header-right {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .site-nav {
    gap: 14px;
    flex-wrap: wrap;
  }

  .hero-card {
    width: 100%;
    max-width: 660px;
    height: auto;
    min-height: 500px;
  }

  .hero-content h1 {
    font-size: 38px;
  }

  .hero-content p {
    font-size: 18px;
  }

  .hero-card-left {
    padding: 36px;
    gap: 28px;
  }

  .about-content h2 {
    font-size: 40px;
  }

  .about-content p {
    font-size: 18px;
  }

  .about-tag {
    font-size: 16px;
  }

  .services-heading h2 {
    font-size: 40px;
  }

  .services-heading p {
    font-size: 18px;
  }

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

  .service-card h3 {
    font-size: 22px;
  }

  .service-card p {
    font-size: 16px;
  }

  .testimonials-heading h2 {
    font-size: 40px;
  }

  .testimonial-quote {
    font-size: 22px;
    margin-bottom: 30px;
  }

  .author-name {
    font-size: 18px;
  }

  .contact-heading h2 {
    font-size: 40px;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 16px;
  }

  .contact-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .legal-page {
    padding: 28px 22px 32px;
  }

  .legal-page h1 {
    font-size: 34px;
  }

  .footer-copy {
    font-size: 16px;
  }
}
