/* Цвета */
:root {
  /* Backgrounds (основа макета) */
  --bg-main:        #F7F6F4;  /* фоновый цвет */
  --bg-white:       #FFFFFF;  /* белая подложка */
  --bg-warm:        #F9E6D0;  /* тёплый бежевый (блоки/подложки) */
  --bg-green:       #6FCF97;  /* близкий оттенок бежевого */

  /* Text */
  --text-primary:   #00373E;  /* почти чёрный с зеленым оттенком */
  --text-white:     #FFFFFF;  /* белый текст */

  /* Кнопки */
  --button-deep:    #00373E;  /* глубокий тёмный (кнопки/ссылки) */
  --button-plus-background:    #F7F6F4; /* светлый (кнопки/ссылки) */

}

/* ========== Base / Reset ========== */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

[id] {
  scroll-margin-top: 10px;
}

body {
  margin: 0;
  font-family: "Sofia Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-language-override: "ENG";
  font-synthesis: none; 
  font-style: normal;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg-main);
  font-size: 20px;
  font-weight: 300;
}

h2 {
    margin: 0;
    font-size: 48px;
    font-weight: bold;
    letter-spacing: 0.5px;
    line-height: 62px;
}

h3 {
    margin: 0;
    font-size: 36px;
    font-weight: bold;
    letter-spacing: 0.5px;
}


/* Доступность */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  padding: 10px 12px;
  background: #111;
  color: #fff;
  border-radius: 10px;
  z-index: 9999;
  transition: top .2s ease;
}

.skip-link:focus { top: 12px; }

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

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.section-subtitle {
    margin: 0;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 20px;
}

.header-logo-mobile {
    display: none;
}
/* ========== Layout helpers ========== */
.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}


/* Nav */

 .nav__close {
    display: none;
 }

.nav__list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: space-between;
  font-size: 18px;
}

.nav__list .logo {
  margin: 0 auto;
  font-size: 52px;
  line-height: 91px;
  font-weight: bold;
  font-style: normal;
  letter-spacing: 0.5px;
}

.site-header {
    margin-bottom: 30px;
}

/* Hero */

.hero .hero__grid {
  background-color: var(--bg-warm);
  display: flex;
  min-height: 600px;
  width: 100%;
  border-radius: 70px;
  background-image: url("../img/hero_bg.webp");
  background-repeat: no-repeat;
  background-position: center center; 
  background-size: contain; 
  margin-bottom: 40px;
}

.hero__content {
  padding: 8% 25%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

.hero__title {
  font-size: 50px;
  line-height: 60px;
  font-weight: bold;
  margin: 0 0 30px 0;
}

.hero__subtitle {
    font-size: 24px;
    line-height: 36px;
    margin: 0 0 40px 0;
    padding: 0 5%;
}

.hero__cta {
    padding: 15px 40px;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-white);
    background-color: var(--button-deep);
    border: none;
    border-radius: 100px;
    cursor: pointer;
}

/* About Section */

.about__grid {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 40px;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 40px;
}

.about__grid .section-title {
    width: 80%;
}

.about__photo {
    margin: 0;
    position: relative;
}

.about__photo img {
    border-radius: 60px;
    margin-left: -3%;
    width: 100%;
}

.about__text {
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    flex-shrink: 0;
    flex-basis: 50%;
}

.about__shadow {
    background-color: var(--bg-green);
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    z-index: -1;
    border-radius: 60px;
}

/* Consultations Section */

.consultations .section-head {
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

.consultations .section-title,
.consultations .section-description {
    margin-bottom: 20px;
    width: 45%;
    text-align: center;
}

.consultations .section-subtitle {
    text-align: center;
}

/* Cards */

.cards {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.card {
    background-color: var(--bg-white);
    border-radius: 60px;
    padding: 75px 60px;
    flex-grow: 1;
    flex-basis: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.card__title {
    width: 60%;
}

.card__text {
    width: 70%;
}

.card.card--online {
    background-color: var(--bg-warm);
    background-image: url("../img/online_consultation.webp");
    background-repeat: no-repeat;
    background-position-x: 90%;
    background-position-y: 48%;
    background-size: 40%; 
}

.card.card--offline {
    background-image: url("../img/offline_consultation.webp");
    background-repeat: no-repeat;
    background-position-x: 100%;
    background-position-y: 40%;
    background-size: 40%; 
}

/* Methods Section */

.approach .my-approach {
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;
    padding: 75px 60px;
    background-color: var(--bg-white);
    border-radius: 60px;
    background-image: url("../img/approach.webp");
    background-repeat: no-repeat;
    background-position-x: 100%;
    background-position-y: 100%;
    background-size: 40%; 
}

.approach .my-approach__text {
    width: 70%;
}

.approach__subtitle {
    margin: 0;
}

.approach .list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.approach .list li {
    display: inline;
}

.approach .list li::after {
    content: ", ";
}

.approach .list li:last-child::after {
    content: ".";
}

/* Timeline Section */

.timeline {
    margin-bottom: 40px;
}

.timeline .container {
    margin: 0 auto;
    padding: 48px;
    background: #fff;
    border-radius: 48px;
}

.timeline__years {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    font-weight: 600;
    font-size: 22px;
    margin-bottom: 20px;
}


.timeline__line {
    position: relative;
    height: 10px;
    background: var(--bg-white);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 32px;
}

.timeline__progress {
    position: absolute;
    inset: 0;
    background: linear-gradient(
    90deg,
    #f3e4cf 0%,
    #c6d9b6 50%,
    #59b36a 100%
    );
}

.timeline__events {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    font-size: 16px;
    line-height: 1.4;
    color: var(--text-primary);
}

.timeline__progress {
    width: 0;
    animation: grow 1.5s ease forwards;
}

@keyframes grow {
    to { width: 100%; }
}

@media (max-width: 768px) {
    .timeline__years,
    .timeline__events {
    grid-template-columns: 1fr;
    
    }
}

/* Timeline Mobile */

/* 1) Переключение версий */
.timeline--mobile { display: none; }
.timeline--desktop { display: block; }

@media (max-width: 768px) {
  .timeline--desktop { display: none; }
  .timeline--mobile { display: block; }
}

/* 2) Вертикальный таймлайн */
.timeline--mobile {
  padding: 24px 18px;
  background: #fff;
  border-radius: 24px;
}

.timeline--mobile {
  --line: #e8e4dc;
  --dot: #59b36a;
  --dot-ring: rgba(89, 179, 106, .20);
}

.v-timeline__list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

/* линия */
.v-timeline__list::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--line);
  border-radius: 999px;
}

/* элементы */
.v-timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 24px 1fr;
  column-gap: 14px;
  padding: 10px 0 18px;
}

/* точка */
.v-timeline__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--dot);
  box-shadow: 0 0 0 6px var(--dot-ring);
  margin-top: 4px;
  justify-self: center;
}

/* текст */
.v-timeline__year {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.1;
  margin: 0 0 6px;
}

.v-timeline__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: #1f1f1f;
}

@media (max-width: 360px) {
  .timeline--mobile { padding: 20px 14px; }
  .v-timeline__year { font-size: 17px; }
  .v-timeline__text { font-size: 14px; }
}

/* Feelings Section */

.feelings .container {
    padding: 75px 60px;
    display: flex;
    flex-direction: column;
    background: var(--bg-white);
    border-radius: 60px;
    margin-bottom: 80px;
    background-image: url("../img/feelings.webp");
    background-repeat: no-repeat;
    background-position-x: 100%;
    background-position-y: 100%;
    background-size: 50%; 
}


.feelings .section-head {
    width: 60%;
    margin-bottom: 40px;
}

.feelings .list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}


.feelings .list li {
  position: relative;
  padding-left: 1.5em;
}

.feelings .list li::before {
  content: "—";          /* длинное тире */
  position: absolute;
  left: 0;
  top: 0;
}

/* FAQ Section */

/* базово */

.faq__wrap {
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  gap: clamp(18px, 3vw, 40px);
  align-items: flex-start;
  margin-bottom: 40px;
}

/* левая колонка */
.faq__left {
  flex: 0 0 42%;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.faq__title {
    margin: 0;
    font-size: clamp(28px, 3.2vw, 52px);
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.faq__art {
    width: 100%;
    background-image: url("../img/faq.webp");
    background-repeat: no-repeat;
    background-position-x: 50%;
    background-position-y: 0;
    background-size: cover;
    aspect-ratio: 4 / 4;   /* ширина / высота */
}

/* правая колонка */
.faq__right {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* accordion item */
.acc {
  background: var(--bg-white);
  border-radius: 28px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  overflow: clip; /* аккуратно режет контент по скруглению */
}

/* убираем маркер summary */
.acc__summary {
  list-style: none;
  cursor: pointer;

  padding: 18px 18px 18px 22px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.acc__summary::-webkit-details-marker {
  display: none;
}

/* текст вопроса */
.acc__q {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 600;
}

/* иконка в кружке */
.acc__icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #f3f1ee;
  position: relative;
}

/* плюс */
.acc__icon::before,
.acc__icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 2px;
  background: var(--button-deep);
  border-radius: 2px;
  transition: transform 0.2s ease;
}

.acc__icon::after {
  transform: rotate(90deg);
}

/* контент */
.acc__content {
  padding: 0 22px 18px 22px;
  color: var(--text-primary);
}

.acc__content p {
  margin: 0;
  line-height: 1.55;
  font-size: 18px;
}

/* состояние open: превращаем плюс в крестик */
.acc[open] .acc__icon::after {
  transform: rotate(0deg);
}

/* лёгкий разделитель между summary и контентом (по желанию) */
.acc[open] .acc__summary {
  padding-bottom: 10px;
}

/* фокус для доступности */
.acc__summary:focus-visible {
  outline: 2px solid var(--button-deep);
  outline-offset: 3px;
  border-radius: 22px;
}

/* адаптив */
@media (max-width: 900px) {
  .faq__wrap {
    flex-direction: column;
  }
  .faq__left {
    flex-basis: auto;
  }
  .faq__art {
    min-height: 240px;
  }
}

/* Contract Section */
.contact {
    margin-bottom: 20px;
}

.contact .section-head {
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

.contact .section-title {
    width: 50%;
    text-align: center;
    margin-bottom: 20px;
}

.contact .section-description {
    width: 50%;
    text-align: center;
    margin: 0;
}

.contact .contact__grid {
    padding: 75px 60px;
    display: flex;
    flex-direction: column;
    background: var(--bg-warm);
    border-radius: 60px;
    background-image: url("../img/contacts.webp");
    background-repeat: no-repeat;
    background-position-x: 100%;
    background-position-y: 100%;
    background-size: 50%; 
}

.contact .contact__title {
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 500;
}

.contact .contact__label {
    font-weight: bold;
}

.contact .contact__list {
    list-style: none;
    padding-left: 0;
    margin: 0 0 40px 0;
}

.contact .contact__list li {
    margin-bottom: 16px;
}

.social {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  margin-bottom: 20px;
}

.social__link {
  width: 52px;
  height: 52px;
  border-radius: 52px;
  background: #00373E;

  display: flex;
  align-items: center;
  justify-content: center;
}

.social__link::before {
  content:"";
  width:24px;
  height:24px;
  background:#fff;

  -webkit-mask-image: var(--icon);
  mask-image: var(--icon);
  -webkit-mask-repeat:no-repeat;
  mask-repeat:no-repeat;
  -webkit-mask-position:center;
  mask-position:center;

  -webkit-mask-size: contain;
  mask-size: contain;
}

/* 🔹 пути — такие же, как у Instagram */
.social__link--ig { --icon: url("../img/social_ig.svg");}
.social__link--vk { --icon: url("../img/social_vk_mask.svg"); }
.social__link--tg { --icon: url("../img/social_tg_mask.svg"); }

.social__link--ig::before{
  -webkit-mask-size: 75%;
  mask-size: 75%;
}

.social__link {
  transition: transform .18s ease, background .18s ease;
}

.social__link::before {
  transition: background .18s ease;
}

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

.contact__hint {
    font-size: 14px;
}

/* Footer */

.site-footer .container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 0 60px;
}

.to-top {
  font-size: 24px;
  text-decoration: none;
}

/* =========================================================
   Mobile / Responsive
   ========================================================= */

/* Служебное: блокируем скролл при открытом меню */
.no-scroll { overflow: hidden; }

/* Burger (по умолчанию скрыт на десктопе) */
.burger {
  display: none;
  appearance: none;
  border: 0;
  background: transparent;
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
}

.burger__line {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--button-deep);
  border-radius: 2px;
}

.burger__line + .burger__line { margin-top: 7px; }

@media (max-width: 900px) {
  /* базовая типографика и отступы */
  body { font-size: 16px; }

  h2 {
    font-size: 30px;
    line-height: 1.2;
  }

  h3 {
    font-size: 24px;
    line-height: 1.25;
  }

  .container {
    width: min(1120px, calc(100% - 32px));
  }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-top: 15px;
    padding-left: 15px;
}

  .header-logo-mobile {
    display: block;
    font-size: 32px;
    line-height: 1.2;
    font-weight: bold;
    font-style: normal;
    letter-spacing: 0.5px;
  }

  /* header */
  .site-header { margin-bottom: 16px; }

  .header__row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
  }

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

  /* off-canvas nav */
  .nav {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
    z-index: 1000;
  }

  .nav__list {
    width: min(420px, 88vw);
    height: 100%;
    margin-left: auto;
    background: var(--bg-main);
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
    font-size: 18px;
    transform: translateX(100%);
    transition: transform .22s ease;
    border-top-left-radius: 22px;
    border-bottom-left-radius: 22px;
  }

  /* close button inside off-canvas */
  .nav__item--close {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding: 2px 2px 6px;
  }

  .nav__close {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    font-size: 28px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    top: 20px;

  }

  .nav__item { width: 100%; }

  .nav__link {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
  }

  .nav__item--logo {
    order: -1;
    padding: 6px 2px 10px;
  }

  .nav__list .logo {
    font-size: 30px;
    line-height: 1.2;
  }

  body.nav-open .nav {
    opacity: 1;
    pointer-events: auto;
  }

  body.nav-open .nav__list {
    transform: translateX(0);
  }

  /* Hero */
  .hero .hero__grid {
    min-height: 420px;
    border-radius: 34px;
    background-size: cover;
    background-position: center;
    margin-bottom: 24px;
  }

  .hero__content {
    padding: 12% 10%;
  }

  .hero__title {
    font-size: 32px;
    line-height: 1.15;
    margin-bottom: 18px;
  }

  .hero__subtitle {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 22px;
    padding: 0;
  }

  .hero__cta {
    padding: 14px 22px;
    font-size: 16px;
  }

  /* About */
  .about__grid {
    flex-direction: column;
    gap: 18px;
    margin-bottom: 24px;
  }

  .about__grid .section-title { width: 100%; }
  .about__text { flex-basis: auto; }

  .about__photo img,
  .about__shadow {
    border-radius: 34px;
  }

  .about__photo img { margin-left: 0; }

  /* Consultations */
.consultations .section-head {
    margin-bottom: 20px;
}

  .consultations .section-title,
  .consultations .section-description {
    width: 100%;
  }

  .cards {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
  }

  .card {
    border-radius: 34px;
    padding: 26px 22px;
    min-height: 260px;
  }

  .card__title,
  .card__text {
    width: 70%;
  }

  .card.card--online {
    background-position: right 15px bottom 18px;
    background-size: 140px;
  }

  .card.card--offline {
    background-position: right 0px bottom 40px;
    background-size: 140px;
  }


  /* Approach */
  .approach .my-approach {
    border-radius: 34px;
    padding: 26px 22px 70px 22px;
    background-position: right -20px bottom 0px;
    background-size: 180px;
    margin-bottom: 20px;
  }

  .approach .my-approach__text { width: 75%; }

  /* Timeline */

  .timeline {
    margin-bottom: 20px;
  }

  .timeline .container {
    padding: 22px;
    border-radius: 34px;
  }

  .timeline--mobile {
    width: min(1120px, calc(100% - 32px));
    margin-inline: auto;
  }

  /* Feelings */
  .feelings .container {
    padding: 26px 22px 120px 22px;
    border-radius: 34px;
    margin-bottom: 40px;
    background-size: 220px;
  }

  .feelings .section-head { width: 100%; }

  /* FAQ */
  .faq__wrap { padding: 0; align-items: center;}
  
  .faq__left {
    gap: 10px;
  }

  /* Contact */
  .contact .section-title,
  .contact .section-description {
    width: 100%;
  }

  .contact .contact__grid {
    padding: 26px 22px;
    border-radius: 34px;
    background-size: 220px;
  }

  .social__link {
    width: 46px;
    height: 46px;
    border-radius: 46px;
  }
}

@media (max-width: 480px) {
  .hero .hero__grid {
    min-height: 380px;
    border-radius: 28px;
  }

  .hero__content { padding: 14% 8%; }

  .approach .my-approach,
  .feelings .container,
  .contact .contact__grid {
    background-size: 180px;
  }

  .card.card--online,
  .card.card--offline {
    background-size: 110px;
  }

  .nav__list { width: 92vw; }

  .site-footer .container {
    padding: 0 15px;
  }
}