/* rusgradstroy.ru — стили сайта.
   Палитра, типографика и форма блоков повторяют прежнюю тему rgs,
   размеры переведены на clamp, чтобы не ломались на узких экранах. */

:root {
  --orange: #f8741c;
  --orange-dark: #e5620c;
  --gradient: linear-gradient(180deg, #f8741c, #ffa02e);
  --text: #1c1c1e;
  --muted: #616161;
  --line: #e2e2e2;
  --cream: #fffcfa;
  --radius: 14px;
  --wrap: 1540px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: clamp(16px, 1.1vw, 19px);
  line-height: 1.6;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--orange); }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: #fff; color: var(--text); padding: 10px 16px; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ——— заголовки */
h1, h2, h3, h4 { font-family: Oswald, Inter, system-ui, sans-serif; font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }

.page-title {
  font-size: clamp(30px, 4.2vw, 62px);
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: .5em;
}
.section__title {
  font-size: clamp(24px, 2.6vw, 42px);
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: .6em;
}

/* ——— кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 26px;
  font: 600 clamp(16px, 1.3vw, 21px)/1.2 Inter, system-ui, sans-serif;
  border: 2px solid transparent; border-radius: 12px;
  background: #fff; color: var(--text);
  cursor: pointer; text-decoration: none; transition: .25s;
}
.btn--orange { background: var(--orange); color: #fff; }
.btn--orange:hover { background: var(--orange-dark); color: #fff; }
.btn--ghost { background: transparent; border-color: currentColor; color: var(--text); }
.btn--ghost:hover { border-color: var(--orange); color: var(--orange); }

/* ——— шапка */
.header { border-bottom: 2px solid #ff6e2e; padding: 10px 0; background: #fff; position: relative; z-index: 20; }
.header__inner { display: flex; align-items: center; gap: 24px; }
.logo { flex: none; }
.logo img { width: clamp(90px, 8vw, 125px); height: auto; }

.nav { margin-left: auto; }
.nav__list { display: flex; flex-wrap: wrap; gap: clamp(10px, 1.4vw, 26px); list-style: none; margin: 0; padding: 0; }
.nav__list a { color: var(--text); text-decoration: none; font-weight: 500; font-size: clamp(14px, 1vw, 17px); }
.nav__list a:hover, .nav__list a[aria-current] { color: var(--orange); }
.nav__bottom { display: none; }

.header__contacts { display: flex; align-items: center; gap: 14px; }
.header__tel { color: var(--text); font-weight: 600; text-decoration: none; white-space: nowrap; }
.header__tel:hover { color: var(--orange); }

.soc { display: flex; gap: 10px; }
.soc__item { color: var(--orange); display: inline-flex; }
.soc__item:hover { color: var(--orange-dark); }

.hamburger { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 8px; cursor: pointer; }
.hamburger span { display: block; height: 3px; background: var(--text); border-radius: 2px; margin: 5px 0; transition: .25s; }

/* ——— крошки */
.crumbs { padding: 14px 0; font-size: 15px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs span { margin: 0 6px; }
.crumbs__current { color: var(--text); }

/* ——— первый экран */
.hero { background: var(--gradient); color: #fff; padding: clamp(40px, 7vw, 90px) 0; }
.hero__inner { text-align: center; }
.hero__title { font-size: clamp(32px, 6vw, 82px); text-transform: uppercase; color: #fff; margin-bottom: .35em; }
.hero__desc { font-size: clamp(17px, 1.8vw, 28px); font-weight: 500; max-width: 60ch; margin: 0 auto 1.2em; }
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__actions .btn--ghost { border-color: #fff; color: #fff; }
.hero__actions .btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.hero--inner { padding: clamp(30px, 5vw, 64px) 0; }

/* ——— текст страницы */
.main { padding-bottom: 60px; }
.article { max-width: 1100px; }
.text { font-size: clamp(16px, 1.15vw, 19px); }
.text p { margin: 0 0 1em; }
.text ul, .text ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.text li { margin-bottom: .5em; }
.text figure { margin: 1.6em 0; }
.text img { border-radius: var(--radius); }
.text--intro { font-size: clamp(17px, 1.25vw, 21px); }

.section { margin: 2.4em 0; }
.section__title { margin-bottom: .6em; }

/* ——— шапка услуги */
.service-head { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; justify-content: space-between; }
.service-head__title { flex: 1 1 420px; margin-bottom: 0; }
.service-head__aside { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.service-head__price {
  font-family: Oswald, sans-serif; font-size: clamp(22px, 2.2vw, 34px);
  font-weight: 600; color: var(--orange); white-space: nowrap;
}
.service__img { width: 100%; border-radius: var(--radius); margin: 24px 0 32px; }

/* ——— карточки услуг */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card__link {
  display: flex; flex-direction: column; gap: 8px; height: 100%;
  padding: 20px; border: 2px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--text); text-decoration: none; transition: .25s;
}
.card__link:hover { border-color: var(--orange); color: var(--text); transform: translateY(-2px); }
.card__name { font-family: Oswald, sans-serif; font-size: clamp(17px, 1.3vw, 21px); font-weight: 600; }
.card__desc { color: var(--muted); font-size: 16px; }
.card__price { margin-top: auto; color: var(--orange); font-weight: 600; }

.services { padding: clamp(36px, 5vw, 70px) 0; }
.services__note { color: var(--muted); font-size: 15px; margin-top: 16px; }
.services__all { display: inline-block; margin-top: 10px; font-weight: 600; }

/* ——— о компании и как строим */
.about, .how { padding: clamp(36px, 5vw, 70px) 0; }
.about__inner, .how__inner { display: grid; gap: clamp(20px, 3vw, 46px); grid-template-columns: 1.2fr 1fr; align-items: center; }
.how__inner { grid-template-columns: 1fr 1.2fr; }
.how__text { order: 2; }
.how__img { order: 1; }
.about__img, .how__img { border-radius: var(--radius); width: 100%; }

/* ——— боксы «почему мы» и контакты */
.boxes { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.box { padding: 18px 20px; border: 2px solid var(--orange); border-radius: 0 15px; background: var(--cream); }
.box__title { display: block; font-family: Oswald, sans-serif; font-size: 19px; margin-bottom: 8px; }
.box__text { margin: 0; color: var(--muted); }
.box__link { display: block; color: var(--text); text-decoration: none; margin-top: 4px; }
.box__link:hover { color: var(--orange); }
.why { padding: clamp(36px, 5vw, 70px) 0; }
.contacts { padding-top: 40px; }

/* ——— этапы */
.stages { padding: clamp(36px, 5vw, 70px) 0; }
.stages__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: step; }
.stages__item { padding: 20px; border-radius: var(--radius); background: var(--cream); border: 1px solid var(--line); }
.stages__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--gradient); color: #fff; font-weight: 700; margin-bottom: 10px;
}
.stages__name { display: block; font-family: Oswald, sans-serif; font-size: 18px; margin-bottom: 6px; }
.stages__desc { margin: 0; color: var(--muted); }

/* ——— оплата */
.payment { padding: clamp(36px, 5vw, 70px) 0; }
.payment__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.payment__item { padding: 22px; border: 2px solid var(--orange); border-radius: 0 15px; background: #fff; }
.payment__name { display: block; font-family: Oswald, sans-serif; font-size: 20px; }
.payment__who { display: block; color: var(--orange); font-weight: 600; margin: 4px 0 8px; }
.payment__desc { margin: 0; color: var(--muted); }

/* ——— примеры работ */
.examples { padding-top: 30px; }
.example { padding: 28px 0; border-bottom: 1px solid var(--line); }
.example__name { font-size: clamp(22px, 2.2vw, 34px); color: var(--orange); text-transform: uppercase; margin-bottom: .3em; }
.example__short { font-weight: 600; margin: 0 0 1em; }
.gallery { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.gallery img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* ——— список статей */
.articles { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 14px; }
.articles__item { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); }
.articles__link { font-family: Oswald, sans-serif; font-size: 19px; text-decoration: none; }
.articles__desc { margin: 6px 0 0; color: var(--muted); font-size: 15px; }

/* ——— вопросы и ответы */
.faq { margin: 2.4em 0; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; background: #fff; }
.faq__q { padding: 16px 20px; font-weight: 600; cursor: pointer; list-style: none; position: relative; padding-right: 48px; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--orange); font-size: 26px; line-height: 1; }
.faq__item[open] .faq__q::after { content: "−"; }
.faq__a { padding: 0 20px 18px; color: var(--muted); }
.faq__a p { margin: 0 0 .8em; }

/* ——— призыв к действию */
.cta {
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
  margin: 40px 0; padding: clamp(20px, 3vw, 34px);
  background: var(--gradient); color: #fff; border-radius: var(--radius);
}
.cta__title { display: block; font-family: Oswald, sans-serif; font-size: clamp(20px, 2vw, 28px); margin-bottom: 6px; }
.cta p { margin: 0; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta__actions .btn--ghost { border-color: #fff; color: #fff; }
.cta__actions .btn--ghost:hover { background: rgba(255,255,255,.14); color: #fff; }

/* ——— другие направления */
.related { padding: 40px 0; border-top: 1px solid var(--line); }
.related__title { font-family: Oswald, sans-serif; font-size: clamp(20px, 2vw, 30px); text-transform: uppercase; color: var(--orange); }

/* ——— подвал */
.footer { margin-top: 60px; border-radius: 20px 20px 0 0; background: var(--orange); color: #fff; padding: 34px 0 20px; }
.footer a { color: #fff; }
.footer__inner { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.footer__title { display: block; font-family: Oswald, sans-serif; font-size: 19px; margin-bottom: 12px; }
.footer__menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__menu a { text-decoration: none; font-size: 16px; }
.footer__menu a:hover { text-decoration: underline; }
.footer__contact { display: block; text-decoration: none; margin-bottom: 8px; }
.footer__contact--tel { font-weight: 600; font-size: 19px; }
.footer__hours { margin: 0 0 12px; opacity: .9; font-size: 15px; }
.footer__col--call .btn { background: #fff; color: var(--text); margin-top: 10px; }
.footer .soc__item { color: #fff; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-top: 26px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.3); font-size: 15px; }
.copyright { margin: 0; }
.footer__link { color: #fff; }

/* ——— модальные окна и форма */
[hidden] { display: none !important; }
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 40; }
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; overflow-y: auto; }
.modal__content {
  position: relative; width: 100%; max-width: 520px;
  background: #fff; border-radius: var(--radius); padding: clamp(20px, 3vw, 34px);
}
.modal__content--center { text-align: center; }
.modal__close {
  position: absolute; top: 10px; right: 10px; width: 40px; height: 40px;
  border: 0; background: none; cursor: pointer; font-size: 0;
}
.modal__close::before, .modal__close::after {
  content: ""; position: absolute; left: 10px; top: 19px; width: 20px; height: 2px; background: var(--text);
}
.modal__close::before { transform: rotate(45deg); }
.modal__close::after { transform: rotate(-45deg); }
.modal__title { font-size: clamp(19px, 1.8vw, 25px); color: var(--text); }
.modal__desc { color: var(--muted); margin-top: 0; }
.modal__btn { width: 100%; margin-top: 6px; }

.field { display: block; margin-bottom: 14px; }
.field__label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 5px; }
.field input, .field select {
  width: 100%; min-height: 50px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 10px;
  font: inherit; background: #fff; color: var(--text);
}
.field input:focus, .field select:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: transparent; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__note { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.form__error { color: #c0341a; font-size: 14px; margin: 10px 0 0; }

/* ——— адаптив */
@media (max-width: 1100px) {
  .about__inner, .how__inner { grid-template-columns: 1fr; }
  .how__text, .how__img { order: initial; }
}

@media (max-width: 900px) {
  .hamburger { display: block; margin-left: auto; }
  .header__contacts { display: none; }
  .nav {
    position: absolute; inset: 100% 0 auto; margin: 0;
    background: #fff; border-bottom: 2px solid var(--orange);
    padding: 18px 20px; display: none;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; gap: 4px; }
  .nav__list a { display: block; padding: 12px 0; font-size: 17px; }
  .nav__bottom { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
  .service-head { flex-direction: column; }
}

@media (pointer: coarse) {
  .nav__list a, .footer__menu a, .crumbs a, .articles__link { min-height: 44px; display: inline-flex; align-items: center; }
  .btn { min-height: 48px; }
}

@media print {
  .header, .footer, .cta, .related, .modal, .overlay, .hamburger { display: none !important; }
}
