:root {
  --nika-graphite: #2d3740;
  --nika-graphite-soft: #52616b;
  --nika-gray-50: #f7f9fa;
  --nika-gray-100: #eef2f4;
  --nika-gray-200: #dce3e7;
  --nika-gray-300: #b8c2c8;
  --nika-white: #fff;
  --nika-accent: #e85d2a;
  --nika-accent-dark: #c9471b;
  --nika-shadow: 0 22px 58px rgba(45,55,64,.10);
}

html { scroll-padding-top: 118px; overflow-x: hidden; }
body { color: var(--nika-graphite); background: var(--nika-white); overflow-x: hidden; }
img { max-width: 100%; }
::selection { color: #fff; background: var(--nika-accent); }

/* Светлая премиальная шапка и подвал */
.demo-bar { display: none !important; }
.site-utility { background: #e5eaed !important; color: #53616a !important; border-color: #d6dde1 !important; }
.site-header { background: rgba(238,242,244,.97) !important; border-bottom: 1px solid #d8e0e4; box-shadow: 0 8px 28px rgba(45,55,64,.06); }
.site-header::after { background: linear-gradient(90deg,transparent,rgba(232,93,42,.45),transparent) !important; }
.brand-logo { display: block; width: clamp(175px,18vw,235px); min-width: 175px; height: auto; }
.brand-logo img { display: block; width: 100%; height: auto; }
.footer-brand { width: min(240px,100%); margin-bottom: 22px; }
.desktop-nav a,
.header-phone { color: var(--nika-graphite) !important; }
.desktop-nav a:hover,
.desktop-nav a:focus-visible,
.header-services__trigger:hover { color: var(--nika-accent) !important; }

.header-services { position: relative; display: flex; align-items: stretch; }
.header-services__trigger { display: flex !important; align-items: center; gap: 7px; }
.header-services__panel {
  display: grid !important;
  grid-template-columns: repeat(2,minmax(210px,1fr));
  position: absolute !important;
  z-index: 80;
  top: calc(100% - 2px);
  left: 50%;
  min-width: 520px;
  padding: 14px;
  background: #fff !important;
  border: 1px solid var(--nika-gray-200) !important;
  border-top: 3px solid var(--nika-accent) !important;
  box-shadow: 0 28px 60px rgba(45,55,64,.16) !important;
  border-radius: 0 0 18px 18px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%,12px);
  transition: opacity .2s ease,transform .2s ease,visibility .2s;
}
.header-services:hover .header-services__panel,
.header-services:focus-within .header-services__panel { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%,0); }
.header-services__panel a { min-height: 74px; padding: 14px 16px !important; border-radius: 12px; background: #f7f9fa; }
.header-services__panel a:hover { background: #eef2f4 !important; }
.header-services__panel b { display: block; color: var(--nika-graphite); }
.header-services__panel small { color: #6b7780; }

footer,
.footer-cta { background: var(--nika-gray-100) !important; color: var(--nika-graphite) !important; }
.footer-cta { border-top: 1px solid var(--nika-gray-200); border-bottom: 1px solid var(--nika-gray-200); }
.footer-cta h2,
.footer-grid b,
.footer-grid a,
.footer-phone,
.footer-bottom { color: var(--nika-graphite) !important; }
.footer-grid a:hover { color: var(--nika-accent) !important; }
.footer-grid > div:first-child p,
.footer-grid p,
.footer-cta p,
.footer-bottom { color: #65727b !important; }
.footer-bottom { border-color: #d5dde1 !important; }

/* Белый жирный текст на всех оранжевых CTA */
.button,
.button:visited,
.karkas-mobile-cta,
.estimate form button,
.karkas-calc__form form button,
.home-estimate form button,
.home-service-card__image span,
.catalog-card .button {
  color: #fff !important;
  font-weight: 800 !important;
}
.button,
.karkas-mobile-cta,
.estimate form button,
.karkas-calc__form form button,
.home-estimate form button {
  background: var(--nika-accent) !important;
  border-color: var(--nika-accent) !important;
  border-radius: 25% !important;
  box-shadow: 0 10px 22px rgba(232,93,42,.18);
}
.button:hover,
.button:focus-visible,
.estimate form button:hover,
.karkas-calc__form form button:hover,
.home-estimate form button:hover { color: #fff !important; background: var(--nika-accent-dark) !important; border-color: var(--nika-accent-dark) !important; transform: translateY(-2px); }
.button-outline,
.button-outline:visited { color: var(--nika-graphite) !important; background: transparent !important; border-color: #9aa7af !important; box-shadow: none; }
.button-outline:hover,
.button-outline:focus-visible { color: #fff !important; background: var(--nika-graphite) !important; border-color: var(--nika-graphite) !important; }
.home-service-card__image span { background: var(--nika-accent) !important; }

/* Интерактив проектов на главной */
.home-project-card { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--nika-gray-200); box-shadow: 0 16px 38px rgba(45,55,64,.07); transition: box-shadow .25s ease,transform .25s ease; }
.home-project-card:hover,
.home-project-card:focus-within { transform: translateY(-4px); box-shadow: var(--nika-shadow); }
.home-project-card__image { position: relative; overflow: hidden; aspect-ratio: 3/2; }
.home-project-card__image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s ease,transform .7s ease; }
.project-reveal__secondary { opacity: 0; }
.project-reveal:hover .project-reveal__primary,
.project-reveal:focus-within .project-reveal__primary,
.project-reveal.is-open .project-reveal__primary { opacity: 0; }
.project-reveal:hover .project-reveal__secondary,
.project-reveal:focus-within .project-reveal__secondary,
.project-reveal.is-open .project-reveal__secondary { opacity: 1; transform: scale(1.025); }
.home-project-card__body { padding-bottom: 22px !important; }
.home-project-card__body p { min-height: 72px; }
.home-project-card__body > div { align-items: flex-start; gap: 12px; }
.project-reveal__toggle { padding: 0; margin: 8px 0 12px; border: 0; color: var(--nika-accent); background: transparent; font-weight: 800; cursor: pointer; }
.home-project-card__link { display: inline-flex; gap: 8px; color: var(--nika-graphite); font-weight: 800; }
.project-reveal__plan { max-height: 0; overflow: hidden; opacity: 0; transform: translateY(-14px); border-top: 1px solid transparent; transition: max-height .55s ease,opacity .3s ease,transform .45s ease,border-color .3s; }
.project-reveal:hover > .project-reveal__plan,
.project-reveal:focus-within > .project-reveal__plan,
.project-reveal.is-open > .project-reveal__plan { max-height: 430px; opacity: 1; transform: translateY(0); border-color: var(--nika-gray-200); }
.project-reveal__plan img { display: block; width: 100%; height: auto; background: var(--nika-gray-50); }

/* Общая типографика новых страниц */
.catalog-page,
.about-page,
.articles-page { background: #fff; }
.catalog-page h1,
.about-page h1,
.articles-page h1 { margin: 0 0 24px; color: var(--nika-graphite); font-size: clamp(42px,6vw,78px); line-height: .98; letter-spacing: -.05em; }
.catalog-page h1 em,
.about-page h1 em,
.articles-page h1 em { color: var(--nika-accent); font-weight: 500; }
.catalog-page h2,
.about-page h2,
.articles-page h2 { margin: 0; color: var(--nika-graphite); font-size: clamp(34px,4.4vw,58px); line-height: 1.04; letter-spacing: -.04em; }
.catalog-page h3,
.about-page h3,
.articles-page h3 { color: var(--nika-graphite); }

/* Каталог 20 проектов */
.catalog-hero { padding: clamp(74px,8vw,118px) 0; background: linear-gradient(135deg,#eef2f4 0%,#fff 68%); border-bottom: 1px solid var(--nika-gray-200); }
.catalog-hero .shell { max-width: 1120px; }
.catalog-hero .eyebrow { color: var(--nika-accent); }
.catalog-hero > .shell > p:not(.eyebrow) { max-width: 820px; font-size: clamp(18px,2vw,23px); color: #5c6972; line-height: 1.55; }
.catalog-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0; }
.catalog-hero ul { display: grid; grid-template-columns: repeat(3,1fr); max-width: 800px; margin: 40px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--nika-gray-300); }
.catalog-hero li { padding: 24px 22px 0 0; }
.catalog-hero li b,.catalog-hero li span { display: block; }
.catalog-hero li b { font-size: 25px; }
.catalog-hero li span { margin-top: 5px; color: #6d7981; }
.catalog-choice { display: grid; grid-template-columns: .9fr 1.5fr; gap: clamp(42px,7vw,100px); padding-top: 76px; padding-bottom: 76px; }
.catalog-choice__grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: var(--nika-gray-200); border: 1px solid var(--nika-gray-200); }
.catalog-choice article { padding: 28px; background: #fff; }
.catalog-choice article span,.about-service-grid article>span { color: var(--nika-accent); font-weight: 800; }
.catalog-section { padding: 80px 0; background: var(--nika-gray-50); border-top: 1px solid var(--nika-gray-200); }
.catalog-section:nth-of-type(even) { background: #fff; }
.catalog-section__head { display: grid; grid-template-columns: 1.4fr .8fr; gap: 60px; align-items: end; margin-bottom: 42px; }
.catalog-section__head > p { color: #68757e; font-size: 18px; line-height: 1.6; }
.catalog-grid { display: grid; gap: 30px; }
.catalog-card { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(300px,.75fr); background: #fff; border: 1px solid var(--nika-gray-200); box-shadow: 0 18px 48px rgba(45,55,64,.07); scroll-margin-top: 135px; }
.catalog-card__gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: repeat(2,minmax(0,1fr)); min-height: 460px; background: #dce3e7; gap: 1px; }
.catalog-card__gallery > img,.catalog-card__main { min-width: 0; min-height: 0; width: 100%; height: 100%; object-fit: cover; }
.catalog-card__main { grid-row: 1/3; position: relative; overflow: hidden; }
.catalog-card__main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .4s ease,transform .6s ease; }
.catalog-card__main span { position: absolute; left: 18px; bottom: 16px; z-index: 2; padding: 8px 12px; color: #fff; background: rgba(45,55,64,.82); border-radius: 999px; font-size: 12px; font-weight: 800; }
.catalog-card__plan { object-fit: contain !important; background: #f3f6f8; }
.catalog-card__content { display: flex; flex-direction: column; padding: clamp(28px,4vw,48px); }
.catalog-card__type { margin: 0 0 9px; color: var(--nika-accent); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 800; }
.catalog-card__title { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.catalog-card__title h3 { margin: 0; font-size: clamp(28px,3vw,40px); letter-spacing: -.04em; }
.catalog-card__title b { color: var(--nika-accent); white-space: nowrap; }
.catalog-card__content ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; padding: 0; list-style: none; }
.catalog-card__content li { padding: 8px 11px; background: var(--nika-gray-100); border-radius: 999px; color: #5c6972; font-size: 13px; font-weight: 700; }
.catalog-card__content > p:not(.catalog-card__type) { color: #5c6972; line-height: 1.65; }
.catalog-card__content .button { align-self: flex-start; margin-top: auto; }
.catalog-adapt { padding: 84px 0; background: var(--nika-graphite); color: #fff; }
.catalog-adapt__grid { display: grid; grid-template-columns: .9fr 1.2fr; gap: clamp(50px,9vw,130px); }
.catalog-adapt h2,.catalog-adapt p,.catalog-adapt b { color: #fff; }
.catalog-adapt ol { margin: 0; padding: 0; list-style: none; }
.catalog-adapt li { display: grid; grid-template-columns: 58px 1fr; gap: 20px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.18); }
.catalog-adapt li>span { color: #ff9065; font-weight: 800; }
.catalog-adapt li p { margin-bottom: 0; color: #cbd3d8; }
.catalog-cta,.articles-cta,.about-cta { padding: 86px 0; text-align: center; background: #eef2f4; }
.catalog-cta .shell,.articles-cta .shell,.about-cta .shell { max-width: 850px; }
.catalog-cta p:not(.section-kicker),.articles-cta p:not(.section-kicker),.about-cta p:not(.section-kicker) { color: #61707a; font-size: 19px; line-height: 1.6; }
.catalog-disclaimer { margin-top: 28px; margin-bottom: 28px; color: #738089; font-size: 13px; }

/* О компании */
.about-hero { padding: clamp(58px,7vw,96px) 0; background: #f5f7f8; }
.about-hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px,6vw,90px); align-items: center; }
.about-hero__grid > div > p:not(.eyebrow) { max-width: 760px; color: #5e6b74; font-size: 19px; line-height: 1.65; }
.about-hero__grid > div > div { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.about-hero img { min-height: 520px; width: 100%; object-fit: cover; box-shadow: var(--nika-shadow); }
.about-position { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding-top: 80px; padding-bottom: 80px; }
.about-position > div:last-child { color: #5d6972; font-size: 19px; line-height: 1.7; }
.about-services { padding: 80px 0; background: var(--nika-gray-50); border-block: 1px solid var(--nika-gray-200); }
.about-head { max-width: 900px; margin-bottom: 40px; }
.about-head > p:not(.section-kicker) { color: #65727b; font-size: 18px; line-height: 1.6; }
.about-service-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--nika-gray-200); border: 1px solid var(--nika-gray-200); }
.about-service-grid article { display: flex; flex-direction: column; min-height: 290px; padding: 30px; background: #fff; }
.about-service-grid h3 { font-size: 24px; }
.about-service-grid p { color: #64717a; line-height: 1.6; }
.about-service-grid a { margin-top: auto; color: var(--nika-graphite); font-weight: 800; }
.about-service-grid a i { color: var(--nika-accent); }
.about-control { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; padding-top: 80px; padding-bottom: 80px; }
.about-control > div > p:not(.section-kicker) { color: #637079; line-height: 1.7; }
.about-control ol { margin: 0; padding: 0; list-style: none; counter-reset: control; }
.about-control li { padding: 20px 0; border-top: 1px solid var(--nika-gray-200); }
.about-control li b { font-size: 20px; }
.about-control li p { margin-bottom: 0; color: #68757e; }
.about-works { padding: 80px 0; background: var(--nika-graphite); color: #fff; }
.about-works h2,.about-works h3 { color: #fff; }
.about-works .about-head > p:not(.section-kicker) { color: #cbd3d8; }
.about-work-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.about-work-grid article { background: #38444d; }
.about-work-grid img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.about-work-grid article > *:not(img) { margin-left: 24px; margin-right: 24px; }
.about-work-grid span { display: block; margin-top: 22px; color: #ff9065; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.about-work-grid p { padding-bottom: 24px; color: #cbd3d8; line-height: 1.6; }
.about-values { padding: 80px 0; }
.about-values .shell { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.about-values ul { margin: 0; padding: 0; list-style: none; }
.about-values li { position: relative; padding: 17px 0 17px 32px; border-top: 1px solid var(--nika-gray-200); font-weight: 700; }
.about-values li::before { content: '✓'; position: absolute; left: 0; color: var(--nika-accent); }

/* Полезные статьи */
.articles-hero { padding: 90px 0; background: linear-gradient(135deg,#eef2f4,#fff); border-bottom: 1px solid var(--nika-gray-200); }
.articles-hero .shell > p:not(.eyebrow) { max-width: 760px; color: #627079; font-size: 20px; line-height: 1.6; }
.articles-hero nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.articles-hero nav a { padding: 10px 15px; color: var(--nika-graphite); background: #fff; border: 1px solid var(--nika-gray-200); border-radius: 999px; font-weight: 700; }
.articles-hero nav a:hover { color: #fff; background: var(--nika-accent); border-color: var(--nika-accent); }
.articles-index { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; padding-top: 76px; padding-bottom: 76px; }
.articles-index__points { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.articles-index__points p { margin: 0; padding: 22px; background: var(--nika-gray-50); color: #65727b; line-height: 1.6; }
.articles-index__points b { display: block; margin-bottom: 7px; color: var(--nika-graphite); }
.articles-list { padding: 80px 0; background: var(--nika-gray-50); border-top: 1px solid var(--nika-gray-200); }
.seo-article { display: grid; grid-template-columns: minmax(320px,.75fr) minmax(0,1.25fr); gap: clamp(38px,6vw,84px); align-items: start; padding: 70px 0; border-top: 1px solid var(--nika-gray-200); scroll-margin-top: 130px; }
.seo-article:first-child { padding-top: 0; border-top: 0; }
.seo-article__visual { position: sticky; top: 130px; }
.seo-article__visual img { display: block; width: 100%; aspect-ratio: 3/2; object-fit: cover; box-shadow: var(--nika-shadow); }
.seo-article__visual span { display: inline-block; margin-top: 13px; color: var(--nika-accent); font-size: 24px; font-weight: 800; }
.seo-article__content h2 { margin-bottom: 32px; font-size: clamp(34px,4vw,52px); }
.seo-article__content h3 { margin: 27px 0 8px; font-size: 22px; }
.seo-article__content p { color: #5f6d76; line-height: 1.75; }
.seo-article__content .button { margin-top: 18px; }

@media (max-width: 1180px) {
  .site-header { padding-inline: 24px !important; }
  .desktop-menu { gap: 20px !important; }
  .header-phone { display: none !important; }
  .catalog-card { grid-template-columns: 1fr; }
  .catalog-card__gallery { min-height: 520px; }
  .catalog-card__content .button { margin-top: 18px; }
}

@media (max-width: 1000px) {
  .brand-logo { width: 195px; }
  .catalog-choice,.catalog-adapt__grid,.about-position,.about-control,.about-values .shell,.articles-index { grid-template-columns: 1fr; gap: 38px; }
  .about-hero__grid { grid-template-columns: 1fr; }
  .about-hero img { min-height: 0; aspect-ratio: 3/2; }
  .about-service-grid,.about-work-grid { grid-template-columns: repeat(2,1fr); }
  .seo-article { grid-template-columns: 1fr; }
  .seo-article__visual { position: static; }
  .seo-article__visual img { aspect-ratio: 16/9; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 84px; }
  .site-utility { display: none !important; }
  .site-header { min-height: 76px !important; padding: 10px 16px !important; }
  .brand-logo { width: 178px; min-width: 150px; }
  .mobile-menu__head .brand-logo { width: 205px; }
  .site-header > .button { display: none !important; }
  .catalog-hero,.articles-hero { padding: 64px 0; }
  .catalog-hero ul { grid-template-columns: 1fr; gap: 0; }
  .catalog-hero li { padding: 18px 0; border-bottom: 1px solid var(--nika-gray-200); }
  .catalog-choice__grid { grid-template-columns: 1fr; }
  .catalog-section { padding: 58px 0; }
  .catalog-section__head { grid-template-columns: 1fr; gap: 18px; margin-bottom: 28px; }
  .catalog-card__gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 270px 160px; min-height: 0; }
  .catalog-card__main { grid-column: 1/3; grid-row: 1; }
  .catalog-card__gallery > img { grid-row: 2; }
  .catalog-card__content { padding: 26px 22px; }
  .catalog-card__title { display: block; }
  .catalog-card__title b { display: inline-block; margin-top: 7px; }
  .catalog-adapt,.catalog-cta,.articles-cta,.about-cta { padding: 62px 0; }
  .about-position,.about-services,.about-control,.about-works,.about-values,.articles-list { padding-top: 58px; padding-bottom: 58px; }
  .about-service-grid,.about-work-grid,.articles-index__points { grid-template-columns: 1fr; }
  .about-service-grid article { min-height: 0; }
  .seo-article { padding: 54px 0; }
  .home-project-card__body p { min-height: 0; }
  .project-reveal__plan { transition-duration: .35s; }
  .project-reveal:hover > .project-reveal__plan,
  .project-reveal:focus-within > .project-reveal__plan { max-height: 0; opacity: 0; transform: translateY(-14px); border-color: transparent; }
  .project-reveal.is-open > .project-reveal__plan { max-height: 420px; opacity: 1; transform: none; border-color: var(--nika-gray-200); }
}

@media (max-width: 520px) {
  .catalog-page h1,.about-page h1,.articles-page h1 { font-size: clamp(38px,12vw,52px); }
  .catalog-page h2,.about-page h2,.articles-page h2 { font-size: clamp(31px,9vw,43px); }
  .catalog-hero__actions,.about-hero__grid > div > div { display: grid; }
  .button { width: 100%; justify-content: center; text-align: center; }
  .catalog-card__gallery { grid-template-rows: 230px 130px; }
  .catalog-card__main span { display: none; }
  .catalog-card__content li { font-size: 12px; }
  .home-projects__actions { display: grid !important; }
  .footer-grid { gap: 34px !important; }
}

@media (max-width: 380px) {
  .site-header { padding-inline: 12px !important; }
  .brand-logo { width: 150px; min-width: 142px; }
  .catalog-card__gallery { grid-template-rows: 205px 115px; }
  .catalog-card__content { padding: 22px 17px; }
  .catalog-card__content ul { gap: 5px; }
  .catalog-card__content li { padding: 7px 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .project-reveal__primary,.project-reveal__secondary,.project-reveal__plan,.button { transition: none !important; }
}
