:root{
  --bg:#f8f3ea;
  --bg-2:#efe4d3;
  --panel:#ffffff;
  --text:#1f1f1f;
  --muted:#6d655d;
  --line:#e7d8c5;
  --accent:#b7793e;
  --accent-dark:#925d2d;
  --accent-soft:#f5e2cd;
  --shadow:0 10px 28px rgba(0,0,0,.08);
  --radius:18px;
}

*{
  box-sizing:border-box;
}

body{
  margin:0;
  font-family:system-ui, Segoe UI, Roboto, Arial, sans-serif;
  background:linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 220px, var(--bg) 100%);
  color:var(--text);
  line-height:1.6;
}

.page{
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

.main{
  flex:1;
  padding:30px 18px 60px;
}

.wrap{
  max-width:1120px;
  margin:0 auto;
  padding:0 18px;
}

/* HEADER */
.top{
  position:sticky;
  top:0;
  z-index:10;
  background:rgba(255,255,255,.92);
  border-bottom:1px solid var(--line);
}

.top__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:18px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
  text-decoration:none;
  font-weight:900;
  font-size:26px;
  color:var(--text);
}

.logo{
  height:72px;
  width:auto;
  display:block;
}

.nav{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.nav a{
  text-decoration:none;
  color:var(--text);
  font-weight:700;
  padding:10px 14px;
  border-radius:12px;
  transition:.15s ease;
}

.nav a:hover{
  background:var(--accent-soft);
  color:var(--accent-dark);
}

/* HERO */
.hero{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:18px;
  margin-top:8px;
}

@media (max-width:850px){
  .hero{
    grid-template-columns:1fr;
  }
}

.hero-box{
  background:linear-gradient(135deg, #fff 0%, #fff4e8 100%);
  border:1px solid var(--line);
  border-radius:24px;
  box-shadow:var(--shadow);
  padding:32px;
}

.hero-box h1{
  margin:0 0 12px 0;
  font-size:44px;
  line-height:1.1;
}

.hero-box p{
  margin:0;
  color:var(--muted);
  font-size:17px;
}

.hero-side{
  background:linear-gradient(180deg, #fff 0%, #fffaf3 100%);
  border:1px solid var(--line);
  border-radius:24px;
  box-shadow:var(--shadow);
  padding:26px;
}

.hero-side h3{
  margin:0 0 10px 0;
}

.hero-side p{
  margin:0;
  color:var(--muted);
}

/* CARDS */
.card{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:24px;
  margin:18px 0;
}

.card h2,
.card h3{
  margin-top:0;
}

.grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:16px;
}

@media (max-width:1000px){
  .grid{
    grid-template-columns:repeat(2, 1fr);
  }
}

@media (max-width:700px){
  .grid{
    grid-template-columns:1fr;
  }
}

.grid .card{
  margin:0;
}

/* VIDEO */
.video-wrap{
  display:flex;
  justify-content:center;
}

.video-card{
  width:min(980px, 100%);
  border-radius:20px;
  overflow:hidden;
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  background:#000;
}

.video-container{
  position:relative;
  padding-bottom:56.25%;
  height:0;
}

.video-container video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}

/* FORMS */
label{
  display:block;
  font-weight:700;
  margin-bottom:6px;
}

input,
textarea,
select{
  width:100%;
  padding:12px 14px;
  border:1px solid #ddd2c4;
  border-radius:14px;
  font:inherit;
  background:#fffdfa;
}

input:focus,
textarea:focus,
select:focus{
  outline:none;
  border-color:var(--accent);
}

/* BUTTONS */
button,
.btn{
  padding:12px 16px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#fbf8f2;
  font-weight:800;
  cursor:pointer;
  text-decoration:none;
  color:var(--text);
  display:inline-block;
}

button:hover,
.btn:hover{
  background:#f6eee3;
}

.btn-primary{
  background:var(--accent);
  color:#fff;
  border-color:var(--accent);
}

.btn-primary:hover{
  background:var(--accent-dark);
}

/* SOCIAL BUTTONS */
.social-buttons{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}

.social-btn{
  display:inline-block;
  padding:10px 15px;
  border-radius:999px;
  text-decoration:none;
  font-weight:700;
  border:1px solid var(--line);
  background:var(--accent-soft);
  color:var(--accent-dark);
}

.social-btn:hover{
  background:#efd3b6;
}

/* PROFILE */
.profile-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
}

.profile-badge{
  display:inline-block;
  padding:8px 12px;
  border-radius:999px;
  background:var(--accent-soft);
  color:var(--accent-dark);
  font-weight:700;
}

.favorite-list{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:10px;
}

.favorite-item{
  text-decoration:none;
  color:var(--text);
  background:#fff8ef;
  border:1px solid var(--line);
  border-radius:12px;
  padding:10px 14px;
  font-weight:700;
}

.favorite-item:hover{
  background:#f7ecde;
}

.small{
  color:var(--muted);
  font-size:14px;
}

.footer{
  border-top:1px solid var(--line);
  padding:18px 0;
  color:var(--muted);
  text-align:center;
  background:rgba(255,255,255,.9);
}