* {
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  background: #ffffff;
  color: #1f1f1f;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  flex: 1 0 auto;
}

.container {
  width: 92%;
  max-width: 1220px;
  margin: 0 auto;
}

/* HEADER */

.site-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid #e8e2d9;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  min-height: 78px;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo a {
  font-size: 32px;
  font-weight: 700;
}

.logo a:hover {
  color: #6f573d;
}

/* NAVIGATION */

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.main-nav a {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  padding: 6px 0;
}

.main-nav a.active {
  font-weight: 600;
  border-bottom: 2px solid #111111;
}

/* CART */

.cart-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.cart-icon {
  width: 24px;
  height: 24px;
  display: block;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -8px;

  width: 18px;
  height: 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  background: #111111;
  color: #ffffff;

  font-size: 11px;
  font-weight: 700;
  line-height: 1;

  z-index: 10;
}
.cart-count:empty {
  display: none;
}
/* GENERAL */

.section {
  padding: 64px 0;
}

.section-intro {
  max-width: 600px;
  margin: 0 auto 40px;
  text-align: center;
  color: #666666;
}

.page-hero {
  padding: 72px 0 36px;
}

.page-hero h1 {
  font-size: 44px;
  line-height: 1.1;
  margin: 0 0 16px;
}

.page-hero p {
  color: #666666;
  max-width: 680px;
  margin: 0;
}

/* BUTTONS */

.btn {
  display: inline-block;
  padding: 14px 22px;
  border: 1px solid #111111;
  background: #111111;
  color: #ffffff;
  cursor: pointer;
  font-family: inherit;
}

.btn:hover {
  background: #6f573d;
  border-color: #6f573d;
}

.btn-outline {
  background: transparent;
  color: #111111;
}

.btn-outline:hover {
  background: #111111;
  color: #ffffff;
}

/* HOME */

.home-hero {
  padding: 76px 0 44px;
}

.home-hero-grid {
  display: flex;
  align-items: center;
  gap: 52px;
  flex-wrap: wrap;
}

.home-hero-text,
.home-hero-image {
  flex: 1 1 420px;
}

.home-hero-text h1 {
  font-size: 62px;
  line-height: 1.02;
  margin: 0 0 22px;
}

.home-hero-text p {
  color: #666666;
  margin: 0 0 16px;
  max-width: 650px;
}

.home-hero-image img {
  width: 100%;
  max-height: 760px;
  object-fit: cover;
  object-position: center top;
}

/* GALLERY */

.featured-section {
  padding: 10px 0 64px;
}

.featured-section h2 {
  font-size: 34px;
  margin: 0 0 26px;
}

.featured-grid,
.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
}

.featured-card,
.art-card {
  width: calc(33.333% - 20px);
  background: #ffffff;
  border: 1px solid #ece7de;
  overflow: hidden;
  cursor: pointer;
}

.featured-card:hover,
.art-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.08);
}

.featured-card img,
.art-card img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}

.featured-card-content,
.art-card-content,
.featured-card > div {
  padding: 14px 12px 18px;
}

.featured-card-content h3,
.art-card-content h3,
.featured-card > div h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
}

.featured-card-content p,
.art-card-content p,
.featured-card > div p {
  margin: 3px 0;
  color: #666666;
  font-size: 14px;
}

.filter-bar {
  margin-bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn,
.sort-select {
  padding: 12px 16px;
  border: 1px solid #e8e2d9;
  background: #ffffff;
  cursor: pointer;
  font-family: inherit;
}

/* ABOUT */

.about-grid {
  display: flex;
  gap: 60px;
  align-items: center;
}

.about-image,
.about-text {
  flex: 1;
}

.about-image img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: center;
}

.about-text h2 {
  margin-top: 0;
}

.about-text p {
  color: #666666;
  margin: 0 0 14px;
}

.about-process-section {
  padding-top: 30px;
}

.about-process-heading {
  margin-bottom: 26px;
}

.about-process-heading h2 {
  margin: 0 0 8px;
  font-size: 30px;
}

.about-process-heading p {
  margin: 0;
  color: #666666;
}

.about-process-grid,
.about-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.about-process-grid img,
.about-gallery img {
  width: calc(33.333% - 16px);
  height: 360px;
  object-fit: cover;
}

/* MODAL */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  z-index: 2000;
  padding: 16px;
  overflow-y: auto;
}

.modal.active {
  display: block;
}

.modal-content {
  background: #ffffff;
  width: 96%;
  max-width: 1050px;
  margin: 40px auto;
  position: relative;
}

.modal-grid {
  display: flex;
  min-height: 560px;
}

.modal-image {
  width: 55%;
  display: flex;
  flex-direction: column;
  background: #f6f1ea;
}

.modal-info {
  width: 45%;
  padding: 36px;
}

#modal-image {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.modal-thumbnails {
  display: flex;
  gap: 10px;
  padding: 14px;
  background: #ffffff;
  border-top: 1px solid #e8e2d9;
  overflow-x: auto;
}

.modal-thumb {
  width: 74px;
  height: 74px;
  min-width: 74px;
  padding: 0;
  border: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  opacity: 0.65;
}

.modal-thumb:hover,
.modal-thumb.active-thumbnail {
  opacity: 1;
  border-color: #111111;
}

.modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: none;
  background: #ffffff;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
  z-index: 5;
}
/* CART PAGE */

.cart-layout {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.cart-items,
.cart-summary {
  background: #ffffff;
  border: 1px solid #e8e2d9;
  padding: 24px;
}

.cart-items {
  flex: 2;
}

.cart-summary {
  flex: 1;
}

.cart-item {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #e8e2d9;
}

.cart-item img {
  width: 100px;
  height: 100px;
  object-fit: cover;
}

/* FORMS */

.custom-grid,
.contact-grid,
.faq-layout {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.custom-text,
.custom-form,
.contact-info,
.contact-form,
.faq-intro,
.faq-list {
  flex: 1;
}

.custom-form,
.lessons-form,
.contact-form {
  background: #ffffff;
  border: 1px solid #e8e2d9;
  padding: 28px;
}

.custom-form form,
.lessons-form,
.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.custom-form label,
.lessons-form label,
.contact-form label {
  font-size: 14px;
  font-weight: 600;
}

.custom-form input,
.custom-form textarea,
.custom-form select,
.lessons-form input,
.lessons-form textarea,
.lessons-form select,
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #e8e2d9;
  font-family: inherit;
  font-size: 15px;
}

/* LESSONS */

.lessons-intro-section {
  padding: 80px 0 48px;
}

.lessons-intro-grid {
  display: flex;
  gap: 60px;
  align-items: center;
}

.lessons-intro-image,
.lessons-intro-text {
  flex: 1;
}

.lessons-intro-image img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: center;
}

.lessons-intro-text h1 {
  font-size: 48px;
  line-height: 1.05;
  margin: 0 0 16px;
}

.lessons-intro-text .intro-lead,
.lessons-intro-text p,
.lessons-form-intro p {
  color: #666666;
}

.lessons-intro-text h2 {
  font-size: 30px;
  margin: 0 0 16px;
}

.lessons-request-section {
  padding-top: 32px;
}

.lessons-form-wrap {
  display: flex;
  gap: 60px;
  align-items: flex-start;
  border-top: 1px solid #e8e2d9;
  padding-top: 50px;
}

.lessons-form-intro,
.lessons-form {
  flex: 1;
}

/* FOOTER */

.site-footer {
  flex-shrink: 0;
  margin-top: auto;
  background: #f6f1ea;
  border-top: 1px solid #e8e2d9;
}

.footer-inner-home {
  padding: 32px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-side-link {
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-center-link {
  flex: 1;
  text-align: center;
  font-weight: 500;
}

.social-icon-link {
  color: #111111;
}

.social-icon-link svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
}

.social-icon-link:hover,
.footer-center-link:hover {
  color: #6f573d;
}

/* STATUS */

.form-status {
  min-height: 22px;
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 600;
}

.form-status.success {
  color: #1f7a3a;
}

.form-status.error {
  color: #b00020;
}

/* TABLET */

@media (max-width: 1000px) {
  .container {
    width: 90%;
  }

  .header-inner {
    min-height: auto;
    padding: 16px 0;
    flex-direction: column;
    gap: 14px;
  }

  .main-nav {
    width: 100%;
  }

  .main-nav ul {
    justify-content: center;
    gap: 16px;
  }

  .featured-card,
  .art-card {
    width: calc(50% - 15px);
  }

  .about-process-grid img,
  .about-gallery img {
    width: calc(50% - 12px);
  }

  .about-grid {
    flex-direction: column;
    gap: 34px;
  }

  .about-image,
  .about-text {
    width: 100%;
  }

  .about-image img {
    max-height: 620px;
  }

  .home-hero-grid,
  .custom-grid,
  .cart-layout,
  .lessons-form-wrap,
  .faq-layout,
  .contact-grid,
  .lessons-intro-grid {
    flex-direction: column;
  }

  .cart-items,
  .cart-summary {
    width: 100%;
  }
}

/* SMALL TABLET / LARGE PHONE */

@media (max-width: 760px) {
  .container {
    width: 90%;
  }

  .site-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.97);
    z-index: 1000;
  }

  .header-inner {
    padding: 14px 0 10px;
    gap: 12px;
  }

  .logo a {
    font-size: 30px;
    line-height: 1;
  }

  .main-nav {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .main-nav ul {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 18px;
    padding: 0 18px 8px;
  }

  .main-nav li {
    flex: 0 0 auto;
  }

  .main-nav a {
    font-size: 14px;
    white-space: nowrap;
  }

  .cart-link {
    width: 30px;
    height: 30px;
  }

  .cart-count {
    top: -5px;
    right: -7px;
  }

  .page-hero {
    padding: 40px 0 24px;
  }

  .page-hero h1,
  .home-hero-text h1,
  .lessons-intro-text h1 {
    font-size: 38px;
    line-height: 1.08;
  }

  .section {
    padding: 44px 0;
  }

  .home-hero {
    padding: 44px 0 30px;
  }

  .home-hero-grid {
    gap: 28px;
  }

  .featured-card,
  .art-card,
  .about-process-grid img,
  .about-gallery img {
    width: 100%;
  }

  .featured-card img,
  .art-card img {
    height: 320px;
  }

  .filter-bar {
    flex-direction: column;
    gap: 12px;
  }

  .filter-btn,
  .sort-select {
    width: 100%;
  }

  .custom-form,
  .lessons-form,
  .contact-form,
  .cart-items,
  .cart-summary {
    padding: 22px;
  }

  .lessons-intro-section {
    padding: 44px 0 30px;
  }

  .lessons-intro-image img {
    height: 420px;
  }

  .modal-content {
    width: 94%;
    margin: 24px auto;
  }

  .modal-grid {
    flex-direction: column;
    min-height: auto;
  }

  .modal-image,
  .modal-info {
    width: 100%;
  }

  #modal-image {
    height: 360px;
  }

  .modal-info {
    padding: 24px;
  }

  .modal-thumbnails {
    padding: 12px;
  }

  .modal-thumb {
    width: 64px;
    height: 64px;
    min-width: 64px;
  }

  .cart-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .cart-item img {
    width: 100%;
    height: 240px;
  }

  .cart-summary .btn,
  .cart-summary .btn-outline {
    width: 100%;
    margin-bottom: 10px;
    text-align: center;
  }
}

/* PHONE */

@media (max-width: 480px) {
  .container {
    width: 90%;
  }

  .header-inner {
    padding: 12px 0 8px;
    gap: 10px;
  }

  .logo a {
    font-size: 28px;
  }

  .main-nav ul {
    gap: 16px;
    padding: 0 14px 8px;
  }

  .main-nav a {
    font-size: 14px;
  }

  .section {
    padding: 38px 0;
  }

  .page-hero {
    padding: 34px 0 22px;
  }

  .page-hero h1,
  .home-hero-text h1,
  .lessons-intro-text h1 {
    font-size: 34px;
  }

  .page-hero p,
  .home-hero-text p,
  .lessons-intro-text p,
  .lessons-intro-text .intro-lead {
    font-size: 16px;
  }

  .home-hero {
    padding: 38px 0 26px;
  }

  .home-hero-image img {
    max-height: 420px;
  }

  .featured-card img,
  .art-card img {
    height: 290px;
  }

  .about-process-grid img,
  .about-gallery img {
    height: 300px;
  }

  .custom-form,
  .lessons-form,
  .contact-form,
  .cart-items,
  .cart-summary {
    padding: 18px;
  }

  .custom-form input,
  .custom-form textarea,
  .custom-form select,
  .lessons-form input,
  .lessons-form textarea,
  .lessons-form select,
  .contact-form input,
  .contact-form textarea,
  .contact-form select {
    font-size: 16px;
    padding: 12px;
  }

  .lessons-intro-image img {
    height: 340px;
  }

  #modal-image {
    height: 320px;
  }

  .modal-info {
    padding: 20px;
  }

  .cart-item img {
    height: 220px;
  }

  .footer-inner-home {
    padding: 24px 0;
  }
}