:root{
    --bg:        #f4efe6;
    --card-bg:   #fbf8f3;
    --ink:       #3b352e;
    --ink-soft:  #7d746a;
    --gold:      #b59a68;
    --gold-dark: #9a7f4d;
    --line:      #e8e0d2;
}

*{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;}

body{
    font-family:'Inter',system-ui,sans-serif;
    background:var(--bg);
    color:var(--ink);
    line-height:1.65;
    font-weight:400;
    -webkit-font-smoothing:antialiased;
}

a{color:inherit;text-decoration:none;transition:.3s;}
ul{list-style:none;}

.container{max-width:1180px;margin:0 auto;padding:0 32px;}

/* =========================================================
   HERO
   ========================================================= */
.hero{
  position:relative;
  display:grid;
  padding:0;
  overflow:hidden;
  isolation:isolate;
  background:var(--bg);
}

.hero::before,
.hero::after,
.hero-bg,
.hero > .container{
  grid-row:1;
  grid-column:1;
}

.hero-bg{
  width:100%;
  height:auto;
  display:block;
  z-index:0;
  pointer-events:none;
}

.hero::after{
  content:"";
  z-index:3;
  align-self:start;
  height:1px;
  background:linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity:.5;
  pointer-events:none;
}

.hero > .container{
    z-index:2;
    align-self:stretch;
    justify-self:center;
    max-width:1180px;
    width:100%;
    margin:0;
    padding:60px 32px 90px;
    box-sizing:border-box;
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
    align-items:stretch;
    text-align:center;
}

.hero h1{
  font-family:'Playfair Display',serif;
  font-weight:700;
  font-size:clamp(34px,5.6vw,72px);
  line-height:1.05;
  letter-spacing:.5px;
  text-transform:uppercase;
  color:var(--ink);
  margin-bottom:22px;
}

.hero .divider{
  display:flex;align-items:center;justify-content:center;
  gap:14px;margin-bottom:26px;
}
.hero .divider .line{height:1px;width:70px;background:var(--gold);opacity:.55;}
.hero .divider svg{
  width:34px;height:34px;stroke:var(--gold);fill:none;
  stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round;
}

.hero .subtitle{
  max-width:640px;margin:0 auto 60px;
  font-size:clamp(15px,1.35vw,18px);
  line-height:1.55;color:var(--ink);font-weight:400;
}

.cards{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:14px;
    text-align:left;
}

.card{
    background:var(--card-bg);
    border-radius:6px;
    padding:34px 22px 30px;
    box-shadow:0 1px 2px rgba(60,50,40,.03);
    transition:transform .35s ease, box-shadow .35s ease, background .35s ease;
    display:flex;flex-direction:column;align-items:center;text-align:center;
}
.card:hover{
    transform:translateY(-4px);
    box-shadow:0 12px 28px rgba(60,50,40,.09);
    background:#fff;
}
.card svg{
    width:46px;height:46px;
    stroke:var(--gold);fill:none;stroke-width:1.3;
    stroke-linecap:round;stroke-linejoin:round;
    margin-bottom:20px;
}
.card h3{
    font-family:'Inter',sans-serif;font-weight:700;
    font-size:12.5px;letter-spacing:1.4px;text-transform:uppercase;
    color:var(--ink);margin-bottom:14px;line-height:1.35;
}
.card p{font-size:13.5px;line-height:1.55;color:var(--ink-soft);}

/* =========================================================
   IMAGE
   ========================================================= */
.img-ph{
    position:relative;
    width:100%;
    height:100%;
    min-height:180px;
    overflow:hidden;
    border-radius:6px;
    background:var(--card-bg);
    display:block;
    margin:0;
}

.img-ph img{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
    display:block;
    border-radius:6px;
}

.img-ph.avatar{
    border-radius:50%;
    overflow:hidden;
}
.img-ph.avatar img{
    border-radius:50%;
}

/* =========================================================
   SECTIONS
   ========================================================= */
section.block{padding:70px 0;}

.section-head{text-align:center;margin-bottom:50px;}
.section-head h2{
    font-family:'Playfair Display',serif;
    font-weight:700;
    font-size:clamp(26px,3.2vw,40px);
    text-transform:uppercase;letter-spacing:.5px;
    color:var(--ink);margin-bottom:16px;
}
.section-head .divider{
    display:flex;align-items:center;justify-content:center;gap:14px;
}
.section-head .divider .line{
    height:1px;width:60px;background:var(--gold);opacity:.55;
}
.section-head .divider svg{
    width:28px;height:28px;stroke:var(--gold);fill:none;
    stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round;
}

/* =========================================================
   УСЛУГИ
   ========================================================= */
.services-top{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:50px;
    align-items:stretch;
    margin-bottom:50px;
}
.services-top .img-ph{aspect-ratio:4/3;min-height:0;height:100%;}

.services-top h3,
.services-bottom h3{
    font-family:'Playfair Display',serif;
    font-weight:600;font-size:22px;
    margin-bottom:22px;color:var(--ink);letter-spacing:.3px;
}

.list-check li{
    position:relative;
    padding:11px 0 11px 28px;
    border-bottom:1px dashed var(--line);
    font-size:15px;
}
.list-check li:last-child{border-bottom:none;}
.list-check li::before{
    content:"";position:absolute;
    left:0;top:20px;width:14px;height:1px;background:var(--gold);
}

.services-bottom{
    padding-top:46px;
    border-top:1px solid var(--line);
}
.services-text{
    font-family:'Inter',system-ui,sans-serif;
    font-size:15px;
    line-height:1.65;
    font-weight:400;
    color:var(--ink);
    margin:0 0 18px 0;
}

.tags{display:flex;flex-wrap:wrap;gap:9px;}
.tag{
    padding:7px 15px;border:1px solid var(--gold);
    border-radius:2px;font-size:12.5px;letter-spacing:.4px;
    color:var(--gold-dark);background:transparent;
}

/* =========================================================
   ПОЧЕМУ МЫ
   ========================================================= */
.why-list{max-width:900px;margin:0 auto;}
.why-list li{
    display:flex;gap:22px;
    padding:24px 0;
    border-bottom:1px solid var(--line);
    align-items:flex-start;
}
.why-list li:last-child{border-bottom:none;}
.why-list .num{
    font-family:'Playfair Display',serif;
    font-weight:600;font-size:28px;color:var(--gold);
    line-height:1;min-width:44px;
}
.why-list p{font-size:16px;color:var(--ink);}
.why-list strong{font-weight:600;}

.why-bottom{
    display:grid;
    grid-template-columns:1.6fr 1fr;
    gap:30px;
    margin-top:46px;
    align-items:stretch;
}
.why-bottom .img-ph{aspect-ratio:4/5;min-height:0;height:100%;}

.case{
    background:#33302c;color:#ece5da;
    padding:52px 46px;
    border-radius:4px;
    border-left:3px solid var(--gold);
    position:relative;
    display:flex;flex-direction:column;justify-content:center;
}
.case .quote{
    font-family:'Playfair Display',serif;
    font-size:80px;line-height:.4;
    color:var(--gold);opacity:.55;margin-bottom:14px;
}
.case h3{
    font-family:'Playfair Display',serif;
    font-weight:600;font-size:22px;
    letter-spacing:1px;text-transform:uppercase;
    color:#c9a86a;margin-bottom:16px;
}
.case p{font-size:16.5px;color:#e5ddd0;}
.case .hl{color:#d6b57a;font-weight:600;}
.case .sign{
    margin-top:18px;font-style:italic;
    font-size:14.5px;color:#a9a196;
}

/* =========================================================
   СТОИМОСТЬ
   ========================================================= */
.pricing{
    background:var(--card-bg);
    border-top:1px solid var(--line);
    border-bottom:1px solid var(--line);
}
.pricing-grid{
    display:grid;
    grid-template-columns:1.4fr 1fr;
    gap:50px;
    align-items:center;
}
.pricing-grid .img-ph{aspect-ratio:4/5;min-height:0;}
.pricing-text p{margin-bottom:16px;font-size:16.5px;color:var(--ink);}
.pricing-text p:last-child{margin-bottom:0;}

/* =========================================================
   ЭТАПЫ
   ========================================================= */
.steps{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:0;
    border:1px solid var(--line);
    border-radius:4px;
    background:var(--card-bg);
    margin-top:50px;
    overflow:hidden;
}
.step{
    padding:38px 22px;
    text-align:center;
    border-right:1px solid var(--line);
}
.step:last-child{border-right:none;}
.step .num{
    font-family:'Playfair Display',serif;
    font-weight:600;font-size:44px;color:var(--gold);
    line-height:1;margin-bottom:14px;
}
.step h4{
    font-size:12.5px;letter-spacing:1.4px;
    text-transform:uppercase;font-weight:700;
    margin-bottom:10px;
}
.step p{font-size:13.5px;color:var(--ink-soft);}

.steps-banner{
    margin-top:44px;
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:30px;
    align-items:stretch;
}
.steps-banner .img-ph{aspect-ratio:16/6;min-height:0;}

.free-note{
    padding:32px;
    border:1px solid var(--gold);
    border-radius:4px;
    background:var(--card-bg);
    display:flex;flex-direction:column;justify-content:center;text-align:center;
}
.free-note h4{
    font-family:'Playfair Display',serif;
    font-size:22px;font-weight:600;
    margin-bottom:8px;color:var(--ink);
}
.free-note p{color:var(--ink-soft);font-size:15px;}
.free-note strong{color:var(--gold-dark);}

/* =========================================================
   КОНТАКТЫ
   ========================================================= */
.contacts{
    background:var(--card-bg);
    border-top:1px solid var(--line);
}
.contacts-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:60px;
    align-items:center;
}
.contacts h3{
    font-family:'Playfair Display',serif;
    font-size:24px;font-weight:600;
    margin-bottom:24px;color:var(--ink);
}

/* =========================================================
   БЛОК ДИРЕКТОРА
   ========================================================= */
.director-photo{
    display:grid;
    grid-template-columns:auto 1fr;
    gap:28px;
    align-items:center;
    width:100%;
    padding:32px 28px;
    border-radius:6px;
    background:var(--bg);
    border:1px solid var(--line);
    margin:0;
    box-sizing:border-box;
}

.director-photo-img{
    width:180px;
    height:180px;
    flex-shrink:0;
    border-radius:50%;
    overflow:hidden;
    background:var(--card-bg);
    border:3px solid var(--card-bg);
    box-shadow:0 10px 28px rgba(60,50,40,.12);
    display:block;
}

.director-photo-img img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center top;
    display:block;
    border-radius:50%;
}

.director-photo-info{
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:flex-start;
    text-align:left;
    min-width:0;
}

.director-photo-info h4{
    font-family:'Playfair Display',serif;
    font-weight:600;
    font-size:28px;
    color:var(--ink);
    margin:0 0 8px;
    line-height:1.2;
}

.director-photo-info p{
    font-size:15px;
    color:var(--ink-soft);
    line-height:1.5;
    margin:0;
}

/* =========================================================
   КОНТАКТЫ — строки с иконками
   ========================================================= */
.contact-item{
    display:flex;
    gap:16px;
    padding:16px 0;
    border-bottom:1px solid var(--line);
    align-items:center;
}
.contact-item:last-child{border-bottom:none;}

.contact-item > svg{
    width:24px;
    height:24px;
    stroke:var(--gold);
    fill:none;
    stroke-width:1.4;
    stroke-linecap:round;
    stroke-linejoin:round;
    flex-shrink:0;
    display:block;
}

.contact-item > div{
    flex:1;
    min-width:0;
}

.contact-item svg.vk-icon,
.contact-item svg.vk-icon path{
    fill:#9a7f4d !important;
    stroke:none !important;
    stroke-width:0 !important;
    fill-rule:evenodd !important;
}
.contact-item .label{
    font-size:11.5px;letter-spacing:1.2px;text-transform:uppercase;
    color:var(--ink-soft);margin-bottom:2px;
}
.contact-item .value{font-weight:500;color:var(--ink);font-size:15px;}
.contact-item a.value:hover{color:var(--gold-dark);}
.contact-item .sub{font-size:13.5px;color:var(--ink-soft);}

.form-group{margin-bottom:16px;}
.form-group input,
.form-group textarea{
    width:100%;padding:14px 16px;
    border:1px solid var(--line);border-radius:2px;
    background:#fff;font-family:inherit;
    font-size:15px;color:var(--ink);transition:border .3s;
}
.form-group input:focus,
.form-group textarea:focus{outline:none;border-color:var(--gold);}
.form-group textarea{min-height:130px;resize:vertical;}
.form-note{font-size:12px;color:var(--ink-soft);margin-top:12px;text-align:center;}

.btn{
    display:inline-block;
    padding:14px 38px;
    background:var(--gold);color:#fff;
    border:1px solid var(--gold);
    border-radius:2px;
    font-family:inherit;font-size:12.5px;
    letter-spacing:2px;text-transform:uppercase;
    font-weight:600;cursor:pointer;transition:.3s;
}
.btn:hover{background:var(--gold-dark);border-color:var(--gold-dark);}

footer{
    background:#33302c;color:#8f887e;
    text-align:center;padding:26px 0;
    font-size:13px;letter-spacing:.5px;
}

/* =========================================================
   Адаптив 1280
   ========================================================= */
@media (max-width:1280px){
    .container{padding:0 28px;}
}

/* =========================================================
   Адаптив 1024
   ========================================================= */
@media (max-width:1024px){
    .hero > .container{padding:50px 28px 70px;}
    .cards{grid-template-columns:repeat(3,1fr);}

    .services-top{grid-template-columns:1fr;gap:34px;}
    .services-top .img-ph{aspect-ratio:16/9;min-height:220px;}
    .services-bottom{padding-top:34px;}

    .why-bottom{grid-template-columns:1fr;gap:24px;}
    .why-bottom .img-ph{aspect-ratio:16/9;min-height:260px;}

    .pricing-grid{grid-template-columns:1fr;gap:34px;}
    .pricing-grid .img-ph{aspect-ratio:16/9;max-width:640px;margin:0 auto;min-height:260px;}

    .steps-banner{grid-template-columns:1fr;gap:24px;}
    .steps-banner .img-ph{aspect-ratio:16/7;min-height:200px;}

    .contacts-grid{grid-template-columns:1fr;gap:40px;}
    .director-photo-img{width:160px;height:160px;}
    .director-photo-info h4{font-size:26px;}
}

/* =========================================================
   Адаптив 860
   ========================================================= */
@media (max-width:860px){
    section.block{padding:60px 0;}
    .section-head{margin-bottom:40px;}

    .hero .subtitle{display:none !important;}

    .hero > .container{padding:44px 24px 60px;}
    .hero h1{font-size:clamp(28px,7vw,48px);}
    .hero .divider .line{width:50px;}
    .hero .divider svg{width:28px;height:28px;}
    .cards{grid-template-columns:repeat(2,1fr);gap:12px;}
    .card{padding:28px 18px 24px;}
    .card svg{width:40px;height:40px;margin-bottom:16px;}

    .services-top h3,
    .services-bottom h3{font-size:20px;margin-bottom:18px;}

    .why-list .num{font-size:24px;min-width:38px;}
    .why-list p{font-size:15.5px;}
    .case{padding:42px 34px;}
    .case .quote{font-size:64px;}
    .case h3{font-size:20px;}
    .case p{font-size:15.5px;}

    .pricing-text p{font-size:15.5px;}

    .steps{grid-template-columns:1fr 1fr;}
    .step{padding:32px 20px;border-right:1px solid var(--line);}
    .step:nth-child(2n){border-right:none;}
    .step:nth-child(-n+2){border-bottom:1px solid var(--line);}
    .step:nth-child(3),
    .step:nth-child(4){border-bottom:none;}

    .director-photo{padding:26px 22px;gap:22px;}
    .director-photo-img{width:140px;height:140px;}
    .director-photo-info h4{font-size:22px;}
    .director-photo-info p{font-size:14px;}
}

/* =========================================================
   Адаптив 620
   ========================================================= */
@media (max-width:620px){
    .container{padding:0 18px;}
    section.block{padding:48px 0;}
    .section-head{margin-bottom:34px;}

    .hero > .container{padding:36px 18px 50px;}
    .hero h1{font-size:clamp(26px,8vw,40px);letter-spacing:0;}
    .hero .divider{margin-bottom:20px;}
    .hero .divider .line{width:38px;}
    .hero .divider svg{width:24px;height:24px;}

    .hero .subtitle{display:none !important;}

    .cards{grid-template-columns:1fr 1fr;gap:10px;}
    .card{padding:22px 14px 20px;border-radius:5px;}
    .card svg{width:34px;height:34px;margin-bottom:12px;}
    .card h3{font-size:11px;letter-spacing:1.1px;margin-bottom:10px;}
    .card p{font-size:12px;line-height:1.5;}

    .services-top{gap:26px;}
    .services-top .img-ph{aspect-ratio:4/3;min-height:180px;}
    .services-top h3,
    .services-bottom h3{font-size:18px;margin-bottom:14px;}
    .services-text{font-size:14.5px;margin-bottom:14px;}
    .services-bottom{padding-top:26px;}
    .tag{padding:6px 12px;font-size:11.5px;}
    .tags{gap:7px;}

    .why-list li{gap:16px;padding:20px 0;}
    .why-list .num{font-size:22px;min-width:34px;}
    .why-list p{font-size:15px;line-height:1.6;}

    .why-bottom{gap:20px;margin-top:34px;}
    .why-bottom .img-ph{aspect-ratio:4/3;min-height:180px;}
    .case{padding:32px 24px;border-left-width:3px;}
    .case .quote{font-size:52px;margin-bottom:10px;}
    .case h3{font-size:17px;margin-bottom:12px;letter-spacing:.5px;}
    .case p{font-size:14.5px;line-height:1.6;}
    .case .sign{font-size:13px;margin-top:14px;}

    .pricing-grid{gap:26px;}
    .pricing-grid .img-ph{aspect-ratio:4/3;min-height:180px;}
    .pricing-text p{font-size:14.5px;margin-bottom:14px;}

    /* ЭТАПЫ — исправлен разделитель между 3 и 4 */
    .steps{grid-template-columns:1fr;margin-top:34px;}
    .step{
        padding:26px 20px;
        border-right:none;
    }
    .step:not(:last-child){border-bottom:1px solid var(--line);}
    .step:last-child{border-bottom:none;}
    .step .num{font-size:36px;margin-bottom:10px;}
    .step h4{font-size:12px;margin-bottom:8px;}
    .step p{font-size:13px;}

    .steps-banner{gap:20px;margin-top:34px;}
    .steps-banner .img-ph{aspect-ratio:4/3;min-height:180px;}

    .free-note{padding:26px 22px;}
    .free-note h4{font-size:19px;margin-bottom:6px;}
    .free-note p{font-size:14.5px;}

    .contacts-grid{gap:30px;}

    .director-photo{
        grid-template-columns:1fr;
        gap:20px;
        padding:26px 20px;
        justify-items:center;
        text-align:center;
    }
    .director-photo-img{width:150px;height:150px;}
    .director-photo-info{align-items:center;text-align:center;}
    .director-photo-info h4{font-size:22px;margin-bottom:6px;}
    .director-photo-info p{font-size:14px;}

    .contact-item{
        gap:12px;
        padding:14px 0;
        align-items:flex-start;
    }
    .contact-item > svg{
        width:20px;
        height:20px;
        margin-top:3px;
    }
    .contact-item .label{font-size:11px;}
    .contact-item .value{font-size:14.5px;word-break:break-word;}
    .contact-item .sub{font-size:13px;}

    footer{padding:22px 0;font-size:12.5px;}
}

/* =========================================================
   Адаптив 420
   ========================================================= */
@media (max-width:420px){
    .container{padding:0 16px;}

    .hero > .container{padding:28px 16px 40px;}
    .hero h1{font-size:clamp(24px,8.5vw,34px);line-height:1.1;}

    .cards{grid-template-columns:1fr;gap:10px;}
    .card{padding:20px 16px 18px;}

    .why-list li{gap:12px;padding:16px 0;}
    .why-list .num{font-size:20px;min-width:30px;}
    .why-list p{font-size:14.5px;}

    .case{padding:26px 20px;}
    .case .quote{font-size:44px;}
    .case h3{font-size:16px;}
    .case p{font-size:14px;}

    .step{padding:24px 16px;}
    .step .num{font-size:32px;}

    .director-photo{padding:22px 16px;}
    .director-photo-img{width:130px;height:130px;}
    .director-photo-info h4{font-size:20px;}
}

/* =========================================================
   Планшеты горизонтально — 3 карточки
   ========================================================= */
@media (min-width:621px) and (max-width:860px){
    .cards{grid-template-columns:repeat(3,1fr);}
}

/* =========================================================
   Печать
   ========================================================= */
@media print{
    .hero-bg,
    .img-ph,
    .director-photo-img,
    .steps-banner{display:none;}
    body{background:#fff;color:#000;}
    a{color:#000;text-decoration:underline;}
}