/* ==========================================================================
   ПРИВЕТ, ОЛЬГА! Это файл с оформлением сайта (цвета, шрифты, отступы).
   Раньше это было прямо внутри index.html, теперь вынесено в отдельный
   файл — так удобнее ориентироваться. Сайт по-прежнему открывается
   двойным кликом по index.html, ничего в этом плане не поменялось.

   Это можно НЕ трогать. Но если захочешь другой цвет — смотри строчки
   со словом "ЦВЕТ" ниже.
========================================================================== */
:root{
  /* ЦВЕТ: оранжевый — кнопки и акценты (со скриншота-примера) */
  --brand: #e08a3c;
  /* ЦВЕТ: тёмный оранжевый (наведение на кнопку) */
  --brand-dark: #c96f28;
  /* ЦВЕТ: бирюзовый — шапка и подвал сайта (со скриншота-примера) */
  --teal: #4dc1da;
  /* ЦВЕТ: тёмно-бирюзовый — заголовки текста на белых карточках */
  --navy: #0e6b80;
  /* ЦВЕТ: розовый — фон верхнего экрана (hero) (со скриншота-примера) */
  --pink: #f8c2cf;
  /* ЦВЕТ: светлый тёплый фон страницы */
  --cream: #fff6f8;
  /* ЦВЕТ: ярко-розовый акцент (плашка "New") */
  --red: #e8577e;
  --ink: #1c2b3a;        /* цвет основного текста */
  --ink-soft: #6b5f66;   /* цвет серого текста */
  --card: #ffffff;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(90,50,60,.13);
}

*{ box-sizing: border-box; }
body{
  margin:0;
  font-family:'Nunito', system-ui, -apple-system, Arial, sans-serif;
  color:var(--ink);
  background:var(--cream);
  line-height:1.6;
}
h1,h2,h3{ font-family:'Baloo 2', system-ui, sans-serif; line-height:1.15; margin:0 0 .4em; }
a{ color:inherit; }
img{ max-width:100%; display:block; }

.wrap{ max-width:1100px; margin:0 auto; padding:0 20px; }

/* ---------- ВЕРХНЕЕ МЕНЮ ---------- */
header.site{
  position:sticky; top:0; z-index:50;
  background:var(--teal);
}
.nav{ display:flex; align-items:center; justify-content:space-between; gap:16px; padding:10px 20px; max-width:1100px; margin:0 auto; }
/* Логотип: картинка "Sweet Treasure" (шрифт Sugar Magic). Чтобы поменять
   картинку логотипа — положи новый файл в images и впиши его имя вместо
   logo-header.png в HTML (в шапке сайта, файл index.html). */
.logo{ display:flex; align-items:center; gap:10px; text-decoration:none; white-space:nowrap; }
.logo img{ height:40px; width:auto; display:block; }
.menu{ display:flex; gap:22px; flex-wrap:wrap; list-style:none; margin:0; padding:0; }
.menu a{ text-decoration:none; font-weight:700; color:#fff; }
.menu a:hover{ color:var(--brand); }

/* На узком экране (телефон) логотип и меню не помещаются в одну строку —
   переносим меню под логотип, чтобы буквы не наезжали друг на друга. */
@media (max-width: 640px){
  .nav{ flex-direction:column; gap:10px; padding:14px 20px; }
  .menu{ justify-content:center; gap:10px 18px; }
}

/* ---------- КНОПКИ ---------- */
.btn{
  display:inline-block; background:var(--brand); color:#fff; text-decoration:none;
  font-weight:700; padding:12px 24px; border-radius:999px; transition:background .2s;
}
.btn:hover{ background:var(--brand-dark); }

/* ---------- ПЕРВЫЙ ЭКРАН (ПРИВЕТСТВИЕ) ---------- */
/* Ровный розовый фон (со скриншота-примера), белый жирный текст. */
.hero{
  text-align:center;
  background: var(--pink);
  padding:56px 0 70px;
}
.hero h1{ font-size:clamp(2.2rem, 5vw, 3.6rem); color:#fff; text-shadow:0 2px 10px rgba(120,40,60,.15); }
.hero p{ font-size:1.15rem; color:#fff; opacity:.95; max-width:620px; margin:0 auto 28px; }
/* Строка с адресом магазина над кнопкой "See what's new" */
.hero-address{ font-weight:700; font-size:1.05rem !important; margin:-14px auto 24px !important; }
.emoji-row{ font-size:2.4rem; letter-spacing:.2em; margin-bottom:10px; }
/* Кнопка на розовом фоне — белая с оранжевым текстом, как в примере */
.hero .btn{ background:#fff; color:var(--brand-dark); }
.hero .btn:hover{ background:#ffece0; }

/* Фото витрины на первом экране */
.hero-photo{
  max-width:820px; margin:36px auto 0; border-radius:var(--radius);
  overflow:hidden; box-shadow:var(--shadow);
  border:6px solid #fff;
}
.hero-photo img{ width:100%; }

/* ---------- ЗАГОЛОВКИ РАЗДЕЛОВ ---------- */
section{ padding:56px 0; }
.section-head{ text-align:center; margin-bottom:36px; }
.section-head h2{ font-size:clamp(1.8rem, 4vw, 2.6rem); color:var(--navy); }
.section-head p{ color:var(--ink-soft); margin:.3em 0 0; }
/* Картинка-иконка вместо эмодзи в заголовке раздела */
.head-icon{ display:inline-block; height:1em; width:auto; vertical-align:-0.15em; margin-right:6px; }

/* ---------- СЕТКА ТОВАРОВ ---------- */
.grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(240px, 1fr)); gap:26px; }

.card{
  background:var(--card); border-radius:var(--radius); overflow:hidden;
  box-shadow:var(--shadow); display:flex; flex-direction:column;
  transition:transform .2s;
}
.card:hover{ transform:translateY(-5px); }
.card .photo{ aspect-ratio:4/3; background:#fdeef1 center/cover no-repeat; }
.card .body{ padding:18px 20px 22px; display:flex; flex-direction:column; gap:8px; flex:1; }
.card h3{ font-size:1.2rem; margin:0; color:var(--navy); }
.card .desc{ color:var(--ink-soft); font-size:.98rem; margin:0; flex:1; }

/* Маленькая цветная плашка "NEW" на карточке */
.badge{
  display:inline-block; background:var(--red); color:#fff; font-weight:700;
  font-size:.75rem; letter-spacing:.05em; padding:4px 12px; border-radius:999px;
  text-transform:uppercase; width:max-content;
}

/* Чередование фона у разделов */
.alt{ background:#eafaf9; }

/* Широкое фото-баннер внутри раздела (если понадобится в будущем) */
.banner-photo{
  border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow);
  margin-bottom:32px; position:relative;
}
.banner-photo img{ width:100%; max-height:340px; object-fit:cover; }
.banner-photo .caption{
  position:absolute; left:0; right:0; bottom:0;
  background:linear-gradient(0deg, rgba(14,107,128,.78), transparent);
  color:#fff; padding:18px 22px; font-weight:700; font-family:'Baloo 2';
}

/* ---------- РАЗДЕЛ "О НАС" ---------- */
.about-wrap{
  display:grid; grid-template-columns: 1fr 1fr; gap:40px; align-items:center;
}
.about-photo{ border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); }
.about-text{ font-size:1.08rem; color:var(--ink-soft); }
.about-text h2{ color:var(--navy); }
@media (max-width: 760px){
  .about-wrap{ grid-template-columns: 1fr; }
}

/* ---------- КОНТАКТЫ / ПОДВАЛ ---------- */
footer.site{ background:var(--navy); color:#eaf6ff; padding:50px 0 30px; }
footer.site a{ color:#bfe9f2; }
.foot-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(220px,1fr)); gap:30px; }
footer h3{ color:#fff; }
.placeholder{ color:#ffd166; } /* жёлтым подсвечены места-заглушки, которые нужно вписать самой */
.copy{ text-align:center; margin-top:36px; color:#9fc3d6; font-size:.9rem; }
