:root {
  --green: #174c4a;
  --green-dark: #0d2a29;
  --green-icon: #2f806f;
  --page: #f5f5f0;
  --white: #fff;
  --border: #e6e6e6;
  --gray: #989898;
  --container: 1420px;
  --font: "Onest", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--green-dark);
  background: var(--page);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

body,
button,
input,
textarea {
  font-family: var(--font);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.frame-container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* Header: 1920 × 127 in Figma */
.frame-header {
  position: relative;
  z-index: 20;
  height: 127px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border);
}

.frame-header__inner {
  display: grid;
  grid-template-columns: 345px 933px minmax(0, 642px);
  width: min(100%, 1920px);
  height: 100%;
  margin-inline: auto;
}

.frame-header__logo {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 50px;
  border-right: 1px solid var(--border);
}

.frame-header__logo img {
  width: 45px;
  height: 27px;
}

.frame-nav {
  display: flex;
  align-items: center;
  gap: 70px;
  padding-left: 50px;
  border-right: 1px solid var(--border);
}

.frame-nav a {
  color: #b0b0b0;
  font-size: 18px;
  line-height: 1;
  transition: color 0.2s ease;
}

.frame-nav a:hover {
  color: var(--green);
}

.frame-header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-left: 50px;
}

.round-link {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--white);
}

.round-link img {
  width: 30px;
}

.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 244px;
  height: 78px;
  color: var(--gray);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 18px;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.outline-button:hover {
  color: var(--green);
  border-color: var(--green);
}

.frame-burger {
  display: none;
}

/* FAQ */
.frame-main {
  background: var(--page);
}

.faq-page {
  padding-top: 143px;
}

.faq-page h1,
.question-section h2 {
  margin: 0;
  color: var(--green);
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 50px;
}

.faq-card {
  min-height: 110px;
  color: var(--white);
  background: var(--green);
  border-radius: 30px;
  overflow: hidden;
}

.faq-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 110px;
  padding: 30px 64px 30px 50px;
  list-style: none;
  cursor: pointer;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  text-transform: uppercase;
}

.faq-card summary::-webkit-details-marker {
  display: none;
}

.faq-card summary span {
  position: relative;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-left: 24px;
}

.faq-card summary span::before,
.faq-card summary span::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s ease;
}

.faq-card summary span::after {
  transform: rotate(90deg);
}

.faq-card[open] summary span::after {
  transform: rotate(0deg);
}

.faq-card p {
  margin: -8px 70px 30px 50px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  line-height: 1.4;
}

.faq-card--wide-text summary {
  min-height: 134px;
}

/* Contact */
.question-section {
  padding: 144px 0 150px;
}

.contact-panel {
  display: grid;
  grid-template-columns: 611px 581px;
  justify-content: space-between;
  align-items: center;
  min-height: 774px;
  margin-top: 50px;
  padding: 60px 60px 60px 88px;
  background: var(--green);
  border-radius: 30px;
}

.contact-panel__form h3 {
  width: 448px;
  margin: 0 auto 50px;
  color: var(--white);
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.form-grid__full {
  grid-column: 1 / -1;
}

.form-grid input,
.form-grid textarea {
  display: block;
  width: 100%;
  height: 90px;
  padding: 0 35px;
  color: var(--green-dark);
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 20px;
  outline: 0;
  font-size: 20px;
}

.form-grid textarea {
  padding-top: 32px;
  resize: none;
}

.form-grid input::placeholder,
.form-grid textarea::placeholder {
  color: rgba(13, 42, 41, 0.5);
}

.form-grid input:focus,
.form-grid textarea:focus {
  border-color: #7eaaa8;
}

#frame-contact-form button {
  width: 100%;
  height: 110px;
  margin-top: 15px;
  color: var(--green);
  background: var(--white);
  border: 0;
  border-radius: 20px;
  box-shadow: inset 0 0 35px rgba(255, 255, 255, 0.3);
  cursor: pointer;
  font-size: 20px;
  font-weight: 500;
}

.form-note {
  margin: 25px 0 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 16px;
  line-height: 1;
  text-align: center;
}

.form-success {
  margin: 16px 0 0;
  color: var(--white);
  text-align: center;
}

.contact-panel__visual {
  width: 581px;
  height: 654px;
  overflow: hidden;
  background: var(--white);
  border-radius: 30px;
}

.contact-panel__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Footer: y=2307, h=397 in Figma */
.frame-footer {
  min-height: 397px;
  padding: 80px 0;
  background: var(--white);
}

.frame-footer__inner {
  display: grid;
  grid-template-columns: 554px 203px 543px;
  gap: 96px;
  width: min(calc(100% - 40px), 1490px);
  margin-inline: auto;
}

.frame-footer__intro {
  display: flex;
  align-items: flex-start;
  gap: 50px;
}

.frame-footer__intro img {
  width: 116px;
  height: 70px;
  margin-top: 8px;
}

.frame-footer__intro p {
  width: 388px;
  margin: 0;
  color: rgba(0, 0, 0, 0.5);
  font-size: 20px;
  line-height: 1;
}

.frame-footer__brand > p,
.frame-footer__brand > a {
  display: block;
  margin: 89px 0 0;
  color: rgba(0, 0, 0, 0.5);
  font-size: 20px;
}

.frame-footer__brand > a {
  margin-top: 8px;
  text-decoration: underline;
}

.frame-footer__menu h2 {
  margin: 0 0 20px;
  color: #000;
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
}

.frame-footer__menu nav {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.frame-footer__menu a {
  color: rgba(0, 0, 0, 0.5);
  font-size: 20px;
}

.frame-footer__contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--gray);
  font-size: 18px;
  white-space: nowrap;
}

.contact-link > span {
  display: grid;
  flex: 0 0 78px;
  place-items: center;
  width: 78px;
  height: 78px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
}

.contact-link img {
  width: 28px;
  max-height: 28px;
}

.frame-footer__button {
  align-self: flex-end;
  margin-top: 15px;
  float: none;
}

.frame-footer__contacts {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

@media (max-width: 1500px) {
  .frame-header__inner {
    grid-template-columns: 240px 1fr 420px;
  }

  .frame-header__logo {
    padding-right: 40px;
  }

  .frame-nav {
    gap: clamp(24px, 3vw, 60px);
    padding-left: 40px;
  }

  .frame-header__actions {
    padding-left: 30px;
  }

  .contact-panel {
    grid-template-columns: minmax(0, 611px) minmax(360px, 581px);
    gap: 50px;
  }

  .contact-panel__visual {
    width: 100%;
  }

  .frame-footer__inner {
    grid-template-columns: 1.2fr 0.5fr 1fr;
    gap: 50px;
  }
}

@media (max-width: 1100px) {
  .frame-header {
    height: 88px;
  }

  .frame-header__inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .frame-header__logo {
    justify-content: flex-start;
    padding-left: 30px;
    border: 0;
  }

  .frame-header__actions {
    display: none;
  }

  .frame-nav {
    position: absolute;
    top: 88px;
    left: 0;
    display: flex;
    width: 100%;
    padding: 20px 30px;
    background: var(--white);
    border: 0;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-130%);
    opacity: 0;
    visibility: hidden;
    transition: 0.25s ease;
  }

  .frame-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .frame-burger {
    display: flex;
    width: 48px;
    height: 48px;
    margin-right: 20px;
    padding: 11px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
  }

  .frame-burger span {
    width: 100%;
    height: 2px;
    background: var(--green);
  }

  .faq-page {
    padding-top: 90px;
  }

  .faq-list {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    grid-template-columns: 1fr;
    padding: 60px;
  }

  .contact-panel__form {
    width: min(100%, 611px);
    margin-inline: auto;
  }

  .contact-panel__visual {
    width: min(100%, 581px);
    margin-inline: auto;
  }

  .frame-footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .frame-footer__contacts {
    grid-column: 1 / -1;
  }

  .frame-footer__button {
    align-self: flex-start;
    margin-top: 30px;
  }
}

@media (max-width: 700px) {
  .frame-container {
    width: min(calc(100% - 32px), var(--container));
  }

  .frame-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .frame-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .faq-page h1,
  .question-section h2 {
    font-size: 28px;
    line-height: 1.1;
  }

  .faq-card summary,
  .faq-card--wide-text summary {
    min-height: 90px;
    padding: 24px;
    font-size: 18px;
  }

  .faq-card p {
    margin: -4px 24px 24px;
    font-size: 16px;
  }

  .question-section {
    padding: 90px 0;
  }

  .contact-panel {
    margin-top: 35px;
    padding: 40px 16px 16px;
  }

  .contact-panel__form h3 {
    width: auto;
    font-size: 28px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-grid__full {
    grid-column: auto;
  }

  .form-grid input,
  .form-grid textarea {
    height: 68px;
    padding-inline: 20px;
    font-size: 17px;
  }

  .form-grid textarea {
    padding-top: 22px;
  }

  #frame-contact-form button {
    height: 74px;
    font-size: 18px;
  }

  .contact-panel__visual {
    height: auto;
  }

  .frame-footer__inner {
    grid-template-columns: 1fr;
  }

  .frame-footer__intro {
    flex-direction: column;
    gap: 20px;
  }

  .frame-footer__intro p {
    width: auto;
  }

  .frame-footer__brand > p {
    margin-top: 40px;
  }

  .frame-footer__contacts {
    grid-column: auto;
  }

  .frame-footer__contact-row {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
