/* services.css — общий стиль для страниц услуг (uslugi/*.php) */

:root {
  --green-dark:   #1B4332;
  --green-mid:    #2D6A4F;
  --green-accent: #40916C;
  --orange:       #F4720B;
  --orange-dark:  #C75800;
  --text-dark:    #1A1A1A;
  --text-body:    #2C3E50;
  --text-muted:   #6c757d;
  --bg-light:     #F8F9FA;
  --bg-white:     #FFFFFF;
  --border:       #E0E5EA;
  --radius:       8px;
  --radius-lg:    12px;
  --shadow:       0 2px 12px rgba(0,0,0,0.06);
  --shadow-lg:    0 8px 30px rgba(0,0,0,0.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Roboto', system-ui, -apple-system, sans-serif;
  font-size: 16px; line-height: 1.6; color: var(--text-body);
  background: var(--bg-white);
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; color: var(--text-dark); line-height: 1.2; }
h2 { font-size: clamp(22px, 3vw, 30px); margin: 40px 0 16px; }
h3 { font-size: 19px; margin: 24px 0 10px; }
p  { margin-bottom: 14px; }
a  { color: var(--green-accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--green-dark); }
ul, ol { margin: 0 0 16px 24px; }
li { margin-bottom: 6px; }
strong { color: var(--text-dark); }

/* Topbar */
.topbar { border-bottom: 1px solid var(--border); padding: 14px 0; background: var(--bg-white); position: sticky; top: 0; z-index: 50; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.topbar__logo { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 19px; color: var(--green-dark); letter-spacing: 0.5px; }
.topbar__nav { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar__nav a { color: var(--text-body); font-size: 14px; font-weight: 500; }
.topbar__phone { font-weight: 700; color: var(--green-dark); white-space: nowrap; }

/* Breadcrumbs */
.breadcrumbs { background: var(--bg-light); padding: 12px 0; font-size: 13px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.breadcrumbs li:not(:last-child)::after { content: ' / '; color: var(--text-muted); padding-left: 8px; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs span { color: var(--text-dark); }

/* Page hero */
.page-hero { padding: 40px 0 16px; }
.page-hero__title { font-size: clamp(26px, 4vw, 38px); font-weight: 800; }

/* Sections */
.section { padding: 32px 0; }
.section--light { background: var(--bg-light); }
.lead { font-size: 17px; color: var(--text-body); margin-bottom: 20px; }

/* Situations grid */
.situations { display: grid; gap: 20px; grid-template-columns: 1fr; margin: 24px 0; }
@media (min-width: 700px) { .situations { grid-template-columns: 1fr 1fr; } }
.situation { background: var(--bg-light); border-left: 3px solid var(--green-accent); padding: 18px 22px; border-radius: var(--radius); }
.situation h3 { margin-top: 0; font-size: 17px; color: var(--green-dark); }
.situation p { margin-bottom: 0; font-size: 15px; }

/* Methods */
.methods { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 20px 0; }
@media (min-width: 700px) { .methods { grid-template-columns: 1fr 1fr; } }
.method { padding: 18px 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-white); }
.method strong { display: block; margin-bottom: 6px; color: var(--green-dark); font-family: 'Montserrat', sans-serif; }

/* Price table */
.price-table { width: 100%; border-collapse: collapse; margin: 20px 0; background: var(--bg-white); box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; }
.price-table th, .price-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 15px; }
.price-table th { background: var(--green-dark); color: white; font-weight: 600; font-family: 'Montserrat', sans-serif; }
.price-table tr:last-child td { border-bottom: 0; }
.price-extra { background: var(--bg-light); border-left: 3px solid var(--orange); padding: 16px 20px; border-radius: var(--radius); margin: 20px 0; }
.price-extra ul { margin: 0; padding-left: 20px; }
.price-note { font-size: 14px; color: var(--text-muted); font-style: italic; margin-top: 12px; }

/* Equipment */
.equipment { display: grid; gap: 14px; grid-template-columns: 1fr; margin: 20px 0; }
@media (min-width: 700px) { .equipment { grid-template-columns: 1fr 1fr; } }
.equipment li { background: var(--bg-light); padding: 14px 18px; border-radius: var(--radius); list-style: none; margin: 0; }
.equipment strong { color: var(--green-dark); }

/* Steps */
.steps { display: grid; gap: 16px; grid-template-columns: 1fr; counter-reset: step; margin: 24px 0; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.step { background: var(--bg-white); padding: 18px 16px; border-radius: var(--radius); border: 1px solid var(--border); position: relative; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -14px; left: 16px; background: var(--orange); color: white; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.step h3 { font-size: 15px; margin: 8px 0 4px; }
.step p { font-size: 13px; margin: 0; color: var(--text-muted); }

/* FAQ */
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q { width: 100%; text-align: left; background: none; border: 0; padding: 18px 32px 18px 0; font-size: 16px; font-weight: 600; color: var(--text-dark); cursor: pointer; position: relative; font-family: 'Montserrat', sans-serif; }
.faq__q::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--orange); transition: transform .2s; }
.faq__item.open .faq__q::after { content: '−'; }
.faq__a { display: none; padding: 0 0 18px; font-size: 15px; color: var(--text-body); }
.faq__item.open .faq__a { display: block; }

/* B2B block */
.b2b { padding: 36px 0; background: var(--bg-light); }
.b2b__card { background: var(--bg-white); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); display: grid; gap: 24px; grid-template-columns: 1fr; align-items: center; border-left: 4px solid var(--green-accent); }
@media (min-width: 800px) { .b2b__card { grid-template-columns: 1.5fr 1fr; gap: 40px; padding: 32px 40px; } }
.b2b__text h2 { margin-top: 0; margin-bottom: 12px; font-size: clamp(20px, 2.4vw, 26px); color: var(--green-dark); }
.b2b__text p { margin-bottom: 10px; font-size: 15px; }
.b2b__text p:last-child { margin-bottom: 0; }
.b2b__cta { text-align: left; }
@media (min-width: 800px) { .b2b__cta { text-align: center; } }
.b2b__btn { display: inline-block; padding: 14px 24px; font-size: 15px; width: auto; }
.b2b__email { margin: 14px 0 4px; font-weight: 600; }
.b2b__email a { color: var(--green-dark); }
.b2b__phone { margin: 0; font-size: 14px; color: var(--text-muted); }

/* Contacts */
.contacts { background: var(--green-dark); color: white; padding: 48px 0; }
.contacts h2 { color: white; margin-top: 0; }
.contacts__sub { color: rgba(255,255,255,0.85); margin-bottom: 24px; }
.contacts__grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .contacts__grid { grid-template-columns: 1.2fr 0.8fr; } }
.contact-form { background: white; padding: 24px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.form-row { margin-bottom: 12px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-family: inherit; font-size: 15px; color: var(--text-dark); background: var(--bg-white); }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--green-accent); border-color: var(--green-accent); }
.contact-form input.error { border-color: #e53e3e; background: #fef5f5; }
.btn { display: inline-block; padding: 12px 24px; border-radius: var(--radius); font-weight: 600; font-size: 15px; cursor: pointer; border: 0; text-align: center; transition: all .2s; font-family: inherit; }
.btn--orange { background: var(--orange); color: white; width: 100%; }
.btn--orange:hover { background: var(--orange-dark); }
.btn--telegram { background: #0088cc; color: white; padding: 10px 18px; }
.btn--avito { background: #97cf26; color: white; padding: 10px 18px; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 10px; text-align: center; }
.form-success { padding: 14px; background: #c6f6d5; color: #22543d; border-radius: var(--radius); margin-top: 12px; font-weight: 600; text-align: center; }
.form-error { padding: 14px; background: #fed7d7; color: #742a2a; border-radius: var(--radius); margin-top: 12px; font-weight: 600; text-align: center; }
.contacts__info p { margin-bottom: 14px; }
.contacts__info a { color: white; }
.contacts__info strong { display: block; color: rgba(255,255,255,0.7); font-size: 13px; font-weight: 500; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.contacts__messengers { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

/* Footer */
.footer { background: #1a1a1a; color: rgba(255,255,255,0.85); padding: 40px 0 0; font-size: 14px; }
.footer__inner { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer__inner { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer__brand { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 18px; color: white; margin-bottom: 10px; }
.footer__about { color: rgba(255,255,255,0.6); }
.footer__h { font-weight: 600; color: white; margin-bottom: 12px; font-family: 'Montserrat', sans-serif; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 6px; }
.footer a { color: rgba(255,255,255,0.85); }
.footer a:hover { color: white; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 32px; padding: 16px 0; font-size: 12px; color: rgba(255,255,255,0.5); }

/* Floating buttons */
.float-btn { position: fixed; right: 20px; width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); color: white !important; font-size: 22px; z-index: 100; text-decoration: none !important; }
.float-btn--phone { bottom: 20px; background: var(--orange); }
.float-btn--tg { bottom: 84px; background: #0088cc; }
@media (max-width: 700px) { .float-btn { width: 48px; height: 48px; } }
