style.css 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. /* Общие стили */
  2. body {
  3. font-family: Arial, sans-serif;
  4. margin: 0;
  5. padding: 0;
  6. }
  7. a {
  8. text-decoration: none;
  9. color: #333;
  10. }
  11. /* Шапка */
  12. header {
  13. background-color: #333;
  14. color: #fff;
  15. padding: 20px;
  16. }
  17. nav ul {
  18. list-style-type: none;
  19. margin: 0;
  20. padding: 0;
  21. display: flex;
  22. justify-content: center;
  23. }
  24. nav li {
  25. margin: 0 10px;
  26. }
  27. nav a {
  28. color: #fff;
  29. }
  30. /* Основное содержимое */
  31. main {
  32. padding: 60px;
  33. }
  34. .hero {
  35. text-align: center;
  36. margin-bottom: 60px;
  37. }
  38. .hero h1 {
  39. font-size: 36px;
  40. margin-bottom: 20px;
  41. }
  42. .hero p {
  43. font-size: 18px;
  44. margin-bottom: 30px;
  45. }
  46. .cta {
  47. display: inline-block;
  48. background-color: #333;
  49. color: #fff;
  50. padding: 10px 20px;
  51. border-radius: 5px;
  52. transition: background-color 0.3s ease;
  53. }
  54. .cta:hover {
  55. background-color: #555;
  56. }
  57. .about,
  58. .services,
  59. .portfolio,
  60. .testimonials,
  61. .blog,
  62. .contact {
  63. margin-bottom: 80px;
  64. }
  65. .about-content {
  66. display: flex;
  67. align-items: center;
  68. }
  69. .about-text {
  70. flex: 1;
  71. margin-right: 40px;
  72. }
  73. .about-image {
  74. flex: 1;
  75. text-align: center;
  76. }
  77. .about-image img {
  78. max-width: 300px;
  79. border-radius: 50%;
  80. }
  81. .services-list {
  82. display: flex;
  83. justify-content: space-between;
  84. }
  85. .service-item {
  86. flex: 1;
  87. margin: 0 20px;
  88. text-align: center;
  89. }
  90. .service-link {
  91. display: inline-block;
  92. background-color: #333;
  93. color: #fff;
  94. padding: 8px 16px;
  95. border-radius: 5px;
  96. transition: background-color 0.3s ease;
  97. }
  98. .service-link:hover {
  99. background-color: #555;
  100. }
  101. .portfolio-items {
  102. display: flex;
  103. justify-content: space-between;
  104. }
  105. .portfolio-item {
  106. flex: 1;
  107. margin: 0 20px;
  108. text-align: center;
  109. }
  110. .portfolio-item img {
  111. max-width: 100%;
  112. border-radius: 5px;
  113. }
  114. .portfolio-link {
  115. display: inline-block;
  116. background-color: #333;
  117. color: #fff;
  118. padding: 8px 16px;
  119. border-radius: 5px;
  120. transition: background-color 0.3s ease;
  121. }
  122. .portfolio-link:hover {
  123. background-color: #555;
  124. }
  125. .testimonial-items {
  126. display: flex;
  127. justify-content: space-between;
  128. }
  129. .testimonial-item {
  130. flex: 1;
  131. margin: 0 20px;
  132. display: flex;
  133. align-items: center;
  134. }
  135. .testimonial-image {
  136. flex: 1;
  137. text-align: center;
  138. margin-right: 40px;
  139. }
  140. .testimonial-image img {
  141. max-width: 100px;
  142. border-radius: 50%;
  143. }
  144. .testimonial-content {
  145. flex: 2;
  146. }
  147. .blog-posts {
  148. display: flex;
  149. justify-content: space-between;
  150. }
  151. .blog-post {
  152. flex: 1;
  153. margin: 0 20px;
  154. text-align: center;
  155. }
  156. .blog-post img {
  157. max-width: 100%;
  158. border-radius: 5px;
  159. }
  160. .blog-link {
  161. display: inline-block;
  162. background-color: #333;
  163. color: #fff;
  164. padding: 8px 16px;
  165. border-radius: 5px;
  166. }