body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #ffffff;
}

.container {
  width: 100%;
  max-width: clamp(640px, 80vw, 1200px);
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Header alignment: ensure header visuals match the .container width */
.site-header {
  width: 100%;
  box-sizing: border-box;
}
.site-header .navbar {
  background: rgba(255,255,255,0.98);
  padding: 8px 0; 
  box-shadow: 0 6px 18px rgba(11,17,32,0.04);
}

.site-header .navbar > .container {
padding-left: 80px;
    padding-right: 37px;
}

/* If any other header/container wrapper exists, keep it from overflowing */
.site-header .navbar .navbar-brand,
.site-header .navbar .navbar-nav { max-width: 100%; box-sizing: border-box; }

@media (max-width:420px){
  .site-header .navbar { padding:6px 0; }
  .site-header .navbar > .container { padding-left:12px; padding-right:12px; }
}

/* Блок интро (верхняя часть страницы) */
.intro {
  font-family: Arial, Helvetica, sans-serif;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 40px;
  box-sizing: border-box;
}
.intro-features {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  color: #58432f;
}

.intro-features li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 0.5em;
}

.intro-features li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: #5a3b1a; /* тёмно-коричневая галочка */
  font-size: 1.2rem;
}
/* Левая часть — фото */
.intro-left {
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: 400px;
  display: flex;
  justify-content: center;
  margin: 20px;
  max-width: 100%;
}

.intro-left img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
}

/* Правая часть — текст */
.intro-right {
  flex: 1 1 400px;
  padding: 50px 40px;
  box-sizing: border-box;
}

.intro-right h1 {
  font-size: 40px;
  font-weight: 750;
  margin-bottom: 10px;
}

.intro-right h2 {
  font-size: 18px;
  font-weight: 750;
  margin-bottom: 35px;
  color: gray;
}

.intro-right p {
  font-size: 20px;
  font-weight: normal;
  color:#58432f;} 

/* Intro enhancements (Bootstrap-like) */
.photo-frame {
    display: inline-block;
    padding: 6px;
    border-radius: 12px;

}
.badge-soft {
    display: inline-block;
    background: rgb(179 153 138 / 16%);
    color: #b3998a;
    padding: 6px 10px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
}
.display-6{font-family:'Manrope', sans-serif; font-size:34px; margin-bottom:6px}
.subtitle{font-size:16px; color:var(--muted); margin-bottom:12px}
.lead{font-size:16px; color:#0b1220}
.hero-ctas .btn { min-width:220px }
.btn.btn-outline-muted { border:1px solid rgba(11,17,32,0.06); color:#111; background:transparent; padding:10px 16px; border-radius:10px }
.btn.btn-outline-muted:hover{background:#ffffff}

@media (max-width:768px){
  .display-6{font-size:26px}
  .hero-ctas { flex-direction:column }
  .hero-ctas .btn { width:100%; }
}
.intro-right a:link {
  color: #614d41;
}

.intro-right a:hover::after {
  transform: translate(5px, -10%);
}

/* ====== Блок с описанием ====== */
.about {  
  font-size: 25px;
  font-family: 'Manrope', Arial, sans-serif;
  letter-spacing: 0.7px;
  word-spacing: 0.5px;
  color: #000000;
  line-height: 1.6;
  margin-top: -1px;
  height: auto;
 background: #F7F1EE;
}

.abouts{
  padding: 90px 20px 45px;
  margin: 0 auto;
  font-weight: 300;
  max-width: 1200px;
  box-sizing: border-box;
}

.abouts p{
  margin: 0 auto;
  max-width: 760px;
  font-weight: 300;
  opacity: 0.8;
  text-align: center;
  color: #0f0000;
}

/* ====== Кнопка приглашения ====== */
.blog{
  padding: 90px 0;
  width: auto;
  box-sizing: border-box;
  white-space: normal;
}

.blog1 {
  background-color: #1f5bff;
  color: white;
  text-align: center;
}

.blog a {
  color: white;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  display: block;
  padding: 55px 90px;
  position: relative;
  box-sizing: border-box;
}

.blog a::after {
  display: inline-block;
  content: " →";
  padding-left: 10px;
  position: absolute;
  transform: translateY(-25%);
  font-size: 50px;
  font-weight: bold;
}

/* ===== Текстовый блок ===== */
.work {
  font-size: 20px;
  font-weight: 300;
  font-family: 'Manrope', Arial, sans-serif;
  text-align: left;
  line-height: 1.5;
  padding-bottom: 70px;
}

.works {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.works p{
  margin: 0 auto;
  padding: 0;
  max-width: 760px;
}

.works ul {
  margin: 0 auto;
  padding: 0;
  max-width: 760px;
  list-style-position: inside;
}

.works li {
  position: relative;
  padding-left: 0;
}

.works li::marker {
  font-size: 15px;
  text-align: center;
  position: absolute;
  left: 0;
}

/* ===== Виды услуг ===== */
.services {
  font-family: 'Manrope', Arial, sans-serif;
  background-color: #fbf9f7;
  padding: 40px 0;
  text-align: center;
}

.services p {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 40px;
  color: #111;
}

.services ul {
  font-weight: 300;
  list-style: none;
  margin: 0 auto;
  max-width: 700px;
  text-align: left;
  padding: 0 20px;
  box-sizing: border-box;
}

.services li {
  position: relative;
  font-size: 20px;
  color: #111;
  margin-bottom: 18px;
  padding-left: 50px;
  line-height: 1.7;
}

.services li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #368c17;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}

/* ===== Стоимость консультации ===== */
.price {
  font-family: 'Manrope', Arial, sans-serif;
  background: #fff;
  text-align: center;
  padding: 40px 0;
}

.price h2 {
  font-size: 36px;
  font-weight: 700;
  color: #111;
  margin-bottom: 15px;
}

.price > p {
  font-size: 18px;
  color: #555;
  margin-bottom: 60px;
  padding: 0 20px;
}

.price-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.price-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  padding: 40px 30px;
  position: relative;
  flex: 1 1 300px;
  max-width: 420px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.price-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.price-card h3 {
  font-size: 22px;
  font-weight: 600;
  color: #222;
  margin-bottom: 8px;
}

.price-card p {
  font-size: 18px;
  color: #555;
  margin: 10px 0;
}

.price-card h4 {
  font-size: 32px;
  font-weight: 700;
  color: #111;
  margin: 20px 0 25px;
}

.btn.green {
  display: inline-block;
  background-color: #b3998a;
  color: #fff;
  font-size: 16px;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn.green:hover {
  background-color: #745441;
  color: #fff;
}

.reviews {
  font-family: 'Manrope', Arial, sans-serif;
  background-color: #ffffff;
}

.reviews-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.reviews-title {
  font-size: 42px;
  font-weight: 700;
  color: #111;
  text-align: center;
  margin-bottom: 60px;
  padding: 0 20px;
}

.review-message {
  display: flex;
  align-items: flex-start;
  margin-bottom: 40px;
  position: relative;
}

/* Отзывы слева */
.left-aligned {
  justify-content: flex-start;
}

.left-aligned .message-avatar {
  margin-right: 20px;
  margin-left: 0;
}

.left-aligned .message-bubble::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 20px;
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-right: 12px solid rgb(255, 255, 255);
}

.left-aligned .message-bubble::after {
  content: '';
  position: absolute;
  left: -13px;
  top: 19px;
  width: 0;
  height: 0;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-right: 13px solid #ffffff;
  z-index: -1;
}

/* Отзывы справа */
.right-aligned {
  justify-content: flex-end;
}

.right-aligned .message-avatar {
  margin-left: 20px;
  margin-right: 0;
  order: 2;
}

.right-aligned .message-bubble {
  order: 1;
}

.right-aligned .message-bubble::before {
  content: '';
  position: absolute;
  right: -12px;
  left: auto;
  top: 20px;
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 12px solid rgb(255, 255, 255);
  border-right: none;
}

.right-aligned .message-bubble::after {
  content: '';
  position: absolute;
  right: -13px;
  left: auto;
  top: 19px;
  width: 0;
  height: 0;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 13px solid #ffffff;
  border-right: none;
  z-index: -1;
}

.message-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.message-bubble {
  background: white;
  border-radius: 20px;
  padding: 25px 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #e8e8e8;
  position: relative;
  max-width: 600px;
  flex: 1;
}

.message-header {
  margin-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 10px;
}

.reviewer-name {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin: 0;
}

.message-content {
  font-size: 16px;
  line-height: 1.6;
  color: #444;
}

.message-content p {
  margin: 0 0 15px 0;
}

.message-content p:last-child {
  margin-bottom: 0;
}

footer {
  background: #f2f2f2;
  text-align: center;
  padding: 60px 20px;
  font-family: 'Manrope', Arial, sans-serif;
  letter-spacing: -0.5px;
}

.footer-container {
  max-width: 500px;
  margin: 0 auto;
}

.footer-contact-text {
  font-size: 15px;
  color: #111;
  margin-bottom: 25px;
  font-weight: bold;
  line-height: 1.4;
}

.contact-info {
  margin-bottom: 35px;
}

.phone-number {
  font-size: 32px;
  font-weight: 600;
  color: #111;
  margin: 0 0 8px 0;
  line-height: 1.2;
}

/* Phone link styling: black, no underline, subtle hover */
.phone a,
.phone-number a {
  color: #111;
  text-decoration: none;
  transition: color 0.18s ease;
}

.phone a:hover,
.phone-number a:hover {
  color: #2b6cb0; /* subtle blue on hover */
}

.name {
  font-size: 30px;
  color: #111;
  margin: 5%;
}

.btn.tg {
  background: #368c17;
  color: white;
  text-decoration: none;
  padding: 16px;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(54, 140, 23, 0.3);
  width: 50px;
  height: 50px;
}

.btn.tg:hover {
  background: #368c17;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(54, 140, 23, 0.4);
}

.tg-icon {
  width: 40px;
  height: 40px;
  filter: brightness(0) invert(1);
}

/* Footer social links: remove underline and increase spacing */
.footer-container a {
  text-decoration: none;
  display: inline-block;
  vertical-align: middle;
}

.footer-container .btn.tg,
.footer-container a[aria-label] {
  margin: 0 10px; /* increase horizontal spacing between icons */
}

.footer-container a:hover {
  transform: translateY(-3px);
}
.footer-copyright {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    color: #6c757d;
    font-size: 14px;
}

/* ===== АДАПТИВНОСТЬ ===== */

/* Планшеты и небольшие ноутбуки (768px - 1024px) */
@media (max-width: 1024px) {
  .intro {
    margin: 40px auto;
  }
  
  .intro-right {
    padding: 30px 25px;
  }
  
  .intro-right h1 {
    font-size: 34px;
  }
  
  .abouts, .works {
    padding-left: 100px;
    padding-right: 100px;
  }
  
  .services ul {
    margin-left: 0;
  }
}

/* Планшеты (768px и меньше) */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  .intro {
    margin: 20px auto;
    padding: 12px 10px;
    border-radius: 8px;
  }
  
  .intro-left, .intro-right {
    flex-basis: 100%;
    margin: 10px 0;
  }
  
  .intro-right {
    padding: 20px 15px;
  }
  
  .intro-right h1 {
  font-size: 26px;
  text-align: left;
  }
  
  .intro-right h2 {
    font-size: 16px;
    margin-bottom: 20px;
  }
  
  .intro-right p {
  font-size: 16px;
  }
  
  .intro-right a {
  font-size: 16px;
  display:block;
  width:100%;
  text-align:center;
  }
  
  .about {
    font-size: 22px;
  }
  
  .abouts {
    padding: 60px 20px 30px;
  }
  
  .abouts p {
    width: 100%;
  }
  
  .blog {
    padding: 60px 0;
  }
  
  .blog a {
    font-size: 24px;
    padding: 40px 20px;
  }
  
  .blog a::after {
    font-size: 60px;
    transform: translateY(-35%);
  }
  
  .work {
    font-size: 18px;
  }
  
  .works p, .works ul {
    width: 100%;
    padding-left: 0;
    margin-left: 0;
    margin-right: 0;
  }
  
  .services {
    padding: 70px 0;
  }
  
  .services p {
    font-size: 32px;
  }
  
  .services li {
    font-size: 18px;
    padding-left: 40px;
  }
  
  .services li::before {
    width: 25px;
    height: 25px;
    font-size: 12px;
  }
  
  .price {
    padding: 70px 0;
  }
  
  .price h2 {
    font-size: 30px;
  }
  
  .price > p {
    font-size: 16px;
  }
  
  .price-card {
    padding: 30px 20px;
  }
  
  .price-card h4 {
    font-size: 28px;
  }
  
  .reviews {
    padding: 70px 0;
  }
  
  .reviews h2 {
    font-size: 30px;
    margin-bottom: 40px;
  }
  
  .review {
    padding: 30px 25px;
    margin: 0 20px 60px;
  }
  
  .review::before {
    left: -50px;
    width: 70px;
    height: 70px;
  }
}

/* Мобильные устройства (480px и меньше) */
@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }
  
  .intro {
    margin: 20px auto;
    border-radius: 8px;
  }
  
  .intro-right h1 {
    font-size: 24px;
  }
  
  .intro-right p {
    font-size: 16px;
  }
  
  .intro-right a {
    font-size: 16px;
  }
  
  .about {
    font-size: 20px;
  }
  
  .abouts {
    padding: 40px 15px 20px;
  }
  
  .blog {
    padding: 40px 0;
  }
  
  .blog a {
    font-size: 20px;
    padding: 30px 20px;
    font-size: 20px;      
    padding: 25px 50px;    
    white-space: normal;
  }
  
  .blog a::after {
    font-size: 60px;
    font-size: 35px;       
    transform: translateY(-25%);
  }
  
  .work {
    font-size: 16px;
    line-height: 1.5;
  }
  
  .works {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .works p {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 10px !important;
  }

  .works ul {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 10px !important;
  }

  .works li {
    padding-left: 0 !important;
  }
  
  .services {
    padding: 50px 0;
  }
  
  .services p {
    font-size: 26px;
    margin-bottom: 30px;
  }
  
  .services li {
    font-size: 16px;
    padding-left: 35px;
    margin-bottom: 15px;
  }
  
  .services li::before {
    width: 22px;
    height: 22px;
    font-size: 10px;
  }
  
  .price {
    padding: 50px 0;
  }
  
  .price h2 {
    font-size: 26px;
  }
  
  .price > p {
    font-size: 15px;
    margin-bottom: 40px;
  }
  
  .price-container {
    gap: 25px;
  }
  
  .price-card {
    padding: 25px 15px;
  }
  
  .price-card h3 {
    font-size: 20px;
  }
  
  .price-card p {
    font-size: 16px;
  }
  
  .price-card h4 {
    font-size: 24px;
    margin: 15px 0 20px;
  }
  
  .btn.green {
    font-size: 14px;
    padding: 10px 20px;
  }
  
  
  .reviews {
    padding: 40px 0;
  }

  .reviews-title {
    font-size: 26px;
    margin-bottom: 30px;
  }

  .review-message {
    margin-bottom: 25px;
  }

  .message-avatar {
    width: 45px;
    height: 45px;
  }

  .message-bubble {
    padding: 15px 18px;
    border-radius: 14px;
  }

  .left-aligned .message-bubble::before,
  .right-aligned .message-bubble::before {
    top: 15px;
    border-top-width: 8px;
    border-bottom-width: 8px;
  }

  .left-aligned .message-bubble::before {
    left: -8px;
    border-right-width: 8px;
  }

  .right-aligned .message-bubble::before {
    right: -8px;
    border-left-width: 8px;
  }

  .reviewer-name {
    font-size: 14px;
  }

  .message-content {
    font-size: 13px;
    line-height: 1.4;
  }
  .phone-number {
    font-size: 22px;
  }

  .name {
    font-size: 18px;
    margin: 2% 0;
  }

  .btn.tg {
    width: 34px;
    height: 34px;
    padding: 8px;
    font-size: 14px;
    box-shadow: 0 3px 10px rgba(54,140,23,0.25);
  }

  .tg-icon {
    width: 20px;
    height: 20px;
  }

  .footer-contact-text {
    font-size: 13px;
  }

  .footer-copyright {
    font-size: 11px;
    padding-top: 12px;
    margin-top: 12px;
  }
}

/* Очень маленькие экраны (320px и меньше) */
@media (max-width: 320px) {
  .intro-right h1 {
    font-size: 22px;
  }
  
  /* Mobile-specific intro tweaks */
  .intro { padding: 10px; }
  .intro-left { display:flex; justify-content:center; }
  .intro-left img { max-width: 220px; width: 60%; height: auto; border-radius:8px }
  .hero-ctas { flex-direction:column; gap:10px }
  .hero-ctas .btn { width:100% }
  
  .blog a {
    font-size: 18px;
    padding: 25px 10px;
  }
  
  .services p {
    font-size: 22px;
  }
  
  .price h2 {
    font-size: 22px;
  }
}

/* ------------------ Modern accents and new section styles ------------------ */
:root{
  --accent:#3b82f6;
  --accent-2:#2563eb;
  --muted:#6b7280;
  --bg:#ffffff;
  --card:#ffffff;
  --radius:12px;
}

/* Smooth typography */
body{font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial; color:#0b1220; background: #fbfdff}
/* account for fixed header */
.intro-right h1{font-family: 'Playfair Display', Georgia, serif; font-size:36px;text-align: center; color:#735e51}
.intro-right h2{font-size:16px; color:var(--muted); font-weight:500}
.intro-right p.phone a{font-weight:700}

/* Hero CTA with glossy shine */
.hero-cta{display:inline-block; padding:12px 22px; background:linear-gradient(90deg,var(--accent),#2b6cb0); color:#fff; border-radius:10px; text-decoration:none; box-shadow:0 8px 24px rgba(43,108,176,0.18); position:relative; overflow:hidden; font-weight:700; outline:none}
/* base: remove outline and ensure relative positioning */
.hero-cta {
    display: inline-block;
    padding: 5px 19px;
    background: #7E4A2B;
    color: #fff;
    border-radius: 10px;
    font-size: 21px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(43, 108, 176, 0.18);
    position: relative;
    overflow: hidden;
    font-weight: 700;
    outline: none;
    border: 0;
}
/* add shine layer using a child element or pseudo-element */
.hero-cta .shine, .cta-btn .shine { position:absolute; top:0; left:-75%; width:50%; height:100%; background:linear-gradient(120deg, rgba(255,255,255,0.0) 0%, rgba(255,255,255,0.5) 50%, rgba(255,255,255,0.0) 100%); transform:skewX(-20deg); pointer-events:none; animation:shine-move 2.5s infinite }
.hero-cta::after{display:none}

.d-flex.hero-btn-wrap { justify-content: flex-start; }

/* animation for the shine stripe */
@keyframes shine-move { 
  0% { left: -75%; }
  60% { left: 120%; }
  100% { left: 120%; }
}

/* utility for button alignment */
.d-flex.hero-btn-wrap { justify-content: flex-start; }

/* also apply to primary buttons */
.btn.green { position:relative; overflow:hidden; border:0 }
.btn.green .shine { position:absolute; top:0; left:-75%; width:50%; height:100%; background:linear-gradient(120deg, rgba(255,255,255,0.0) 0%, rgba(255,255,255,0.45) 50%, rgba(255,255,255,0.0) 100%); transform:skewX(-20deg); pointer-events:none; animation:shine-move 2.5s infinite }

/* remove default focus outline but keep an accessible focus-visible ring */
.cta-btn, .hero-cta, .btn.green { outline: none; }
.cta-btn:focus, .hero-cta:focus, .btn.green:focus { outline: none; }
.cta-btn:focus-visible, .hero-cta:focus-visible, .btn.green:focus-visible { box-shadow: 0 0 0 4px rgba(59,130,246,0.18); border-radius:10px }


/* Footer socials horizontal */
.footer-socials a{display:inline-flex; align-items:center; justify-content:center; margin:0 8px}
.footer-socials svg{border-radius:8px}

/* Navbar overrides */
.site-header .navbar-brand{font-weight:700; color:#07103a; font-family:'Manrope', sans-serif}
.site-header .nav-link{color:#334155}
.site-header .nav-link:hover{color:var(--accent)}
.site-header .navbar{border-radius:0 0 12px 12px}

/* Diplomas */
.diplomas {
    background: #fbf9f7;
}
.diplomas h2{font-size:32px; text-align:center; margin-bottom:6px}
.diplomas .subtitle{color:var(--muted); text-align:center; margin-bottom:24px}
.diploma-grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:20px; max-width:1000px; margin:0 auto}
.diploma-item{background:var(--card); border-radius:10px; padding:18px; display:flex; align-items:center; justify-content:center; box-shadow:0 6px 18px rgba(11,17,32,0.04)}
.diploma-placeholder{width:100%; height:110px; display:flex; align-items:center; justify-content:center; background:linear-gradient(90deg,#f3f6fb,#ffffff); border-radius:8px; color:var(--muted); font-weight:600}

/* Contact form */
.contact{padding:60px 0; background: linear-gradient(180deg,#ffffff,#fbfbff)}
.contact h2{font-size:30px; text-align:center; margin-bottom:6px}
.contact .subtitle{color:var(--muted); text-align:center; margin-bottom:20px}

/* About block improvements: clearer, emoji/icon list */
.about-card{background:linear-gradient(180deg,#ffffff,#fbfcff); border-radius:12px; padding:28px; box-shadow:0 8px 30px rgba(9,30,66,0.04); max-width:1000px; margin:0 auto}
.about-title{font-family:'Manrope', sans-serif; font-size:24px; margin-bottom:6px; color:#07103a}
.about-lead{color:var(--muted); margin-bottom:14px; font-size:16px}
.about-list{list-style:none; padding:0; margin: 30px 0 30px 0; display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:12px}
.about-list li {
    display: block;
    font-size: 15px;
    color: #5f6264;
    padding: 14px;
    font-weight: bold;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 10px;
    background: #F7F1EE;
    box-shadow: 0 6px 18px rgba(11, 17, 32, 0.03);
    transition: transform .18s ease, box-shadow .18s ease;
}
.about-list li:hover{ transform: translateY(-6px); box-shadow: 0 12px 28px rgba(11,17,32,0.06); }
.about-text{display:block}
.about-note{color:var(--muted); font-size:14px; margin-bottom:12px}
.about-actions {
    display: flex;
    gap: 50px;
    align-items: center;
    flex-wrap: wrap;
    align-content: stretch;
    justify-content: center;
}
.about-actions .link-muted{color:var(--muted); text-decoration:underline; opacity:0.9}

@media (max-width:720px){
  .about-list{grid-template-columns:1fr}
  .about-actions{flex-direction:column; align-items:flex-start}
}

/* Global section spacing to improve rhythm */
section {
    padding: 12px 0px 24px 0px;
}
section > .container, .about-card, .price-container, .reviews-container { padding-top: 20px; padding-bottom: 12px; }

/* Headings and paragraph spacing inside sections */
section h2, .about-title, .reviews-title, .price h2 { margin-top: 0; margin-bottom: 40px;    text-align: center; }
section p, .about-lead, .about-note { margin-top: 0;margin-bottom: 20px !important; }
section ul { margin-top: 0; margin-bottom: 16px; }

/* Slightly larger gaps between list items and inside cards */
.about-list li, .works li, .price-card p { margin-bottom: 10px; }

@media (max-width:720px){
  section { padding: 36px 0; }
}
.contact-form{max-width:760px; margin:0 auto; background:var(--card); padding:22px; border-radius:12px; box-shadow:0 8px 30px rgba(11,17,32,0.06)}
.contact-form .form-row{display:flex; flex-direction:column; gap:8px; margin-bottom:12px}
.contact-form label{font-size:14px; color:#111; font-weight:600}
.contact-form input[type=text], .contact-form input[type=tel], .contact-form input[type=email], .contact-form select, .contact-form textarea{padding:10px 12px; border:1px solid #e6eef8; border-radius:8px; font-size:15px; outline:none}
.contact-form textarea{resize:vertical}
.contact-form .form-actions{display:flex; justify-content:flex-end}



/* Small screens adjustments */
@media (max-width:768px){
  .intro{padding:18px 12px}
  .intro-right{padding:12px}
  .intro-right h1{font-size:26px}
  .diploma-placeholder{height:90px}
  .contact-form{padding:16px}
  .contact-form .form-actions{justify-content:center}
}

/* Micro interactions */
.btn{transition:transform .18s ease, box-shadow .18s ease}
.btn:active{transform:translateY(1px)}

/* =================== Cohesive theme for all sections except .intro =================== */
:root{
  --brand:#7E4A2B; /* warm brown */
  --accent:#b3998a; /* soft accent */
  --muted:#6b7280;
  --bg-soft:#fbf9f7;
  --card:#ffffff;
  --dark:#2b2b2b;
  --radius:14px;
}

/* Apply gentle background rhythm but avoid changing .intro */
.intro{
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-soft) 100%);
}
.row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(-1 * var(--bs-gutter-y));
    margin-right: calc(-.5 * var(--bs-gutter-x));
    margin-left: calc(-.5 * var(--bs-gutter-x));
    justify-content: flex-end;
}
/* Headings: elegant serif accent */
section:not(.intro) h2,
.about-title,
.reviews-title,
.price h2,
.diplomas h2 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--brand);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* Paragraphs: softer color for long reads */
section:not(.intro) p,
.about-lead,
.message-content {
  color: #3b3b3b;
}

/* About card: lift and soften */
.about-card{
  border-radius: var(--radius);
  padding: 34px;
  background: linear-gradient(180deg,#fff,#fbfbfb);
  box-shadow: 0 18px 40px rgba(22,28,37,0.06);
  border: 1px solid rgba(15,23,42,0.04);
}

/* Works lists: simple tiles */
.works ul{display:grid; grid-template-columns:repeat(2, minmax(280px, 1fr)); gap:18px}
.works li{background:var(--card); border-radius:12px; padding:14px 18px; box-shadow:0 8px 20px rgba(11,17,32,0.04); border:1px solid rgba(15,23,42,0.03); color:var(--dark); position:relative; overflow:hidden}

/* Numbered steps styling (Bootstrap-like) */
.works { counter-reset: steps-counter; }
.works ul { display: block; padding: 0; }
.works li { display: flex; gap:18px; align-items: flex-start; }
.works .step-number {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  border-radius: 50%;
  background: linear-gradient(180deg,var(--brand), rgba(126,74,43,0.85));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 8px 20px rgba(126,74,43,0.18);
  line-height: 1; /* ensure consistent centering */
}
.works li .step-content { flex: 1 1 auto; }
.works li .step-title { font-size: 18px; font-weight: 700; color:var(--brand); margin:0 0 6px }
.works li .step-desc { margin:0; color:#444; line-height:1.5 }

/* Auto increment number if markup doesn't include number element */
.works li::before {
  counter-increment: steps-counter;
  content: counter(steps-counter);
  display: none; /* hidden, using dedicated .step-number spans is preferred */
}

/* If author doesn't include .step-number, show generated number in circle */
.works li:not(:has(.step-number))::before {
  display: inline-flex;
  width:44px; height:44px; border-radius:50%;
  align-items:center; justify-content:center; color:#fff; font-weight:700; font-size:18px;
  background: linear-gradient(180deg,var(--brand), rgba(126,74,43,0.85));
  margin-right: 12px;
}

/* Card hover */
.works li:hover{transform:translateY(-6px); box-shadow:0 18px 40px rgba(11,17,32,0.08)}

@media (max-width:920px){
  .works ul{grid-template-columns:repeat(1,1fr)}
}

@media (max-width:480px){
  .works li{flex-direction:row; gap:12px}
  .works .step-number{width:44px;height:44px;min-width:44px;min-height:44px;font-size:16px}
}

/* --- Force plain .works lists into two columns (for long text list) --- */
/* Use more specific selector to override grid when the UL is plain content */
.works > ul {
  display: block !important;
  column-count: 2;
  column-gap: 32px;
  padding: 0;
}
.works > ul li {
  display: block !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 8px 0 !important;
  margin: 0 0 12px !important;
  break-inside: avoid; /* prevent splitting items between columns */
}
.works > ul li .step-number { /* keep circle size fixed when present */
  width: 44px !important; height: 44px !important; min-width:44px; min-height:44px; font-size:16px !important;
}

@media (max-width:920px){
  .works > ul { column-count: 1; }
}

/* Target only the list we marked as two-col to avoid affecting other works lists */
.works ul.two-col {
  display: block;
  column-count: 2;
  column-gap: 32px;
}
.works ul.two-col li{
  display:block;
  padding:8px 0;
  margin:0 0 12px;
  break-inside: avoid;
}
.works ul.two-col li:hover{ transform:none !important; box-shadow:none !important; }
.works ul.two-col li .step-number{width:44px;height:44px;min-width:44px;min-height:44px}

@media (max-width:920px){
  .works ul.two-col{column-count:1}
}

/* Three work cards */
.work-cards {
  display: flex;
  gap: 24px;
  margin-top: 24px;
  align-items: stretch;
}

.work-card {
  position: relative;
  flex: 1 1 0;
  background: #ffffff;
  border-radius: 7px;
  padding: 22px 22px 24px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Акцент сверху */
.work-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, var(--brand), #d6c8c0);
  border-radius: 16px 16px 0 0;
}
.price-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, var(--brand), #d6c8c0);
  border-radius: 16px 16px 0 0;
  z-index: 2;
}
.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.12);
}

.work-card h3 {
 margin: 0 0 20px;
  font-size: 18px;
  line-height: 1.3;
  color: var(--brand);
  font-weight: 600;
  text-align: center;
}

.work-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #475569;
}

@media (max-width: 920px) {
  .work-cards {
    flex-direction: column;
  }
}

/* Services: round icons in warm brown */
.services li{padding-left:64px; position:relative}
.services li::before{content:''; position:absolute; left:0; top:50%; transform:translateY(-50%); width:44px; height:44px; border-radius:10px; background:var(--brand); display:block; box-shadow:0 6px 18px rgba(126,74,43,0.12);}
.services li::after{content:'\2713'; position:absolute; left:11px; top:50%; transform:translateY(-50%); color:#fff; font-weight:700}

/* Price cards: unified scale and CTA */

/* Ensure intro stacks and centers content on very small screens */
@media (max-width:420px){
  .intro-right h1{font-size:22px}
  .intro-right p{font-size:15px}
  .intro-left img{width:58%}
}
.price-container{gap:28px}
.price-card h4{color:var(--brand); font-size:30px}
/* Reviews: softer bubbles and avatar ring */
.message-bubble{background:linear-gradient(180deg,#ffffff,#fbfbff); border-radius:18px; border:1px solid rgba(15,23,42,0.04); box-shadow:0 12px 36px rgba(11,17,32,0.06)}
.message-avatar{box-shadow:0 6px 18px rgba(11,17,32,0.06); border:4px solid rgba(255,255,255,0.6)}
.reviewer-name{color:var(--brand)}

/* Diplomas grid: subtle hover */
.diploma-item{transition:transform .2s ease, box-shadow .2s ease}
.diploma-item:hover{transform:translateY(-6px); box-shadow:0 18px 40px rgba(11,17,32,0.08)}

/* Contact form: larger inputs and clear focus */
.contact-form input, .contact-form textarea, .contact-form select{background:#fff; border:1px solid #e7edf5; padding:12px 14px; font-size:15px}
.contact-form input:focus, .contact-form textarea:focus{box-shadow:0 8px 30px rgba(126,74,43,0.08); border-color:rgba(126,74,43,0.18); outline:none}
.contact-form .form-actions{justify-content:center}



/* Blog call-to-action: softer rounded button */
.blog a{background:var(--accent); color:#fff; border-radius:12px; padding:28px 40px; display:inline-block}

/* Responsive tweaks (override small screens) */
@media (max-width:720px){
  .works ul{grid-template-columns:1fr}
  .services li{padding-left:50px}
  .services li::before{width:36px;height:36px;left:0}
  .price-card{padding:22px}
}

/* End of cohesive theme */