/*
Theme Name: SDELANO KRASIVO
Description: Лендинг ремонта квартир «КОМФОРТ +».
Version: 1.2.0
Requires PHP: 7.4
Text Domain: sdelano-krasivo
*/
/* cyrillic-ext */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/onest-cyrillic-ext.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/onest-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* math */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/onest-math.woff2") format('woff2');
  unicode-range: U+0302-0303, U+0305, U+0307-0308, U+0310, U+0312, U+0315, U+031A, U+0326-0327, U+032C, U+032F-0330, U+0332-0333, U+0338, U+033A, U+0346, U+034D, U+0391-03A1, U+03A3-03A9, U+03B1-03C9, U+03D1, U+03D5-03D6, U+03F0-03F1, U+03F4-03F5, U+2016-2017, U+2034-2038, U+203C, U+2040, U+2043, U+2047, U+2050, U+2057, U+205F, U+2070-2071, U+2074-209F, U+20D0-20DC, U+20E1, U+20E5-20EF, U+2100-2112, U+2114-2115, U+2117-2121, U+2123-214F, U+2190, U+2192, U+2194-21AE, U+21B0-21E5, U+21F1-21F2, U+21F4-2211, U+2213-2214, U+2216-22FF, U+2308-230B, U+2310, U+2319, U+231C-2321, U+2336-237A, U+237C, U+2395, U+239B-23B7, U+23D0, U+23DC-23E1, U+2474-2475, U+25AF, U+25B3, U+25B7, U+25BD, U+25C1, U+25CA, U+25CC, U+25FB, U+266D-266F, U+27C0-27FF, U+2900-2AFF, U+2B0E-2B11, U+2B30-2B4C, U+2BFE, U+3030, U+FF5B, U+FF5D, U+1D400-1D7FF, U+1EE00-1EEFF;
}
/* symbols */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/onest-symbols.woff2") format('woff2');
  unicode-range: U+0001-000C, U+000E-001F, U+007F-009F, U+20DD-20E0, U+20E2-20E4, U+2150-218F, U+2190, U+2192, U+2194-2199, U+21AF, U+21E6-21F0, U+21F3, U+2218-2219, U+2299, U+22C4-22C6, U+2300-243F, U+2440-244A, U+2460-24FF, U+25A0-27BF, U+2800-28FF, U+2921-2922, U+2981, U+29BF, U+29EB, U+2B00-2BFF, U+4DC0-4DFF, U+FFF9-FFFB, U+10140-1018E, U+10190-1019C, U+101A0, U+101D0-101FD, U+102E0-102FB, U+10E60-10E7E, U+1D2C0-1D2D3, U+1D2E0-1D37F, U+1F000-1F0FF, U+1F100-1F1AE, U+1F1E6-1F1FF, U+1F30D-1F30F, U+1F315, U+1F31C, U+1F31E, U+1F320-1F32C, U+1F336, U+1F378, U+1F37D, U+1F382, U+1F393-1F39F, U+1F3A7-1F3A8, U+1F3AC-1F3AF, U+1F3C2, U+1F3C4-1F3C6, U+1F3CA-1F3CE, U+1F3D4-1F3E0, U+1F3ED, U+1F3F1-1F3F3, U+1F3F5-1F3F7, U+1F408, U+1F415, U+1F41F, U+1F426, U+1F43F, U+1F441-1F442, U+1F444, U+1F446-1F449, U+1F44C-1F44E, U+1F453, U+1F46A, U+1F47D, U+1F4A3, U+1F4B0, U+1F4B3, U+1F4B9, U+1F4BB, U+1F4BF, U+1F4C8-1F4CB, U+1F4D6, U+1F4DA, U+1F4DF, U+1F4E3-1F4E6, U+1F4EA-1F4ED, U+1F4F7, U+1F4F9-1F4FB, U+1F4FD-1F4FE, U+1F503, U+1F507-1F50B, U+1F50D, U+1F512-1F513, U+1F53E-1F54A, U+1F54F-1F5FA, U+1F610, U+1F650-1F67F, U+1F687, U+1F68D, U+1F691, U+1F694, U+1F698, U+1F6AD, U+1F6B2, U+1F6B9-1F6BA, U+1F6BC, U+1F6C6-1F6CF, U+1F6D3-1F6D7, U+1F6E0-1F6EA, U+1F6F0-1F6F3, U+1F6F7-1F6FC, U+1F700-1F80B, U+1F810-1F847, U+1F850-1F859, U+1F860-1F887, U+1F890-1F8AD, U+1F8B0-1F8BB, U+1F8C0-1F8C1, U+1F8D0-1F8D8, U+1F900-1F90B, U+1F93B, U+1F946, U+1F984, U+1F996, U+1F9E9, U+1FA00-1FA6F, U+1FA70-1FA7C, U+1FA80-1FAC6, U+1FAC8, U+1FACC-1FADD, U+1FADF-1FAEB, U+1FAEF-1FAFA, U+1FB00-1FBFF;
}
/* vietnamese */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/onest-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/onest-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/onest-latin.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;
}


body{margin:0;background:#F7F6F4}
a{color:#5A1A22}a:hover{color:#3A0F14}
*{box-sizing:border-box}
.wrap{max-width:1280px;margin:0 auto;padding:0 40px}
.hero-bg{background:#ECEAE7 url("assets/hero-background.jpg") center/cover no-repeat}
.tex{background:#4A151B url("assets/burgundy-texture.jpg") repeat}
.g2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.g3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.g5{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:20px}
.hero-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:56px;align-items:center}
.split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:64px;align-items:start}
.bento{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:260px;gap:16px}
.b-big{grid-column:span 2;grid-row:span 2}
.b-wide{grid-column:span 2}
.ph{position:relative;border-radius:18px;background:#DCD7D2;display:flex;align-items:center;justify-content:center;color:#6B6461;font-size:14px;overflow:hidden}
.ph-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.cap{position:absolute;left:14px;bottom:14px;padding:8px 12px;border-radius:10px;background:rgba(255,255,255,.94);color:#1C1716;font-size:13px;font-weight:500}
.nav{display:flex;gap:28px}
.nav a{color:#1C1716;text-decoration:none;font-size:15px}
.nav a:hover{color:#5A1A22}
.field{font:inherit;font-size:16px;width:100%;height:56px;padding:0 18px;border-radius:12px;border:1px solid #D6D1CC;background:#fff;color:#1C1716}
.calc-in{font:inherit;font-size:28px;font-weight:700;width:140px;height:64px;padding:0 16px;border-radius:12px;border:1px solid rgba(255,255,255,.35);background:rgba(255,255,255,.1);color:#fff;text-align:center}
.step-btn{font:inherit;width:64px;height:64px;border-radius:12px;border:1px solid rgba(255,255,255,.35);background:none;color:#fff;font-size:26px;cursor:pointer}
.step-btn:hover{background:rgba(255,255,255,.12)}
@media (max-width:1024px){.g5{grid-template-columns:repeat(3,minmax(0,1fr))}.split,.hero-grid{grid-template-columns:minmax(0,1fr);gap:32px}.nav{display:none}.bento{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:760px){.wrap{padding:0 20px}.g2,.g3{grid-template-columns:minmax(0,1fr)}.g5{grid-template-columns:repeat(2,minmax(0,1fr))}.bento{grid-auto-rows:200px}.h1{font-size:40px !important}.h2{font-size:32px !important}.price-big{font-size:64px !important}.hide-m{display:none !important}}


body { font-family: Onest, system-ui, sans-serif; color: #1c1716; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
section[id] { scroll-margin-top: 85px; }
.admin-bar header { top: 32px !important; }
.calc-total { overflow-wrap: anywhere; }
.step-btn:disabled { opacity: .5; cursor: default; }
.content-page { padding-top: 32px; padding-bottom: 56px; overflow-wrap: anywhere; }
.content-page img { max-width: 100%; height: auto; }

@media (max-width: 782px) {
  .admin-bar header { top: 46px !important; }
  .admin-bar section[id] { scroll-margin-top: 122px; }
}
@media (max-width: 760px) {
  .site-top { gap: 12px !important; }
  .site-top-cta { padding: 0 12px !important; font-size: 13px !important; text-align: center; }
  .hero-grid { padding-top: 44px !important; padding-bottom: 56px !important; }
  .hero-image { height: clamp(320px, 100vw, 520px) !important; }
  .package-card, .calc-card, .quote-card { padding: 24px !important; }
  .material-image { height: 180px !important; }
  .calc-in { min-width: 0; width: 94px; height: 52px; }
  .step-btn { flex: none; width: 44px; height: 52px; }
  .calc-total { font-size: clamp(28px, 9vw, 44px) !important; }
  #works, #why, #price, #final { padding: 64px 0 !important; }
  #package, #materials { padding-bottom: 64px !important; }
}
@media (max-width: 400px) {
  .h1 { font-size: 35px !important; }
  #final a[href^="tel:"] { font-size: 28px !important; }
}

.portfolio-photo { text-decoration: none; }
.portfolio-photo .ph-img { transition: transform .22s ease; }
.portfolio-photo:hover .ph-img { transform: scale(1.035); }
.portfolio-photo .cap { right: auto; max-width: calc(100% - 28px); }
.portfolio-more summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: fit-content;
  min-height: 52px;
  padding: 0 24px;
  margin: 0 auto;
  border: 1px solid #5A1A22;
  border-radius: 999px;
  color: #5A1A22;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.portfolio-more summary::-webkit-details-marker { display: none; }
.portfolio-more summary:hover { background: #F3EDEC; }
.portfolio-hide, .portfolio-more[open] .portfolio-show { display: none; }
.portfolio-more[open] .portfolio-hide { display: inline; }
.portfolio-sign::after { content: "+"; font-size: 20px; }
.portfolio-more[open] .portfolio-sign::after { content: "−"; }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0 0;
}
.portfolio-grid .ph { min-height: 0; aspect-ratio: 4 / 5; }
.portfolio-dialog {
  width: min(920px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100% - 24px);
  padding: 12px;
  border: 0;
  border-radius: 18px;
  background: #1C1716;
  color: #fff;
}
.portfolio-dialog::backdrop { background: rgb(25 14 15 / .84); }
.portfolio-dialog-bar, .portfolio-stage { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.portfolio-counter { margin-left: 12px; font-size: 14px; }
.portfolio-stage img {
  flex: 1;
  width: 0;
  height: min(65vh, 640px);
  height: min(65dvh, 640px);
  object-fit: contain;
}
.portfolio-dialog button {
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgb(255 255 255 / .45);
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 25px;
  cursor: pointer;
}
.portfolio-dialog button:hover { background: rgb(255 255 255 / .12); }
.portfolio-dialog-caption { margin: 12px 8px 4px; text-align: center; }
@media (max-width: 760px) {
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .portfolio-grid .cap { left: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 6px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .portfolio-photo .ph-img { transition: none; }
}

@media (max-width: 760px) {
  .portfolio-stage { position: relative; }
  .portfolio-stage img { width: 100%; }
  .portfolio-stage button { position: absolute; top: 50%; transform: translateY(-50%); background: rgb(28 23 22 / .82); }
  .portfolio-previous { left: 3px; }
  .portfolio-next { right: 3px; }
}

.reviews { background: #F3EDEC; padding: 88px 0 96px; }
.reviews .h2 { margin: 0 0 32px; font-size: 48px; line-height: 1.08; letter-spacing: -.025em; }
.reviews-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: start; gap: 16px; }
.review-card {
  grid-column: span 2;
  display: grid;
  align-content: start;
  gap: 14px;
  background: #fff;
  padding: 24px;
  border: 1px solid #E4E0DC;
  border-radius: 18px;
  overflow-wrap: anywhere;
}
.review-card:nth-child(-n+2) { grid-column: span 3; }
.review-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: #6B6461; font-size: 14px; }
.review-stars { color: #89571E; letter-spacing: .1em; }
.review-card blockquote, .review-card p { margin: 0; }
.review-card p { font-size: 16px; line-height: 1.58; white-space: pre-line; }
.review-more { margin-top: 12px; }
.review-more summary { width: fit-content; color: #5A1A22; cursor: pointer; font-size: 14px; font-weight: 600; }
.review-more p { margin-top: 12px; }
.review-source { justify-self: start; font-size: 14px; text-underline-offset: .2em; }
@media (min-width: 1025px) and (max-width: 1200px) {
  .site-top { gap: 16px !important; }
  .nav { gap: 14px; }
}
@media (max-width: 760px) {
  .reviews { padding: 56px 0 64px; }
  .reviews .h2 { margin-bottom: 24px; }
  .reviews-grid { grid-template-columns: minmax(0, 1fr); }
  .review-card, .review-card:nth-child(-n+2) { grid-column: auto; padding: 20px; }
}
