:root{
  --bg:#ffffff;
  --text:#111827;
  --muted:#4b5563;
  --line:#e5e7eb;
  --brand:#7c7cf4;
  --brand-2:#5b5bf0;
  --chip:rgba(124,124,244,.12);
  --shadow:0 18px 40px rgba(17,24,39,.08);
  --radius:18px;
  --container:1100px;
}

*{
  box-sizing:border-box;
}

html,
body{
  height:100%;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.55;
}

main{
  padding-top:84px;
}

img{
  max-width:100%;
  display:block;
}

.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 20px;
}

/* HEADER */

.header{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  z-index:1000;
  backdrop-filter:blur(10px);
  background:rgba(255,255,255,.92);
  border-bottom:1px solid rgba(229,231,235,.7);
}

.header__row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  gap:14px;
}

.logo{
  display:flex;
  align-items:baseline;
  gap:6px;
  font-weight:800;
  letter-spacing:-0.02em;
  font-size:20px;
  white-space:nowrap;
}

.logo span:last-child{
  color:var(--brand);
  position:relative;
}

.logo span:last-child::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-4px;
  width:100%;
  height:3px;
  background:var(--brand);
  border-radius:999px;
  opacity:.6;
}

.nav{
  display:flex;
  align-items:center;
  gap:26px;
}

.nav a{
  text-decoration:none;
  color:var(--text);
  font-weight:600;
  font-size:14px;
  opacity:.9;
}

.nav a:hover{
  color:var(--brand-2);
}

.header__actions{
  display:flex;
  gap:10px;
  align-items:center;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 16px;
  border-radius:999px;
  font-weight:700;
  text-decoration:none;
  border:2px solid var(--brand);
  color:var(--brand);
  background:transparent;
  transition:.2s ease;
  white-space:nowrap;
}

.btn:hover{
  background:var(--chip);
  transform:translateY(-1px);
}

.btn--primary{
  border-color:var(--brand);
  background:var(--brand);
  color:#fff;
  box-shadow:0 10px 24px rgba(124,124,244,.28);
}

.btn--primary:hover{
  background:var(--brand-2);
}

.burger{
  display:none;
  border:1px solid var(--line);
  width:48px;
  height:48px;
  border-radius:999px;
  background:#fff;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  flex-shrink:0;
}

.burger span{
  display:block;
  width:18px;
  height:2px;
  background:var(--text);
  position:relative;
  border-radius:2px;
  transition:.25s ease;
}

.burger span::before,
.burger span::after{
  content:"";
  position:absolute;
  left:0;
  width:18px;
  height:2px;
  background:var(--text);
  border-radius:2px;
  transition:.25s ease;
}

.burger span::before{
  top:-6px;
}

.burger span::after{
  top:6px;
}

.burger.active span{
  background:transparent;
}

.burger.active span::before{
  top:0;
  transform:rotate(45deg);
}

.burger.active span::after{
  top:0;
  transform:rotate(-45deg);
}

.mobile-menu{
  max-height:0;
  overflow:hidden;
  transition:max-height .3s ease;
  background:rgba(255,255,255,.96);
  border-top:1px solid rgba(229,231,235,.7);
}

.mobile-menu.open{
  max-height:320px;
}

.mobile-menu__inner{
  display:flex;
  flex-direction:column;
  padding:14px 20px 18px;
  gap:12px;
}

.mobile-menu__inner a{
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
  font-weight:600;
  color:var(--text);
  text-decoration:none;
}

/* HERO */

.hero{
  position:relative;
  overflow:hidden;
  padding:52px 0 34px;
}

.hero .container{
  position:relative;
  z-index:2;
}

.hero__grid{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:30px;
  align-items:center;
}

.hero__content{
  position:relative;
  z-index:3;
}

.card-illustration{
  position:relative;
  z-index:3;
  background:rgba(255,255,255,.78);
  border:1px solid rgba(229,231,235,.8);
  border-radius:24px;
  box-shadow:var(--shadow);
  overflow:hidden;
  min-height:360px;
  display:grid;
  place-items:center;
}

.card-illustration img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.blob{
  position:absolute;
  border-radius:999px;
  opacity:.9;
  pointer-events:none;
  z-index:1;
}

.blob--left{
  width:200px;
  height:200px;
  left:-60px;
  top:190px;
  background:rgba(176,132,255,.35);
}

.blob--right{
  width:560px;
  height:440px;
  right:-160px;
  top:70px;
  background:rgba(255,189,127,.55);
  border-radius:260px;
}

.kicker{
  display:inline-flex;
  gap:10px;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  background:var(--chip);
  color:var(--brand-2);
  font-weight:800;
  font-size:13px;
  margin-bottom:16px;
}

h1{
  font-size:52px;
  line-height:1.05;
  margin:0 0 14px;
  letter-spacing:-0.03em;
}

.h1-accent{
  color:var(--brand);
  font-weight:900;
}

.lead{
  margin:0 0 22px;
  color:var(--muted);
  font-size:18px;
  max-width:520px;
}

.hero__actions-main{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
  margin-bottom:18px;
}

.hero__meta{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  color:var(--muted);
  font-weight:600;
  font-size:14px;
}

.tag{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.75);
}

/* SECTIONS */

.section{
  padding:32px 0 52px;
}

.section__title{
  font-size:26px;
  margin:0 0 16px;
  letter-spacing:-0.02em;
}

.grid3{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}

.mini-card{
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:16px;
  background:#fff;
  box-shadow:0 10px 22px rgba(17,24,39,.04);
}

.mini-card h3{
  margin:0 0 6px;
  font-size:16px;
}

.mini-card p{
  margin:0;
  color:var(--muted);
  font-weight:500;
  font-size:14px;
}

/* ABOUT */

.about{
  background:linear-gradient(180deg, #ffffff 0%, #f3f6ff 100%);
}

.about-wrapper{
  background:#ffffff;
  border-radius:32px;
  padding:60px;
  box-shadow:0 40px 80px rgba(17,24,39,0.08);
  display:flex;
  gap:60px;
  align-items:flex-start;
}

.about-left{
  flex:1;
}

.about-right{
  flex:1;
  display:flex;
  flex-direction:column;
  gap:20px;
}

.about-badge{
  display:inline-block;
  background:rgba(124,124,244,0.15);
  color:#5b5bf0;
  padding:10px 16px;
  border-radius:999px;
  font-weight:700;
  font-size:13px;
  margin-bottom:20px;
}

.about-wrapper h2{
  font-size:34px;
  margin:0 0 20px;
}

.about-main{
  font-size:18px;
  font-weight:600;
  margin-bottom:20px;
}

.about-wrapper p{
  color:#4b5563;
  line-height:1.6;
}

.about-item{
  background:#f9faff;
  padding:18px 22px;
  border-radius:18px;
  font-weight:600;
  box-shadow:0 10px 25px rgba(124,124,244,0.08);
  transition:transform 0.3s ease;
}

.about-item:hover{
  transform:translateY(-5px);
}

/* REVIEWS */

.reviews{
  background:#f3fbf6;
}

.reviews-grid{
  display:flex;
  justify-content:center;
  gap:30px;
  flex-wrap:wrap;
}

.review-card{
  width:220px;
  flex-shrink:0;
  transition:transform 0.3s ease;
}

.review-card img{
  width:100%;
  border-radius:18px;
  box-shadow:0 10px 30px rgba(0,0,0,0.08);
}

.review-card:hover{
  transform:translateY(-4px);
}

/* CONTACTS */

.contacts-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
  padding:18px 20px;
}

.contacts-info{
  display:flex;
  flex-wrap:wrap;
  gap:18px;
  align-items:center;
  flex:1 1 420px;
}

.contacts-info p{
  margin:0;
  font-size:15px;
  color:var(--muted);
}

.contacts-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

/* FOOTER */

.footer{
  margin-top:24px;
  border-top:1px solid var(--line);
  background:#fff;
}

.footer .container{
  padding-top:32px;
  padding-bottom:24px;
}

.footer__top{
  display:grid;
  grid-template-columns:1.2fr 1fr 1fr;
  gap:40px;
  align-items:start;
}

.footer__brand{
  max-width:320px;
}

.footer__logo{
  display:flex;
  align-items:baseline;
  gap:6px;
  font-size:28px;
  font-weight:800;
  letter-spacing:-0.02em;
  margin-bottom:14px;
}

.footer__logo span:last-child{
  color:var(--brand);
  position:relative;
}

.footer__logo span:last-child::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-4px;
  width:100%;
  height:3px;
  border-radius:999px;
  background:var(--brand);
  opacity:.6;
}

.footer__text{
  margin:0;
  font-size:16px;
  line-height:1.6;
  color:var(--muted);
}

.footer__title{
  margin:0 0 14px;
  font-size:16px;
  font-weight:700;
  color:var(--text);
}

.footer__nav,
.footer__contacts{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.footer__nav a,
.footer__contacts a{
  text-decoration:none;
  font-size:15px;
  font-weight:500;
  color:var(--muted);
  transition:color .2s ease;
}

.footer__nav a:hover,
.footer__contacts a:hover{
  color:var(--brand-2);
}

.footer__bottom{
  margin-top:28px;
  padding-top:20px;
  border-top:1px solid #ececf3;
}

.footer__bottom p{
  margin:0;
  font-size:14px;
  color:#8a90a2;
}

.hero-image{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  border-radius:inherit;
}

/* ADAPTIVE */

@media (max-width: 980px){
  .hero__grid{
    grid-template-columns:1fr;
  }

  h1{
    font-size:44px;
  }

  .card-illustration{
    min-height:320px;
  }

  .blob--right{
    right:-240px;
  }

  .about-wrapper{
    flex-direction:column;
    gap:30px;
    padding:36px;
  }

  .grid3{
    grid-template-columns:1fr;
  }

  .footer__top{
    grid-template-columns:1fr;
    gap:28px;
  }

  .footer__brand{
    max-width:none;
  }
}

@media (max-width: 740px){
  main{
    padding-top:78px;
  }

  .nav{
    display:none;
  }

  .burger{
    display:flex;
  }

  .header__actions .btn:nth-child(2){
    display:none;
  }

  h1{
    font-size:36px;
  }

  .lead{
    font-size:16px;
  }

  .header__row{
    gap:10px;
  }

  .section{
    padding:26px 0 42px;
  }

  .section__title{
    font-size:22px;
  }

  .about-wrapper{
    padding:22px;
    border-radius:22px;
  }

  .about-wrapper h2{
    font-size:28px;
  }

  .about-main{
    font-size:16px;
  }

  .contacts-card{
    flex-direction:column;
    align-items:stretch;
  }

  .contacts-info{
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
  }

  .contacts-actions{
    width:100%;
    flex-direction:column;
    justify-content:stretch;
  }

  .contacts-actions .btn{
    width:100%;
  }

  .review-card{
    width:100%;
    max-width:280px;
  }
}
