/* =========================================================
   PSYCHOLOGIST BOCHAROVA — style sheet
   Palette taken from the original design:
   cream #f1efd3 | brown #4b3a2e | green #b3c88a | gold #c9a84e
   ========================================================= */

:root {
  --cream: #f1efd3;
  --brown: #4b3a2e;
  --green: #b3c88a;
  --green-light: #dfe9af;
  --field-bg: #ecf5c9;
  --gold: #c9a84e;
  --white: #fff;

  --container: 1200px;
  --radius: 9px;
  --font: 'Ubuntu', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--brown);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  min-height: 46px;
  border: 0;
  border-radius: 30px;
  background: var(--green);
  color: var(--white);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 0 25px rgba(71, 58, 57, .1);
  transition: box-shadow .2s ease-in-out, transform .2s ease-in-out;
}

.btn:hover { box-shadow: 0 15px 30px -10px rgba(0, 11, 48, .25); }
.btn:active { transform: translateY(1px); }

.btn--sm { padding: 11px 24px; min-height: 40px; font-size: 13px; text-transform: uppercase; }
.btn--lg { width: 100%; min-height: 56px; font-size: 20px; font-weight: 700; text-transform: uppercase; }

/* shine animation, same feel as the original */
.btn--shine::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 60px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.5) 50%, rgba(255,255,255,0));
  transform: translateX(-60px);
  animation: shine 4s ease infinite;
  pointer-events: none;
}

@keyframes shine {
  30%, 100% { transform: translateX(700%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn--shine::after { animation: none; opacity: 0; }
}

/* ---------- Section titles ---------- */
.section-title {
  font-size: 41px;
  font-weight: 400;
  line-height: 1.15;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 60px;
}

.section-title--sm { font-size: 33px; line-height: 1.25; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  background: var(--cream);
  padding: 60px 0 70px;
}

.hero__grid { position: relative; }

.hero__quote {
  position: relative;
  max-width: 500px;
  margin-left: auto;
  padding-top: 26px;
  text-align: right;
  font-size: 24px;
  line-height: 1.3;
}

.hero__leaf,
.about__leaf {
  position: absolute;
  width: 67px;
  opacity: .15;
  pointer-events: none;
}

.hero__leaf { top: -30px; left: 0; }

.hero__title {
  margin: 20px 0 10px;
  font-size: 100px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
}

.hero__sub {
  font-size: 44px;
  line-height: 1.15;
  text-align: center;
  opacity: .7;
  margin-bottom: 34px;
}

.hero__btn { display: flex; max-width: 394px; margin: 0 auto; }

/* =========================================================
   ABOUT
   ========================================================= */
.about { background: var(--cream); padding: 40px 0 60px; }

.about__grid {
  display: grid;
  grid-template-columns: 1fr 408px;
  gap: 40px;
  align-items: center;
}

.about__name {
  font-size: 50px;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 24px;
}

.about__role {
  font-size: 41px;
  line-height: 1;
  opacity: .7;
  margin-bottom: 40px;
}

.about__descr {
  position: relative;
  max-width: 625px;
  font-size: 24px;
  line-height: 1.3;
  padding-top: 20px;
}

.about__leaf { top: -20px; left: -70px; }

.about__photo img { width: 100%; }

/* =========================================================
   PROBLEMS
   ========================================================= */
.problems { background: var(--cream); padding: 20px 0 90px; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px 115px;
  justify-items: center;
}

.card {
  position: relative;
  width: 100%;
  max-width: 276px;
  aspect-ratio: 1 / 1;
  border: 3px solid var(--gold);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 55px -30px rgba(0, 0, 0, .26);
  transition: box-shadow .2s ease-in-out, transform .2s ease-in-out;
}

.card:hover {
  box-shadow: 0 15px 23px 10px rgba(22, 18, 1, .21);
  transform: translateY(-4px);
}

.card__img { width: 100%; height: 100%; object-fit: cover; }

.card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 22px;
  color: var(--white);
  text-align: center;
}

.card__title { font-size: 20px; font-weight: 500; line-height: 1.05; }
.card__text { font-size: 14px; font-weight: 500; line-height: 1.3; }

.problems__note {
  max-width: 855px;
  margin: 70px auto 40px;
  font-size: 25px;
  font-weight: 500;
  line-height: 1.15;
  text-align: center;
}

/* =========================================================
   APPROACH
   ========================================================= */
.approach { padding: 60px 0 70px; }

.approach__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 20px;
  justify-items: center;
  text-align: center;
}

.approach__item img { width: 121px; margin: 0 auto 22px; }

.approach__item p {
  font-size: 20px;
  line-height: 1.15;
  text-transform: uppercase;
  max-width: 221px;
}

/* =========================================================
   DIPLOMAS
   ========================================================= */
.diplomas { background: var(--cream); padding: 60px 0; }

.diplomas__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  align-items: center;
  justify-content: center;
}

.diplomas__grid img {
  width: 100%;
  transition: transform .3s ease;
  cursor: zoom-in;
}

.diplomas__grid img:hover { transform: scale(1.6); position: relative; z-index: 2; }

/* =========================================================
   PRICING
   ========================================================= */
.pricing { background: var(--cream); padding: 90px 0; }

.pricing__title {
  font-size: 40px;
  font-weight: 400;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 70px;
}

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

.plan {
  display: flex;
  flex-direction: column;
  padding: 40px 30px;
  border: 1px solid #e0e6ed;
  border-radius: var(--radius);
  background: var(--white);
  text-align: center;
  box-shadow: 0 15px 30px -10px rgba(0, 11, 48, .2);
}

.plan__title { font-size: 26px; font-weight: 700; line-height: 1; margin-bottom: 20px; }
.plan__sub { font-size: 22px; line-height: 1.35; color: #777; }
.plan__price { font-size: 58px; margin: 30px 0; }

.plan__list { margin: 0 0 30px; font-size: 15px; line-height: 1.5; }
.plan__list li { padding: 10px 0; }

.plan .btn { margin-top: auto; }

/* =========================================================
   CONSULTATION FORM
   ========================================================= */
.consult { padding: 150px 0; }

.consult__box {
  max-width: 700px;
  margin: 0 auto;
  padding: 60px 45px 70px;
  border: 5px solid var(--green);
  border-radius: var(--radius);
  background: var(--green-light);
  box-shadow: 0 0 29px rgba(0, 0, 0, .3);
}

.consult__title {
  font-size: 40px;
  line-height: 1.15;
  text-align: center;
  margin-bottom: 25px;
}

.consult__descr {
  font-size: 20px;
  font-weight: 300;
  line-height: 1.35;
  text-align: center;
  margin-bottom: 45px;
}

.form__group { margin-bottom: 25px; }

/* Honeypot — hidden from humans, visible to naive bots. */
.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__label {
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
}

.form__input {
  width: 100%;
  height: 56px;
  padding: 0 20px;
  border: 1px solid var(--green);
  border-radius: 1px;
  background: var(--field-bg);
  color: #45472a;
  font-family: var(--font);
  font-size: 16px;
  appearance: none;
}

.form__input:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.form__input::placeholder { color: #45472a; opacity: .5; }

select.form__input {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path fill='%23c9a84e' d='M0 0h12L6 8z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 18px center;
}

.form__error,
.form__success {
  margin-bottom: 20px;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 15px;
  line-height: 1.4;
}

.form__error { background: #ffe2e2; color: #a12525; }
.form__success { background: #e3f3d6; color: #3c5d21; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--brown); color: var(--white); padding: 22px 0; }

.footer__grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 70px;
}

.footer__copy { width: 250px; font-size: 14px; }

.footer__links {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 30px;
}

.footer__links a {
  color: var(--white);
  font-size: 14px;
  text-decoration: none;
  opacity: .9;
}

.footer__links a:hover { opacity: 1; text-decoration: underline; }

.footer__top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 250px;
  justify-content: flex-end;
  padding: 0;
  border: 0;
  background: none;
  color: var(--white);
  font-family: var(--font);
  font-size: 14px;
  cursor: pointer;
}

/* =========================================================
   POPUP
   ========================================================= */
.popup {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.popup[hidden] { display: none; }

.popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
}

.popup__box {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px 45px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}

.popup__close {
  position: absolute;
  top: 12px;
  right: 16px;
  border: 0;
  background: none;
  color: var(--brown);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.popup__title { font-size: 30px; font-weight: 700; text-align: center; margin-bottom: 11px; }
.popup__descr { font-size: 16px; line-height: 1.4; text-align: center; margin-bottom: 26px; }

.popup .form__input {
  border: 1px solid #acc8a8;
  border-radius: var(--radius);
  background: #eef5e5;
  color: #000;
}

.popup .btn { width: 100%; background: #acc8a8; border-radius: 5px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1199px) {
  .cards { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .approach__grid { grid-template-columns: repeat(2, 1fr); }
  .pricing__grid { grid-template-columns: repeat(2, 1fr); }
  .diplomas__grid { grid-template-columns: repeat(3, 1fr); }
  .hero__title { font-size: 72px; }
  .hero__sub { font-size: 28px; }
  .about__name { font-size: 42px; }
  .about__role { font-size: 28px; }
}

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__photo { order: -1; max-width: 320px; margin: 0 auto; }
  .about__leaf { display: none; }
  .about__descr { max-width: none; }
}

@media (max-width: 640px) {
  .hero { padding: 30px 0 50px; }
  .hero__quote { max-width: none; text-align: left; padding-left: 0; }
  .hero__leaf { display: none; }
  .hero__title { font-size: 48px; }
  .hero__sub { font-size: 18px; }
  .hero__btn { max-width: none; }

  .section-title { font-size: 24px; margin-bottom: 34px; }
  .section-title--sm { font-size: 22px; }

  .cards { grid-template-columns: 1fr; }
  .card { max-width: 320px; }

  .problems__note { font-size: 18px; margin: 40px auto 30px; }

  .approach__grid { grid-template-columns: 1fr; gap: 34px; }

  .diplomas__grid { grid-template-columns: repeat(2, 1fr); }
  .diplomas__grid img:hover { transform: none; }

  .pricing { padding: 60px 0; }
  .pricing__title { font-size: 26px; margin-bottom: 40px; }
  .pricing__grid { grid-template-columns: 1fr; }
  .plan__title { font-size: 22px; }
  .plan__sub { font-size: 16px; }
  .plan__price { font-size: 40px; margin: 20px 0; }

  .consult { padding: 60px 0; }
  .consult__box { padding: 30px 20px 45px; }
  .consult__title { font-size: 24px; }
  .consult__descr { font-size: 15px; margin-bottom: 30px; }
  .form__input { height: 50px; }
  .btn--lg { font-size: 16px; min-height: 50px; }

  .footer__grid { flex-direction: column; text-align: center; }
  .footer__copy,
  .footer__top { width: auto; justify-content: center; }
  .footer__links { flex-wrap: wrap; gap: 14px; }

  .popup__box { padding: 30px 20px; }
  .popup__title { font-size: 22px; }
}
