/* ============================================================
   VARIABLES & RESET
   ============================================================ */
:root {
  --bg:          #F5F1EB;
  --bg-block:    #EAE3D9;
  --bg-accent:   #E0D8CE;
  --accent-soft: #D6CFC7;
  --accent-warm: #C5BAB0;
  --text:        #3A3A3A;
  --text-light:  #7A7068;
  --text-xlight: #A89F97;
  --white:       #FDFAF7;
  --tg:          #5B9BD5;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius-sm:   10px;
  --radius-md:   18px;
  --radius-lg:   28px;
  --radius-pill: 100px;

  --shadow-sm:   0 2px 12px rgba(58,58,58,.06);
  --shadow-md:   0 6px 32px rgba(58,58,58,.10);
  --shadow-lg:   0 16px 56px rgba(58,58,58,.12);

  --transition:  .3s cubic-bezier(.4,0,.2,1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-xlight);
  margin-bottom: .75rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1.5rem;
}

h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: .5rem;
}

p {
  font-size: .975rem;
  color: var(--text-light);
  line-height: 1.75;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 2.5rem);
}

.section {
  padding: clamp(4rem, 8vw, 8rem) 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .02em;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn--primary {
  background: var(--text);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: #4a4040;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--tg {
  background: var(--white);
  color: var(--tg);
  border: 1.5px solid var(--accent-soft);
  box-shadow: var(--shadow-sm);
}

.btn--tg:hover {
  background: var(--bg-block);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--wide {
  padding: .85rem 2.25rem;
}

.btn--full {
  width: 100%;
  justify-content: center;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(245, 241, 235, .92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(214,207,199,.4);
  transition: box-shadow var(--transition);
}

.nav.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 2.5rem);
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
  flex-shrink: 0;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__menu a {
  font-size: .875rem;
  font-weight: 400;
  color: var(--text-light);
  transition: color var(--transition);
}

.nav__menu a:hover { color: var(--text); }

.nav__cta {
  background: var(--text) !important;
  color: var(--white) !important;
  padding: .55rem 1.4rem;
  border-radius: var(--radius-pill);
  font-weight: 500 !important;
  transition: background var(--transition), transform var(--transition) !important;
}

.nav__cta:hover {
  background: #4a4040 !important;
  transform: translateY(-1px) !important;
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding-top: 66px;
  overflow: hidden;
}

.hero__photo {
  position: relative;
  height: 100%;
  min-height: calc(100svh - 66px);
  background: var(--bg-block);
}

.hero__photo-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.hero__photo-placeholder {
  width: 100%;
  max-width: 480px;
  height: 100%;
  display: flex;
  align-items: flex-end;
}

.hero__photo-placeholder svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Replace placeholder SVG with real photo using this approach:
   .hero__photo-wrap img { width:100%; height:100%; object-fit:cover; } */

.hero__content {
  padding: clamp(2rem, 5vw, 5rem) clamp(2rem, 5vw, 4rem);
  max-width: 560px;
}

.hero__eyebrow {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-xlight);
  margin-bottom: 1rem;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.hero__sub {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 400px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  background: var(--white);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.about__text p {
  margin-bottom: 1rem;
}

.about__stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1;
  margin-bottom: .2rem;
}

.stat span {
  font-size: .8rem;
  color: var(--text-xlight);
  letter-spacing: .04em;
}

.about__img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about__img-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   FOR WHO
   ============================================================ */
.forwho {
  background: var(--bg);
}

.forwho__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
  margin-top: .5rem;
}

.forwho__card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.forwho__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.forwho__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.forwho__card p {
  margin-top: .4rem;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  background: var(--bg-block);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: .5rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.service-card__num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: var(--accent-soft);
  line-height: 1;
  margin-bottom: .75rem;
}

.service-card h3 {
  margin-bottom: .5rem;
}

.service-card p {
  font-size: .9rem;
}

.services__cta {
  text-align: center;
  margin-top: 3rem;
}

/* ============================================================
   PROCESS
   ============================================================ */
.process {
  background: var(--white);
}

.process__steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 700px;
  margin: 0 auto;
}

.process__step {
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
}

.process__step-num {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: var(--bg-block);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text);
  position: relative;
  z-index: 1;
}

.process__step-body {
  padding: .4rem 0 2.5rem;
}

.process__step-body h3 {
  margin-bottom: .35rem;
}

.process__connector {
  width: 2px;
  height: 32px;
  background: linear-gradient(var(--accent-soft), var(--bg-accent));
  margin-left: 23px;
}

/* ============================================================
   CASES
   ============================================================ */
.cases {
  background: var(--bg);
}

.cases__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: .5rem;
}

.case-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.case-card__tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-xlight);
  background: var(--bg-block);
  padding: .25rem .8rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

.case-card__result {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text);
  margin: .5rem 0 .75rem;
  line-height: 1.3;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  background: var(--bg-block);
}

.faq__list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.faq__item {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 1.75rem;
  font-family: var(--font-body);
  font-size: .975rem;
  font-weight: 500;
  color: var(--text);
  text-align: left;
  transition: background var(--transition);
}

.faq__q:hover { background: var(--bg); }

.faq__arrow {
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--text-xlight);
}

.faq__item.open .faq__arrow { transform: rotate(180deg); }

.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s cubic-bezier(.4,0,.2,1), padding .3s;
  padding: 0 1.75rem;
}

.faq__item.open .faq__a {
  max-height: 300px;
  padding: 0 1.75rem 1.4rem;
}

.faq__a p { font-size: .9rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  background: var(--white);
}

.contact__wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.contact__text p {
  margin-bottom: 2rem;
}

.contact__alts {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  align-items: flex-start;
}

.contact__email {
  font-size: .875rem;
  color: var(--text-light);
  text-decoration: underline;
  text-decoration-color: var(--accent-soft);
  transition: color var(--transition);
}

.contact__email:hover { color: var(--text); }

/* Form */
.contact__form {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.form__group label {
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: .04em;
}

.form__group input,
.form__group textarea {
  background: var(--white);
  border: 1.5px solid var(--accent-soft);
  border-radius: var(--radius-sm);
  padding: .85rem 1.1rem;
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
  outline: none;
}

.form__group input::placeholder,
.form__group textarea::placeholder { color: var(--text-xlight); }

.form__group input:focus,
.form__group textarea:focus {
  border-color: var(--accent-warm);
  box-shadow: 0 0 0 3px rgba(197,186,176,.2);
}

.form__group input.error,
.form__group textarea.error {
  border-color: #c97b7b;
}

.form__error {
  font-size: .78rem;
  color: #b85c5c;
  min-height: 1em;
}

.form__success {
  display: none;
  background: #edf7ef;
  color: #4a7c59;
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-size: .9rem;
  font-weight: 500;
  text-align: center;
}

.form__fail {
  display: none;
  background: #fbeaea;
  color: #8b3a3a;
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-size: .9rem;
  text-align: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-block);
  padding: 3rem 0 1.5rem;
  border-top: 1px solid var(--accent-soft);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 2.5rem;
}

.footer__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: .3rem;
}

.footer__desc {
  font-size: .8rem;
  color: var(--text-xlight);
}

.footer__links,
.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.footer__links a,
.footer__contacts a {
  font-size: .875rem;
  color: var(--text-light);
  transition: color var(--transition);
}

.footer__links a:hover,
.footer__contacts a:hover { color: var(--text); }

.footer__copy {
  font-size: .75rem;
  color: var(--text-xlight);
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--accent-soft);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__eyebrow { animation: fadeUp .7s .1s both; }
.hero__title   { animation: fadeUp .7s .25s both; }
.hero__sub     { animation: fadeUp .7s .4s both; }
.hero__actions { animation: fadeUp .7s .55s both; }

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s var(--transition), transform .6s var(--transition);
}

[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   MOBILE RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero__photo {
    height: 55vw;
    min-height: 300px;
    order: -1;
  }

  .hero__photo-wrap { position: relative; height: 100%; }

  .hero__content {
    padding: 2.5rem clamp(1rem, 5vw, 2.5rem);
    max-width: 100%;
  }

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

  .about__img { order: -1; }
  .about__img-wrap { max-width: 360px; margin: 0 auto; }

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

  .nav__menu {
    display: none;
    position: absolute;
    top: 66px;
    left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem clamp(1rem, 5vw, 2.5rem) 2rem;
    border-bottom: 1px solid var(--accent-soft);
    box-shadow: var(--shadow-md);
    gap: 0;
  }

  .nav__menu.open { display: flex; }

  .nav__menu a {
    padding: .9rem 0;
    border-bottom: 1px solid var(--bg-block);
    font-size: 1rem;
  }

  .nav__menu a:last-child {
    border-bottom: none;
    margin-top: .5rem;
    text-align: center;
    padding: .9rem;
    border-radius: var(--radius-pill);
  }

  .nav__burger { display: flex; }
}

@media (max-width: 560px) {
   .hero__photo {
  order: 1;
}

.hero__content {
  order: 2;
}

.hero__photo-wrap {
  height: 240px;
  overflow: hidden;
  border-radius: 20px;
}

.hero__photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
     .hero {
    padding-bottom: 0 !important;
  }
   .hero {
  background: transparent !important;
}

  .hero__photo-wrap {
    margin-bottom: 0 !important;
  }
   .hero__photo {
  margin-bottom: -30px !important;
}

  .hero__content {
    margin-top: 0 !important;
  }
   .hero__inner {
  gap: 0 !important;
}
  .hero__actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }

  .about__stats { gap: 1.5rem; }

  .contact__form { padding: 1.75rem 1.25rem; }

  .footer__inner { flex-direction: column; gap: 1.5rem; }
  .footer__links, .footer__contacts { flex-direction: row; flex-wrap: wrap; gap: .75rem 1.5rem; }
}
