/* KAM·IN — стили сайта. Шрифт Montserrat лежит на своем сервере: /fonts (см. fonts/README.txt). */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/montserrat-cyrillic-variable.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/montserrat-latin-variable.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root{
  --bg:#FAFAFA;--ink:#353535;--muted:#666666;--line:#E2E2E2;--border:#8E8E8E;
  --accent:#B5684D;--accent-text-bg:#A45B42;--red:#E44E4E;--white:#FFFFFF;--soft:#F0F0F0;
  --r:6px;--shadow:0 10px 40px rgba(53,53,53,.10);--shadow-float:0 8px 30px rgba(53,53,53,.18);
  --type-display:clamp(2.25rem, 1.5rem + 3vw, 3.75rem);
  --type-section:clamp(1.875rem, 1.4rem + 1.8vw, 2.75rem);
  --type-heading:1.25rem;--type-body:1rem;--type-lead:1.125rem;
  --type-control:.9375rem;--type-small:.875rem;--type-caption:.75rem;
  --measure:65ch;
  --font:"Montserrat",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font);font-size:var(--type-body);line-height:1.6}
main{overflow-x:clip}
img{max-width:100%}
picture{display:block}
a{color:var(--ink)}
a:hover{color:#000}
h1,h2,h3,p,dl,dd,ol,ul{margin:0}
h1,h2,h3,.cta__title{text-wrap:balance;overflow-wrap:break-word}
p,.lead,.cta__sub,.contact__note,.check,.cookie__text{text-wrap:pretty}
a{text-underline-offset:.18em;text-decoration-thickness:.06em}
::selection{background:var(--ink);color:var(--bg)}
ol,ul{padding:0;list-style:none}
:focus-visible{outline:3px solid var(--ink);outline-offset:3px}
[hidden]{display:none!important}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:absolute;left:16px;top:-80px;z-index:50;padding:12px 18px;border-radius:var(--r);background:var(--ink);color:var(--bg)}
.skip:focus{top:12px;color:var(--bg)}

.container{max-width:1240px;margin:0 auto;padding:0 16px}
.section{padding-top:56px}
.eyebrow{font-size:var(--type-caption);letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.h1{font-size:var(--type-display);line-height:1.12;font-weight:500;letter-spacing:-.02em}
.h2{font-size:var(--type-section);line-height:1.16;font-weight:500;letter-spacing:-.02em}
.h2::before,.h3-dot::before{content:"";display:inline-block;width:.22em;height:.22em;border-radius:50%;background:var(--red);margin-right:.28em}
.h3-dot{font-size:var(--type-heading);line-height:1.35;font-weight:500}
.lead{max-width:var(--measure);font-size:var(--type-body);line-height:1.65;color:var(--muted)}
.stack{display:flex;flex-direction:column;gap:20px}

/* Кнопки */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:12px 28px;border-radius:var(--r);border:1px solid transparent;font:700 var(--type-control)/1.4 var(--font);text-decoration:none;cursor:pointer;text-align:center}
.btn--accent{background:var(--accent-text-bg);color:var(--bg)}
.btn--accent:hover{background:#934F38;color:var(--bg)}
.btn--outline{border-color:var(--ink);color:var(--ink);background:transparent}
.btn--outline:hover{background:var(--ink);color:var(--bg)}
/* Цвет и логотип Telegram: https://telegram.org/press#telegram-logos */
.btn--telegram{background:#229ED9;color:var(--white);font-size:1.1875rem}
.btn--telegram:hover{background:#0879B0;color:var(--white)}
.btn--telegram .icon{width:28px;height:28px}
.btn--light{background:var(--bg);color:var(--ink)}
.btn--ghost-light{border-color:var(--bg);color:var(--bg)}
.btn--ghost-light:hover{background:var(--bg);color:var(--ink)}
.btn--lg{min-height:56px;font-size:1rem}
.btn--block{display:flex;width:100%}
.btn[disabled]{opacity:.6;cursor:progress}
.link-strong{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-weight:700}
.icon{flex:none;width:18px;height:18px}

/* Шапка */
.header__phone,.contact__phone{white-space:nowrap}
.header__phone,.contact__phone,.card__count,.gallery__count,.rows__num,.steps__num,.stats dd{font-variant-numeric:tabular-nums}
.header__in{display:flex;align-items:center;justify-content:space-between;gap:12px 32px;padding-top:12px;padding-bottom:12px}
.logo{display:flex;align-items:center;min-height:44px}
.logo img{display:block;height:24px;width:auto}
.nav{display:none;gap:4px 32px;font-size:0.9375rem}
.nav a{display:flex;align-items:center;min-height:44px;text-decoration:none}
.nav a:hover{text-decoration:underline}
.header__side{display:flex;align-items:center;gap:12px 20px}
.header__phone{display:none;align-items:center;min-height:44px;font-weight:700;text-decoration:none}
.header__cta{display:none}
.icon-btn{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:var(--r);background:var(--white);box-shadow:0 2px 12px rgba(53,53,53,.10)}
.icon-btn .icon{width:20px;height:20px}
.back{display:inline-flex;align-items:center;gap:8px;min-height:44px;color:var(--muted);font-size:0.9375rem;text-decoration:none}

/* Первый экран */
.hero{display:grid;gap:24px;padding-top:24px}
.hero__text{display:flex;flex-direction:column;gap:16px}
.hero__actions{display:flex;flex-wrap:wrap;flex-direction:column;gap:12px;margin-top:8px}
.hero__actions .link-strong{display:inline-flex}
.stats{display:none}
.hero__media{position:relative}
.hero__media img{display:block;width:100%;height:460px;object-fit:cover;border-radius:var(--r)}
.hero__dot{display:none}
.hero__cap{position:absolute;left:12px;right:12px;bottom:12px;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:60px;padding:8px 8px 8px 18px;border-radius:var(--r);background:var(--white);text-decoration:none;font-size:0.875rem;line-height:1.3;font-weight:700}
.hero__cap-arrow{flex:none;display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:var(--r);background:var(--accent);color:var(--bg)}

/* Работы */
.works__head{display:flex;flex-direction:column;gap:12px}
.works__grid{display:flex;flex-direction:column;gap:36px;margin-top:24px}
.works__col{display:flex;flex-direction:column;gap:36px}
.card{display:flex;flex-direction:column;gap:14px}
.card__media{position:relative}
.card__media img{display:block;width:100%;height:460px;object-fit:cover;border-radius:var(--r)}
.card__count{position:absolute;top:14px;right:14px;padding:6px 12px;border-radius:var(--r);background:var(--white);font-size:0.75rem;font-weight:700}
.card__row>div{min-width:0}
.card__row{display:flex;align-items:center;justify-content:space-between;gap:16px}
.card__title{font-size:var(--type-heading);line-height:1.35;font-weight:500}
.card__title a{text-decoration:none}
.card__title a::after{content:"";position:absolute;inset:0}
.card{position:relative}
.card__meta{margin-top:6px}
.card__arrow{flex:none;display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:var(--r);border:1px solid var(--ink)}
.card:hover .card__arrow{background:var(--ink);color:var(--bg)}
.op-50 img{object-position:center 50%}.op-55 img{object-position:center 55%}.op-60 img{object-position:center 60%}.op-65 img{object-position:center 65%}
.op-70 img{object-position:center 70%}.op-75 img{object-position:center 75%}.op-80 img{object-position:center 80%}.op-85 img{object-position:center 85%}

.cta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:20px 40px;margin-top:36px;padding:28px 24px;border-radius:var(--r);background:var(--accent-text-bg);color:var(--bg)}
.cta__text{flex:1 1 280px;display:flex;flex-direction:column;gap:8px}
.cta__title{font-size:1.5rem;line-height:1.25;font-weight:500;letter-spacing:-.01em}
.cta__sub{max-width:55ch;font-size:var(--type-body);line-height:1.65;font-weight:500;letter-spacing:.005em}
.cta__actions{display:flex;flex-wrap:wrap;gap:10px}
.cta__actions .btn{flex:1 1 130px}
.cta__actions .btn--project{min-width:0;white-space:nowrap}

/* Услуги и процесс */
.split{display:grid;gap:20px}
.rows{border-top:1px solid var(--line)}
.rows__item{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 20px;padding:22px 0;border-bottom:1px solid var(--line)}
.rows__num{flex:none;width:48px;font-size:1.5rem;font-weight:700;color:var(--red)}
.rows__name{flex:1 1 180px;font-size:1.125rem;font-weight:700}
.rows__body{flex:1 1 180px;min-width:0;display:flex;flex-direction:column;gap:8px}
.rows__body .lead{max-width:var(--measure)}
.rows__price{font-size:0.875rem;color:var(--muted)}
.steps{display:grid;gap:18px;margin-top:24px}
.steps li{display:flex;gap:16px;align-items:flex-start;font-size:1rem;line-height:1.45}
.steps__num{flex:none;display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:var(--r);border:1px solid var(--ink);font-size:0.875rem;font-weight:700}
.steps__text{padding-top:6px}
.steps__title{font-size:var(--type-heading);font-weight:500;line-height:1.4;margin-bottom:8px}

/* Частые вопросы: раскрываются и без JavaScript. */
.faq{border-top:1px solid var(--line);min-width:0}
.faq__item{border-bottom:1px solid var(--line)}
.faq__item summary{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 0;font-size:1.125rem;font-weight:500;cursor:pointer;list-style:none}
.faq__item summary::-webkit-details-marker{display:none}
.faq__item summary::after{content:"+";flex:none;font-size:1.5rem;color:var(--red)}
.faq__item[open] summary::after{content:"−"}
.faq__item .lead{padding-bottom:22px;max-width:var(--measure)}

/* Форма */
.contact{display:grid;gap:24px}
.contact__phone{font-size:1.5rem;font-weight:700;text-decoration:none}
.contact__note{font-size:0.9375rem;line-height:1.6;color:var(--muted)}
.messengers{display:flex;flex-wrap:wrap;gap:10px;max-width:360px}
.messengers .btn{flex:1 1 130px}
.form{display:flex;flex-direction:column;gap:16px;padding:24px;border-radius:var(--r);background:var(--white);box-shadow:var(--shadow)}
.field{display:flex;flex-direction:column;gap:6px}
.field label{font-size:var(--type-small);font-weight:500;color:var(--ink)}
.field input{height:54px;padding:0 16px;border-radius:var(--r);border:1px solid var(--border);background:var(--bg);color:var(--ink);font:400 var(--type-body)/1.5 var(--font)}
.field input[aria-invalid="true"]{border-color:#B3261E;border-width:2px}
.field__error,.form__status{font-size:var(--type-small);line-height:1.5;color:#B3261E}
.form__project{font-size:0.875rem;line-height:1.4;padding:10px 12px;border-radius:var(--r);background:var(--soft)}
.check{display:flex;gap:10px;align-items:flex-start;min-height:44px;font-size:var(--type-small);line-height:1.6;color:var(--muted)}
.check input{flex:none;width:22px;height:22px;margin:2px 0 0;accent-color:var(--ink)}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

/* Подвал */
.footer{margin-top:56px;padding-top:40px;padding-bottom:32px;border-top:1px solid var(--line);font-size:0.8125rem;line-height:1.5;color:var(--muted)}
.footer__in{display:flex;flex-wrap:wrap;gap:20px 64px}
.footer__col{flex:1 1 340px;min-width:0;display:flex;flex-direction:column;gap:8px}
.footer__col--links{gap:2px}
.footer__logo{display:flex;align-items:center;align-self:flex-start;min-height:44px;margin:-12px 0 -4px}
.footer__logo img{display:block;height:20px;width:auto}
.footer__links{display:flex;flex-wrap:wrap;gap:0 22px}
.footer__links a{display:flex;align-items:center;min-height:44px}
.footer__legal{flex:1 1 100%;display:flex;flex-direction:column;gap:6px;font-size:0.75rem}

/* Cookie-уведомление и нижняя панель */
.cookie{position:fixed;left:12px;right:12px;bottom:84px;z-index:30;display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px;max-width:1192px;margin:0 auto;padding:16px 20px;border-radius:var(--r);background:var(--white);box-shadow:var(--shadow-float);font-size:var(--type-small);line-height:1.6;color:var(--muted)}
.cookie__text{flex:1 1 260px}
.cookie__actions{flex:1 1 220px;display:flex;gap:8px}
.cookie__actions .btn{flex:1;min-height:44px;padding:0 12px;font-size:0.875rem}
.bar{position:fixed;left:12px;right:12px;bottom:12px;z-index:20;display:flex;gap:8px;padding:8px;border-radius:var(--r);background:var(--white);box-shadow:var(--shadow-float)}
.bar .btn{flex:1;padding:0 12px}
.bar .btn--accent{flex:1.4}
body.has-bar{padding-bottom:84px}

/* Страница проекта */
.project{display:grid;gap:28px;padding-top:4px}
.gallery{display:flex;flex-direction:column;gap:10px;min-width:0}
.gallery__main{position:relative;min-width:0}
.gallery__track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;border-radius:var(--r)}
.gallery__track::-webkit-scrollbar{display:none}
@media (any-pointer:fine){
  .gallery__track:has(.gallery__slide + .gallery__slide) img{cursor:pointer}
}
.gallery__slide{flex:0 0 100%;min-width:0;scroll-snap-align:start;scroll-snap-stop:always}
.gallery__slide picture{display:block}
.gallery__main img{display:block;width:100%;height:500px;object-fit:cover;border-radius:var(--r)}
.gallery__count{position:absolute;right:14px;bottom:14px;padding:6px 12px;border-radius:var(--r);background:var(--white);font-size:0.75rem;font-weight:700;pointer-events:none}
.thumbs{display:flex;gap:10px;overflow-x:auto;padding-bottom:6px}
.thumb{flex:none;width:68px;height:68px;padding:0;border:2px solid transparent;border-radius:var(--r);background:none;overflow:hidden;cursor:pointer}
.thumb img{display:block;width:100%;height:100%;object-fit:cover}
.thumb[aria-current="true"]{border-color:var(--red)}
.project__info{display:flex;flex-direction:column;gap:28px;min-width:0}
.facts{border-top:1px solid var(--line)}
.facts div{display:flex;align-items:baseline;justify-content:space-between;gap:16px;padding:16px 0;border-bottom:1px solid var(--line)}
.facts dd{font-weight:700;text-align:right}
.cards3{display:grid;gap:36px;margin-top:24px}
.cards3 .card__media img{height:300px}

/* Служебные страницы */
.notice{display:grid;gap:32px;padding-top:40px}
.notice__main{display:flex;flex-direction:column;align-items:flex-start;gap:16px}
.notice__main .btn{align-self:stretch}
.notice__icon{display:flex;align-items:center;justify-content:center;width:56px;height:56px;border-radius:var(--r);background:var(--accent);color:var(--bg)}
.notice__icon .icon{width:26px;height:26px}
.notice__code{font-size:6rem;line-height:1;font-weight:700;letter-spacing:-.04em;color:var(--accent)}
.panel{padding:24px;border-radius:var(--r);background:var(--white);box-shadow:var(--shadow)}
.panel .steps{margin-top:18px}
.doc{display:grid;gap:32px;padding-top:8px}
.doc__nav{display:flex;flex-wrap:wrap;gap:8px}
.doc__nav a{display:flex;align-items:center;min-height:44px;padding:10px 18px;border-radius:var(--r);border:1px solid var(--border);font-size:0.875rem;text-decoration:none}
.doc__nav a[aria-current="page"]{border-color:var(--ink);background:var(--ink);color:var(--bg);font-weight:700}
.doc__body{display:flex;flex-direction:column;gap:32px;max-width:var(--measure);min-width:0}
.doc__body section{display:flex;flex-direction:column;gap:12px;overflow-wrap:anywhere}
.doc__body p{line-height:1.65;color:var(--muted)}
.doc__body ul{padding-left:24px;list-style:disc;line-height:1.65;color:var(--muted)}
.doc__body li + li{margin-top:4px}

@media (min-width:900px){
  .container{padding:0 24px}
  .section{padding-top:96px}
  .lead{font-size:var(--type-lead);line-height:1.65}
  .header__in{padding-top:20px;padding-bottom:20px}
  .logo img{height:30px}
  .nav{display:flex}
  .header__cta{display:inline-flex}
  .icon-btn{display:none}
  .hero{grid-template-columns:1.2fr 1fr;align-items:center;gap:72px;padding-top:40px}
  .hero__text{gap:24px}
  .hero__actions{flex-direction:row;align-items:center;gap:12px 28px}
  .hero__actions .btn{min-height:60px}
  .hero__actions .link-strong{display:inline-flex}
  .stats{display:flex;flex-wrap:wrap;gap:20px 48px;margin-top:24px;padding-top:28px;border-top:1px solid var(--line)}
  .stats div{display:flex;flex-direction:column;gap:4px}
  .stats dt{order:2;font-size:0.8125rem;color:var(--muted)}
  .stats dd{font-size:1.375rem;font-weight:700}
  .hero__media img{position:relative;height:640px}
  .hero__dot{display:block;position:absolute;top:-28px;right:-28px;width:180px;height:180px;border-radius:50%;background:var(--accent)}
  .hero__cap{left:20px;right:auto;bottom:20px;max-width:calc(100% - 40px);min-height:64px;padding-left:22px;gap:18px;font-size:0.9375rem}
  .hero__cap-arrow{width:48px;height:48px}
  .works__head{gap:20px}
  .works__grid{flex-direction:row;align-items:flex-start;gap:48px;margin-top:40px}
  .works__col{flex:1.15 1 0;gap:56px;min-width:0}
  .works__col--offset{flex:1 1 0;padding-top:96px}
  .card__title{font-size:1.375rem}
  .h-640 img{height:640px}.h-600 img{height:600px}.h-500 img{height:500px}.h-480 img{height:480px}
  .cta{margin-top:56px;padding:40px 48px}
  .cta__title{font-size:2rem}
  .cta__actions .btn{flex:0 0 auto}
  .split{grid-template-columns:1fr 1.4fr;gap:72px}
  .steps--row{grid-template-columns:repeat(4,1fr);gap:32px;margin-top:40px}
  .steps--row li{flex-direction:column;gap:12px;padding-top:20px;border-top:1px solid var(--ink);font-size:1.0625rem}
  .steps--row .steps__num{width:auto;height:auto;border:0;justify-content:flex-start;font-size:1.5rem;color:var(--red)}
  .steps--row .steps__text{padding-top:0}
  .contact{grid-template-columns:1fr 1fr;align-items:center;gap:72px}
  .contact__phone{font-size:1.75rem}
  .form{padding:36px}
  .footer{margin-top:96px}
  .bar{display:none}
  body.has-bar{padding-bottom:0}
  .cookie{left:24px;right:24px;bottom:24px}
  .project{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);align-items:flex-start;gap:64px}
  .gallery{gap:14px}
  .gallery__main img{height:720px}
  .gallery__count{right:20px;bottom:20px;padding:8px 14px;font-size:0.8125rem}
  .thumbs{display:grid;grid-template-columns:repeat(auto-fill,minmax(56px,1fr));gap:10px}
  .thumb{width:auto;height:auto;aspect-ratio:1/1}
  .cards3{grid-template-columns:repeat(3,1fr);gap:32px;margin-top:32px}
  .cards3 .card__media img{height:340px}
  .cards3 .card__title{font-size:1.125rem}
  .notice{grid-template-columns:1.2fr 1fr;align-items:flex-start;gap:72px;padding-top:56px}
  .notice--404{align-items:center}
  .notice__main{gap:20px}
  .notice__main .btn{align-self:flex-start;min-height:60px}
  .notice__icon{width:64px;height:64px}
  .notice__code{font-size:13rem;line-height:.9;letter-spacing:-.05em}
  .panel{padding:36px}
  .doc{grid-template-columns:280px minmax(0,1fr);gap:72px}
  .doc__nav{flex-direction:column;gap:0;border-top:1px solid var(--line)}
  .doc__nav a{min-height:56px;padding:8px 0;border:0;border-bottom:1px solid var(--line);border-radius:0;font-size:1rem;color:var(--muted)}
  .doc__nav a[aria-current="page"]{background:none;color:var(--ink)}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
@media print{.bar,.cookie,.header__cta{display:none}}

/* Печь-камин: сохраняем полный кадр с печью и собакой. */
.gallery--full-frame .gallery__main img{
  height:clamp(320px, 117vw, 560px);
  object-fit:contain;
  background:var(--soft);
}
.card__media--full-frame img{object-position:center 78%}
@media (min-width:900px){
  .gallery--full-frame .gallery__main img{height:clamp(520px, 58vw, 760px)}
}
.gallery--full-frame .gallery__slide,
.gallery--full-frame .thumb{--photo-tone:brightness(1.06) contrast(.97) saturate(.93)}
.gallery--full-frame :is(.gallery__slide,.thumb):is(:nth-child(1),:nth-child(3),:nth-child(4),:nth-child(6)){
  --photo-tone:brightness(1.11) contrast(.94) saturate(.89)
}
.gallery--full-frame :is(.gallery__slide,.thumb) img{filter:var(--photo-tone)}
.card__media--full-frame img{filter:brightness(1.11) contrast(.94) saturate(.89)}

@media (min-width:1120px){.header__phone{display:flex}}
