/* =========================================================
   Emily O’Brien — POLISHED CSS (rem only)
========================================================= */

/* ---------- Base ---------- */
:root{
  --bg: #f4f0f0;
  --text: #2b2524;
  --muted: rgba(43,37,36,.72);
  --line: rgba(43,37,36,.12);

  --panel: rgba(255,255,255,.55);

  

  --max: 70rem;        /* 1120px */
  --radius: 1.125rem;  /* 18px */
  --shadow: 0 0.75rem 1.75rem rgba(43,37,36,.08);
--btn: #73564B;
--btnHover: #5F483F;


*{ box-sizing:border-box; }


}

html{ font-size: 100%; }

body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a{ color:inherit; text-decoration:none; }

/* ---------- Container ---------- */
.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.125rem;
}

/* =========================================================
   Header
========================================================= */
.site-header{
  padding: 1.375rem 0 1.125rem;
  border-bottom: 0.0625rem solid var(--line);
}

.brand{
  font-family: "Playfair Display", serif;
  font-size: 1.75rem;
}

/* =========================================================
   HERO
========================================================= */
.hero{
  position: relative;
  min-height: clamp(28rem, 70vh, 42rem);
  display: flex;
  align-items: center;

  background-image: url("img/1.jpg");
  background-size: 110%;                 /* controlled zoom */
  background-position: 92% 92%;          /* keep face + clipboard */
  background-repeat: no-repeat;
  background-color: var(--bg);
}

/* Light left side for readability */
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  
}

.hero__inner{
  position: relative;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  padding-top: 1rem;
}

.hero__text{ max-width: 30rem; }

.hero h1{
  font-family: "Playfair Display", serif;
  font-weight: 405;
  font-size: 2.75rem;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.875rem;
}

.hero__lead p{
  font-size: 1rem;
  color: var(--muted);
  margin: 0 0 0.875rem;
  max-width: 44ch;
}

/* =========================================================
   Buttons — refined, calm, premium
========================================================= */

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 1rem;           /* 16px — утончённее */
  line-height: 1.15;
  font-weight: 450;          /* мягче, чем 500 */

  padding: 0.75rem 1.4rem;   /* меньше воздуха */
  min-height: 2.75rem;

  border-radius: 0.7rem;
  border: none;
  outline: none;

  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.05)),
    var(--btn);

  color: #fff;
  box-shadow: 0 0.25rem 0.65rem rgba(0,0,0,.16);

  transition:
    background .18s ease,
    transform .18s ease,
    box-shadow .18s ease;
}

/* hover — аккуратный, без «прыжка» */
.btn:hover{
  background: var(--btnHover);
  transform: translateY(-0.5px);
  box-shadow: 0 0.35rem 0.85rem rgba(0,0,0,.18);
}

/* Hero button — чуть заметнее */
.hero .btn{
  font-size: 1rem;
   margin-top: 0.75rem;
  padding: 0.9rem 1.55rem;
   min-height: 3rem; }


.btn--card{
  margin-top: auto;
  align-self: flex-start;

  font-size: 0.9;
  font-weight: 400;        /* ⬅️ легче */
  letter-spacing: 0.01em;  /* ⬅️ визуально тоньше */

  padding: 0.85rem 1.45rem;
  min-height: 2.9rem;

  
}


/* =========================
   MODAL (center + premium)
   ========================= */

/* lock page scroll when modal open */
html.is-modal-open,
body.is-modal-open{
  overflow: hidden;
}

.modal{
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, visibility .22s ease;
  z-index: 9999;
}

.modal.is-open{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal__overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .22s ease;
}

.modal.is-open .modal__overlay{ opacity: 1; }

.modal__content{
  position: relative;
  width: min(28rem, 92vw);
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(43,37,36,.12);
  border-radius: 1.125rem;
  box-shadow: 0 0.75rem 1.75rem rgba(43,37,36,.12);
  padding: 1.75rem;

  transform: translateY(14px) scale(.985);
  opacity: 0;
  transition: transform .22s ease, opacity .22s ease;
  will-change: transform, opacity;
}

.modal.is-open .modal__content{
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* --- Make modal form look straight (this fixes "кособоко") --- */
#messageModal .modal__title{ text-align: center; margin: 0 0 1rem; }

#messageModal .modal__form{ display: grid; gap: .9rem; }

#messageModal .field,
#messageModal .input{
  width: 100%;
}

#messageModal .input{ display: block; }

#messageModal .input--textarea{
  min-height: 10rem;
  resize: vertical;
}

#messageModal .modal__actions{
  display: flex;
  justify-content: center;
  gap: .75rem;
  margin-top: .25rem;
}

#messageModal .modal__micro{ text-align: center; }

@media (prefers-reduced-motion: reduce){
  .modal, .modal__overlay, .modal__content{ transition: none !important; }
}
/* Make textarea placeholder text slightly larger */
#messageModal .input--textarea::placeholder{
  font-size: 0.95rem;   /* было ~0.95–1rem */
  line-height: 1.1;
  opacity: .7;          /* мягко, терапевтично */
}
/* Small top padding for message textarea */
#messageModal .input--textarea{
  padding-top: 0.8rem;
   padding-left: 0.75rem;
}

/* =========================================================
   SECTION: CONTENT
========================================================= */
.section{ padding: 2.25rem 0; }

.section__title{
  text-align: center;
  font-family: "Playfair Display", serif;
  font-size: 2.4rem;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
   font-weight: 400; 
}

.subtitle{
  margin: 0.75rem auto 0;
  text-align: center;
  max-width: 56ch;                 /* cleaner line-length */
  color: rgba(43,37,36,.70);
}

/* Grid */
.grid{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.625rem;
}

/* Left content */
.panel{
  background: var(--panel);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 0.0625rem solid rgba(43,37,36,.08);
  box-shadow: var(--shadow);
}

.kicker{
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.bullets{
  margin: 0.75rem 0 1rem 1.125rem;
  color: var(--muted);
}

.bullets li{ margin: 0.55rem 0; }

.soft{
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 0.0625rem solid rgba(43,37,36,.10);
  color: var(--muted);
}

.by{
  margin-top: 0.9rem;
  text-align: right;
  font-size: 0.875rem;
  color: rgba(43,37,36,.55);
}

/* Price card */
.card{
  background: rgba(255,255,255,.92);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 0.0625rem solid rgba(43,37,36,.08);
  box-shadow: var(--shadow);
}

.card__title{
  font-family: "Playfair Display", serif;
  font-size: 1.375rem;
  margin-bottom: 0.625rem;
  letter-spacing: -0.01em;
   font-weight: 400;
}

.card__price{
  font-size: 1.125rem;
  margin-bottom: 0.375rem;
   font-weight: 300;
}

.card__note{
  font-size: 0.875rem;
  color: var(--muted);
   font-weight: 400;
}
.card{
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card__content{
  margin-bottom: 1rem; /* ⬅️ текст поднят, контролируемый отступ */
}

.btn--card{
  margin-top: auto;     /* ⬅️ кнопка уехала вниз */
  align-self: flex-start;
}
.card__content > :first-child{ margin-top: 0; }
.card__content > :last-child{ margin-bottom: 0; }

.card__content{
  padding-top: 0.25rem;   /* ⬅️ тонко и аккуратно */
}

/* =========================================================
   CONTACT
========================================================= */
.form{
  display: flex;
  justify-content: center;
  gap: 0.875rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.input{
  width: min(16.25rem, 38vw);
  height: 2.75rem;
  padding: 0 0.85rem;
  border-radius: 0.75rem;
  border: 0.0625rem solid rgba(43,37,36,.15);
  background: rgba(255,255,255,.75);
  outline: none;
}

.input:focus{
  border-color: rgba(139,111,99,.55);
  box-shadow: 0 0 0 0.25rem rgba(139,111,99,.14);
}

.btn--send{
  height: 2.75rem;          /* match inputs */
  border-radius: 0.75rem;
  min-width: 5.75rem;
  padding: 0 1.25rem;
}

.meta{
  display: flex;
  justify-content: center;
  gap: 1.375rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

.meta__item{
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.icon{
  width: 1.125rem;
  height: 1.125rem;
}

/* =========================================================
   FOOTER
========================================================= */
.site-footer{
  border-top: 0.0625rem solid var(--line);
  padding: 1rem 0;
  margin-top: 2rem;
}

.footer__inner{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.copy{
  font-size: 0.8125rem;
  color: rgba(43,37,36,.6);
}

.footer__links{
  display: flex;
  gap: 0.875rem;
  font-size: 0.8125rem;
}
.hero__photo{ display:none; }


.modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1000;
}

.modal.is-open{
  display: block;
}

.modal__overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(2px);
}

.modal__content{
  position: relative;
  max-width: 420px;
  margin: 15vh auto;
  padding: 2rem;
  background: #fff;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}

.modal__title{
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: .75rem;
}

.modal__text{
  font-size: .95rem;
  color: #555;
  margin-bottom: 1.5rem;
}

.btn--modal{
  background: var(--btn);
}
.field{
  display: flex;
  flex-direction: column;
}

.hint{
  min-height: 1em;
  margin-top: 0.35rem;
  font-size: 0.75rem;
 color: rgba(63,110,99,.75);
  opacity: 0;
  transition: opacity .15s ease;
}

.hint.is-visible{
  opacity: 1;
}

.btn--send{
  opacity: 1;
  cursor: pointer;
}

.btn--send.is-disabled{
  opacity: .45;
  cursor: not-allowed;

}
.btn.is-disabled,
.btn:disabled{
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

/* =========================================================
   Responsive
========================================================= */

/* desktop */
.hero__photo{ display:none; }

@media (max-width: 54rem){

  /* hero без фон-картинки */
  .hero{
    background-image: none;
    min-height: auto;
    padding: 2.25rem 0 1.5rem;
  }

  .hero::before{
    content: none;
  }

  /* текст */
  .hero h1{
    font-size: 2.05rem;
    line-height: 1.1;
  }

  /* фото СНИЗУ */
  .hero__photo{
    display: block;
    margin: 1.5rem auto 0;
    padding: 0 1.125rem;
    max-width: 26rem;
  }

  .hero__photo img{
    width: 100%;
    height: 22rem;
    object-fit: cover;
    object-position: 80% 25%;
    border-radius: 1.25rem;
    box-shadow: var(--shadow);
  }
}
.btn {
  border: none;
  outline: none;
}

.btn:focus,
.btn:focus-visible,
.btn:active {
  outline: none;
  box-shadow: 0 0.5rem 1.25rem rgba(139,111,99,.18);
}
@media (max-width: 54rem){
  .grid{ grid-template-columns: 1fr; }
}
@media (max-width: 54rem){
  .hero h1{
    font-size: 2.05rem;
    line-height: 1.1;
  }

  .section__title{
    font-size: 2.1rem;       /* было 2.5rem */
    line-height: 1.1;
    letter-spacing: -0.015em;
  }
}
@media (max-width: 54rem){
  .panel, .card{
    padding: 1.25rem;
    border-radius: 1rem;
  }
}
