/* styles.css */

/* ========== Base / Tokens ========== */
:root{
  --bg: #f4f4f4;
  --surface: #ffffff;
  --surface-2: #eef1f3;
  --text: #1c2328;
  --muted: #66727a;

  --header: #35424a;
  --header-2: #2f3a41;

  --accent: #e8491d;
  --accent-2: #d9421a;

  --border: rgba(0,0,0,.08);

  --shadow: 0 8px 24px rgba(0,0,0,.10);
  --shadow-soft: 0 6px 18px rgba(0,0,0,.08);

  --radius: 14px;
  --radius-sm: 10px;

  --container: 1160px;

  --font: "Verdana", "Tahoma", "Segoe UI", Arial, sans-serif;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 19px;         /* увеличен размер */
  font-weight: 400;        /* немного плотнее */
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img{ max-width:100%; height:auto; }

/* ========== Header font fix for larger base font ========== */
.site-header {
  font-size: 15px;                /* уменьшение локально */
  font-family: "Segoe UI", Arial, sans-serif; /* аккуратный шрифт для шапки */
  line-height: 1.3;
}

.header__row {
  gap: 14px;
  min-height: 68px;
}

.brand__jc,
.brand__name {
  font-size: 16px;
}

.nav__link {
  font-size: 13px;
  padding: 6px 8px;
}

.header__phone-value {
  font-size: 13.5px;
}

.nav__toggle-text {
  font-size: 12px;
}

/* Accessibility */
.skip-link{
  position:absolute;
  left:-9999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}
.skip-link:focus{
  left:16px;
  top:16px;
  width:auto;
  height:auto;
  padding:10px 12px;
  background:#fff;
  border-radius:8px;
  box-shadow: var(--shadow-soft);
  z-index:9999;
}

/* Layout */
.container{
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

/* ========== Header ========== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header);
  color:#fff;
  border-bottom: 3px solid var(--accent);
}

.header__row{
  display:flex;
  align-items:center;
  gap:18px;
  padding: 14px 0;
  min-height: 72px;
  flex-wrap: nowrap;
}

/* Brand */
.brand{
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  color: #fff;
  min-width: 0;
  max-width: 100%;
  flex: 0 0 auto;
}

.brand__line{
  display:flex;
  align-items:baseline;
  gap:10px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.brand__jc{
  color: var(--accent);
  font-weight:700;
  font-size: 18px;
  letter-spacing: .2px;
}

.brand__name{
  color:#fff;
  font-weight:700;
  font-size: 18px;
}

.brand__tagline{
  font-size: 12px;
  color: rgba(255,255,255,.86);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.nav{
  flex: 1 1 auto;
  min-width: 0;
}

.nav__list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.nav__link{
  color:#fff;
  text-decoration:none;
  font-size: 13px;
  padding: 6px 6px;
  border-radius: 8px;
  position: relative;
}
.nav__link:hover{
  color:#fff;
}
.nav__link:hover::after{
  content:"";
  position:absolute;
  left:6px;
  right:6px;
  bottom:2px;
  height:2px;
  background: var(--accent);
  border-radius: 2px;
}

/* Mobile toggle hidden on desktop */
.nav__toggle{
  display:none;
  margin-left:auto;
  background: transparent;
  border: 1px solid rgba(255,255,255,.25);
  color:#fff;
  padding: 8px 10px;
  border-radius: 10px;
  cursor:pointer;
}
.nav__toggle:active{ transform: translateY(1px); }
.nav__toggle-icon{
  display:inline-block;
  width:16px;
  height:12px;
  border-top:2px solid #fff;
  border-bottom:2px solid #fff;
  position:relative;
  margin-right:8px;
}
.nav__toggle-icon::before{
  content:"";
  position:absolute;
  left:0; right:0;
  top:4px;
  border-top:2px solid #fff;
}
.nav__toggle-text{
  font-size: 12px;
  letter-spacing:.2px;
}

/* Header right */
.header__right{
  display:flex;
  align-items:center;
  gap:12px;
  flex: 0 0 auto;
  white-space:nowrap;
}

.header__phone{
  display:flex;
  flex-direction:column;
  gap:2px;
  text-decoration:none;
  color:#fff;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.06);
}
.header__phone:hover{
  border-color: rgba(232,73,29,.55);
}
.header__phone-label{
  font-size: 11px;
  color: rgba(255,255,255,.75);
}
.header__phone-value{
  font-size: 13px;
  font-weight:700;
}

.header__cta{
  padding: 10px 14px;
}

/* ========== Drawer (Mobile menu) ========== */
.nav-drawer{
  display:none;
}
.nav-drawer[aria-hidden="false"]{
  display:block;
}
.nav-drawer__backdrop{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.45);
  z-index: 1001;
}
.nav-drawer__panel{
  position:fixed;
  top:0;
  right:0;
  width:min(360px, 92vw);
  height:100vh;
  background: #fff;
  z-index: 1002;
  box-shadow: var(--shadow);
  display:flex;
  flex-direction:column;
}
.nav-drawer__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 16px;
  border-bottom: 1px solid var(--border);
}
.nav-drawer__title{
  font-weight:700;
}
.nav-drawer__close{
  border:0;
  background: transparent;
  cursor:pointer;
  font-size: 18px;
}
.nav-drawer__content{
  padding: 12px 16px 18px;
  overflow:auto;
}
.nav-drawer__list{
  list-style:none;
  padding:0;
  margin:0 0 14px 0;
}
.nav-drawer__link{
  display:block;
  padding: 10px 10px;
  border-radius: 10px;
  text-decoration:none;
  color: var(--text);
}
.nav-drawer__link:hover{
  background: rgba(232,73,29,.08);
}
.nav-drawer__contacts{
  padding: 12px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fafafa;
}
.nav-drawer__contact{
  display:block;
  color: var(--text);
  text-decoration:none;
  margin-bottom: 6px;
}
.nav-drawer__meta{
  font-size: 12px;
  color: var(--muted);
}
.nav-drawer__actions{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top: 12px;
}

/* ========== Buttons ========== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border: 1px solid transparent;
  background: var(--accent);
  color:#fff;
  text-decoration:none;
  font-weight:700;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 12px;
  cursor:pointer;
  transition: background-color .2s ease, border-color .2s ease, transform .05s ease, color .2s ease;
}
.btn:active{ transform: translateY(1px); }

.btn:not(.btn--ghost):not(.btn--ghost-dark):hover{
  background: var(--accent-2);
}

.btn:focus-visible{
  outline: 2px solid rgba(232,73,29,.6);
  outline-offset: 2px;
}

.btn--wide{ width:100%; }

.btn--ghost{
  background: transparent;
  border-color: rgba(255,255,255,.28);
  color:#fff;
}
.btn--ghost:hover{
  background: rgba(255,255,255,.08);
  border-color: var(--accent);
  color:#fff;
}

.btn--ghost-dark{
  background: transparent;
  border-color: rgba(0,0,0,.12);
  color: var(--accent);
}
.btn--ghost-dark:hover{
  background: rgba(232,73,29,.08);
  border-color: var(--accent);
  color: var(--accent);
}

/* ========== Sections / Cards ========== */
.section{
  padding: 44px 0;
}
.section--alt{ background: rgba(0,0,0,.035); }

.section__header{ margin-bottom: 16px; }
.section__title{ margin:0 0 8px 0; font-size: 22px; }
.section__subtitle{ margin:0; color: var(--muted); font-size: 13px; max-width: 920px; }

.grid{ display:grid; gap:16px; }
.grid--2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.08);
}
/* ===== Заголовки в карточках ===== */
.card__title {
  margin: 0 0 10px 0;
  font-size: 17px;
  font-weight: 700;
  color: #222;
}

/* ===== Текст карточки ===== */
.card__text {
  color: #444;
  font-size: 15.5px;
  line-height: 1.6;
}
.card a{ color: var(--accent); }
.card a:hover{ color: var(--accent-2); }

/* ===== Контейнер секции ===== */
.section {
  background: linear-gradient(180deg, #fafbfc, #f4f5f7);
}

/* ===== Заголовок секции ===== */
.section__title {
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
  margin-bottom: 14px;
}
.section__subtitle {
  color: #555;
  font-size: 16px;
}
.section__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;                 /* длина линии */
  height: 3px;                 /* толщина линии */
  background: var(--accent);   /* оранжевый акцент */
  border-radius: 2px;
}

.notice{
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(232,73,29,.25);
  background: rgba(232,73,29,.06);
  color: #6a3b2e;
  font-size: 12px;
}

/* ========== Hero ========== */
.hero{
  background: #fff;
  padding: 36px 0 34px;
}
.hero__grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  align-items:start;
}
.hero__title{ margin:0 0 10px 0; font-size: 34px; }
.hero__lead{ margin:0 0 14px 0; color: var(--muted); font-size: 13px; max-width: 720px; }
.hero__actions{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom: 10px; }
.hero__note{ margin:0; font-size: 12px; color: var(--muted); }

/* Contact hero block */
.contact-hero{
  background: linear-gradient(180deg, #3a4650 0%, #2f3a41 100%);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  color:#fff;
  padding: 16px;
  box-shadow: var(--shadow);
}
.contact-hero__title{ margin:0 0 10px 0; font-size: 18px; }
.contact-hero__info{ font-size: 12px; line-height:1.5; }
.contact-hero__info a{ color: var(--accent); text-decoration:none; font-weight:700; }
.contact-hero__gap{ margin-top: 10px; }
.contact-hero__btn{
  width:100%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 12px;
  padding: 11px 12px;
  text-decoration:none;
  font-weight:700;
  font-size: 13px;
  border: 1px solid rgba(255,255,255,.12);
  cursor:pointer;
  background: rgba(0,0,0,.08);
  color:#fff;
  margin-top: 10px;
  transition: background-color .2s ease, border-color .2s ease, transform .05s ease, color .2s ease;
}
.contact-hero__btn:active{ transform: translateY(1px); }
.contact-hero__btn--primary{ background: var(--accent); border-color: transparent; }
.contact-hero__btn--primary:hover{ background: var(--accent-2); }
.contact-hero__btn--secondary{ background: rgba(255,255,255,.06); }
.contact-hero__btn--secondary:hover{ background: rgba(255,255,255,.10); border-color: rgba(232,73,29,.55); }
.contact-hero__btn--ghost{ background: rgba(0,0,0,.10); }
.contact-hero__btn--ghost:hover{ background: rgba(255,255,255,.08); border-color: rgba(232,73,29,.55); }
.contact-hero__divider{ height:1px; background: rgba(255,255,255,.12); margin: 12px 0 2px; }
.contact-hero__status{ margin: 10px 0 0 0; font-size: 12px; color: rgba(255,255,255,.8); min-height: 16px; }

/* ========== Contacts section helpers ========== */
.actions-row{ display:flex; gap:10px; flex-wrap:wrap; margin-top: 10px; }
.small{ margin: 10px 0 0 0; font-size: 12px; color: var(--muted); }

/* ========== Form ========== */
.form{ display:flex; flex-direction:column; gap: 12px; }
.form__field{ display:flex; flex-direction:column; gap: 6px; }
.form__label{ font-size: 12px; color: var(--muted); }
.form__input,.form__select,.form__textarea{
  width:100%;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  background: #fff;
}
.form__input:focus,.form__select:focus,.form__textarea:focus{
  outline: none;
  border-color: rgba(232,73,29,.6);
  box-shadow: 0 0 0 3px rgba(232,73,29,.12);
}
.form__error{ min-height: 16px; font-size: 12px; color: #b00020; }
.form__check{ display:flex; gap:8px; align-items:flex-start; font-size: 12px; color: var(--muted); }
.form__check input{ transform: translateY(2px); }

/* Disabled submit */
.btn[disabled],button.btn[disabled]{ opacity: .55; cursor:not-allowed; }

/* ========== Footer ========== */
.footer{
  background: #e9edf0;
  border-top: 1px solid rgba(0,0,0,.08);
  padding: 26px 0 14px;
}
.footer__grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:16px;
}
.footer__title {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 6px;
}
.footer__muted{ font-size: 12px; color: var(--muted); }
.footer__link {
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.7;
  transition: color 0.2s ease;
}
.footer__link:hover {
  color: var(--accent);
}
.footer__contact {
  font-weight: 600;
  color: var(--text);
}
.footer__contact:hover {
  color: var(--accent);
}
.footer__nav {
  color: var(--muted);
}
.footer__nav:hover {
  color: var(--accent);
}
.footer__muted {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin-top: 4px;
}
.footer__bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid rgba(0,0,0,.08);
}
.to-top{ color: var(--accent); text-decoration:none; font-weight:700; font-size: 12px; }
.to-top:hover{ color: var(--accent-2); }
.footer__text {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

/* ========== Responsive ========== */
@media (max-width: 980px){
  .brand{ max-width: 360px; }
  .nav__list{ gap: 12px; }
}

@media (max-width: 860px){
  .header__row{ gap:12px; }
  .nav__list{ display:none; }
  .nav__toggle{ display:inline-flex; align-items:center; }
  .hero__grid{ grid-template-columns: 1fr; }
  .grid--3{ grid-template-columns: 1fr; }
  .grid--2{ grid-template-columns: 1fr; }
  .footer__grid{ grid-template-columns: 1fr; }
  .brand{ min-width: 0; max-width: 100%; }
  .brand__tagline{ max-width: 58vw; }
  .header__right{ gap:10px; }
}

@media (max-width: 520px){
  .header__phone{ display:none; }
  .header__cta{ padding: 10px 12px; }
  .hero__title{ font-size: 26px; }
}
@media (max-width: 1100px){
  .nav__list{ display:none; }
  .nav__toggle{ display:inline-flex; align-items:center; }
}
@media (max-width: 640px){
  .header__right{ display:none; }
}
