:root {
  --primary-color: #3a6ea5;
  --secondary-color: #004e98;
  --accent-color: #ff9e00;
  --text-color: #333333;
  --light-text: #ffffff;
  --dark-bg: #1a1a1a;
  --light-bg: #f8f9fa;
  --gray-bg: #f0f2f5;
  --border-radius: 8px;
  --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
  --font-main: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --container-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%; /* 10px base for easier rem calculations */
  scroll-behavior: smooth;
  scroll-padding-top: 8rem;
}

body {
  font-family: var(--font-main);
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-bg);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--border-radius);
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover,
a:focus {
  color: var(--secondary-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin-bottom: 2rem;
  color: var(--dark-bg);
}

h1 {
  font-size: 4.8rem;
}

h2 {
  font-size: 3.6rem;
  position: relative;
  padding-bottom: 1.5rem;
}

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 8rem;
  height: 3px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--accent-color)
  );
}

h3 {
  font-size: 2.4rem;
}

h4 {
  font-size: 2rem;
}

p {
  margin-bottom: 1.6rem;
}

.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 8rem 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1.2rem 2.4rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease,
    border-color 0.3s ease, box-shadow 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.4rem;
}

.btn.primary {
  background-color: var(--primary-color);
  color: var(--light-text);
  border: 2px solid var(--primary-color);
}

.btn.primary:hover,
.btn.primary:focus {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn.secondary {
  background-color: #ffffff;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn.secondary:hover,
.btn.secondary:focus {
  background-color: #ffffff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 1.5rem;
}

.logo a {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  position: relative;
}

.logo a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.logo a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
}

.nav-list li {
  margin-left: 3rem;
}

.nav-list a {
  color: var(--text-color);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.nav-list a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--accent-color)
  );
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-list a:hover,
.nav-list a:focus {
  color: var(--primary-color);
}

.nav-list a:hover::after,
.nav-list a:focus::after {
  opacity: 1;
  transform: translateY(0);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--text-color);
  transition: var(--transition);
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  background: linear-gradient(
      135deg,
      rgba(0, 78, 152, 0.8) 0%,
      rgba(58, 110, 165, 0.8) 100%
    ),

  color: var(--light-text);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,192L48,176C96,160,192,128,288,128C384,128,480,160,576,186.7C672,213,768,235,864,224C960,213,1056,171,1152,149.3C1248,128,1344,128,1392,128L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>')
    no-repeat bottom center/cover;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 6rem;
  margin-bottom: 2rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  animation: fadeInDown 1s ease-out;
}

.hero .tagline {
  font-size: 2.4rem;
  margin-bottom: 4rem;
  animation: fadeInUp 1s ease-out 0.3s forwards;
  opacity: 0;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  animation: fadeInUp 1s ease-out 0.6s forwards;
  opacity: 0;
}

/* Introduction Section */
.introduction {
  background-color: var(--light-bg);
}

.text-image-container {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-top: 4rem;
}

.text-content {
  flex: 1;
}

.image-container {
  flex: 1;
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  aspect-ratio: 16 / 9;
  width: 100%;
}

.f-link {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  position: relative;
  transition: var(--transition);
  border-bottom: 1px dashed var(--primary-color);
  padding-bottom: 2px;
}

.f-link:hover {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
}

.f-link::after {
  content: "↗";
  font-size: 0.8em;
  margin-left: 3px;
  vertical-align: super;
  opacity: 0.8;
}




.image-container::before {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  border: 5px solid var(--accent-color);
  border-radius: var(--border-radius);
  z-index: -1;
}

/* Materials Section */
.materials {
  background-color: var(--gray-bg);
  position: relative;
  overflow: hidden;
}

.materials::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" stroke="%233a6ea5" stroke-width="1" fill="none" stroke-opacity="0.1"/></svg>')
    repeat;
  z-index: 0;
}

.materials .container {
  position: relative;
  z-index: 1;
}

.materials h2 {
  text-align: center;
  margin-bottom: 5rem;
}

.materials h2::after {
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--accent-color)
  );
}

.materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.material-card {
  background-color: var(--light-text);
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  border-top: 3px solid transparent;
}

.material-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border-top: 3px solid;
  border-image: linear-gradient(
      to right,
      var(--primary-color),
      var(--accent-color)
    )
    1;
}

.material-card h3 {
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  transition: color 0.3s ease;
}

.material-card:hover h3 {
  color: var(--primary-color);
}

.material-card h3::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--accent-color)
  );
  transition: width 0.3s ease;
}

.material-card:hover h3::after {
  width: 100%;
}

/* Styles Section */
.styles {
  background-color: var(--light-bg);
}

.section-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 5rem;
  font-size: 1.8rem;
}

.styles-showcase {
  display: flex;
  flex-direction: column;
  gap: 8rem;
}

.style-content {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.style-content.reverse {
  flex-direction: row-reverse;
}

.style-text,
.style-image {
  flex: 1;
}

.style-image {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  aspect-ratio: 16 / 9;
  width: 100%;
  background-color: var(--gray-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

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


.fit-comfort {
  margin-top: 6rem;
  padding: 4rem;
  background-color: var(--gray-bg);
  border-radius: var(--border-radius);
  text-align: center;
}

/* Ring Care Section */
.ring-care {
  background-color: var(--dark-bg);
  color: var(--light-text);
  position: relative;
  overflow: hidden;
}

.ring-care::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,117.3C960,107,1056,149,1152,154.7C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>')
    no-repeat bottom center/cover;
}

.ring-care h2 {
  color: var(--light-text);
  text-align: center;
  margin-bottom: 5rem;
}

.ring-care h2::after {
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--accent-color)
  );
}

.care-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.care-tips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-top: 5rem;
}

.care-tip {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 3rem 2rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.care-tip:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.15);
}

.icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
}

.care-tip h4 {
  color: var(--light-text);
  margin-bottom: 1rem;
}

/* Conclusion Section */
.conclusion {
  background-color: var(--light-bg);
  text-align: center;
}

.conclusion p {
  max-width: 800px;
  margin: 0 auto 4rem;
}

.cta-final {
  background-color: var(--gray-bg);
  padding: 4rem;
  border-radius: var(--border-radius);
  margin-top: 5rem;
}

.cta-final h3 {
  margin-bottom: 2rem;
}

/* Footer */
.site-footer {
  background-color: var(--dark-bg);
  color: var(--light-text);
  padding: 6rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-logo a {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--light-text);
}

.footer-logo p {
  margin-top: 1rem;
  opacity: 0.8;
}

.footer-nav h4,
.footer-contact h4 {
  color: var(--light-text);
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
}

.footer-nav h4::after,
.footer-contact h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--accent-color)
  );
}

.footer-nav ul {
  list-style: none;
}

.footer-nav li {
  margin-bottom: 1rem;
}

.footer-nav a {
  color: var(--light-text);
  opacity: 0.8;
  transition: opacity 0.3s ease, color 0.3s ease, padding-left 0.3s ease;
  position: relative;
  display: inline-block;
  padding-left: 0;
}

.footer-nav a:hover {
  opacity: 1;
  color: var(--accent-color);
  padding-left: 5px;
}

.footer-contact address {
  font-style: normal;
  opacity: 0.8;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-bottom p {
  margin-bottom: 0;
}

.footer-bottom a {
  color: var(--light-text);
  opacity: 0.8;
  transition: opacity 0.3s ease, color 0.3s ease;
  position: relative;
}

.footer-bottom a:hover {
  opacity: 1;
  color: var(--accent-color);
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Unique Features */
/* Удаляем Ring Configurator Teaser */
.ring-configurator {
  display: none; /* Скрываем элемент вместо полного удаления, чтобы избежать ошибок */
}

/* Material Comparison Table */
.comparison-title {
  text-align: center;
  margin: 3rem 0 2rem;
}

.material-comparison-table {
  width: 100%;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  margin-bottom: 3rem;
  background-color: var(--light-text);
}

.table-row {
  display: flex;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.table-row:last-child {
  border-bottom: none;
}

.table-row.header {
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--light-text);
  font-weight: 600;
}

.table-cell {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  align-items: center;
}

.material-name {
  font-weight: 600;
  color: var(--primary-color);
}

/* Responsive table */
@media (max-width: 768px) {
  .table-row {
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .table-row.header {
    display: none; /* Hide header on mobile */
  }

  .table-cell {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .table-cell:last-child {
    border-bottom: none;
  }

  .table-cell::before {
    content: attr(data-label);
    font-weight: 600;
    margin-right: 1rem;
  }

  .material-name {
    font-size: 1.8rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: 1rem;
  }
}

/* Dark mode support for table */
@media (prefers-color-scheme: dark) {
  .material-comparison-table {
    background-color: var(--gray-bg);
  }

  .table-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .table-row.header {
    background-color: var(--secondary-color);
  }

  @media (max-width: 768px) {
    .table-row {
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .table-cell {
      border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  html {
    font-size: 60%;
  }

  .text-image-container,
  .style-content,
  .style-content.reverse {
    flex-direction: column;
  }

  .image-container,
  .style-image {
    margin-top: 3rem;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 55%;
  }

  .menu-toggle {
    display: block;
    z-index: 1001;
  }

  .nav-list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--light-bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }

  .nav-list.active {
    right: 0;
  }

  .nav-list li {
    margin: 2rem 0;
  }

  .menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero h1 {
    font-size: 4.5rem;
  }

  .hero .tagline {
    font-size: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 1.5rem;
  }

  .materials-grid {
    grid-template-columns: 1fr;
  }

  .care-tips {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 50%;
  }

  .hero h1 {
    font-size: 3.6rem;
  }

  section {
    padding: 6rem 0;
  }

  .material-card,
  .care-tip {
    padding: 2rem;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --light-bg: #121212;
    --gray-bg: #1e1e1e;
    --text-color: #e0e0e0;
    --dark-bg: #000000;
    --light-text: #ffffff;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  }

  .site-header {
    background-color: rgba(18, 18, 18, 0.95);
  }

  .material-card {
    background-color: #1e1e1e;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    color: var(--light-text);
  }

  .ring-care {
    background-color: #000000;
  }

  .care-tip {
    background-color: rgba(255, 255, 255, 0.05);
  }

  .care-tip:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
}

/* Print Styles */
@media print {
  .site-header,
  .hero,
  .cta-buttons,
  .ring-configurator,
  .site-footer {
    display: none;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    page-break-after: avoid;
    page-break-inside: avoid;
  }

  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  .container {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  a[href^="http"]:after {
    content: " (" attr(href) ")";
  }
}

/* Медиа-запросы для адаптивности изображений */
@media (max-width: 768px) {
  .text-image-container {
    flex-direction: column;
  }

  .image-container,
  .style-image {
    margin-top: 2rem;
    width: 100%;
  }
}
