/* ===== Дельный Подряд — стили сайта ===== */

:root {
  --gold:        #d9a441;
  --gold-deep:   #b9842a;
  --cream:       #fbf4e2;
  --cream-2:     #f3e6c6;
  --blue:        #234e6b;
  --blue-deep:   #18394f;
  --terracotta:  #c0492f;
  --terracotta-d:#a13a23;
  --brown:       #6b4423;
  --brown-deep:  #422a14;
  --green:       #6e7e3a;
  --green-deep:  #54632b;
  --ink:         #3a2a18;
  --ink-soft:    #6a543c;
  --paper:       #fffaf0;
  --shadow:      0 10px 30px rgba(66, 42, 20, .18);
  --radius:      16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "PT Serif", Georgia, "Times New Roman", serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: "Russo One", "PT Serif", Georgia, serif; font-weight: 400; line-height: 1.15; }

a { color: var(--blue); }

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

/* ===== Шапка ===== */
.site-header {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: .6rem 1.2rem;
  background: rgba(35, 78, 107, .96);
  box-shadow: 0 2px 14px rgba(0,0,0,.18);
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand__logo { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--gold); object-fit: cover; }
.brand__name { color: var(--cream); font-family: "Russo One", serif; font-size: 1.15rem; letter-spacing: .5px; }
.site-nav { display: flex; gap: 1.4rem; }
.site-nav a { color: var(--cream); text-decoration: none; font-size: 1rem; opacity: .9; transition: opacity .2s; }
.site-nav a:hover { opacity: 1; color: var(--gold); }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: 3.5rem 1.2rem 4rem; text-align: center; }
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center bottom;
  transform: scale(1.05);
}
.hero__veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(251,244,226,.55) 0%, rgba(251,244,226,.25) 40%, rgba(66,42,20,.45) 100%);
}
.hero__inner { position: relative; max-width: 720px; margin: 0 auto; }
.hero__logo {
  width: 168px; height: 168px; border-radius: 50%;
  margin: 0 auto .8rem; object-fit: cover;
  border: 4px solid var(--cream);
  box-shadow: var(--shadow);
}
.hero__title {
  margin: .2rem 0 .1rem; font-size: clamp(2.2rem, 7vw, 3.6rem);
  color: var(--brown-deep);
  text-shadow: 0 2px 0 rgba(255,255,255,.5);
}
.hero__slogan {
  margin: 0 0 1rem; font-family: "Russo One", serif;
  color: var(--terracotta); font-size: clamp(1.1rem, 3.5vw, 1.5rem);
  text-shadow: 0 1px 0 rgba(255,255,255,.6);
}
.hero__lead {
  margin: 0 auto 2rem; max-width: 560px; font-size: 1.12rem;
  color: var(--brown-deep); background: rgba(255,250,240,.6);
  padding: .6rem 1rem; border-radius: 12px;
}

/* ===== Кнопки CTA ===== */
.hero__cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: .7rem;
  border: none; cursor: pointer; font-family: inherit;
  padding: 1rem 1.5rem; border-radius: var(--radius);
  color: #fff; box-shadow: var(--shadow); text-decoration: none;
  transition: transform .12s ease, filter .2s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn:active { transform: translateY(0); }
.btn__emoji { font-size: 1.8rem; line-height: 1; }
.btn__text { display: flex; flex-direction: column; text-align: left; }
.btn__text strong { font-family: "Russo One", serif; font-size: 1.2rem; }
.btn__text small { font-size: .82rem; opacity: .9; font-weight: 400; }
.btn--work  { background: linear-gradient(135deg, var(--terracotta), var(--terracotta-d)); }
.btn--order { background: linear-gradient(135deg, var(--blue), var(--blue-deep)); }
.btn--green { background: linear-gradient(135deg, var(--green), var(--green-deep)); }
.btn--submit {
  width: 100%; justify-content: center; margin-top: .4rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--brown-deep); font-family: "Russo One", serif; font-size: 1.1rem;
}

/* ===== Секции ===== */
.section { max-width: 1040px; margin: 0 auto; padding: 3.5rem 1.2rem; }
.section__title {
  text-align: center; font-size: clamp(1.6rem, 5vw, 2.3rem);
  color: var(--blue-deep); margin: 0 0 2rem;
}
.section__title::after {
  content: ""; display: block; width: 80px; height: 4px; margin: .6rem auto 0;
  background: var(--gold); border-radius: 4px;
}

/* Шаги */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.step {
  background: var(--paper); border-radius: var(--radius); padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow); border-top: 5px solid var(--gold); text-align: center;
}
.step__num {
  width: 48px; height: 48px; margin: 0 auto .8rem; border-radius: 50%;
  display: grid; place-items: center; font-family: "Russo One", serif; font-size: 1.4rem;
  background: var(--terracotta); color: #fff;
}
.step h3 { margin: 0 0 .5rem; color: var(--brown-deep); font-size: 1.2rem; }
.step p { margin: 0; color: var(--ink-soft); }

/* Карточки «почему» */
.why { background: var(--cream-2); max-width: none; }
.why .section__title, .why .cards { max-width: 1040px; margin-left: auto; margin-right: auto; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.card { background: var(--paper); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); text-align: center; }
.card__icon { font-size: 2.2rem; }
.card h3 { margin: .6rem 0 .4rem; font-size: 1.08rem; color: var(--blue-deep); }
.card p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

/* FAQ */
.accordion { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: .8rem; }
.acc {
  background: var(--paper); border-radius: 12px; box-shadow: var(--shadow);
  border-left: 5px solid var(--blue); overflow: hidden;
}
.acc summary {
  cursor: pointer; padding: 1rem 1.2rem; font-weight: 700; color: var(--brown-deep);
  list-style: none; position: relative; padding-right: 2.6rem;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: "+"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%);
  font-family: "Russo One", serif; color: var(--gold-deep); font-size: 1.4rem; transition: transform .2s;
}
.acc[open] summary::after { content: "−"; }
.acc p { margin: 0; padding: 0 1.2rem 1.1rem; color: var(--ink-soft); }

/* ===== Подвал ===== */
.site-footer { background: var(--blue-deep); color: var(--cream); padding: 2.4rem 1.2rem; text-align: center; }
.footer__brand { display: flex; align-items: center; justify-content: center; gap: .8rem; margin-bottom: 1rem; }
.footer__brand img { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--gold); }
.footer__brand strong { display: block; font-family: "Russo One", serif; font-size: 1.15rem; }
.footer__brand span { font-size: .9rem; opacity: .85; }
.footer__links { display: flex; gap: 1.5rem; justify-content: center; margin-bottom: .8rem; flex-wrap: wrap; }
.footer__links a { color: var(--gold); text-decoration: none; }
.footer__links a:hover { text-decoration: underline; }
.footer__copy { margin: 0; opacity: .7; font-size: .85rem; }

/* ===== Модалка ===== */
.modal { position: fixed; inset: 0; z-index: 50; display: none; }
.modal.is-open { display: block; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(24,57,79,.6); backdrop-filter: blur(2px); }
.modal__dialog {
  position: relative; max-width: 540px; width: calc(100% - 2rem); max-height: 90vh; overflow-y: auto;
  margin: 5vh auto; background: var(--paper); border-radius: 20px; box-shadow: 0 24px 60px rgba(0,0,0,.4);
  padding: 1.8rem 1.6rem 2rem; border-top: 8px solid var(--gold);
}
.modal__close {
  position: absolute; top: .6rem; right: .8rem; border: none; background: none;
  font-size: 2rem; line-height: 1; color: var(--ink-soft); cursor: pointer;
}
.modal__head { margin-bottom: 1rem; padding-right: 1.5rem; }
.modal__title { margin: 0 0 .2rem; color: var(--brown-deep); font-size: 1.5rem; }
.modal__sub { margin: 0; color: var(--ink-soft); }

/* ===== Форма ===== */
.field { display: block; margin-bottom: .9rem; }
.field__label { display: block; margin-bottom: .3rem; font-weight: 700; color: var(--brown-deep); font-size: .95rem; }
.field__label i { color: var(--terracotta); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; padding: .7rem .8rem; border: 2px solid var(--cream-2); border-radius: 10px;
  font-family: inherit; font-size: 1rem; background: #fff; color: var(--ink); transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field textarea { resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.field input.invalid, .field select.invalid { border-color: var(--terracotta); background: #fff4f1; }

.role-fields { display: none; }
.role-fields.active { display: block; }

.consent { display: flex; gap: .6rem; align-items: flex-start; margin: .6rem 0 1rem; font-size: .92rem; color: var(--ink-soft); }
.consent input { margin-top: .25rem; width: 18px; height: 18px; accent-color: var(--gold-deep); flex: none; }

.form-error {
  background: #fdece8; color: var(--terracotta-d); border: 1px solid var(--terracotta);
  border-radius: 10px; padding: .6rem .8rem; margin-bottom: .8rem; font-size: .95rem;
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Успех */
.form-success { text-align: center; padding: 1.5rem .5rem; }
.form-success__icon { font-size: 3.4rem; }
.form-success h3 { margin: .4rem 0 .5rem; color: var(--green); font-size: 1.5rem; }
.form-success p { margin: 0 auto 1.4rem; max-width: 380px; color: var(--ink-soft); }
.form-success .btn {
  display: inline-flex; justify-content: center;
  padding: 1rem 3rem; min-width: 200px;
  font-family: "Russo One", serif; font-size: 1.15rem;
}

/* ===== Адаптив ===== */
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .site-nav { display: none; }
}
@media (max-width: 520px) {
  .cards { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .hero__logo { width: 130px; height: 130px; }
}
