@import url("reset.css");

@import url("https://fonts.googleapis.com/css?family=Inter:regular,500,600,700&display=swap");

/* ************ THEME ************ */

:root {
  color-scheme: light;
  --color-bg: #ffffff;
  --color-bg-muted: #f4f6f9;
  --color-surface: #ffffff;
  --color-text: #303a4d;
  --color-text-muted: rgba(48, 58, 77, 0.82);
  --color-border: #cfd6e3;
  --color-border-soft: #e4e8f0;
  --color-primary: #303a4d;
  --color-btn-text: #ffffff;
  --color-btn-bg: #303a4d;
  --color-input-bg: #ffffff;
  --color-accent: #0877b7;
  --header-bg: #ffffff;
  --header-border: rgba(48, 58, 77, 0.08);
  --link-color: #303a4d;
  --correct-border: #1f9d55;
  --correct-bg: #e9f8f0;
  --wrong-border: #d64545;
  --wrong-bg: #fdecec;
  --option-chosen-bg: #f4f6fa;
  --range-disabled-bg: #f5f6f8;
  --msg-ok: #1f7a43;
  --msg-bad: #b93838;
}

[data-theme="dark"] {
  color-scheme: dark;
  --color-bg: #161a21;
  --color-bg-muted: #12151a;
  --color-surface: #1e232c;
  --color-text: #e7eaf0;
  --color-text-muted: rgba(231, 234, 240, 0.72);
  --color-border: #3d4656;
  --color-border-soft: #2f3542;
  --color-primary: #d3d8e4;
  --color-btn-text: #12151a;
  --color-btn-bg: #c5cad6;
  --color-input-bg: #262c38;
  --color-accent: #5eb3e0;
  --header-bg: #1e232c;
  --header-border: rgba(255, 255, 255, 0.08);
  --link-color: #e7eaf0;
  --correct-border: #3ecf7a;
  --correct-bg: rgba(31, 157, 85, 0.22);
  --wrong-border: #f07171;
  --wrong-bg: rgba(214, 69, 69, 0.2);
  --option-chosen-bg: rgba(197, 202, 214, 0.12);
  --range-disabled-bg: #262c38;
  --msg-ok: #5bd98a;
  --msg-bad: #f09090;
}

/* ************COMMON************ */

.logo {
  font-weight: 700;
  font-size: 2.25rem;
}

body {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  color: var(--color-text);
  background-color: var(--color-bg);
  transition: background-color 0.2s ease, color 0.2s ease;
}

[class*="__container"] {
  max-width: 72.624rem;
  margin: 0 auto;
  padding: 0 0.938rem;
}

.button {
  font-weight: 600;
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  transition: all 0.3s;
  color: var(--color-btn-text);
  background-color: var(--color-btn-bg);
}

.title {
  font-size: 3.5rem;
  font-weight: 600;
}

.wrapper {
  min-height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  overflow: hidden;
  background-color: var(--color-bg);
}

/* ************HEADER************ */

.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  z-index: 1000;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5.75rem;
  flex-wrap: wrap;
  max-width: 74.624rem;
  gap: 0.75rem;
}

.header__actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--color-primary);
  background: var(--color-bg-muted);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.theme-toggle__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle__icon svg {
  display: block;
}

[data-theme="light"] .theme-toggle__icon--sun,
[data-theme="dark"] .theme-toggle__icon--moon {
  display: none;
}

@media (max-width: 480px) {
  .header__container {
    gap: 0.5rem;
    min-height: 4rem;
    padding: 0.5rem 0.75rem;
  }

  .header__logo.logo {
    font-size: 1.15rem;
    line-height: 1.15;
  }
}

@media (max-width: 440px) {
  .header__container {
    min-height: 3.5rem;
    padding: 0.4rem 0.5rem;
  }

  .header__logo.logo {
    font-size: 1rem;
    line-height: 1.2;
  }
}

.header__logo {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  line-height: 1.15;
  color: var(--link-color);
  transition: color 0.2s ease;
}

.site-logo {
  display: block;
  width: 10.75rem; /* ~172px */
  height: auto;
}

/* logo1.svg — иной viewBox (выше), без ограничения «раздувается» по высоте */
/* Явная ширина как у светлой темы — иначе при width:auto + max-height блок может схлопнуться в 0×0 (см. лог: naturalW>0, rect 0×0). */
/* Ссылка-обёртка в grid/flex не должна сжимать img до нулевого used size */
[data-theme="dark"] .footer .footer__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-theme="dark"] .footer .site-logo {
  width: 10.75rem;
  max-width: 100%;
  height: auto;
  max-height: 3.25rem;
  object-fit: contain;
  flex-shrink: 0;
}

.footer__policy {
  text-align: center;
}

.footer__copyright {
  text-align: center;
}

@media (max-width: 480px) {
  .header__logo.logo {
    font-size: 1.15rem;
  }

  .site-logo {
    width: 8.75rem;
  }

  [data-theme="dark"] .footer .site-logo {
    width: 8.75rem;
    max-width: 100%;
    max-height: 2.65rem;
    flex-shrink: 0;
  }

  .footer__policy {
    font-size: 0.95rem;
    line-height: 1.35;
  }
}
.header__navigation {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.menu__body {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.menu__link {
  font-weight: 600;
  position: relative;
}

.actions-header {
  display: flex;
  align-items: center;
  gap: 0.624rem;
}

.icon-menu {
  display: none;
}

.actions-header__button {
  font-weight: 600;
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 2px solid #303a4d;
  border-radius: 30px;
  transition: all 0.3s;
  position: relative;
  z-index: 2;
}

/* ****************PAGES**************** */
.page__main {
  padding-bottom: 160px;
}

/* *****************HOME**************** */

.main {
  background: url("../img/home/background_placeholder.png") center / cover no-repeat;
  min-height: 100vh;
}

.main__container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 19.188rem;
}

.main__caption {
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 500;
}

.main__title {
  font-size: 4.25rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.main__text {
  margin-bottom: 3.5rem;
  max-width: 33.375rem;
  line-height: 150%;
  letter-spacing: 0.02em;
}

.main__button {
  font-weight: 600;
  display: inline-block;
  padding: 1.25rem 3rem;
  border-radius: 30px;
  transition: all 0.3s;
  color: #fff;
  background-color: #303a4d;
  letter-spacing: 0.02em;
  font-size: 1.375rem;
  line-height: 110%;
}

.outro_home {
  background: url("../img/home/hero_placeholder.jpg") center / cover no-repeat;
}

/* ************ABOUT**************** */

.main_about {
  background: url("../img/about/background_placeholder.png") center / cover no-repeat;
}

.about__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 8.75rem;
  padding-bottom: 8.75rem;
}

.about__image {
  position: relative;
  max-width: 552px;
  height: 614px;
}

.about__image img {
  border-radius: 16px;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__title {
  margin-bottom: 1.5rem;
}

.about__text {
  max-width: 30rem;
  letter-spacing: 0.02em;
  line-height: 150%;
  margin-bottom: 3.5rem;
}

.about__text p:not(:last-child) {
  margin-bottom: 2.5rem;
}

.outro_about {
  background: url("../img/about/hero_placeholder.jpg") center / cover no-repeat;
}

/* **************SERVICES**************** */

.main_services {
  background: url("../img/services/background_placeholder.png") center / cover no-repeat;
}

.services {
  background-color: #e1e4eb;
}

.services__container {
  padding-top: 8.75rem;
  padding-bottom: 8.75rem;
}

.services__title {
  text-align: center;
  margin-bottom: 5rem;
}

.services__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.item-services {
  display: flex;
  flex-direction: column;
  align-items: start;
  min-height: 100%;
}

.item-services__image {
  margin-bottom: 2rem;
  max-width: 360px;
  height: 421px;
}

.item-services__image img {
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.item-services__title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.item-services__text {
  max-width: 21.5rem;
  line-height: 150%;
  margin-bottom: 2rem;
  flex-grow: 1;
  letter-spacing: 0.02em;
}

.item-services__button {
  background-color: inherit;
  border: 2px solid #303a4d;
  color: #303a4d;
}

.outro_services {
  background: url("../img/services/hero_placeholder.jpg") center / cover no-repeat;
}

/* ************TESTIMONIAL**************** */

.testimonial__container {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
  padding-top: 8.75rem;
  padding-bottom: 8.75rem;
}

.testiomonial__caption {
  margin-bottom: 4rem;
  font-weight: 600;
  text-transform: uppercase;
}

.testimonial__title {
  margin-bottom: 4rem;
  font-size: 2rem;
  max-width: 40.75rem;
  line-height: 136%;
  font-weight: 500;
}

.item-testimonial__image {
  max-width: 64px;
  margin: 0 auto;
  margin-bottom: 1.063rem;
  height: 64px;
}

.item-testimonial__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.item-testimonial__title {
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.item-testimonial__caption {
  font-size: 0.938rem;
}

/* ****************OUTRO**************** */

.outro__container {
  padding-top: 8.75rem;
  padding-bottom: 8.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.outro__title {
  margin-bottom: 1.25rem;
}

.outro__text {
  max-width: 33.625rem;
  line-height: 150%;
  margin-bottom: 2.5rem;
  letter-spacing: 0.02em;
}

.outro__button {
  padding: 1.25rem 3rem;
}

/* ****************FOOTER**************** */

.footer {
  line-height: 150%;
  color: var(--color-text);
  background-color: var(--color-bg);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.footer a {
  color: var(--link-color);
  transition: color 0.2s ease;
}

.footer__container {
  padding-top: 3.25rem;
  padding-bottom: 3.25rem;
  max-width: 74.624rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.footer__policy {
  font-weight: 600;
  letter-spacing: 0.02em;
  justify-self: start;
}

.footer__logo {
  justify-self: center;
}

.footer__copyright {
  font-weight: 600;
  letter-spacing: 0.02em;
  justify-self: end;
}

/* ****************ABOUT PAGE**************** */
.main__text_pages {
  max-width: 37.5rem;
}

.main__container_pages {
  padding-top: 300px;
}

.main_pages {
  min-height: 676px !important;
}

/* ****************SERVICES PAGE**************** */
.services-page__container {
  padding-top: 160px;
}

.services-page__item {
  margin-bottom: 132px;
}

.services-page__item:not(:last-child) {
  padding-bottom: 132px;
  margin-bottom: 132px;
  border-bottom: 1px solid rgba(48, 58, 77, 0.4);
}

.services-page__column {
  display: flex;
  align-items: center;
  gap: 97px;
}

.services-page__title {
  margin-bottom: 24px;
}

.services-page__text {
  margin-bottom: 56px;
  max-width: 480px;
  font-size: 18px;
  line-height: 150%;
  letter-spacing: 0.02em;
}

.services-page__text p:not(:last-child) {
  margin-bottom: 20px;
}

.services-page__img {
  max-width: 552px;
  height: 614px;
}

.services-page__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

/* ****************CONTACT PAGE****************/

.main_contact {
  background: url("../img/contact/background_placeholder.png") center / cover no-repeat;
}

.contact__container {
  display: flex;
  justify-content: space-between;
  gap: 109px;
  padding-top: 140px;
  padding-bottom: 140px;
}

.contact__title {
  margin-bottom: 48px;
  font-weight: 600;
  line-height: 110%;
  font-size: 40px;
}

.connect-contact {
  display: flex;
  flex-direction: column;
  align-items: start;
  row-gap: 32px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #e1e4eb;
}

.connect-contact__item {
  display: inline-flex;
  align-items: center;
  gap: 24px;
}

.connect-contant__type {
  margin-bottom: 4px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 110%;
  text-transform: uppercase;
}

.connect-contact__label {
  font-size: 22px;
  line-height: 150%;
  letter-spacing: 0.02em;
}

.contact__links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact__text {
  max-width: 545px;
  font-size: 18px;
  line-height: 150%;
}

.contact__text p:not(:last-child) {
  margin-bottom: 15px;
}

iframe {
  width: 100vw;
  height: 482px;
  filter: grayscale(100%);
}

/* **************REVIEWS PAGE**************** */
.reviews__container {
  padding-top: 160px;
  padding-bottom: 160px;
}

.reviews__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 24px;
  row-gap: 96px;
}

.reviews__column {
  border: 1px solid #e1e4eb;
  border-radius: 8px;
}

.reviews__item {
  padding-top: 48px;
  padding-bottom: 56px;
  padding-right: 32px;
  padding-left: 32px;
}

.item-reviews {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.item-reviews__img {
  max-width: 46px;
  height: 36px;
  margin: 0 auto;
  margin-bottom: 46px;
}

.item-reviews__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-reviews__text {
  margin-bottom: 40px;
  font-size: 18px;
  letter-spacing: 0.02em;
  line-height: 150%;
}

.item-reviews__author {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.01em;
  margin-bottom: 10px;
}

.item-reviews__geo {
  font-size: 14px;
  letter-spacing: 0.002em;
}

/* ******************PRICING PAGE******************** */
.pricing__container {
  padding-top: 140px;
  padding-bottom: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.pricing__caption {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 4%;
}

.pricing__title {
  font-weight: 600;
  font-size: 72px;
  margin-bottom: 24px;
}

.pricing__text {
  font-size: 22px;
  letter-spacing: 2%;
  margin-bottom: 88px;
}

.pricing__row {
  display: flex;
  align-items: start;
  gap: 24px;
}

.pricing__column {
  border: 2px solid #e1e4eb;
  border-radius: 8px;
}

.pricing__item {
  padding: 40px;
  padding-bottom: 48px;
}

.item-pricing__info {
  padding-bottom: 32px;
  border-bottom: 1px solid #e1e4eb;
  margin-bottom: 32px;
}

.item-pricing__label {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 1%;
  margin-bottom: 16px;
}

.item-pricing__cost {
  font-size: 72px;
  font-weight: 600;
  margin-bottom: 16px;
}

.item-pricing__list {
  margin-bottom: 64px;
}

.item-pricing__item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.item-pricing__item::before {
  content: "";
  background: url("../img/pricing/check.svg") 0 0 no-repeat;
  width: 16px;
  height: 18px;
}

.item-pricing__item:not(:last-child) {
  margin-bottom: 12px;
}

.item-pricing__button {
  display: inline-block;
  font-size: 22px;
  letter-spacing: 2%;
  font-weight: 600;
  color: #fff;
  padding: 20px 82px;
  background-color: #303a4d;
  border-radius: 64px;
}

.team {
  background-color: #e1e4eb;
}

.team__container {
  padding-top: 140px;
  padding-bottom: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.team__title {
  text-align: center;
  margin-bottom: 96px;
  max-width: 483px;
}

.team__row {
  display: grid;
  column-gap: 24px;
  row-gap: 96px;
  grid-template-columns: repeat(3, 1fr);
}

.team__item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.item-team__img {
  max-width: 360px;
  height: 363px;
  margin-bottom: 40px;
}

.item-team__img img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.item-team__name {
  max-width: 186px;
  font-size: 32px;
  font-weight: 600;
  line-height: 120%;
  text-align: center;
  margin-bottom: 12px;
}

.item-team__role {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 26px;
  letter-spacing: 2%;
}

.item-team__role span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.item-team__role span::after {
  content: "";
  background: url("../img/team/icons/star.svg") 0 0 no-repeat;
  width: 12px;
  height: 12px;
}

.item-team__text {
  font-size: 16px;
  text-align: center;
  letter-spacing: 2%;
  line-height: 150%;
  max-width: 328px;
  margin-bottom: 20px;
}

.item-team__icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* *************FAQ PAGE************** */
.faqs__container {
  padding-top: 140px;
  padding-bottom: 140px;
}

.faqs__title {
  text-align: center;
  margin-bottom: 80px;
}

.spollers-faq__item {
  width: 100%;
}

.spollers-faq__item:not(:last-child) {
  margin-bottom: 24px;
}

.spollers-faq__button {
  display: inline-block;
  border: 2px solid #e1e4eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border-radius: 8px;
}

.spollers-faq__button span {
  padding-left: 40px;
  padding-top: 32px;
  padding-bottom: 32px;
  font-weight: 600;
}

.spollers-faq__button img {
  padding-right: 34.5px;
}

.spollers-faq__text {
  max-height: 0;
  overflow: hidden;
  width: 100%;
  display: block;
}

.spollers-faq__item.active .spollers-faq__text {
  max-height: 1000px;
  max-height: calc(1000px + 16px);
}

.spollers-faq__item.active .spollers-faq__button {
  border-bottom: none;
  border-radius: 8px 8px 0px 0px;
}

.spollers-faq__item.active .spollers-faq__button span {
  padding-bottom: 32px;
}

.spollers-faq__item.active .spollers-faq__button img {
  transform: translate(-34px, 0px) rotate(180deg);
}

.spollers-faq__inner {
  padding-top: 20px;
  padding-left: 40px;
  border: 2px solid #e1e4eb;
  border-radius: 0px 0px 8px 8px;
  line-height: 150%;
  padding-bottom: 20px;
  border-top: none;
  padding-right: 100px;
}

/* ****************TEAM PAGE**************** */
.director__container {
  padding-top: 140px;
  padding-bottom: 140px;
  display: flex;
  align-items: center;
  gap: 96px;
}

.director__title {
  margin-bottom: 16px;
}

.director__role {
  font-size: 22px;
  letter-spacing: 2%;
  margin-bottom: 40px;
}

.director__text {
  letter-spacing: 2%;
  line-height: 150%;
  max-width: 480px;
}

.director__text p:not(:last-child) {
  margin-bottom: 20px;
}

.director__img {
  max-width: 552px;
  height: 614px;
}

.director__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

/* ****************GALLERY**************** */
.gallery__container {
  padding-bottom: 140px;
  padding-top: 140px;
}

.gallery__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 24px;
  row-gap: 96px;
  margin-bottom: 96px;
  justify-items: center;
}

.gallery__item {
  max-width: 360px;
  height: 407px;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.gallery__paggination {
  display: flex;
  align-items: center;
  justify-content: center;
  align-items: center;
  gap: 42px;
}

.gallery__paggination button:first-child {
  transform: translate(0px, 5px);
}

.gallery__paggination button:last-child {
  transform: rotate(-180deg) translate(0px, 5px);
}

.gallery_active {
  color: #fff;
  padding: 10px 15px;
  background-color: #303a4d;
  border-radius: 100px;
  display: inline-block;
}

/* ****************RESOURCES**************** */
.resources__container {
  padding-top: 140px;
  padding-bottom: 140px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 24px;
  row-gap: 96px;
  justify-items: center;
}

.resources__img {
  max-width: 360px;
  height: 330px;
  margin-bottom: 32px;
}

.resources__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.resources__title {
  font-weight: 600;
  font-size: 24px;
  margin-bottom: 12px;
}

.resources__text {
  letter-spacing: 2%;
  line-height: 150%;
  max-width: 243px;
  margin-bottom: 32px;
}

.resources__button {
  background-color: #fff;
  color: #303a4d;
  font-weight: 600;
  letter-spacing: 2%;
  border: 2px solid #303a4d;
  border-radius: 64px;
}

/* ****************PODFT TEST**************** */

.main_podft {
  background: url("../img/home/background_placeholder.png") center / cover no-repeat;
}

.podft__container {
  max-width: 72.624rem;
  margin: 0 auto;
  padding: 0 0.938rem 5rem;
  color: var(--color-text);
}

.page {
  flex: 1 1 auto;
  background-color: var(--color-bg);
}

.podft__app {
  padding-top: 2rem;
}

.podft-setup,
.podft-quiz,
.podft-result {
  max-width: 56rem;
  margin: 0 auto;
}

.podft-setup__title,
.podft-result__title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.podft-setup__text {
  line-height: 150%;
  letter-spacing: 0.02em;
}

.podft-setup__meta--base {
  margin-bottom: 0.5rem;
}

.podft-setup__controls {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}

.podft-access__hint {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  opacity: 0.85;
  line-height: 140%;
}

.podft-access__msg {
  margin-top: 0.5rem;
  font-weight: 600;
  line-height: 140%;
}

.podft-access__msg--ok {
  color: var(--msg-ok);
}

.podft-access__msg--bad {
  color: var(--msg-bad);
}

.podft-field__label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.podft-field__input,
.podft-field__select {
  width: 100%;
  max-width: 18rem;
  min-width: 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  font-size: 1rem;
  background-color: var(--color-input-bg);
  color: var(--color-text);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.podft-field__select {
  cursor: pointer;
}

.podft-field__input--error {
  border-color: #d64545;
  box-shadow: 0 0 0 2px rgba(214, 69, 69, 0.2);
}

.podft-field__radios {
  display: grid;
  gap: 0.5rem;
}

.podft-radio {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
  cursor: pointer;
  user-select: none;
}

.podft-radio input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--color-accent);
}

.podft-radio:has(input:checked) {
  border-color: rgba(8, 119, 183, 0.55);
  box-shadow: 0 0 0 3px rgba(8, 119, 183, 0.12);
}

.podft-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  user-select: none;
  margin-bottom: 0.5rem;
}

.podft-checkbox input {
  width: 1.125rem;
  height: 1.125rem;
  accent-color: var(--color-accent);
  flex-shrink: 0;
}

.podft-range-fields input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: var(--range-disabled-bg);
}

.podft-setup__hint,
.podft-result__note {
  margin-top: 1.25rem;
  line-height: 150%;
  letter-spacing: 0.02em;
  opacity: 0.9;
}

.podft-quiz__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.podft-progress {
  font-weight: 600;
}

.podft-progress__meta {
  opacity: 0.8;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.podft-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: 16px;
  padding: 1.25rem;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.podft-question {
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 140%;
  margin-bottom: 1rem;
}

.podft-options {
  display: grid;
  gap: 0.75rem;
}

.podft-option {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  transition: transform 0.05s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.podft-option:hover {
  border-color: var(--color-primary);
}

.podft-option:disabled {
  cursor: default;
  opacity: 0.95;
}

.podft-option__marker {
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  background: var(--color-input-bg);
}

.podft-option__marker::after {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--color-primary);
  transform: scale(0);
  transition: transform 0.12s ease;
}

.podft-option.is-correct {
  border-color: var(--correct-border);
  background: var(--correct-bg);
}

.podft-option.is-wrong {
  border-color: var(--wrong-border);
  background: var(--wrong-bg);
}

.podft-option.is-chosen .podft-option__marker {
  border-color: var(--color-primary);
}

.podft-option.is-chosen .podft-option__marker::after {
  transform: scale(1);
}

.podft-option.is-correct .podft-option__marker {
  border-color: var(--correct-border);
}

.podft-option.is-correct .podft-option__marker::after {
  background: var(--correct-border);
  transform: scale(1);
}

.podft-option.is-wrong.is-chosen .podft-option__marker {
  border-color: var(--wrong-border);
}

.podft-option.is-wrong.is-chosen .podft-option__marker::after {
  background: var(--wrong-border);
  transform: scale(1);
}

.podft-option.is-chosen:not(.is-correct):not(.is-wrong) {
  border-color: var(--color-primary);
  background: var(--option-chosen-bg);
}

.podft-option--static {
  cursor: default;
  pointer-events: none;
}

.podft-option--static:hover {
  border-color: var(--color-border);
  transform: none;
}

.podft-feedback {
  margin-top: 1rem;
  font-weight: 600;
}

.podft-feedback--ok {
  color: var(--msg-ok);
}

.podft-feedback--bad {
  color: var(--msg-bad);
}

.podft-feedback--neutral {
  color: var(--color-text);
  opacity: 0.85;
}

.podft-explanation {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: var(--option-chosen-bg, rgba(0, 0, 0, 0.04));
  text-align: left;
}

.podft-explanation__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text);
  opacity: 0.75;
  margin-bottom: 0.35rem;
}

.podft-explanation__text {
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--color-text);
  font-weight: 400;
}

.podft-explanation__text > * + * {
  margin-top: 0.65rem;
}

.podft-explanation__p {
  margin: 0;
}

.podft-explanation__list {
  margin: 0;
  padding-left: 1.15rem;
  list-style-type: disc;
}

.podft-explanation__list li {
  margin: 0.28rem 0;
  padding-left: 0.15rem;
}

.podft-checkbox--explain {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
  cursor: pointer;
}

.podft-checkbox--explain input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.podft-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* На широких экранах кнопки навигации участвуют в общем flex-rяду .podft-actions */
.podft-actions__sticky {
  display: contents;
}

.podft-btn {
  cursor: pointer;
  border: 0;
}

.podft-btn--secondary {
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  background: transparent;
  border: 2px solid var(--color-primary);
  font-weight: 600;
  color: var(--color-text);
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.podft-result__numbers,
.podft-result__percent {
  line-height: 150%;
  letter-spacing: 0.02em;
  font-size: 1.2rem;
  margin-top: 0.5rem;
}

.podft-result__buttons {
  margin-top: 1.25rem;
}

/* **************** PODFT: finish confirm modal **************** */
.podft-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 3000;
}

.podft-modal.is-open {
  display: block;
}

.podft-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.podft-modal__panel {
  position: relative;
  margin: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  max-width: 28rem;
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.25);
  padding: 1rem 1.1rem;
}

.podft-modal__title {
  font-weight: 700;
  line-height: 140%;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.podft-modal__buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .podft-modal__panel {
    top: auto;
    transform: none;
    margin: 0.6rem;
    position: absolute;
    bottom: 0.6rem;
    left: 0.6rem;
    right: 0.6rem;
    max-width: none;
  }

  .podft-modal__buttons {
    flex-direction: column;
    align-items: stretch;
  }
}

/* **************** PODFT: incorrect answers list **************** */
.podft-mistakes {
  margin-top: 1.5rem;
}

.podft-mistakes__title {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.podft-mistakes__list {
  display: grid;
  gap: 1rem;
}

.podft-mistake {
  padding: 1rem;
  border: 1px solid var(--color-border-soft);
  border-radius: 16px;
  background: var(--color-surface);
}

.podft-mistake__question {
  font-weight: 700;
  line-height: 140%;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.podft-mistake__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.podft-mistake__label {
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.podft-mistake__label--ok {
  color: var(--msg-ok);
}

.podft-mistake__label--bad {
  color: var(--msg-bad);
}

@media (max-width: 480px) {
  .podft-mistake__pair {
    grid-template-columns: 1fr;
  }
}

/* ****************ADAPTIVE**************** */

@media (max-width: 992px) {
  .services__row {
    grid-template-columns: 1fr;
    gap: 6rem;
    justify-items: center;
  }

  .item-services {
    text-align: center;
    align-items: center;
  }

  .page__main {
    padding-bottom: 80px;
  }
}

@media (min-width: 47.999rem) {
  .menu__list {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
  }
}

@media (max-width: 995px) {
  .item-pricing__button {
    font-size: 19px;
  }
}

@media (max-width: 62.6875rem) {
  .resources__container {
    padding-top: 70px;
    padding-bottom: 70px;
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__paggination {
    gap: 27px;
  }

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

  .team__row {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 30px;
  }

  .director__container {
    flex-direction: column;
    padding-top: 70px;
    padding-bottom: 70px;
    gap: 10px;
    text-align: center;
  }

  .item-pricing {
    padding: 20px;
    padding-bottom: 30px;
  }

  .pricing__title {
    font-size: 39px;
  }

  .pricing__text {
    margin-bottom: 25px;
  }

  .item-pricing__button {
    padding: 16px 42px;
  }

  .footer__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
  }

  .footer__policy,
  .footer__copyright {
    justify-self: center;
    text-align: center;
    margin: 0.5rem 0;
  }

  .footer__logo {
    margin-bottom: 1rem;
  }

  .services-page__column {
    gap: 30px;
    font-size: 15px;
  }

  .services-page__title {
    font-size: 29px;
  }

  .reviews__row {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 30px;
    column-gap: 10px;
  }

  .reviews__item {
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
    padding-top: 20px;
    display: inline-block;
  }

  .item-reviews__text {
    font-size: 16px;
  }

  .item-reviews__author {
    font-size: 16px;
  }
}

@media (max-width: 47.999rem) {
  .spollers-faq__item.active .spollers-faq__button img {
    transform: translate(-10px, -10px) rotate(180deg);
  }

  .spollers-faq__button span {
    padding-top: 15px;
    padding-left: 10px;
    padding-bottom: 15px;
    font-weight: 600;
    font-size: 14px;
  }

  .spollers-faq__button img {
    padding-right: 10px;
  }

  .spollers-faq__inner {
    font-size: 16px;
    padding-left: 10px;
    line-height: 130%;
  }

  .pricing__container {
    text-align: center;
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .pricing__row {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .item-pricing__button {
    font-size: 17px;
    padding: 15px 32px;
  }

  .reviews__container {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .icon-menu {
    display: block;
    position: relative;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 1.875rem;
    flex: 0 0 1.875rem;
    width: 1.875rem;
    height: 1.125rem;
    cursor: pointer;
    z-index: 5;
  }

  .icon-menu span,
  .icon-menu::before,
  .icon-menu::after {
    content: "";
    -webkit-transition: all 0.3s ease 0s;
    -o-transition: all 0.3s ease 0s;
    transition: all 0.3s ease 0s;
    right: 0;
    position: absolute;
    width: 100%;
    height: 0.125rem;
    background-color: #000;
  }

  .icon-menu::before {
    top: 0;
  }

  .icon-menu::after {
    bottom: 0;
  }

  .contact__container {
    flex-direction: column;
    padding-top: 80px;
    gap: 50px;
    padding-bottom: 80px;
  }

  .icon-menu span {
    top: calc(50% - 0.0625rem);
  }

  .menu-open .icon-menu span {
    width: 0;
  }

  .menu-open .icon-menu::before {
    top: calc(50% - 0.0625rem);
    -webkit-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    transform: rotate(-45deg);
  }

  .menu-open .icon-menu::after {
    bottom: calc(50% - 0.0625rem);
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
  }

  .menu__body {
    background-color: #fff;
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    padding: 9.375rem 0.938rem 1.875rem 0.938rem;
    overflow: auto;
    flex-direction: column;
    row-gap: 5rem;
  }

  .menu__body::before {
    content: "";
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    min-height: 5.75rem;
    background-color: #fff;
    border-bottom: 1px solid #000;
    z-index: 2;
  }

  .menu-open .menu__body {
    left: 0;
  }

  .menu-open .menu__body::before {
    left: 0;
  }

  .menu__item {
    text-align: center;
  }

  .menu__item:not(:last-child) {
    margin-bottom: 1.563rem;
  }

  .menu__link {
    font-size: 2rem;
  }

  .actions-header__button {
    padding: 0.75rem;
  }

  .main__container {
    padding-top: 12.5rem;
  }

  .main__container_pages {
    padding-top: 290px;
  }

  .main__title {
    font-size: 3rem;
  }

  .title {
    font-size: 2rem;
  }

  .about__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .about__container {
    flex-direction: column;
    padding-top: 4.375rem;
    padding-bottom: 4.375rem;
    gap: 4rem;
  }

  .services__container {
    padding-top: 4.375rem;
    padding-bottom: 4.375rem;
  }

  .testimonial__title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }

  .testiomonial__caption {
    margin-bottom: 2rem;
  }

  .outro__container {
    padding-top: 4.375rem;
    padding-bottom: 4.375rem;
  }

  .logo {
    font-size: 1rem;
  }

  .services-page__column {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 20px;
    gap: 4rem;
  }
}

@media (max-width: 61.936rem) {
  .footer__container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    row-gap: 0.938rem;
  }

  .logo {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .footer__container {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    row-gap: 0.75rem;
  }
}

@media (max-width: 440px) {
  .footer__container {
    padding-top: 1rem;
    padding-bottom: 1rem;
    row-gap: 0.5rem;
  }
}

@media (max-width: 530px) {
  .reviews__row {
    grid-template-columns: 1fr;
  }

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

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

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

/* -------- PODFT: smaller fonts on mobile -------- */
@media (max-width: 480px) {
  body {
    font-size: 0.95rem;
  }

  .main__title {
    font-size: 2.25rem;
  }

  .main__text_pages {
    font-size: 1rem;
  }

  .podft-setup__title,
  .podft-result__title {
    font-size: 1.5rem;
  }

  .podft-setup__controls {
    gap: 0.75rem;
  }

  .podft__container {
    padding: 0 0.75rem 2.25rem;
  }

  .podft-card {
    padding: 0.75rem;
  }

  .podft-question {
    font-size: 1.02rem;
    line-height: 135%;
    margin-bottom: 0.6rem;
  }

  .podft-option__text {
    font-size: 0.95rem;
    line-height: 135%;
  }

  .podft-feedback {
    font-size: 0.9rem;
    margin-top: 0.5rem;
  }

  .podft-field__input,
  .podft-field__select {
    font-size: 0.98rem;
    max-width: 100%;
    padding: 0.6rem 0.75rem;
  }

  .podft-field__select {
    width: 100%;
    min-width: 0;
  }

  .podft-field__label {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
  }

  .podft-quiz__top {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    gap: 0.25rem;
  }

  .podft-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    margin-top: 0.75rem;
  }

  .podft-actions__sticky {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 0.5rem;
    width: 100%;
  }

  .podft-actions__sticky:not(:has(.podft-action--back)) {
    grid-template-columns: 1fr;
  }

  .podft-actions__sticky form,
  .podft-actions__sticky button {
    width: 100%;
  }

  .podft-action--finish {
    margin-top: 0.35rem;
  }

  .podft-action--finish,
  .podft-action--finish button {
    width: 100%;
  }

  .podft-option {
    padding: 0.6rem 0.75rem;
    gap: 0.6rem;
  }

  .podft-btn,
  .button {
    font-size: 0.95rem;
    padding: 0.6rem 0.9rem;
  }

  .podft-options {
    gap: 0.5rem;
  }

  .podft-option__marker {
    width: 1rem;
    height: 1rem;
    margin-top: 0.1rem;
  }

  .podft-option__marker::after {
    width: 0.45rem;
    height: 0.45rem;
  }
}

@media (max-width: 440px) {
  .podft__container {
    padding: 0 0.5rem 1.5rem;
  }

  .podft-setup__controls .podft-field {
    min-width: 0;
  }

  .podft-field__input,
  .podft-field__select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

}

@media (max-width: 360px) {
  .header__container {
    min-height: 4rem;
  }
  .podft-card {
    padding: 0.6rem;
  }
  .podft-question {
    font-size: 0.98rem;
    margin-bottom: 0.5rem;
  }
  .podft-option {
    padding: 0.5rem 0.65rem;
    gap: 0.5rem;
  }
  .podft-option__text {
    font-size: 0.92rem;
  }
  .podft-field__input,
  .podft-field__select {
    font-size: 0.92rem;
    padding: 0.55rem 0.7rem;
  }
  .podft-btn,
  .button {
    font-size: 0.92rem;
    padding: 0.55rem 0.8rem;
  }
}
/* Баннер «Разработка сайтов» справа от формы настройки теста */
.podft-setup__row{display:flex;gap:2rem;align-items:flex-start}
.podft-setup__row>.podft-setup__controls{flex:1 1 auto;min-width:0}
.podft-ad{flex:0 0 360px;margin-top:1.5rem}
.podft-ad__card{display:flex;flex-direction:column;align-items:flex-start;gap:12px;min-height:360px;padding:32px 28px;box-sizing:border-box;border-radius:14px;text-decoration:none!important;color:#fff!important;background:linear-gradient(150deg,#0b1e3f,#16407a 60%,#3097d1);box-shadow:0 10px 30px rgba(11,30,63,.18);transition:transform .2s,box-shadow .2s}
.podft-ad__card:hover{transform:translateY(-2px);box-shadow:0 14px 34px rgba(11,30,63,.26)}
.podft-ad__ic{display:block;width:72px;height:54px;position:relative;border:2px solid #7cc4f0;border-radius:6px;margin-bottom:6px}
.podft-ad__ic:before{content:"";position:absolute;left:0;right:0;top:10px;border-top:2px solid #7cc4f0}
.podft-ad__ic:after{content:"";position:absolute;left:7px;top:18px;width:26px;height:26px;background:#7cc4f0;opacity:.6;box-shadow:30px 0 0 -7px #7cc4f0}
.podft-ad__t{font-size:26px;font-weight:800;line-height:1.2}
.podft-ad__price{font-size:30px;font-weight:800;color:#ffd24a;line-height:1.1}
.podft-ad__list{font-size:15px;line-height:1.5;opacity:.88}
.podft-ad__btn{margin-top:auto;padding:13px 28px;border-radius:8px;background:#ffd24a;color:#0b1e3f;font-weight:700;font-size:16px;animation:podftAdP 1.8s infinite}
.podft-ad__card:hover .podft-ad__btn{background:#ffe07a}
@keyframes podftAdP{0%{box-shadow:0 0 0 0 rgba(255,210,74,.7)}70%{box-shadow:0 0 0 12px rgba(255,210,74,0)}100%{box-shadow:0 0 0 0 rgba(255,210,74,0)}}
@media (prefers-reduced-motion:reduce){.podft-ad__btn{animation:none}}
@media (max-width:900px){
  .podft-setup__row{flex-direction:column;gap:0}
  .podft-ad{flex:none;width:100%;margin-top:1.5rem}
  .podft-ad__card{min-height:0;padding:22px}
  .podft-ad__ic{display:none}
  .podft-ad__t{font-size:21px}.podft-ad__price{font-size:24px}
  .podft-ad__btn{margin-top:6px}
}
